curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getRawTransactionByBlockNumberAndIndex",
"id": 1,
"params": [
"0xbb623d",
"0x1"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getRawTransactionByBlockNumberAndIndex",
"id": 1,
"params": [
"0xbb623d",
"0x1"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
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:
Raw transaction data for the given block number and index
The response is of type object
.