Constructors
constructor
- new Wallet(config): Wallet
Methods
getAllRows
- getAllRows<T>(code, scope, tableName): Promise<T[]>
Parameters
- code: string
- scope: string
- tableName: string
Returns Promise<T[]>
getRow
- getRow<T>(code, scope, tableName, primaryKey, indexPosition?): Promise<null | T>
Parameters
- code: string
- scope: string
- tableName: string
- primaryKey: string | number
- indexPosition: IndexPosition = 'primary'
Returns Promise<null | T>
query
- query<T>(code, scope, tableName, options?): Promise<T[]>
Parameters
- code: string
- scope: string
- tableName: string
- options: {
from?: string | number;
indexPosition?: IndexPosition;
maxRows?: number;
to?: string | number;
} = ...Optional
from?: string | number
Optional
indexPosition?: IndexPosition
Optional
maxRows?: number
Optional
to?: string | number
Returns Promise<T[]>
setWif
- setWif(username, wif): this
Parameters
- username: string
- wif: string
Returns this
transact
- transact(actionOrActions, broadcast?): Promise<TransactResult>
Parameters
- actionOrActions: any
- broadcast: boolean = true
Returns Promise<TransactResult>
Описание класса будет здесь