NEAR Block by Hash
nearrpc/block-by-hash
One NEAR block by its hash: height, time, producer, gas price and total supply (exact yoctoNEAR strings, 1 NEAR = 10^24 yoctoNEAR) and one chunk per shard. Only about the last 18 hours (roughly 110,000 blocks) are held: an older hash is refused. Read from public NEAR RPC nodes that offer no SLA and can be slow or throttled; the public nodes keep only the last 18 hours or so of history and are all run by one operator. Served by Eden Engine; not an official product of NEAR or FastNEAR.
Price
$0.0026 per call
You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $0.50.
Data source
On-chain data read from public NEAR RPC nodes; no licence or credit is required. Served by Eden Engine; not an official product of NEAR or FastNEAR.
Use it
Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.
Connect once and your AI can find and run this tool, and any other it needs.
For developers: the calls your assistant makes
// 1. search: find the tool
omnial_search({ query: "what you need" })
// 2. inspect: price and input schema
omnial_inspect({ tool: "nearrpc/block-by-hash" })
// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "nearrpc/block-by-hash" })
// 4. run: price the exact call first, then run it
omnial_execute({ tool: "nearrpc/block-by-hash", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "nearrpc/block-by-hash", input: { /* ... */ } })
// 5. settle: the call is charged when it finishes, nothing to doNot connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.
Pricing
Every charge this tool can incur.
| Charge | Price |
|---|---|
Per call | $0.0026 |
- Updated
- Oct 29, 2026
Input and output schemas
Input schema
{
"type": "object",
"required": [
"network",
"block_hash"
],
"properties": {
"network": {
"enum": [
"mainnet",
"testnet"
],
"type": "string",
"description": "The network to read: mainnet (NEAR mainnet), testnet (NEAR testnet). Required; there is no default, so a call never reads the wrong chain silently."
},
"block_hash": {
"type": "string",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{43,44}$",
"description": "The block hash: 43 or 44 base58 characters. The public nodes keep only about the last 18 hours; the hash of an older block is refused."
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"required": [
"found"
],
"properties": {
"hash": {
"type": [
"string",
"null"
]
},
"found": {
"type": "boolean",
"description": "False when the node has no such item; then no other field is present."
},
"author": {
"type": [
"string",
"null"
],
"description": "The validator account that produced the block."
},
"chunks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"gas_used": {
"type": "integer"
},
"shard_id": {
"type": "integer"
},
"gas_limit": {
"type": "integer"
},
"chunk_hash": {
"type": "string"
},
"height_included": {
"type": "integer"
}
},
"additionalProperties": true
},
"description": "One entry per shard: the chunk hash and gas figures. Fetch transactions by hash with nearrpc/transaction."
},
"height": {
"type": [
"integer",
"null"
]
},
"epoch_id": {
"type": [
"string",
"null"
]
},
"prev_hash": {
"type": [
"string",
"null"
]
},
"timestamp": {
"type": [
"string",
"null"
],
"description": "ISO 8601 UTC time of the block."
},
"chunk_count": {
"type": "integer"
},
"gas_price_yocto": {
"type": [
"string",
"null"
],
"description": "Gas price in yoctoNEAR per gas unit, an exact decimal string (1 NEAR = 10^24 yoctoNEAR)."
},
"timestamp_nanosec": {
"type": [
"string",
"null"
],
"description": "Block time in nanoseconds since the Unix epoch, an exact decimal string."
},
"total_supply_near": {
"type": [
"string",
"null"
],
"description": "The same supply in NEAR, an exact decimal string."
},
"total_supply_yocto": {
"type": [
"string",
"null"
],
"description": "Total NEAR supply in yoctoNEAR, an exact decimal string."
}
},
"description": "A block header summary, or found false.",
"additionalProperties": true
}