Class TransactionSignCommandAbstract

Hierarchy

  • default
    • TransactionSignCommand

Constructors

  • Parameters

    • argv: string[]
    • config: Config

    Returns TransactionSignCommand

Properties

_client: undefined | APIClient
_dataPath: string
_metadata: ModuleMetadataJSON[]
_schema: RegisteredSchema
argv: string[]
config: Config
debug: ((...args: any[]) => void)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

id: undefined | string
_base: string
_enableJsonFlag: boolean
_flags: FlagInput<{
    [flag: string]: any;
}>

A hash of flags for the command

_globalFlags: FlagInput<{
    [flag: string]: any;
}>
aliases: string[]

An array of aliases for this command.

args: {
    description: string;
    name: string;
    required: boolean;
}[] = ...
deprecateAliases?: boolean

Emit deprecation warning when a command alias is used

deprecationOptions?: Deprecation
description: string = 'Sign encoded transaction.'
examples: string[] = ...
flags: {
    chain-id: OptionFlag<undefined | string>;
    data-path: OptionFlag<undefined | string>;
    json: BooleanFlag<boolean>;
    key-derivation-path: OptionFlag<string>;
    mandatory-keys: OptionFlag<undefined | string[]>;
    offline: {
        aliases?: string[];
        allowNo: boolean;
        char?: AlphabetLowercase | AlphabetUppercase;
        default?: Default<boolean, Record<string, unknown>>;
        dependsOn: string[];
        deprecateAliases?: boolean;
        deprecated?: true | Deprecation;
        description?: string;
        env?: string;
        exactlyOne?: string[];
        exclusive: string[];
        helpGroup?: string;
        helpLabel?: string;
        hidden?: boolean;
        name: string;
        parse: FlagParser<boolean, boolean, any>;
        relationships?: Relationship[];
        required?: boolean;
        summary?: string;
        type: "boolean";
    };
    optional-keys: OptionFlag<undefined | string[]>;
    passphrase: OptionFlag<undefined | string>;
    pretty: BooleanFlag<boolean>;
} = ...

Type declaration

  • chain-id: OptionFlag<undefined | string>
  • data-path: OptionFlag<undefined | string>
  • json: BooleanFlag<boolean>
  • key-derivation-path: OptionFlag<string>
  • mandatory-keys: OptionFlag<undefined | string[]>
  • offline: {
        aliases?: string[];
        allowNo: boolean;
        char?: AlphabetLowercase | AlphabetUppercase;
        default?: Default<boolean, Record<string, unknown>>;
        dependsOn: string[];
        deprecateAliases?: boolean;
        deprecated?: true | Deprecation;
        description?: string;
        env?: string;
        exactlyOne?: string[];
        exclusive: string[];
        helpGroup?: string;
        helpLabel?: string;
        hidden?: boolean;
        name: string;
        parse: FlagParser<boolean, boolean, any>;
        relationships?: Relationship[];
        required?: boolean;
        summary?: string;
        type: "boolean";
    }
    • Optional aliases?: string[]

      Alternate names that can be used for this flag.

    • allowNo: boolean
    • Optional char?: AlphabetLowercase | AlphabetUppercase
    • Optional default?: Default<boolean, Record<string, unknown>>

      specifying a default of false is the same as not specifying a default

    • dependsOn: string[]
    • Optional deprecateAliases?: boolean

      Emit deprecation warning when a flag alias is provided

    • Optional deprecated?: true | Deprecation

      Make the flag as deprecated.

    • Optional description?: string

      A description of flag usage. If summary is provided, the description is assumed to be a longer description and will be shown in a separate section within help.

    • Optional env?: string

      Accept an environment variable as input

    • Optional exactlyOne?: string[]

      Exactly one of these flags must be provided.

    • exclusive: string[]
    • Optional helpGroup?: string

      Shows this flag in a separate list in the help.

    • Optional helpLabel?: string

      The flag label to show in help. Defaults to "[-] --" where - is only displayed if the char is defined.

    • Optional hidden?: boolean

      If true, the flag will not be shown in the help.

    • name: string
    • parse: FlagParser<boolean, boolean, any>
    • Optional relationships?: Relationship[]

      Define complex relationships between flags.

    • Optional required?: boolean

      If true, the flag will be required.

    • Optional summary?: string

      A short summary of flag usage to show in the flag list. If not provided, description will be used.

    • type: "boolean"
  • optional-keys: OptionFlag<undefined | string[]>
  • passphrase: OptionFlag<undefined | string>
  • pretty: BooleanFlag<boolean>
help: undefined | string
hidden: boolean

Hide the command from help

id: string

A command ID, used mostly in error or verbose reporting.

parse: boolean
parserOptions: {}

Type declaration

    plugin: undefined | Plugin
    run: ((argv?: string[], config?: LoadOptions) => PromiseLike<any>)

    Type declaration

      • (argv?: string[], config?: LoadOptions): PromiseLike<any>
      • instantiate and run the command

        Parameters

        • Optional argv: string[]

          argv

        • Optional config: LoadOptions

        Returns PromiseLike<any>

    state?: string

    Mark the command as a given state (e.g. beta or deprecated) in help

    strict: boolean

    When set to false, allows a variable amount of arguments

    summary?: string

    The tweet-sized description for your class, used in a parent-commands sub-command listing and as the header for the command help.

    usage: undefined | string | string[]

    An override string (or strings) for the default usage documentation.

    Accessors

    • get ctor(): typeof default
    • Returns typeof default

    • get enableJsonFlag(): boolean
    • Returns boolean

    • set enableJsonFlag(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get globalFlags(): FlagInput<{
          [flag: string]: any;
      }>
    • Returns FlagInput<{
          [flag: string]: any;
      }>

    • set globalFlags(flags: FlagInput<{
          [flag: string]: any;
      }>): void
    • Parameters

      • flags: FlagInput<{
            [flag: string]: any;
        }>

      Returns void

    Methods

    • Type Parameters

      • T

      Returns Promise<undefined | T>

    • Parameters

      • err: CommandError

      Returns Promise<any>

    • Parameters

      • input: string | Error
      • options: {
            code?: string;
            exit: false;
        } & PrettyPrintableError

      Returns void

    • Parameters

      • input: string | Error
      • Optional options: {
            code?: string;
            exit?: number;
        } & PrettyPrintableError

      Returns never

    • Parameters

      • Optional code: number

      Returns void

    • Returns Promise<any>

    • Returns boolean

    • Parameters

      • Optional message: string
      • Rest ...args: any[]

      Returns void

    • Parameters

      • Optional message: string
      • Rest ...args: any[]

      Returns void

    • Type Parameters

      • F extends FlagOutput

      • G extends FlagOutput

      • A extends {
            [name: string]: any;
        }

      Parameters

      • Optional options: Input<F, G>
      • Optional argv: string[]

      Returns Promise<ParserOutput<F, G, A>>

    • Parameters

      • err: unknown

      Returns any

    • Parameters

      • result: unknown

      Returns any

    • Parameters

      • input: string | Error

      Returns string | Error

    • Returns void

    • Parameters

      • flags: Record<string, unknown>

      Returns void

    Generated using TypeDoc