Curl Requests made as follows JSON files will be provided per section
export ARCHIVE_NODE_URL=
export JSON_FILE_PATH=
curl $ARCHIVE_NODE_URL -X POST -H "Content-Type: application/json" --data $JSON_FILE_PATH | jq
Use
JSON_FILE_PATH=@receipt_request.json
with file
{
"method": "eth_getTransactionReceipt",
"params": [
"0x1231f2c9b519adc5ae7db17c84418e140553e234b2868d6b1d7f66a692683e73"
],
"id": 1,
"jsonrpc": "2.0"
}
- This does not require an archive node.
Just replace eth_getTransactionReceipt
with eth_getTransactionByHash
from the previous example and decode input
field from the response.
Snippet partially borrowed from here
With the file JSON_FILE_PATH=trace_request.json
{
"method": "trace_replayTransaction",
"params": [
"0x8e5cd4d97881b558b7c4a120c41193b944db0612bc45807ae056d5488b82700e",
[
"stateDiff"
]
],
"id": 1,
"jsonrpc": "2.0"
}