NEAR Protocol Legacy / Txns API

Deprecated.

Operations 5

GET /v1/txns Get txns by pagination
GET /v1/txns/count Get estimated total txns count
GET /v1/txns/latest Get the latest txns
GET /v1/txns/{hash} Get txn info
GET /v1/txns/{hash}/full Get txn info with receipts and execution outcomes

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/near-legacy-txns-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

near-legacy-txns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Low-latency indexed account, token, and public-key lookup APIs for wallets and explorers. Embedded portal clients may forward an optional `apiKey` query parameter, but the public FastNEAR API does not require it.
  title: FastNEAR accounts Legacy / Txns API
  version: 3.0.3
servers:
- description: Mainnet
  url: https://api.fastnear.com
- description: Testnet
  url: https://test.api.fastnear.com
tags:
- description: Deprecated.
  name: Legacy / Txns
paths:
  /v1/txns:
    get:
      summary: Get txns by pagination
      tags:
      - Legacy / Txns
      parameters:
      - in: query
        name: block
        description: Block hash
        schema:
          type: string
      - in: query
        name: from
        description: Sender account id
        schema:
          type: string
      - in: query
        name: to
        description: Receiver account id
        schema:
          type: string
      - in: query
        name: action
        description: Action kind
        schema:
          type: string
      - in: query
        name: method
        description: Function call method
        schema:
          type: string
      - in: query
        name: after_date
        description: Date in YYYY-MM-DD format
        schema:
          type: string
      - in: query
        name: before_date
        description: Date in YYYY-MM-DD format
        schema:
          type: string
      - in: query
        name: cursor
        description: Next page cursor, takes precedence over 'page' if provided
        schema:
          type: string
      - in: query
        name: page
        description: Page number
        schema:
          type: number
          minimum: 1
          maximum: 200
          default: 1
      - in: query
        name: per_page
        description: Number of items per page. Each increment of 25 will count towards rate limit.
        schema:
          type: number
          minimum: 1
          maximum: 250
          default: 25
      - in: query
        name: order
        description: Sort order
        schema:
          type: string
          enum:
          - desc
          - asc
          default: desc
      responses:
        '200':
          description: Success response
  /v1/txns/count:
    get:
      summary: Get estimated total txns count
      tags:
      - Legacy / Txns
      parameters:
      - in: query
        name: block
        description: Block hash
        schema:
          type: string
      - in: query
        name: from
        description: Sender account id
        schema:
          type: string
      - in: query
        name: to
        description: Receiver account id
        schema:
          type: string
      - in: query
        name: action
        description: Action kind
        schema:
          type: string
      - in: query
        name: method
        description: Function call method
        schema:
          type: string
      - in: query
        name: after_date
        description: Date in YYYY-MM-DD format
        schema:
          type: string
      - in: query
        name: before_date
        description: Date in YYYY-MM-DD format
        schema:
          type: string
      responses:
        '200':
          description: Success response
  /v1/txns/latest:
    get:
      summary: Get the latest txns
      tags:
      - Legacy / Txns
      parameters:
      - in: query
        name: limit
        description: Number of latest transactions
        schema:
          type: number
          minimum: 1
          maximum: 10
          default: 10
      responses:
        '200':
          description: Success response
  /v1/txns/{hash}:
    get:
      summary: Get txn info
      tags:
      - Legacy / Txns
      parameters:
      - in: path
        name: hash
        required: true
        description: Transaction hash
        schema:
          type: string
        examples:
          hash:
            value: example-txn-hash
      responses:
        '200':
          description: Success response
  /v1/txns/{hash}/full:
    get:
      summary: Get txn info with receipts and execution outcomes
      tags:
      - Legacy / Txns
      parameters:
      - in: path
        name: hash
        required: true
        description: Transaction hash
        schema:
          type: string
        examples:
          hash:
            value: example-txn-hash
      responses:
        '200':
          description: Success response