salt-sdk
    Preparing search index...

    Interface NativeTransferParams

    The paramters require to transfer the native Chain token on any chain that Salt supports

    interface NativeTransferParams {
        accountId: string;
        chainId: number;
        decimals: number;
        sendingProvider?: Provider;
        signer: Signer;
        to: string;
        type: Native;
        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'
    
    type: Native

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

    value: string

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

    '1'