Transfer a native token

How to perform a basic token transfer. E.g transfer ETH from one wallet to another.

Transfer a native token

POST https://api-wallet.venly.io/api/transactions/execute

Request Body

NameTypeDescription

pincode

string

PIN related to the wallet ID

type

string

TRANSFER

walletId

string

The id of the wallet that will initiate the tx

to

string

Destination Address (can be a blockchain address or email address)

secretType

string

On which blockchain the tx will be executed

value

integer

Amount you want to transfer

transactionRequest

object

transactionRequest object

chainSpecificFields

object

chainSpecificFields object

{
    "success": true,
    "result": {
        "transactionHash": "0x8c953e09d8cede9f4eb0d1ee96de4f5a99e31dba7e64312bb252a465de12d10d"
    }
}

🧙 The destination of a transfer is not limited to a blockchain address, we also support email addresses.

Example

Request

POST : https://api-wallet.venly.io/api/transactions/execute

Request Body

{
   "transactionRequest": {
     "type": "TRANSFER",
     "walletId": "944124ed-305d-4e56-a0fd-bce1c7f1537c",
     "to": "0xf56799d7C95C6DEb708A9f55b2e75A685A94F980",
     "secretType": "ETHEREUM",
     "value": 0,
     "data": '' //optional
   },
   "pincode": "1234"
}

Response

{
    "success": true,
    "result": {
        "transactionHash": "0x8c953e09d8cede9f4eb0d1ee96de4f5a99e31dba7e64312bb252a465de12d10d"
    }
}

Object References

pageTransferRequestDtopageChainSpecificFields

Last updated