@mintbase-js/rpc
npm install @mintbase-js/rpc
package needed:
npm install --save-dev isomorphic-unfetch
This module provides a wrapper around common RPC calls used to fetch on-chain data to supplement, or in some cases substitute data provided by the indexer (data module).
Fetches the balance of a NEAR account (in yocto) by address.
Returns the current block height for the configured network.
For a transaction hash, determine the status of a transaction on the configured network:
pending
, success
, or failure
Calls a token contract in order to determine the percentage amounts paid out to royalty accounts.
We will be adding more contract view methods here as needs arise.
Last modified 1mo ago