Skip to main content
Transfer tokens to another wallet address. This function automatically manages both native SUI and other token transfers, ensuring proper decimal adjustments.

Usage

Parameters

Example Prompts

Natural Language Prompts

LangChain Tool Prompts

Example Implementation

Here’s a complete example

Implementation Details

  • Handles decimal adjustment for tokens
  • Check wallet’s balance
  • Sign and execute transaction

Error Handling

Best Practices

  1. Amount Validation
  • Always verify token decimals
  • Check balances before transfer
  • Account for transaction fees
  1. Address Validation
  • Validate recipient addresses
  1. Transaction Management
  • Monitor transaction status
  • Implement retry logic
  • Handle timeouts appropriately
  1. Security
  • Verify recipient addresses carefully
  • Implement confirmation dialogs
  • Consider using transaction previews

Common Token Symbol

  • SUI
  • USDC