NEAR CLI
Install the NEAR CLI.
Use the where
--node_url flag to operate through your NEAR node:- COMMAND — a supported NEAR CLI command
- NEAR_ENDPOINT — your node HTTPS or WSS endpoint.
JSON-RPC API
Interact with your NEAR node using JSON-RPC API. Use curl or Postman. Example to get the latest block:near-api-js
Install near-api-js.