The TxResult is the result of constructing a transaction. T extends Format in the context of the options passed in for the Format the user expects.

interface TxResult {
    dest: string;
    direction: Direction | "local";
    format: Format | "local";
    forwardedXcmFees?: [VersionedXcm, XcmFee][];
    localXcmFees?: [VersionedXcm, XcmFee];
    method: Methods;
    origin: string;
    tx: ConstructedFormat<T>;
    xcmExecutionResult?: DispatchResultWithPostInfo | XcmDryRunApiError;
    xcmVersion: null | number;
}

Type Parameters

  • T

Properties

dest: string

Description

The destination specName of the transaction

direction: Direction | "local"

Description

The direction of the cross chain transfer.

format: Format | "local"

Description

The format type the tx is ouputted in.

forwardedXcmFees?: [VersionedXcm, XcmFee][]

Description

List of forwarded xcms and the weights needed to execute them.

localXcmFees?: [VersionedXcm, XcmFee]

Description

Weight needed to execute the local segment of a provided XCM.

method: Methods

Description

The method used in the transaction.

origin: string

Description

The origin specName of the transaction

Description

The constructed transaction.

xcmExecutionResult?: DispatchResultWithPostInfo | XcmDryRunApiError

Description

The result of xcm execution.

xcmVersion: null | number

Description

The xcm version that was used to construct the tx.