Avalanche SDK Client
    Preparing search index...

    Type Alias PrepareExportTxnParameters

    type PrepareExportTxnParameters = {
        context?: ContextType.Context;
        destinationChain: typeof P_CHAIN_ALIAS | typeof X_CHAIN_ALIAS;
        exportedOutput: { addresses: string[]; amount: number; locktime?: number; threshold?: number };
        fromAddress: string;
    }
    Index

    Properties

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

    destinationChain: typeof P_CHAIN_ALIAS | typeof X_CHAIN_ALIAS

    The chain alias to export the funds to. P_CHAIN_ALIAS | X_CHAIN_ALIAS

    exportedOutput: { addresses: string[]; amount: number; locktime?: number; threshold?: number }

    The consolidated exported output (UTXO)

    Type declaration

    • addresses: string[]

      Addresses who can sign the consuming of this UTXO.

    • amount: number

      The amount (in AVAX) held by this exported output.

    • Optionallocktime?: number

      Optional. Timestamp in seconds after which this UTXO can be consumed.

    • Optionalthreshold?: number

      Optional. Threshold of addresses' signatures required to consume this UTXO.

    fromAddress: string

    The EVM address to export the funds from.