SubmittableExtrinsic

A wrapper around an Extrinsic that exposes methods to sign, send, and other utility around Extrinsic.

Hierarchy

  • BaseSubmittableExtrinsic
    • SubmittableExtrinsic

Implements

Constructors

Properties

Accessors

  • get $Codec(): $.Shape<Extrinsic<any, any, any, any>, Extrinsic<any, any, any, any>>
  • Returns $.Shape<Extrinsic<any, any, any, any>, Extrinsic<any, any, any, any>>

  • get call(): Call
  • Returns Call

  • get callHex(): `0x${string}`
  • Returns `0x${string}`

  • get callLength(): number
  • Returns number

  • get callU8a(): Uint8Array
  • Returns Uint8Array

  • get hash(): `0x${string}`
  • Returns `0x${string}`

  • get length(): number
  • Returns number

  • get signed(): boolean
  • Returns boolean

  • get version(): number
  • Returns number

Methods

  • Parameters

    Returns void

  • Parameters

    Returns Promise<$.Result<$.Result<readonly [],
        | {
            type: "CannotLookup";
        }
        | {
            type: "Other";
        }
        | {
            type: "BadOrigin";
        }
        | {
            type: "Module";
            value: {
                error: `0x${string}`;
                index: number;
            };
        }
        | {
            type: "ConsumerRemaining";
        }
        | {
            type: "NoProviders";
        }
        | {
            type: "TooManyConsumers";
        }
        | {
            type: "Token";
            value:
                | "Frozen"
                | "Blocked"
                | "Unsupported"
                | "BelowMinimum"
                | "FundsUnavailable"
                | "OnlyProvider"
                | "CannotCreate"
                | "UnknownAsset"
                | "CannotCreateHold"
                | "NotExpendable";
        }
        | {
            type: "Arithmetic";
            value: "Overflow" | "Underflow" | "DivisionByZero";
        }
        | {
            type: "Transactional";
            value: "LimitReached" | "NoLayer";
        }
        | {
            type: "Exhausted";
        }
        | {
            type: "Corruption";
        }
        | {
            type: "Unavailable";
        }
        | {
            type: "RootNotAllowed";
        }>, {
        type: "Invalid";
        value:
            | {
                type: "Call";
            }
            | {
                type: "Payment";
            }
            | {
                type: "Future";
            }
            | {
                type: "Stale";
            }
            | {
                type: "BadProof";
            }
            | {
                type: "AncientBirthBlock";
            }
            | {
                type: "ExhaustsResources";
            }
            | {
                type: "Custom";
                value: number;
            }
            | {
                type: "BadMandatory";
            }
            | {
                type: "MandatoryValidation";
            }
            | {
                type: "BadSigner";
            };
    } | {
        type: "Unknown";
        value: {
            type: "Custom";
            value: number;
        } | {
            type: "CannotLookup";
        } | {
            type: "NoUnsignedValidator";
        };
    }>>

  • Parameters

    Returns Promise<{
        class: "Normal" | "Operational" | "Mandatory";
        partialFee: bigint;
        weight: {
            proofSize: bigint;
            refTime: bigint;
        };
    }>

  • Returns Uint8Array