Avalanche SDK Client
    Preparing search index...

    Type Alias SendParameters

    The parameters for the send method.

    type SendParameters = {
        account?: AvalancheAccount;
        amount: number;
        context?: ContextType.Context;
        destinationChain?: "P" | "C";
        from?: Address | XPAddress;
        sourceChain?: "P" | "C";
        to: Address | XPAddress;
        token?: "AVAX";
    }
    Index

    Properties

    The account to send the transaction from.

    amount: number

    The amount of tokens to send in AVAX.

    Optional. The context to use for the transaction. If not provided, the context will be fetched.

    destinationChain?: "P" | "C"

    The chain to send the tokens to. Default is C. Only P and C are supported.

    from?: Address | XPAddress

    The address to send the tokens from. Default is the account address.

    sourceChain?: "P" | "C"

    The chain to send the tokens from. Default is C. Only P and C are supported.

    to: Address | XPAddress

    The address to send the tokens to. If the destination chain is P, this should be a P chain address. If the destination chain is C, this should be a C chain address.

    token?: "AVAX"

    The token to send. Default is AVAX. Only AVAX is supported.