Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@mintbase-js/rpc
Advanced tools
[//]: # { "title": "@mintbase-js/rpc", "order": "5" }
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
getBalance({account: string, rpcUrl: string}): BN
Fetches the balance of a NEAR account (in yocto) by address.
getBlockHeight({rpcUrl: string}): number
Returns the current block height for the configured network.
getTxnStatus({txnHash: string, senderId: string,rpcUrl: string}): TxnStatus
For a transaction hash, determine the status of a transaction on the configured network: pending
, success
, or failure
payouts({ contractId, tokenId, rpcUrl }): Promise<UiPayout>
Calls a token contract in order to determine the percentage amounts paid out to royalty accounts.
getAccessKeys({accountId: string,rpcUrl: string}): Promise<AccessKey>
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.
FAQs
NEAR RPC interactions for Mintbase JS SDK
We found that @mintbase-js/rpc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.