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
tokenis omitted, the SDK will send native tokens like ETH. - If
tokenis provided, the SDK will send ERC20 tokens. amountshould be entered as a human-readable number (e.g.,0.1ETH,10Tokens).- The conversion to correct base units is handled internally.