5.0.0 • Published 6 months ago

explorer_api_js v5.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

ParallelChain Mainnet Explorer API JavaScript Client Library (explorer-api-js).

This crate is a library that wraps networked interactions with ParallelChain Mainnet Explorer APIs.

Usage Example

    let client = new ExplorerAPI("http://service.parallelchain.io");

Methods

ExplorerAPI implements methods which query blockchain information by sending HTTP request to the Explorer API endpoint.

Summary of methods provided by ExplorerAPI:

MethodDescription
getBalanceget the balance from an account
getNonceget the nonce from an account
getLatestBlockget the latest block
getBlockByBlockNumberget the block by block number
getBlockByBlockHashget the block by block hash
getCBIVersionget Contract Binary Interface (CBI) Version of the contract
getCodeget contract code from an account
getStorageStateget the value of storage state from the corresponding key
getStorageStateTuplesget list of tuples of storage state from the corresponding keys
submitsubmit transaction to the node
viewsubmit a view call to the node to execute contract view method
getValidatorSetsget the previous validator sets (previous, current and next)
getNextValidatorSetget the next validator sets
getCurrentValidatorSetget the current validator sets
getPreviousValidatorSetget the previous validator sets
getDepositsget deposits from pairs of operator and owner
getPoolsget pools from operator's address
getTentativeStakesget tentative stakes from pairs of operator and owner
getDelegatedStakesget the owner's stake that is delegated to the operator in validator set
getCurrentEpochget current epoch number
getBlockSummariesByget a maximum Limit number of block summaries filtered by Identifier, in and order specified by Order
getBlockHeadersByget a maximum Limit number of block headers filtered by Identifier, in and order specified by Order
getBlocksByget a maximum Limit number of blocks filtered by Identifier, in and order specified by Order
getTxsSummariesByPageIdxget transaction summaries by page ID
getTxsByget a maximum Limit number of transactions filtered by a combination of Identifier and Filter(s), in format specified by Parts and order specified by Order
getAccountByQuery account's fields - speculative nonce and pending transactions
getMetricsGasPerBlockget metrics - Gas Per Block
getMetricsBlockTimeget metrics - Average block time
getMetricsAverageTPSget metrics - Average Transaction Per Second
getMetricsIssuanceRewardget metrics - calculation of Issuance Reward
getMetricsNetworkBaseFeeget the network base fee calculated from latest committed block
getMetricsMinimumGasget the minimum gas required for a transaction to pass through
getMetricsget metrics
getContractsByget contract descriptors from Explorer Backend
getLockupContractget an instance for interfacing with Lockup Contract
1.2.0

7 months ago

1.3.2

6 months ago

1.3.1

6 months ago

1.3.0

7 months ago

1.1.0

8 months ago

5.0.0

10 months ago

1.0.3

11 months ago

1.0.2

12 months ago

1.0.1

1 year ago

1.0.0

1 year ago