Skip to main content

Reference / Modules / node-api / AnyAccountId

Class: AnyAccountId

node-api.AnyAccountId

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AnyAccountId(address, type): AnyAccountId

Developers should not construct directly this object but call logionApi.queries.getValidAccountId(address, type).

Parameters

NameType
addressstring
typeAccountType

Returns

AnyAccountId

Defined in

Types.ts:181

Properties

address

Readonly address: string

Implementation of

AccountId.address

Defined in

Types.ts:186


type

Readonly type: AccountType

Implementation of

AccountId.type

Defined in

Types.ts:187

Methods

equals

equals(other?): boolean

Parameters

NameType
other?null | AccountId

Returns

boolean

Defined in

Types.ts:255


isValid

isValid(): boolean

Returns

boolean

Defined in

Types.ts:189


isValidBech32Address

isValidBech32Address(prefix?): boolean

Parameters

NameType
prefix?string

Returns

boolean

Defined in

Types.ts:223


toKey

toKey(): string

Returns

string

Defined in

Types.ts:239


toValidAccountId

toValidAccountId(): ValidAccountId

Returns

ValidAccountId

Defined in

Types.ts:235


validPolkadotAccountId

validPolkadotAccountId(): undefined | string

Returns

undefined | string

Defined in

Types.ts:209


validate

validate(): undefined | string

Returns

undefined | string

Defined in

Types.ts:193


parseKey

parseKey(key): AnyAccountId

Parameters

NameType
keystring

Returns

AnyAccountId

Defined in

Types.ts:243