Skip to content

Send Token

Transfer a specified token from one account/address to another.

It requires details such as the wallet for signing the transaction, sender and recipient addresses, and the quantum amount or denomination of the token.

Method Declaration

Python
async def send_token(
    self,
    wallet: Wallet,
    sender: str,
    recipient: str,
    quantums: int,
    denomination: str,
)
Unification Plan
  • All the types are different, revision is needed
  • Standard types like strings are used
  • Broadcast mode?
  • Zero fee?

Parameters

ParameterLocationTypeRequiredDescription
walletqueryWallettrueThe wallet to use for signing the transaction.
senderqueryStringtrueThe sender address.
recipientqueryStringtrueThe recipient address.
quantumsqueryi32trueThe amount of quantums to send.
denominationqueryi32trueThe denomination of the token.

Response

StatusMeaningSchema
200OKTxHash
400Bad RequestThe request was malformed or invalid.

Examples: Rust