Links
🪙

Transfer ERC20

Use this method to transfer ERC20 token from your developer wallet.
ERC20 transfer works for any ERC20, and they need to be in your developer wallet

Usage in your script

JavaScript
TypeScript
const response = await altura.transferErc20(
COLLECTION_ADDRESS,
CHAIN_ID,
AMOUNT,
TO_ADDRESS
);
​
const txHash = response.txHash;
const response: { txHash: string } = await altura.transferItem(
COLLECTION_ADDRESS,
TOKEN_ID,
AMOUNT,
TO_ADDRESS
);
​
const txHash = response.txHash;

Parameters

Parameter
Type
Required
Description
collection_addr
String
Yes
The erc20 contract address
chaiID
number
Yes
the network ID
amount
number
Yes
the amout of erc20 tokens
to_addr
String
Yes
The recipient's EVM-compatible address (0x...)
​