Skip to contents

Core Functions

Main interaction with the NEAR JSON-RPC API

Account & Contract

near_query_account()
Query Account Details and Balance
near_get_access_keys()
List Access Keys for a NEAR Account
near_call_view_function()
Call a Read-Only View Function on a NEAR Smart Contract

Blocks & Network

near_get_block()
Get Block Information by Height, Hash, or "final"
near_network_status()
Get Current Network Status and Node Info
near_get_protocol_config()
Retrieve Current or Historical NEAR Protocol Configuration
near_get_validators()
Get Current or Historical Epoch Validators with Real Stakes

Transactions

near_broadcast_tx()
Broadcast a Signed Transaction to the NEAR Network
near_get_transaction_status()
Check Transaction Status and Outcome

Configuration

Package setup

near_set_endpoint()
Set or Retrieve the Active NEAR RPC Endpoint