salt-sdk
    Preparing search index...

    Interface ERC20TransferParams

    The paramters require to transfer an ERC20 token on any chain that Salt supports

    interface ERC20TransferParams {
        accountId: string;
        chainId: number;
        decimals: number;
        sendingProvider?: Provider;
        signer: Signer;
        to: string;
        tokenAddress: string;
        type: ERC20;
        value: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    accountId: string

    Salt account ID for the transaction

    '1234567890'
    
    chainId: number

    Chain ID of the network (integer)

    11155111
    
    decimals: number

    Decimals of the token being sent.

    18
    
    sendingProvider?: Provider

    Sending provider of the transaction. If not provided, it will attempt to select a provider depending on the chainId

    new providers.JsonRpcProvider('https://rpc.ankr.com/eth')
    
    signer: Signer

    Ethers signer for the transaction.

    '0x1234567890123456789012345678901234567890'
    
    to: string

    Recipient address for the transaction

    '0x1234567890123456789012345678901234567890'
    
    tokenAddress: string

    The address of the ERC20 token contract

    type: ERC20

    Indicates the type of transfer. For ERC20 tokens, it's always ERC20

    value: string

    Amount of token to send. This is a string representation of the amount of the token being sent.

    '1'