Transfers API
Disburse ETB from treasury or sub-wallets to user wallets or other sub-wallets. Transfers happen on-chain.
Disburse ETB
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
| amountEtb | number | Yes | Amount of ETB to transfer |
| toUserId | string | Optional* | Recipient user ID |
| toSubWalletId | string | Optional* | Recipient sub-wallet ID |
| fromSubWalletId | string | No | Source sub-wallet ID (defaults to treasury) |
* Either toUserId or toSubWalletId is required.
Fees
All transfers incur a 0.25% platform fee:
| Amount | Fee | User Receives |
|---|---|---|
| 100 ETB | 0.25 ETB | 99.75 ETB |
| 1000 ETB | 2.5 ETB | 997.5 ETB |
Error Handling
| Error | Status |
|---|---|
| Insufficient balance | 400 |
| User wallet not provisioned | 400 |