๐จSend
This documentation provides details on the API endpoints available for Whirlprivacy.io, focusing on sending-related operations.
โ ๏ธ You must be logged in to use these requests.
Common Headers
For all requests that require user authentication, you must include the following headers:
Header Name | Value | Description |
---|---|---|
X-API-key |
| API token obtained after authentication. |
POST /send/init
- Initiate Send
/send/init
- Initiate SendDescription:
Initiates a send transaction between users. It handles the transfer of assets from one blockchain to another with optional delay parameters for added security.
Parameters:
Parameter | Type | Description | Required |
---|---|---|---|
| String | The UUID or the label of the sender. Main by default. | No |
| String | The blockchain from which the assets are being sent. | Yes |
| String | The ticker symbol of the asset to be transferred. | Yes |
| String | The amount of the asset to be transferred. | Yes |
| String | The recipient's address. | Yes |
| String | The transaction hash of the send transaction. | Yes |
| String | The blockchain to which the assets are being sent. | Yes |
| Number | The minimum delay time (in minutes) before the transaction. | No |
| Number | The maximum delay time (in minutes) before the transaction. | No |
Response:
The response for a successful initiation of a send transaction will look like:
Error Handling:
Error Code | Description |
---|---|
E_INVALID_PARAMS | Invalid parameters were provided. |
E_UNSUPPORTED_CHAIN_SEND | The requested chain send is not supported. |
E_INVALID_DELAY | The specified delay is invalid. |
E_UNSUPPORTED_CHAIN_ASSET | The asset is not supported on the specified chain. |
E_INVALID_TICKER | The provided ticker symbol is invalid. |
E_INVALID_AMOUNT | The specified amount is invalid. |
E_INVALID_CHAIN | The specified chain is invalid. |
E_MAX_PENDING_OPS | The user has exceeded the maximum pending operations. |
E_PROCESSED_TX | The transaction has already been processed. |
E_ESTIMATE_FEES_OR_AMOUNT_TO_LOW | The estimated fees or amount is too low. |
E_SENDING | An error occurred initiating the transfer. |
Example Code:
Last updated