Use this method to efficiently generate and dispatch multiple Payout Requests. This process not only facilitates the creation of one or several Payout Requests but also initiates the Payout, ensuring the automatic transfer of funds.
Once domain verification applies to your account, this request fails while the profile's payout webhook URL is on a domain that isn't verified for the profile. See Domain verification.
Method: POST
Path: https://api.blockbee.io/{ticker}/payout/request/bulk/process/
Parameters
Path Parameters
tickerstring•Required
The ticker parameter in this API request refers to the unique identifier of the cryptocurrency to which you are making the request. It is included in the URL of the request and helps to specify the exact cryptocurrency that you want to retrieve data for. The ticker is typically a short code that uniquely identifies the cryptocurrency, or the token and it's network/blockchain. For example, btc is the ticker for Bitcoin, and trc20/usdt is the ticker for USDT over TRC-20. Having this in mind, a request for USDT over TRC-20 will look like this: https://api.blockbee.io/trc20/usdt/create/.
Notes:
- You can find all our tickers in our cryptocurrencies page.
- Our Payouts system does not support
doge.
Query Parameters
apikeystring•Required
API Key provided by BlockBee's Dashboard. Unsure how to get yours? Check this tutorial.
Note:
- The API key can also be sent as a header named
apikey.
Request Body
This endpoint requires a JSON request body with the payout requests.
Note: The request Content-Type header must be set to application/json.
{
"outputs": {
"0xA6B78B56ee062185E405a1DDDD18cE8fcBC4395d": 0.2,
"0x18B211A1Ba5880C7d62C250B6441C2400d588589": 0.1
}
}Returns
Returns information about the created payout and its status.
payout_infoobject
An object containing detailed information about the payout.
Unique identifier for the payout.
The status of the Payout. Can be created, processing, done, rejected, expired, or error.
The status of the Payout. Can be Created, Pending Payment, Done, Rejected, Expired, or Error.
Source address for the payout, if applicable.
A mapping of destination addresses to the amount requested for each.
Total cryptocurrency amount requested.
Total cryptocurrency amount including the fee.
The error message. This field is always present but is empty unless the payout status is error or expired.
The fee paid to the blockchain for the transaction.
Fee associated with the transaction.
Cryptocurrency ticker for the transaction.
Transaction ID, available once the payout is fulfilled.
Timestamp when the payout was created.
Errors
Besides the common errors (API key, IP whitelist, domain verification, maintenance, unsupported network or token), this endpoint can return:
| Error | HTTP | Cause |
|---|---|---|
Coin not available | 400 | ticker is unknown or isn't enabled for payouts. Tickers are lowercase. |
This endpoint is for API key v2 only | 400 | Your API key isn't an API Key V2. |
No outputs sent | 400 | The body is missing, isn't JSON, or has keys other than outputs. |
Value needs to be a decimal | 400 | An amount in outputs isn't a number. |
Value needs to be greater than 0 | 400 | An amount in outputs is 0 or negative. |
Address is empty | 400 | An address in outputs is an empty string. |
Invalid address 0x123... | 400 | The address named in the message isn't a valid destination for this network. We create no requests. |
Failed to create payout | 400 | outputs is an empty object. |
Could not generate address | 400 | We couldn't create your payout wallet for this network. Retry later. |
API key incorrect | 400 | Your API key failed verification. |
Your request couldn't be processed, please try again later | 400 | A temporary error. Retry later. |
API down for maintenance, please check back in a few minutes | 400 | Payouts on this network are down for maintenance. Retry later. |
Not enough balance | 400 | Your payout wallet holds less than the payout total plus the fee. |
Not enough ETH balance | 400 | Your payout wallet doesn't hold enough of the network's native coin to pay the network fee. The message names the coin, such as BNB, SOL, TRX or TON. |
Output address 0x123... is a burn address | 400 | A destination is a burn address. |
Output address 0x123... is a token contract | 400 | A destination is a token contract address. |
Output address UQ... is the payout wallet itself | 400 | TON: a destination is your own payout wallet. |
Invalid amount for output UQ...: more precision than the token has | 400 | TON: an amount is smaller than the token's smallest unit. |
When you get Could not generate address or any error below it, we have already created the payout requests and a created payout. The error doesn't include the payout ID: find the payout with List Payouts and retry it with Process Payout by ID. Other temporary errors can occur while sending; retry them the same way.