token_transfer
Transfer tokens from the authenticated user to another user.Method Signature
Parameters
TransferRequest
Response
TransferResponse
- Success:
{ ok: null }- Transfer completed successfully - Error:
{ err: string }- Error message describing what went wrong
Example Usage
Common Errors
- Insufficient balance: Not enough tokens in sender’s account
- Invalid recipient: Recipient address/principal is invalid
- Token not found: Specified token ID doesn’t exist
- Transfer blocked: Token transfers may be restricted