Constructors
constructor
-
Parameters
Properties
Readonly client
Methods
call
- call(method: string, params?: any[] | {}): Promise<any>
-
Parameters
-
method: string
-
Optional params: any[] | {}
Returns Promise<any>
getConfig
-
getListAccounts
- getListAccounts(start: string | string[], limit: number, order: "by_name" | "by_proxy" | "by_next_vesting_withdrawal", delayed_votes_active?: boolean): Promise<{ accounts: Account[] }>
-
Parameters
-
start: string | string[]
-
limit: number
-
order: "by_name" | "by_proxy" | "by_next_vesting_withdrawal"
-
Default value delayed_votes_active: boolean = true
Returns Promise<{ accounts: Account[] }>
getListWitnessVotes
- getListWitnessVotes(start: [string | null, string | null], limit: number, order: "by_account_witness" | "by_witness_account"): Promise<{ votes: WitnessVotes[] }>
-
Parameters
-
start: [string | null, string | null]
-
limit: number
-
order: "by_account_witness" | "by_witness_account"
Returns Promise<{ votes: WitnessVotes[] }>
getVersion
- getVersion(): Promise<object>
-
Returns Promise<object>
Convenience for calling
database_api
.