🪙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

const response = await altura.transferErc20(
    COLLECTION_ADDRESS,
    CHAIN_ID,
    AMOUNT,
    TO_ADDRESS
);

const txHash = response.txHash;

Parameters

ParameterTypeRequiredDescription

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...)

Last updated