@quantnetwork/overledger-search
Class encompassing Overledger SDK search functions.
Installation
Install using npm:
npm install @quantnetwork/overledger-search
Or, if you prefer using yarn:
yarn add @quantnetwork/overledger-search
API Reference
overledger-search
overledger-search.default
Search support package.
overledger-search~OverledgerSearch
new OverledgerSearch(sdk)
Param | Type |
---|---|
sdk | Object |
overledgerSearch.getTransaction(transactionHash, dlt, extraFields)
Param | Type | Description |
---|---|---|
transactionHash | string |
Transaction hash |
dlt | string |
the dlt that the transactionHash resides on Optional |
extraFields | string |
any extra fields required to perform this transaction search Optional |
Get transaction by transaction hash
overledgerSearch.getTransactionType(hash)
Param | Type | Description |
---|---|---|
hash | string |
hash |
Get the transaction type based on the hash
overledgerSearch.getBlockByDltAndNumber(dlt, blockNumber)
Param | Type | Description |
---|---|---|
dlt | string |
The DLT name |
blockNumber | number |
The block number |
Get block by DLT and number
overledgerSearch.getBlockHeightByDlt(dlt)
Param | Type | Description |
---|---|---|
dlt | string |
The DLT name |
Get block by DLT and number
overledgerSearch.getBlockByDltAndHash(dlt, hash)
Param | Type | Description |
---|---|---|
dlt | string |
The DLT name |
hash | string |
The block hash |
Get block by DLT and hash
overledgerSearch.smartContractQuery(dlt, contractQueryDetails)
Param | Description |
---|---|
dlt | the distributed ledger that this smart contract is on |
contractQueryDetails | details on this smart contract query |
Query a smart contract