transferToken

This mutation allows transfers of the ERC-721 token to another address.

Sample Mutation

Transfer a token to another contract address:

mutation{
  transferToken(walletId:"a981f2a5-dd2f-474c-b5b7-30079ac9cc5f"
  tokenOnChainId:12
  contractAddress:"0xd79e8c99cb47e0813f2f2b71e840183027991bbd"
  transferTo:"0xAc14D1dd976B5FE763d50a6e5fDfF0675431AD0F")
}

Sample Response

{
  "data": {
    "transferToken": "79bc2156-fa39-480a-88e8-733c4f962b4e"
  }
}

Arguments

Name

Type

Description

Required

walletId

UUID1

The wallet ID.

Yes

contractAddress

String

The contract address.

Yes

tokenOnChainId

Integer

The ID of the token in the smart contract.

Yes

transferTo

String

The transfer destination.

Yes

Return

Name

Type

Description

N/A

String

The returned value of the transferred token.

Example

Transfer a token to a certain destination using Wallet ID, contract address, token on chain ID, and transfer destination: