Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

NEAR Protocol Gas Price API

The Gas Price API from NEAR Protocol — 1 operation(s) for gas price.

NEAR Protocol Gas Price API is one of 60 APIs that NEAR Protocol publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Gas Price. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and rate-limit docs.

This API exposes 1 operation across 1 path, and defines 11 schemas. It is described by OpenAPI 3.0.3, at version 3.0.3.

Requests are made against 2 base URLs: https://api.fastnear.com, https://test.api.fastnear.com.

1 operations 1 paths 11 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
3.0.3
Base URL
https://rpc.mainnet.near.org
Resource Areas
1

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Gas Price 1
POST
/gas_price
Returns gas price for a specific blockheight or blockhash. Using [null] will return the most recent block's gas price.
gas_price body → 200

Schemas 11

The contract defines 11 schemas that model the data the API accepts and returns. The most detailed are JsonRpcRequest_for_gas_price (4 properties), JsonRpcResponse_for_RpcGasPriceResponse_and_RpcGasPriceError (2 properties), RpcGasPriceResponse (1 property), RpcGasPriceRequest (1 property). Each schema is shown below with its type and property counts.

JsonRpcRequest_for_gas_price
object
4 properties 4 required
BlockId
CryptoHash
string
NearToken
string
RpcGasPriceRequest
object
1 property
RpcGasPriceError
JsonRpcResponse_for_RpcGasPriceResponse_and_RpcGasPriceError
object
2 properties 2 required
ErrorWrapper_for_RpcGasPriceError
RpcGasPriceResponse
object
1 property 1 required
RpcRequestValidationErrorKind
InternalError

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

near-gas-price-api-openapi.yml Raw ↑

Other APIs NEAR Protocol publishes across the network.

NEAR Protocol accounts API
NEAR Protocol Block API
NEAR Protocol Block Effects API
NEAR Protocol Broadcast Tx Async API
NEAR Protocol Broadcast Tx Commit API
NEAR Protocol Changes API
NEAR Protocol Chunk API
NEAR Protocol Client Config API
NEAR Protocol EXPERIMENTAL Call Function API
NEAR Protocol EXPERIMENTAL Changes API
NEAR Protocol EXPERIMENTAL Changes In Block API
NEAR Protocol EXPERIMENTAL Congestion Level API