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
| Name | Type |
|---|---|
address | string |
type | AccountType |
Returns
Defined in
Properties
address
• Readonly address: string
Implementation of
Defined in
type
• Readonly type: AccountType
Implementation of
Defined in
Methods
equals
▸ equals(other?): boolean
Parameters
| Name | Type |
|---|---|
other? | null | AccountId |
Returns
boolean
Defined in
isValid
▸ isValid(): boolean
Returns
boolean
Defined in
isValidBech32Address
▸ isValidBech32Address(prefix?): boolean
Parameters
| Name | Type |
|---|---|
prefix? | string |
Returns
boolean
Defined in
toKey
▸ toKey(): string
Returns
string
Defined in
toValidAccountId
▸ toValidAccountId(): ValidAccountId
Returns
Defined in
validPolkadotAccountId
▸ validPolkadotAccountId(): undefined | string
Returns
undefined | string
Defined in
validate
▸ validate(): undefined | string
Returns
undefined | string
Defined in
parseKey
▸ parseKey(key): AnyAccountId
Parameters
| Name | Type |
|---|---|
key | string |