curl --request POST \
--url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getRawTransactionByBlockNumberAndIndex",
"id": 1,
"params": [
"0x6ecf0b4",
"0x1"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}Reference docs for the eth_getRawTransactionByBlockNumberAndIndex JSON-RPC method on the Optimism blockchain, available via Chainstack JSON-RPC nodes.
curl --request POST \
--url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getRawTransactionByBlockNumberAndIndex",
"id": 1,
"params": [
"0x6ecf0b4",
"0x1"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}Optimism API methodDocumentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
eth_getRawTransactionByBlockNumberAndIndex retrieves the raw transaction data as a hexadecimal string for a transaction in a specific block, identified by the block number and the transaction’s index position within that block. This method is useful for obtaining the complete transaction data, including its signature, without needing the transaction hash.
blockNumber — the number of the block.transactionIndex — the index position of the transaction in the block, specified as a hexadecimal. The example uses "0x1".result — the raw transaction data as a hexadecimal string.eth_getRawTransactionByBlockNumberAndIndex method is essential for:
Was this page helpful?