Skip to main content

API Reference

This route explains what belongs in FastNear's REST layer and how to choose among the REST families before dropping to raw JSON-RPC.

The /api sidebar is intentionally the FastNear API sidebar, not a catch-all REST sidebar. Other REST families such as Transactions API, Transfers API, NEAR Data API, and KV FastData API each live at their own top-level section.

REST families at a glance

FamilyStart here when...Move elsewhere when...
FastNear APIyou want indexed account, token, NFT, staking, or public-key viewsyou need canonical protocol-native RPC semantics
Transactions APIyou want transaction, receipt, account, or block historyyou only need transfer events or exact RPC-level behavior
Transfers APIthe question is specifically about NEAR or FT movementthe question broadens to general execution history
NEAR Data APIyou want recent optimistic or finalized block-family readsyou need exact canonical block or state follow-up
KV FastData APIyou want indexed key-value history or latest indexed key stateyou need exact current on-chain contract state

What /api itself is for

Use the FastNear API section when the user wants a product-shaped answer without stitching raw node responses together:

  • account summaries
  • FT balances
  • NFT holdings
  • staking positions
  • public-key to account resolution

Good starting pages in this sidebar:

When not to use /api

Do not start in this sidebar when:

For agents

If the caller is an AI agent and the choice is still unclear, use: