F
FromChain
Crypto Payment Gateway API

FromChain Payment Gateway

Accept USDT (BEP-20) payments on Binance Smart Chain with our simple REST API. Get started in minutes with automatic payouts, real-time webhooks, and secure transaction handling.

Easy Integration

Simple REST API with clear documentation and code examples

Real-Time Updates

Instant webhook notifications for payment status changes

Secure Payments

Enterprise-grade security with encrypted webhooks and automatic payouts

Automatic Payouts

Funds automatically transferred to your wallet after confirmation

Quick Example

Create a payment invoice in seconds

create-invoice.js
const response = await fetch('https://api.fromchain.io/v1/invoices', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer gw_live_your_api_key_here',
    'Content-Type': 'application/json',
    'Idempotency-Key': 'order_123_payment'
  },
  body: JSON.stringify({
    amountExpected: '100.00',
    externalId: 'order_123',
    description: 'Payment for Order #123',
    expiresInMinutes: 30,
    metadata: {
      customerId: 'user_456',
      orderId: 'order_123'
    }
  })
});

const invoice = await response.json();
console.log(invoice);
// {
//   "id": "inv_abc123",
//   "depositAddress": "0x1234567890...",
//   "status": "PENDING",
//   "amountExpected": "100.00"
// }

What You Get

Unique deposit address for each payment
Automatic payouts to your wallet
Real-time webhook notifications
Support for USDT on BSC network
5 block confirmations for security
Configurable invoice expiration
Detailed payment tracking
HMAC-secured webhooks
Idempotent API requests
Comprehensive error handling
Rate limiting protection
Full transaction history

How It Works

1

Create Invoice

Call our API to create a payment invoice. Get a unique BSC address for your customer to send USDT to.

2

Customer Pays

Customer sends USDT to the deposit address. We monitor the blockchain and notify you via webhook.

3

Receive Funds

After confirmation, we automatically send funds (minus fees) to your configured payout address.

Ready to get started?

Integrate crypto payments into your platform in minutes with our simple API.

View Documentation