Avalanche SDK Client
    Preparing search index...

    Type Alias XChainTransactionType

    XChainTransactionType:
        | {
            encoding: "json";
            tx: { credentials: (...)[]; id: string; unsignedTx: { blockchainID: ...; destinationChain: ...; exportedOutputs: ...; inputs: ...; memo: ...; networkID: ...; outputs: ... } };
        }
        | { encoding: "hex"; tx: string }

    Represents an X-Chain transaction in either JSON or hex format. Transactions on the X-Chain can transfer assets between addresses or export assets to other chains.

    Type declaration

    • {
          encoding: "json";
          tx: { credentials: (...)[]; id: string; unsignedTx: { blockchainID: ...; destinationChain: ...; exportedOutputs: ...; inputs: ...; memo: ...; networkID: ...; outputs: ... } };
      }
      • encoding: "json"

        Encoding format for the transaction data

      • tx: { credentials: (...)[]; id: string; unsignedTx: { blockchainID: ...; destinationChain: ...; exportedOutputs: ...; inputs: ...; memo: ...; networkID: ...; outputs: ... } }
        • credentials: (...)[]

          Array of credentials (signatures) for the transaction

        • id: string

          ID of the transaction

        • unsignedTx: { blockchainID: ...; destinationChain: ...; exportedOutputs: ...; inputs: ...; memo: ...; networkID: ...; outputs: ... }
          • blockchainID: ...

            ID of the blockchain

          • destinationChain: ...

            ID of the destination chain for cross-chain transfers

          • exportedOutputs: ...

            Array of outputs being exported to another chain

          • inputs: ...

            Array of transaction inputs

          • memo: ...

            Optional memo field for the transaction

          • networkID: ...

            Network ID of the blockchain

          • outputs: ...

            Array of transaction outputs

    • { encoding: "hex"; tx: string }
      • encoding: "hex"

        Encoding format for the transaction data

      • tx: string

        Transaction data in hex format