list of providers
Private
currentPrivate
switchPrivate
withPrivate
currentGets access key changes for a given array of accountIds See docs for more info
Gets account changes for a given array of accountIds pass block_id OR finality as blockQuery, not both See docs for more info
Query for block info from the RPC pass block_id OR finality as blockQuery, not both
BlockReference (passing a BlockId is deprecated)
Query changes in block from the RPC pass block_id OR finality as blockQuery, not both
Queries for details about a specific chunk appending details of receipts and transactions to the same chunk data provided by a block
Hash of a chunk ID or shard ID
Gets contract code changes for a given array of accountIds pass block_id OR finality as blockQuery, not both Note: Change is returned in a base64 encoded WASM file See docs for more info
Gets contract state changes for a given array of accountIds pass block_id OR finality as blockQuery, not both Note: If you pass a keyPrefix it must be base64 encoded See docs for more info
Optional
keyPrefix: stringGets the protocol config at a block from RPC
specifies the block to get the protocol config for
Gets a light client execution proof for verifying execution outcomes
Returns the next light client block as far in the future as possible from the last known hash to still be able to validate from that hash. This will either return the last block of the next epoch, or the last final known block.
Query the RPC by passing an RpcQueryRequest
the shape of the returned query response
Sends a signed transaction to the RPC and waits until transaction is fully complete
The signed transaction being sent
Sends a signed transaction to the RPC and immediately returns transaction hash See docs for more info
The signed transaction being sent
Gets single access key changes for a given array of access keys pass block_id OR finality as blockQuery, not both See docs for more info
Gets the RPC's status
Gets a transaction's status from the RPC
A transaction hash as either a Uint8Array or a base58 encoded string
The NEAR account that signed the transaction
Gets a transaction's status from the RPC with receipts See docs for more info
The hash of the transaction
The NEAR account that signed the transaction
Query validators of the epoch defined by the given block id.
Block hash or height, or null for latest.
Client class to interact with the NEAR RPC API.
See
https://github.com/near/nearcore/tree/master/chain/jsonrpc