Transfer a fungible token

How to perform a fungible transfer. E.g transfer an ERC20 token from one wallet to another.

Transfer a fungible token

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

Request Body

NameTypeDescription

tokenAddress

string

Token contract address

pincode

string

PIN related to the wallet ID

type

string

TOKEN_TRANSFER

walletId

string

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

String

ChainSpecificFields object

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

🧙 The destination of a token 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" : "TOKEN_TRANSFER",
    "walletId" : "edc4c08a-b8fa-4e4c-z5a2-92c87b80f174",
    "to" : "0xdc71b72db51e227e65a45004ab2798d31e8934c9",
    "secretType" : "MATIC",
    "tokenAddress" : "0x4df47b4969b2911c966506e3592c41389493953b",
    "value" : 1.15,
    "tokenId" : 101
  }
  "pincode" : "1234",
}

Response

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

Object References

pageChainSpecificFieldspageTransferRequestDto

Last updated