Helper utilities to reuse QRL blockchain explorer elements
npm install @theqrl/explorer-helpers  
A helper library for front end interfaces to the QRL
v2 API functions are documented below. Legacy API calls to this module remain functional.
npm install @theqrl/explorer-helpers
var explorerHelpers = require("@theqrl/explorer-helpers")
(or import equivalent in Meteor)
Queries Bittrex market price of $QRL.
| | Description |
| --- | --- |
| Function type | async |
| Parameters | _none_ |
| Returns | _number_ price: price per $QRL in USD |
``javascript1 QRL = $${x}
var x = await explorerHelpers.qrlPrice()
console.log()`
RunKit example
Takes a grpc query response and formats it for browser display.
| | Description |
| --- | --- |
| Function type | sync |
| Parameters | response _object_
a response to a grpc query |
| Returns | formatted _json_
reformatted json object for browser display or element queries |
`javascript`
var x = explorerHelpers.tx(response)
console.log(x)
Takes a grpc query response from GetObject and formats it for browser display where the requested data was a block.
| | Description |
| --- | --- |
| Function type | sync |
| Parameters | response _object_
a response to a grpc query |
| Returns | formatted _json_
reformatted json object for browser display or element queries |
`javascript`
var x = explorerHelpers.block(response)
console.log(x)
Takes a grpc query response from GetObject and formats it for browser display where the requested data was an address.
| | Description |
| --- | --- |
| Function type | sync |
| Parameters | response _object_
a response to a grpc query |
| Returns | formatted _json_
reformatted json object for browser display or element queries |
`javascript`
var x = explorerHelpers.a(response)
console.log(x)
Takes a grpc query response from GetTokensByAddress and formats it for browser display.
| | Description |
| --- | --- |
| Function type | sync |
| Parameters | response _object_
a response to a grpc query |
| Returns | formatted _json_
reformatted json object for browser display or element queries |
`javascript`
var x = explorerHelpers.tokens(response)
console.log(x)
Takes a grpc query response from GetMultiSigAddressesByAddress and formats it for browser display.
| | Description |
| --- | --- |
| Function type | sync |
| Parameters | response _object_
a response to a grpc query |
| Returns | formatted _json_
reformatted json object for browser display or element queries |
`javascript`
var x = explorerHelpers.multisig(response)
console.log(x)
npm test`