From 8ca04de2b8ae7ee9839be6c3ee48e974d81edd45 Mon Sep 17 00:00:00 2001 From: alchemy-bot <80712764+alchemy-bot@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:16:23 +0000 Subject: [PATCH 1/3] [docs-agent] Add historical block availability note on Injective eth_getBlockByNumber Adds an Injective-specific note on the eth_getBlockByNumber method stating that Alchemy's Injective endpoint provides historical block access starting at block 127,250,000 (0x795ae50), where Injective's native EVM upgrade was introduced. Introduces a shadowed method definition under _components/injective/methods.yaml (mirrors the existing eth_getBlockReceipts/eth_syncing/net_listening pattern), updates the ref in injective.yaml, and adds eth_getBlockByNumber to x-bot-ignore so Daikon's daily sync does not strip the override. Requested-by: @oskarciupider-alchemy --- .../chains/_components/injective/methods.yaml | 69 +++++++++++++++++++ src/openrpc/chains/injective/injective.yaml | 4 +- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/src/openrpc/chains/_components/injective/methods.yaml b/src/openrpc/chains/_components/injective/methods.yaml index 192616dfd..7dc06f7db 100644 --- a/src/openrpc/chains/_components/injective/methods.yaml +++ b/src/openrpc/chains/_components/injective/methods.yaml @@ -1,6 +1,75 @@ # Injective-specific method definitions (extends shared custom methods where network coverage differs). components: methods: + eth_getBlockByNumber: + name: eth_getBlockByNumber + description: | + Returns information about a block by its number. + + **Injective:** Alchemy's Injective endpoint provides historical block access starting at block **127,250,000** (`0x795ae50`), where Injective's native EVM upgrade was introduced. + x-compute-units: 20 + params: + - name: Block number or tag + required: true + description: The block number or special tags like 'latest', 'earliest', or 'pending'. + schema: + $ref: "../evm/block.yaml#/components/schemas/BlockNumberOrTag" + - name: Hydrated transactions + required: true + description: If true, returns full transaction objects; if false, returns only transaction hashes. + schema: + title: hydrated + type: boolean + result: + name: Block information + description: The block object containing various properties of the block. + schema: + oneOf: + - $ref: "../evm/base-types.yaml#/components/schemas/notFound" + - $ref: "../evm/block.yaml#/components/schemas/Block" + examples: + - name: eth_getBlockByNumber example + params: + - name: Block number or tag + value: "0x795ae50" + - name: Hydrated transactions + value: false + result: + name: Block information + value: + number: "0x795ae50" + hash: "0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c" + mixHash: "0x24900fb3da77674a861c428429dce0762707ecb6052325bbd9b3c64e74b5af9d" + parentHash: "0x1f68ac259155e2f38211ddad0f0a15394d55417b185a93923e2abe71bb7a4d6d" + nonce: "0x378da40ff335b070" + sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + logsBloom: "0x00000000000000100000004080000000000500000000000000020000100000000800001000000004000001000000000000000800040010000020100000000400000010000000000000000040000000000000040000000000000000000000000000000400002400000000000000000000000000000004000004000000000000840000000800000080010004000000001000000800000000000000000000000000000000000800000000000040000000020000000000000000000800000400000000000000000000000600000400000000002000000000000000000000004000000000000000100000000000000000000000000000000000040000900010000000" + transactionsRoot: "0x4d0c8e91e16bdff538c03211c5c73632ed054d00a7e210c0eb25146c20048126" + stateRoot: "0x91309efa7e42c1f137f31fe9edbe88ae087e6620d0d59031324da3e2f4f93233" + receiptsRoot: "0x68461ab700003503a305083630a8fb8d14927238f0bc8b6b3d246c0c64f21f4a" + miner: "0xb42b6c4a95406c78ff892d270ad20b22642e102d" + difficulty: "0x66e619a" + totalDifficulty: "0x1e875d746ae" + extraData: "0xd583010502846765746885676f312e37856c696e7578" + size: "0x334" + gasLimit: "0x47e7c4" + gasUsed: "0x37993" + timestamp: "0x5835c54d" + uncles: [] + transactions: + - "0xa0807e117a8dd124ab949f460f08c36c72b710188f01609595223b325e58e0fc" + - "0xeae6d797af50cb62a596ec3939114d63967c374fa57de9bc0f4e2b576ed6639d" + baseFeePerGas: "0x7" + withdrawalsRoot: "0x7a4ecf19774d15cf9c15adf0dd8e8a250c128b26c9e2ab2a08d6c9c8ffbd104f" + withdrawals: + - index: "0x0" + validatorIndex: "0x9d8c0" + address: "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f" + amount: "0x11a33e3760" + blobGasUsed: "0x0" + excessBlobGas: "0x0" + parentBeaconBlockRoot: "0x95c4dbd5b19f6fe3cbc3183be85ff4e85ebe75c5b4fc911f1c91e5b7a554a685" + eth_getBlockReceipts: name: eth_getBlockReceipts description: | diff --git a/src/openrpc/chains/injective/injective.yaml b/src/openrpc/chains/injective/injective.yaml index 69e4a414f..bf139a622 100644 --- a/src/openrpc/chains/injective/injective.yaml +++ b/src/openrpc/chains/injective/injective.yaml @@ -37,7 +37,8 @@ methods: - $ref: ../_components/evm/methods.yaml#/components/methods/eth_getAccount - $ref: ../_components/evm/methods.yaml#/components/methods/eth_getBalance - $ref: ../_components/evm/methods.yaml#/components/methods/eth_getBlockByHash - - $ref: ../_components/evm/methods.yaml#/components/methods/eth_getBlockByNumber + - $ref: >- + ../_components/injective/methods.yaml#/components/methods/eth_getBlockByNumber - $ref: >- ../_components/evm/methods.yaml#/components/methods/eth_getBlockTransactionCountByHash - $ref: >- @@ -74,6 +75,7 @@ methods: - $ref: ../_components/injective/methods.yaml#/components/methods/eth_syncing - $ref: ../_components/injective/methods.yaml#/components/methods/net_listening x-bot-ignore: + - eth_getBlockByNumber - eth_getBlockReceipts - eth_syncing - net_listening From d5acfd3f9f72a58d4babe08e6aa50dc50cc470c5 Mon Sep 17 00:00:00 2001 From: alchemy-bot <80712764+alchemy-bot@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:21:23 +0000 Subject: [PATCH 2/3] [docs-agent] Convert Injective eth_getBlockByNumber availability note to Note callout Addresses review feedback: drop the "Injective:" prefix and wrap the historical block availability note in a callout for better visibility on the method page. Requested-by: @oskarciupider-alchemy --- src/openrpc/chains/_components/injective/methods.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrpc/chains/_components/injective/methods.yaml b/src/openrpc/chains/_components/injective/methods.yaml index 7dc06f7db..68e40a262 100644 --- a/src/openrpc/chains/_components/injective/methods.yaml +++ b/src/openrpc/chains/_components/injective/methods.yaml @@ -6,7 +6,9 @@ components: description: | Returns information about a block by its number. - **Injective:** Alchemy's Injective endpoint provides historical block access starting at block **127,250,000** (`0x795ae50`), where Injective's native EVM upgrade was introduced. + + Alchemy's Injective endpoint provides historical block access starting at block **127,250,000** (`0x795ae50`), where Injective's native EVM upgrade was introduced. + x-compute-units: 20 params: - name: Block number or tag From 98f7d8e63e1dd85f437aeb708d59a31191ccbfb4 Mon Sep 17 00:00:00 2001 From: alchemy-bot <80712764+alchemy-bot@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:27:42 +0000 Subject: [PATCH 3/3] [docs-agent] Use real Injective block 0x795ae50 response in eth_getBlockByNumber example Addresses codex review feedback: the previous example reused fields from the shared EVM method's block 0x68b3 response (unrelated hash, parentHash, timestamp, transactions), which produced an inconsistent response for the newly shown Injective cutoff height. Replaced the response body with the actual eth_getBlockByNumber response for block 0x795ae50 on Injective mainnet (supplied by @oskarciupider-alchemy). Also drops the Ethereum-mainnet-specific fields (baseFeePerGas, withdrawalsRoot, withdrawals, blobGasUsed, excessBlobGas, parentBeaconBlockRoot) that the Injective node does not return at this height. Requested-by: @oskarciupider-alchemy --- .../chains/_components/injective/methods.yaml | 46 +++++++------------ 1 file changed, 17 insertions(+), 29 deletions(-) diff --git a/src/openrpc/chains/_components/injective/methods.yaml b/src/openrpc/chains/_components/injective/methods.yaml index 68e40a262..e5c356b15 100644 --- a/src/openrpc/chains/_components/injective/methods.yaml +++ b/src/openrpc/chains/_components/injective/methods.yaml @@ -40,37 +40,25 @@ components: name: Block information value: number: "0x795ae50" - hash: "0xd5f1812548be429cbdc6376b29611fc49e06f1359758c4ceaaa3b393e2239f9c" - mixHash: "0x24900fb3da77674a861c428429dce0762707ecb6052325bbd9b3c64e74b5af9d" - parentHash: "0x1f68ac259155e2f38211ddad0f0a15394d55417b185a93923e2abe71bb7a4d6d" - nonce: "0x378da40ff335b070" + hash: "0xdf7ca2f662e315782555113f77e2b11543b5365f424c156a0b5aa56a3ff34ce4" + parentHash: "0xd43c94193f45e7709496ef87e240baedcd401bf79578e4c6d350a6922e97d63a" + nonce: "0x0000000000000000" + mixHash: "0x0000000000000000000000000000000000000000000000000000000000000000" sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" - logsBloom: "0x00000000000000100000004080000000000500000000000000020000100000000800001000000004000001000000000000000800040010000020100000000400000010000000000000000040000000000000040000000000000000000000000000000400002400000000000000000000000000000004000004000000000000840000000800000080010004000000001000000800000000000000000000000000000000000800000000000040000000020000000000000000000800000400000000000000000000000600000400000000002000000000000000000000004000000000000000100000000000000000000000000000000000040000900010000000" - transactionsRoot: "0x4d0c8e91e16bdff538c03211c5c73632ed054d00a7e210c0eb25146c20048126" - stateRoot: "0x91309efa7e42c1f137f31fe9edbe88ae087e6620d0d59031324da3e2f4f93233" - receiptsRoot: "0x68461ab700003503a305083630a8fb8d14927238f0bc8b6b3d246c0c64f21f4a" - miner: "0xb42b6c4a95406c78ff892d270ad20b22642e102d" - difficulty: "0x66e619a" - totalDifficulty: "0x1e875d746ae" - extraData: "0xd583010502846765746885676f312e37856c696e7578" - size: "0x334" - gasLimit: "0x47e7c4" - gasUsed: "0x37993" - timestamp: "0x5835c54d" + logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + stateRoot: "0x0000000000000000000000000000000000000000000000000000000000000000" + receiptsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + miner: "0x0000000000000000000000000000000000000000" + difficulty: "0x0" + totalDifficulty: "0x0" + extraData: "0x" + size: "0x0" + gasLimit: "0x0" + gasUsed: "0x4f0c80" + timestamp: "0x688b8418" uncles: [] - transactions: - - "0xa0807e117a8dd124ab949f460f08c36c72b710188f01609595223b325e58e0fc" - - "0xeae6d797af50cb62a596ec3939114d63967c374fa57de9bc0f4e2b576ed6639d" - baseFeePerGas: "0x7" - withdrawalsRoot: "0x7a4ecf19774d15cf9c15adf0dd8e8a250c128b26c9e2ab2a08d6c9c8ffbd104f" - withdrawals: - - index: "0x0" - validatorIndex: "0x9d8c0" - address: "0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f" - amount: "0x11a33e3760" - blobGasUsed: "0x0" - excessBlobGas: "0x0" - parentBeaconBlockRoot: "0x95c4dbd5b19f6fe3cbc3183be85ff4e85ebe75c5b4fc911f1c91e5b7a554a685" + transactions: [] eth_getBlockReceipts: name: eth_getBlockReceipts