Constructors
constructor
- new ChainAPI(client: APIClient): ChainAPI
-
Methods
compute_transaction
- compute_transaction(tx: SignedTransactionType | PackedTransaction): Promise<SendTransactionResponse>
-
Returns Promise<SendTransactionResponse>
get_abi
- get_abi(accountName: NameType): Promise<GetAbiResponse>
-
Returns Promise<GetAbiResponse>
get_account
- get_account(accountName: NameType): Promise<AccountObject>
-
Returns Promise<AccountObject>
get_accounts_by_authorizers
- get_accounts_by_authorizers(keys: PublicKeyType[]): Promise<AccountsByAuthorizers>
-
Returns Promise<AccountsByAuthorizers>
get_activated_protocol_features
- get_activated_protocol_features(params?: GetProtocolFeaturesParams): Promise<GetProtocolFeaturesResponse>
-
Parameters
-
Optional
params: GetProtocolFeaturesParams
Returns Promise<GetProtocolFeaturesResponse>
get_block
- get_block(block_num_or_id: any): Promise<GetBlockResponse>
-
Returns Promise<GetBlockResponse>
get_block_header_state
-
Returns Promise<GetBlockHeaderStateResponse>
get_currency_balance
- get_currency_balance(contract: NameType, accountName: NameType, symbol?: string): Promise<Asset[]>
-
Returns Promise<Asset[]>
get_info
- get_info(): Promise<GetInfoResponse>
-
Returns Promise<GetInfoResponse>
get_producer_schedule
- get_producer_schedule(): Promise<GetProducerScheduleResponse>
-
Returns Promise<GetProducerScheduleResponse>
get_raw_abi
- get_raw_abi(accountName: NameType): Promise<GetRawAbiResponse>
-
Returns Promise<GetRawAbiResponse>
get_table_by_scope
- get_table_by_scope(params: GetTableByScopeParams): Promise<GetTableByScopeResponse>
-
Parameters
-
params: GetTableByScopeParams
Returns Promise<GetTableByScopeResponse>
get_table_rows
- get_table_rows<Index>(params: GetTableRowsParams<Index>): Promise<GetTableRowsResponse<Index, any>>
-
Type Parameters
-
Index extends TableIndexType = Name
Parameters
-
params: GetTableRowsParams<Index>
Returns Promise<GetTableRowsResponse<Index, any>>
- get_table_rows<Key>(params: GetTableRowsParamsKeyed<TableIndexTypes[Key], Key>): Promise<GetTableRowsResponse<TableIndexTypes[Key], any>>
-
Type Parameters
-
Key extends keyof TableIndexTypes
Parameters
-
params: GetTableRowsParamsKeyed<TableIndexTypes[Key], Key>
Returns Promise<GetTableRowsResponse<TableIndexTypes[Key], any>>
- get_table_rows<Row, Index>(params: GetTableRowsParamsTyped<Index, Row>): Promise<GetTableRowsResponse<Index, InstanceType<Row>>>
-
Type Parameters
-
-
Index extends TableIndexType = Name
Parameters
-
params: GetTableRowsParamsTyped<Index, Row>
Returns Promise<GetTableRowsResponse<Index, InstanceType<Row>>>
- get_table_rows<Row, Key>(params: GetTableRowsParamsTyped<TableIndexTypes[Key], Row> & GetTableRowsParamsKeyed<TableIndexTypes[Key], Key>): Promise<GetTableRowsResponse<TableIndexTypes[Key], InstanceType<Row>>>
-
Type Parameters
-
-
Key extends keyof TableIndexTypes
Parameters
-
params: GetTableRowsParamsTyped<TableIndexTypes[Key], Row> & GetTableRowsParamsKeyed<TableIndexTypes[Key], Key>
Returns Promise<GetTableRowsResponse<TableIndexTypes[Key], InstanceType<Row>>>
get_transaction_status
- get_transaction_status(id: Checksum256Type): Promise<GetTransactionStatusResponse>
-
Returns Promise<GetTransactionStatusResponse>
push_transaction
- push_transaction(tx: SignedTransactionType | PackedTransaction): Promise<PushTransactionResponse>
-
Returns Promise<PushTransactionResponse>
send_read_only_transaction
- send_read_only_transaction(tx: SignedTransactionType | PackedTransaction): Promise<SendTransactionResponse>
-
Returns Promise<SendTransactionResponse>
send_transaction
- send_transaction(tx: SignedTransactionType | PackedTransaction): Promise<SendTransactionResponse>
-
Returns Promise<SendTransactionResponse>
send_transaction2
- send_transaction2(tx: SignedTransactionType | PackedTransaction, options?: SendTransaction2Options): Promise<SendTransaction2Response>
-
Parameters
-
-
Optional
options: SendTransaction2Options
Returns Promise<SendTransaction2Response>