ERC20 Transfer

ERC20 Transfer

Send any ERC20 token to a recipient. The fee is pulled automatically from the user's chosen fee token. The recipient gets the exact amount, nothing extra required.

typescript
import { Zedkr } from "zedkr";
const client = await Zedkr.create({ provider });
const result = await client.transfer(signer, "0xRecipient", "0xUSDT", "25", 6);
console.log(result.txHash);

What happens on-chain

1User signs an EIP-712 intent off-chain, no gas, no broadcast
2Zedkr relayer validates the signature and submits the transaction
3Fee is pulled from the user's fee token balance
4The ERC20 transfer executes atomically in the same transaction
Note
Approve the router once for your fee token before the first transfer. See Getting Started.