Skip to main content

NEAR APIs

Take a look at the different available APIs to help you build amazing apps on NEAR.

RPC API#

NEAR RPC API provides a simple JSON RPC 2.0 API to interact with the NEAR blockchain.

APIDescription
Access KeysRetrieve information about an account's access keys.
Accounts / ContractsView details about accounts and contracts as well as perform contract calls.
Block / ChunkQuery the network and get details about specific blocks or chunks.
GasGet gas price for a specific block or hash.
ProtocolRetrieve current genesis and protocol configuration.
NetworkReturn status information for nodes and validators.
TransactionsSend transactions and query their status.
SandboxPatch state on a local sandbox node.

Tip: You can access the JSON RPC 2.0 endpoints using Postman, JavaScript, and HTTPie.

REST Server#

NEAR REST API Server is a project that allows you create your own simple REST API server that interacts with the NEAR blockchain.

RouteDescription
CONTRACTSDeploy, view, and call smart contracts on NEAR.
UTILSInit accounts, create sub-accounts, and view key pairs.
NFTsMint, view, and transfer NFTs.