ETBX Developer Docs

Navigate the documentation

Transfers API

Disburse ETB from treasury or sub-wallets to user wallets or other sub-wallets. Transfers happen on-chain.

Disburse ETB

HTTPPOST
curl -X POST https://api.etbx.com/api/v1/partners/disburse \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amountEtb": 100,
    "toUserId": "waas_xxx_user_001",
    "fromSubWalletId": "sub_wallet_id_123",
    "toSubWalletId": "sub_wallet_id_456"
  }'

Request Fields

FieldTypeRequiredDescription
amountEtbnumberYesAmount of ETB to transfer
toUserIdstringOptional*Recipient user ID
toSubWalletIdstringOptional*Recipient sub-wallet ID
fromSubWalletIdstringNoSource sub-wallet ID (defaults to treasury)

* Either toUserId or toSubWalletId is required.

Responsejson
{
  "data": {
    "success": true,
    "amountEtb": 100,
    "fromAddress": "0xabc...",
    "toAddress": "0xuser...",
    "txHash": "0xabc123..."
  }
}

Fees

All transfers incur a 0.25% platform fee:

AmountFeeUser Receives
100 ETB0.25 ETB99.75 ETB
1000 ETB2.5 ETB997.5 ETB

Error Handling

ErrorStatus
Insufficient balance400
User wallet not provisioned400

Next Steps