Skip to main content

Reference / Modules / node-api / Queries

Class: Queries

node-api.Queries

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Queries(api, adapters): Queries

Parameters

NameType
apiApiPromise
adaptersAdapters

Returns

Queries

Defined in

Queries.ts:38

Properties

adapters

Private adapters: Adapters

Defined in

Queries.ts:52


api

Private api: ApiPromise

Defined in

Queries.ts:51


availableRegions

Private Optional availableRegions: "Europe"[]

Defined in

Queries.ts:267


DOT_BALANCE

Static Readonly DOT_BALANCE: CoinBalance

Defined in

Queries.ts:92

Accessors

ss58Prefix

get ss58Prefix(): number

Returns

number

Defined in

Queries.ts:285

Methods

computeAvailableRegions

computeAvailableRegions(): "Europe"[]

Returns

"Europe"[]

Defined in

Queries.ts:269


getAccountData

getAccountData(accountId): Promise<TypesAccountData>

Parameters

NameType
accountIdValidAccountId

Returns

Promise<TypesAccountData>

Defined in

Queries.ts:66


getActiveRecovery

getActiveRecovery(sourceAccountId, destinationAccountId): Promise<undefined | TypesRecoveryConfig>

Parameters

NameType
sourceAccountIdValidAccountId
destinationAccountIdValidAccountId

Returns

Promise<undefined | TypesRecoveryConfig>

Defined in

Queries.ts:182


getAvailableRegions

getAvailableRegions(): "Europe"[]

Returns

"Europe"[]

Defined in

Queries.ts:262


getCoinBalances

getCoinBalances(accountId): Promise<CoinBalance[]>

Parameters

NameType
accountIdValidAccountId

Returns

Promise<CoinBalance[]>

Defined in

Queries.ts:71


getCollectionItem

getCollectionItem(locId, itemId): Promise<undefined | CollectionItem>

Parameters

NameType
locIdUUID
itemIdHash

Returns

Promise<undefined | CollectionItem>

Defined in

Queries.ts:143


getCollectionItems

getCollectionItems(locId): Promise<CollectionItem[]>

Parameters

NameType
locIdUUID

Returns

Promise<CollectionItem[]>

Defined in

Queries.ts:155


getCollectionSize

getCollectionSize(locId): Promise<undefined | number>

Parameters

NameType
locIdUUID

Returns

Promise<undefined | number>

Defined in

Queries.ts:163


getDefaultRegion

getDefaultRegion(): "Europe"

Returns

"Europe"

Defined in

Queries.ts:274


getGuestsOf

getGuestsOf(accountId): Promise<string[]>

Parameters

NameType
accountIdValidAccountId

Returns

Promise<string[]>

Defined in

Queries.ts:253


getLegalOfficerCase

getLegalOfficerCase(locId): Promise<undefined | LegalOfficerCase>

Parameters

NameType
locIdUUID

Returns

Promise<undefined | LegalOfficerCase>

Defined in

Queries.ts:134


getLegalOfficerData

getLegalOfficerData(accountId): Promise<LegalOfficerData>

Parameters

NameType
accountIdValidAccountId

Returns

Promise<LegalOfficerData>

Defined in

Queries.ts:227


getLegalOfficerVerifiedIssuers

getLegalOfficerVerifiedIssuers(accountId): Promise<VerifiedIssuerType[]>

Parameters

NameType
accountIdValidAccountId

Returns

Promise<VerifiedIssuerType[]>

Defined in

Queries.ts:209


getProxy

getProxy(accountId): Promise<undefined | ValidAccountId>

Parameters

NameType
accountIdValidAccountId

Returns

Promise<undefined | ValidAccountId>

Defined in

Queries.ts:192


getRecoveryConfig

getRecoveryConfig(accountId): Promise<undefined | TypesRecoveryConfig>

Parameters

NameType
accountIdValidAccountId

Returns

Promise<undefined | TypesRecoveryConfig>

Defined in

Queries.ts:172


getSponsorship

getSponsorship(sponsorshipId): Promise<undefined | Sponsorship>

Parameters

NameType
sponsorshipIdUUID

Returns

Promise<undefined | Sponsorship>

Defined in

Queries.ts:200


getValidAccountId

getValidAccountId(accountId, type): ValidAccountId

Parameters

NameType
accountIdstring
typeAccountType

Returns

ValidAccountId

Defined in

Queries.ts:62


isInvitedContributorOf

isInvitedContributorOf(accountId, locId): Promise<boolean>

Parameters

NameType
accountIdValidAccountId
locIdUUID

Returns

Promise<boolean>

Defined in

Queries.ts:278


isValidAccountId

isValidAccountId(accountId?, type?): boolean

Parameters

NameType
accountId?null | string
type?AccountType

Returns

boolean

Defined in

Queries.ts:54


buildCoinBalance

buildCoinBalance(args): CoinBalance

Parameters

NameType
argsObject
args.availablePrefixedNumber
args.coinIdstring
args.levelnumber
args.reservedPrefixedNumber
args.totalPrefixedNumber

Returns

CoinBalance

Defined in

Queries.ts:100


getCoin

getCoin(coinId): Coin

Parameters

NameType
coinIdstring

Returns

Coin

Defined in

Queries.ts:118


of

of(apiPromise): Promise<Queries>

Parameters

NameType
apiPromisePromise<ApiPromise>

Returns

Promise<Queries>

Defined in

Queries.ts:46