curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getRawTransactionByBlockHashAndIndex",
"params": [
"0x7e4aea365093a183b0df5f003f26144ef04ec8a6e7f4910356590c5fc7b1671f",
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xf86b018504a817c8008252089471c7656ed63d30e271b7db6f5cb94d10d5c2b7b3880de0b6b3a76400008026a0ba4681b..."
}
Retrieves the raw transaction data as a hexadecimal string for a transaction at a given index in a block, identified by its block hash.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getRawTransactionByBlockHashAndIndex",
"params": [
"0x7e4aea365093a183b0df5f003f26144ef04ec8a6e7f4910356590c5fc7b1671f",
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xf86b018504a817c8008252089471c7656ed63d30e271b7db6f5cb94d10d5c2b7b3880de0b6b3a76400008026a0ba4681b..."
}
eth_getRawTransactionByBlockHashAndIndex:params[0]: The hash of the block containing the transaction.params[1]: The index position of the transaction in the block (hexadecimal).β0xf86b018504a817c8008252089471c7656ed63d30e271b7db6f5cb94d10d5c2b7b3880de0b6b3a76400008026a0ba4681bβ¦β.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getRawTransactionByBlockHashAndIndex",
"params": [
"0x7e4aea365093a183b0df5f003f26144ef04ec8a6e7f4910356590c5fc7b1671f",
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xf86b018504a817c8008252089471c7656ed63d30e271b7db6f5cb94d10d5c2b7b3880de0b6b3a76400008026a0ba4681b..."
}
Was this page helpful?