Transfer a fungible token

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

Request Endpoint: reference

HTTP

POST /api/transactions/execute
Parameter
Param Type
Value
Description
Example Value

Signing-Method

Header

id:value

id: This is the ID of the signing method value: 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 NFT_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.tokenAddress

Body

The token contract address

String

transactionRequest.value

Body

The amount you want to transfer

Integer

transactionRequest.tokenId

Body

The ID of the token you want to transfer in case of a fungible token.

Integer

pincode (Deprecated)

Body

PIN related to the wallet ID

String

Request Body:

JSON

{  
    "transactionRequest": {  
         "type": "NFT_TRANSFER",
        "walletId": "c4c97f87-8e00-4f3a-8647-2f24ac9b73cb",
        "to": "0x2D24b9DE4F963d1Cfac1a65b6F1a85945d3e92F5",  
        "value": "2",  
        "secretType": "MATIC",   
        "tokenAddress": "0xd687ed37ed8ed56ab91387755432a3c8f197455d",
        "tokenId": 34
    }  
}

Response Body:

JSON

{
    "success": true,
    "result": {
        "id": "e0487e86-a1e7-4aaf-b79a-ad31f18d57b7",
        "transactionHash": "0x79ad8e02249edde79735b35289a394129d4105ce02acaca61f12b15134f28832"
    }
}

Last updated