Learn how to send USDC tokens from your Dynamic embedded wallet on EVM chains
transfer
function on the contract, which takes in two parameters:
to
: The address of the recipientvalue
: The amount of tokens to sendviem
to provide the ABI and encode the function parameters.
Additionally, each ERC-20 token defines a decimals
value, which is the number of decimal places for the token. For USDC, the decimals
value is 6.
First, ensure you have the required dependencies installed for your platform:
parseUnits(amount, 6)
when converting amounts