transferAmount sends tokens from a wallet account to a recipient address. One call works across chains: the SDK builds and submits the right transaction for the wallet account’s chain and active network, for both external wallets and embedded wallets.
The transfer executes on the wallet account’s active network. transferAmount does not bridge assets between chains; to send on a different network, switch the active network first.
Send a native token
- JavaScript
- React
amount is a decimal string in the token’s display units, converted on-chain using the token’s decimals.
Send a non-native token
Passtoken with the asset’s chain-specific identifier and its decimals.
- ERC-20 (EVM)
- SPL (Solana)
Support by chain
ZeroDev smart wallet accounts support native and ERC-20 transfers on EVM chains.
Errors
WalletProviderMethodUnavailableErrorwhen the wallet account’s provider does not implement transfers, which includes chains not listed above.InvalidParamErrorwhen the wallet account’s chain does not match the transfer, or the token is invalid (for example, a coin type the account does not hold on Sui).TempoNativeTokenErrorwhentokenis omitted on Tempo.- Insufficient-funds errors surface from the chain itself and vary by network.