npm install @mintbase-js/rpc
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).
We now accepts rpcUrl on each method, so you can pass your own RPC regarding one of those on the list: https://docs.near.org/api/rpc/providers
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.
Gets all access keys (public key and permissions object) for a given account.
We will be adding more contract view methods here as needs arise.