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 EXPERIMENTAL Genesis Config API

The EXPERIMENTAL Genesis Config API from NEAR Protocol — 1 operation(s) for experimental genesis config.

NEAR Protocol EXPERIMENTAL Genesis Config 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 EXPERIMENTAL Genesis Config. 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 19 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 19 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.

EXPERIMENTAL Genesis Config 1
POST
/EXPERIMENTAL_genesis_config
[Deprecated] Get initial state and parameters for the genesis block. Consider genesisconfig instead.
EXPERIMENTAL_genesis_config body → 200

Schemas 19

The contract defines 19 schemas that model the data the API accepts and returns. The most detailed are GenesisConfig (36 properties), ShardLayoutV2 (7 properties), ShardLayoutV3 (5 properties), ShardLayoutV1 (4 properties). Each schema is shown below with its type and property counts.

ErrorWrapper_for_GenesisConfigError
NearToken
string
JsonRpcResponse_for_GenesisConfig_and_GenesisConfigError
object
2 properties 2 required
ShardLayoutV2
object
Counterpart to ShardLayoutV2 composed of maps with string keys to aid serde serialization.
7 properties 5 required
ShardLayoutV3
object
Counterpart to ShardLayoutV3 composed of maps with string keys to aid serde serialization.
5 properties 5 required
AccountId
string
NEAR Account Identifier. This is a unique, syntactically valid, human-readable account identifier on the NEAR network. [See the crate-level docs for informatio…
ShardLayout
A versioned struct that contains all information needed to assign accounts to shards. Because of re-sharding, the chain may use different shard layout to split…
NearGas
integer
AccountInfo
object
Account info for validators
3 properties 3 required
ShardLayoutV0
object
A shard layout that maps accounts evenly across all shards -- by calculate the hash of account id and mod number of shards. This is added to capture the old ac…
2 properties 2 required
GenesisConfigError
ShardLayoutV1
object
4 properties 2 required
InternalError
ShardId
integer
The shard identifier. It may be an arbitrary number - it does not need to be a number in the range 0..NUMSHARDS. The shard ids do not need to be sequential or…
PublicKey
string
JsonRpcRequest_for_EXPERIMENTAL_genesis_config
object
4 properties 4 required
GenesisConfigRequest
GenesisConfig
object
36 properties 21 required
RpcRequestValidationErrorKind

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

near-experimental-genesis-config-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