Skip to main content

Overview

The Dynamic SDK provides multiple ways to send ERC-20 tokens. You can use the writeContract method with the built-in ABI, or encode the transfer calldata manually for more control.

Prerequisites

Using writeContract

The SDK provides a writeContract method with the built-in Erc20.abi that handles all the encoding for you:
The SDK includes a built-in Erc20.abi constant that contains the standard ERC-20 ABI, including the transfer function. Using writeContract handles all the encoding automatically.

Complete ERC20 Transfer View

Common Token Decimals

Best Practices

1. Validate Token Address

Always validate the token contract address before sending:

2. Check Token Balance Before Transfer

3. Use Appropriate Gas Limits

Next Steps

Last modified on February 2, 2026