Polkadot JS APIGlobals"extrinsic/ExtrinsicEra"ExtrinsicEra

# Class: ExtrinsicEra

name GenericExtrinsicEra

description The era for an extrinsic, indicating either a mortal or immortal extrinsic

# Hierarchy

Enum

ExtrinsicEra

# Implements

# Index

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

+ new ExtrinsicEra(registry: Registry, value?: unknown): ExtrinsicEra

Overrides Enum.constructor

Defined in packages/types/src/extrinsic/ExtrinsicEra.ts:205

Parameters:

Name Type
registry Registry
value? unknown

Returns: ExtrinsicEra

# Properties

# Readonly registry

registry: Registry

Implementation of IExtrinsicEra.registry

Inherited from Base.registry

Defined in packages/types/src/codec/Base.ts:17

# Accessors

# asImmortalEra

get asImmortalEra(): ImmortalEra

Defined in packages/types/src/extrinsic/ExtrinsicEra.ts:248

description Returns the item as a ImmortalEra

Returns: ImmortalEra


# asMortalEra

get asMortalEra(): MortalEra

Defined in packages/types/src/extrinsic/ExtrinsicEra.ts:257

description Returns the item as a MortalEra

Returns: MortalEra


# defEntries

get defEntries(): string[]

Inherited from Enum.defEntries

Defined in packages/types/src/codec/Enum.ts:212

description The available keys for this enum

Returns: string[]


# defKeys

get defKeys(): string[]

Inherited from Enum.defKeys

Defined in packages/types/src/codec/Enum.ts:219

description The available keys for this enum

Returns: string[]


# encodedLength

get encodedLength(): number

Overrides Enum.encodedLength

Defined in packages/types/src/extrinsic/ExtrinsicEra.ts:239

description Override the encoded length method

Returns: number


# hash

get hash(): H256

Inherited from Base.hash

Defined in packages/types/src/codec/Base.ts:36

description returns a hash of the contents

Returns: H256


# index

get index(): number

Inherited from Enum.index

Defined in packages/types/src/codec/Enum.ts:184

description The index of the metadata value

Returns: number


# isBasic

get isBasic(): boolean

Inherited from Enum.isBasic

Defined in packages/types/src/codec/Enum.ts:191

description true if this is a basic enum (no values)

Returns: boolean


# isEmpty

get isEmpty(): boolean

Inherited from Base.isEmpty

Defined in packages/types/src/codec/Base.ts:43

description Checks if the value is an empty value

Returns: boolean


# isImmortalEra

get isImmortalEra(): boolean

Defined in packages/types/src/extrinsic/ExtrinsicEra.ts:266

description true if Immortal

Returns: boolean


# isMortalEra

get isMortalEra(): boolean

Defined in packages/types/src/extrinsic/ExtrinsicEra.ts:273

description true if Mortal

Returns: boolean


# isNone

get isNone(): boolean

Inherited from Enum.isNone

Defined in packages/types/src/codec/Enum.ts:198

description Checks if the Enum points to a Null type

Returns: boolean


# isNull

get isNull(): boolean

Inherited from Enum.isNull

Defined in packages/types/src/codec/Enum.ts:205

description Checks if the Enum points to a Null type (deprecated, use isNone)

Returns: boolean


# type

get type(): string

Inherited from Enum.type

Defined in packages/types/src/codec/Enum.ts:226

description The name of the type this enum value represents

Returns: string


# value

get value(): Codec

Inherited from Enum.value

Defined in packages/types/src/codec/Enum.ts:233

description The value of the enum

Returns: Codec

# Methods

# eq

eq(other?: unknown): boolean

Implementation of IExtrinsicEra

Inherited from Enum.eq

Overrides Base.eq

Defined in packages/types/src/codec/Enum.ts:240

description Compares the value of the input to see if there is a match

Parameters:

Name Type
other? unknown

Returns: boolean


# toHex

toHex(): string

Inherited from Enum.toHex

Overrides Base.toHex

Defined in packages/types/src/codec/Enum.ts:263

description Returns a hex string representation of the value

Returns: string


# toHuman

toHuman(isExtended?: undefined | false | true): AnyJson

Implementation of IExtrinsicEra

Inherited from Enum.toHuman

Overrides Base.toHuman

Defined in packages/types/src/codec/Enum.ts:270

description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information

Parameters:

Name Type
isExtended? undefined | false | true

Returns: AnyJson


# toJSON

toJSON(): AnyJson

Implementation of IExtrinsicEra

Inherited from Enum.toJSON

Overrides Base.toJSON

Defined in packages/types/src/codec/Enum.ts:279

description Converts the Object to JSON, typically used for RPC transfers

Returns: AnyJson


# toNumber

toNumber(): number

Inherited from Enum.toNumber

Defined in packages/types/src/codec/Enum.ts:288

description Returns the number representation for the value

Returns: number


# toRawType

toRawType(): string

Implementation of IExtrinsicEra

Inherited from Enum.toRawType

Overrides Base.toRawType

Defined in packages/types/src/codec/Enum.ts:304

description Returns the base runtime type name for this instance

Returns: string


# toString

toString(): string

Implementation of IExtrinsicEra

Inherited from Enum.toString

Overrides Base.toString

Defined in packages/types/src/codec/Enum.ts:311

description Returns the string representation of the value

Returns: string


# toU8a

toU8a(isBare?: undefined | false | true): Uint8Array

Overrides Enum.toU8a

Defined in packages/types/src/extrinsic/ExtrinsicEra.ts:281

description Encodes the value as a Uint8Array as per the parity-codec specifications

Parameters:

Name Type Description
isBare? undefined | false | true true when the value has none of the type-specific prefixes (internal)

Returns: Uint8Array


# Static with

with(Types: Record‹string, keyof InterfaceTypes | Constructor› | string[]): EnumConstructorEnum

Inherited from Enum.with

Defined in packages/types/src/codec/Enum.ts:138

Parameters:

Name Type
Types Record‹string, keyof InterfaceTypes | Constructor› | string[]

Returns: EnumConstructorEnum