Interface ISubmittableExtrinsicLegacy<R>

interface ISubmittableExtrinsicLegacy<R> {
    dryRun(account: AddressOrPair, optionsOrHash?: `0x${string}` | Partial<SignerOptions>): 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:
                | "FundsUnavailable"
                | "OnlyProvider"
                | "BelowMinimum"
                | "CannotCreate"
                | "UnknownAsset"
                | "Frozen"
                | "Unsupported"
                | "CannotCreateHold"
                | "NotExpendable"
                | "Blocked";
        }
        | {
            type: "Arithmetic";
            value: "Underflow" | "Overflow" | "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";
        };
    }>>;
    paymentInfo(account: AddressOrPair, options?: Partial<PayloadOptions>): Promise<{
        class: "Normal" | "Operational" | "Mandatory";
        partialFee: bigint;
        weight: {
            proofSize: bigint;
            refTime: bigint;
        };
    }>;
    send(): Promise<`0x${string}`>;
    send(callback: Callback<R>): Promise<Unsub>;
    sign(account: AddressOrPair, options?: Partial<SignerOptions>): Promise<ISubmittableExtrinsicLegacy<R>>;
    signAndSend(account: AddressOrPair, options?: Partial<SignerOptions>): Promise<`0x${string}`>;
    signAndSend(account: AddressOrPair, callback: Callback<R>): Promise<Unsub>;
    signAndSend(account: AddressOrPair, options: Partial<SignerOptions>, callback?: Callback<R>): Promise<Unsub>;
}

Type Parameters

Hierarchy (view full)

Implemented by

    Methods

    • 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:
                  | "FundsUnavailable"
                  | "OnlyProvider"
                  | "BelowMinimum"
                  | "CannotCreate"
                  | "UnknownAsset"
                  | "Frozen"
                  | "Unsupported"
                  | "CannotCreateHold"
                  | "NotExpendable"
                  | "Blocked";
          }
          | {
              type: "Arithmetic";
              value: "Underflow" | "Overflow" | "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;
          };
      }>