Hierarchy

↳ AccountId

↳ AuthorityId

↳ SessionKey

Implements

Indexable

[index: number]: number

Constructors

constructor

⊕ new AuthorityId(value?: AnyU8a): AuthorityId

Inherited from AccountId.constructor

Overrides U8aFixed.constructor

Defined in AccountId.ts:19

Parameters:

Name Type Default value
Default value value AnyU8a new Uint8Array()

Returns: AuthorityId


Accessors

encodedLength

getencodedLength(): number

Inherited from U8a.encodedLength

Defined in codec/U8a.ts:36

description: The length of the value when encoded as a Uint8Array

Returns: number


isEmpty

getisEmpty(): boolean

Inherited from AccountId.isEmpty

Defined in AccountId.ts:46

description: Returns true if the type wraps an empty value

Returns: boolean


isInvalid

getisInvalid(): boolean

Inherited from AccountId.isInvalid

Defined in AccountId.ts:53

description: Returns true if the type wraps a non-valid value

Returns: boolean


length

getlength(): number

Inherited from U8a.length

Overrides Uint8Array.length

Defined in codec/U8a.ts:43

description: The length of the value

Returns: number


Methods

bitLength

▸ bitLength(): number

Inherited from U8aFixed.bitLength

Defined in codec/U8aFixed.ts:39

description: Returns the number of bits in the value

Returns: number


subarray

▸ subarray(begin: number, end?: undefined | number): Uint8Array

Inherited from U8a.subarray

Overrides Uint8Array.subarray

Defined in codec/U8a.ts:53

description: Create a new subarray from the actual buffer. This is needed for compat reasons since a new Uint8Array gets returned here

Parameters:

Name Type Description
begin number The position to start at
Optional end undefined number The position to end at

Returns: Uint8Array


toHex

▸ toHex(): string

Implementation of Codec.toHex

Inherited from U8a.toHex

Defined in codec/U8a.ts:60

description: Returns a hex string representation of the value

Returns: string


toJSON

▸ toJSON(): any

Implementation of Codec.toJSON

Inherited from AccountId.toJSON

Overrides U8a.toJSON

Defined in AccountId.ts:60

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

Returns: any


toString

▸ toString(): string

Implementation of Codec.toString

Inherited from AccountId.toString

Overrides U8a.toString

Defined in AccountId.ts:67

description: Returns the string representation of the value

Returns: string


toU8a

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

Inherited from U8a.toU8a

Defined in codec/U8a.ts:82

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

Parameters:

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

Returns: Uint8Array


<Static> encode

▸ encode(value: Uint8Array): string

Inherited from AccountId.encode

Defined in AccountId.ts:27

Parameters:

Name Type
value Uint8Array

Returns: string


results matching ""

    No results matching ""