POST
/
evm
eth_getRawTransactionByBlockHashAndIndex
curl --request POST \
  --url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getRawTransactionByBlockHashAndIndex",
  "params": [
    "0x2ce91ae0ed242b4b78b432a45b982fb81a414d6b04167762ed3c7446710a4b8e",
    "0x0"
  ],
  "id": 1
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xf86c0185037e11d6008252089433c3321b162edac1fdbb53af2962b2940c07e334880de0b6b3a76400008026a01234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdefa0abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab"
}
Returns the raw transaction data by block hash and transaction index. Use this method to retrieve the RLP-encoded raw transaction from a specific position within a known block.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • blockHash (string, required) — The 32-byte hash of the block
  • transactionIndex (string, required) — The index position of the transaction in the block (hex string)

Returns

Returns the raw transaction data as a hex-encoded string, or null if the block or transaction is not found. The raw transaction data is RLP-encoded and includes all transaction fields in their original binary format.
Transaction indices start from 0x0. Use hex format for the index parameter (e.g., “0x0” for the first transaction, “0x1” for the second).

Use cases

  • Block analysis — Extract raw transactions from specific blocks
  • Transaction reconstruction — Rebuild transactions from block data
  • Cross-chain verification — Verify transaction encoding across networks
  • Archive tools — Efficiently process transactions by block position
  • Forensic investigation — Analyze transaction ordering within blocks
  • Data migration — Transfer transaction data between systems

Body

application/json
jsonrpc
enum<string>
default:2.0
required

JSON-RPC version

Available options:
2.0
method
enum<string>
default:eth_getRawTransactionByBlockHashAndIndex
required

The RPC method name

Available options:
eth_getRawTransactionByBlockHashAndIndex
params
any[]
required

Parameters: [blockHash, transactionIndex]

id
integer
default:1
required

Request identifier

Response

200 - application/json

Successful response with raw transaction data

jsonrpc
string

JSON-RPC version

id
integer

Request identifier

result
string

Raw transaction data as hex-encoded string, or null if not found