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
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
wallet | query | Wallet | true | The wallet to use for signing the transaction. |
sender | query | String | true | The sender address. |
recipient | query | String | true | The recipient address. |
quantums | query | i32 | true | The amount of quantums to send. |
denomination | query | i32 | true | The denomination of the token. |
Response
| Status | Meaning | Schema | |
|---|---|---|---|
200 | OK | TxHash | |
400 | Bad Request | The request was malformed or invalid. |
Examples: Rust