Transfer a native token
How to perform a basic token transfer. E.g transfer ETH from one wallet to another.
Request Endpoint: reference
POST /api/transactions/execute
Parameter | Param Type | Value | Description | Example Value |
---|---|---|---|---|
Signing-Method | Header | id:value | id : This is the ID of the signing methodvalue : This is the value of the signing method | 756ae7a7-3713-43ee-9936-0dff50306488:123456 |
Parameter | Param Type | Description | Data Type | Mandatory |
---|---|---|---|---|
transactionRequest | Body | This object includes the transaction information | Object | ✅ |
transactionRequest.type | Body | This will be TRANSFER | String | ✅ |
transactionRequest.walletId | Body | The id of the wallet that will initiate the tx | String | ✅ |
transactionRequest.to | Body | Destination Address (can be a blockchain address or email address) | String | ✅ |
transactionRequest.secretType | Body | On which blockchain the tx will be executed | String | ✅ |
transactionRequest.value | Body | The amount you want to transfer | Integer | ✅ |
pincode (Deprecated) | Body | PIN related to the wallet ID | String | ❌ |
Request Body:
{
"transactionRequest": {
"type": "TRANSFER",
"walletId": "944124ed-305d-4e56-a0fd-bce1c7f1537c",
"to": "0xf56799d7C95C6DEb708A9f55b2e75A685A94F980",
"secretType": "ETHEREUM",
"value": 0
}
}
Response Body:
{
"success": true,
"result": {
"transactionHash": "0x8c953e09d8cede9f4eb0d1ee96de4f5a99e31dba7e64312bb252a465de12d10d"
}
}
Updated 8 months ago