Skip to main content
The Sender class from @holdstation/worldchain-sdk allows developers to send native tokens (e.g., ETH) or ERC20 tokens on WorldChain easily.

Installation


Setup


Send Token

📑 Parameters



ℹ️ Notes:
  • If token is omitted, the SDK will send native tokens like ETH.
  • If token is provided, the SDK will send ERC20 tokens.
  • amount should be entered as a human-readable number (e.g., 0.1 ETH, 10 Tokens).
  • The conversion to correct base units is handled internally.

📘 Usage Examples


🔹 Send Native Token (e.g., ETH)


🔹 Send ERC20 Token


⚠️ Typical Error Cases