mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-22 11:48:19 +00:00
[EIP-1474] Fix curl examples for eth_getUncleByBlockHashAndIndex and eth_getUncleByBlockNumberAndIndex (#3048)
[EIP-1474] Fix curl examples for eth_getUncleByBlockHashAndIndex and eth_getUncleByBlockNumberAndIndex #3048
This commit is contained in:
parent
dc9932bc2d
commit
e419dae0b5
@ -639,7 +639,7 @@ curl -X POST --data '{
|
||||
"stateRoot": "0xd5855eb08b3387c0af375e9cdb6acfc05eb8f519e419b874b6ff2ffda7ed1dff",
|
||||
"timestamp": "0x54e34e8e"
|
||||
"totalDifficulty": "0x027f07",
|
||||
"transactions": []
|
||||
"transactions": []
|
||||
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||
"uncles": ["0x1606e5...", "0xd5145a9..."]
|
||||
}
|
||||
@ -715,7 +715,7 @@ curl -X POST --data '{
|
||||
"stateRoot": "0xd5855eb08b3387c0af375e9cdb6acfc05eb8f519e419b874b6ff2ffda7ed1dff",
|
||||
"timestamp": "0x54e34e8e"
|
||||
"totalDifficulty": "0x027f07",
|
||||
"transactions": []
|
||||
"transactions": []
|
||||
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||
"uncles": ["0x1606e5...", "0xd5145a9..."]
|
||||
}
|
||||
@ -1394,16 +1394,23 @@ curl -X POST --data '{
|
||||
"id": 1337,
|
||||
"jsonrpc": "2.0",
|
||||
"result": {
|
||||
"blockHash": '0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b',
|
||||
"blockNumber": '0xb',
|
||||
"contractAddress": '0xb60e8dd61c5d32be8058bb8eb970870f07233155',
|
||||
"cumulativeGasUsed": '0x33bc',
|
||||
"gasUsed": '0x4dc',
|
||||
"logs": [],
|
||||
"logsBloom": "0x00...0",
|
||||
"status": "0x1",
|
||||
"transactionHash": '0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238',
|
||||
"transactionIndex": '0x1'
|
||||
"difficulty": "0x027f07",
|
||||
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"gasLimit": "0x9f759",
|
||||
"gasUsed": "0x9f759",
|
||||
"hash": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331",
|
||||
"logsBloom": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331",
|
||||
"miner": "0x4e65fda2159562a496f9f3522f89122a3088497a",
|
||||
"nonce": "0xe04d296d2460cfb8472af2c5fd05b5a214109c25688d3704aed5484f9a7792f2",
|
||||
"number": "0x1b4",
|
||||
"parentHash": "0x9646252be9520f6e71339a8df9c55e4d7619deeb018d2a3f2d21fc165dde5eb5",
|
||||
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||
"size": "0x027f07",
|
||||
"stateRoot": "0xd5855eb08b3387c0af375e9cdb6acfc05eb8f519e419b874b6ff2ffda7ed1dff",
|
||||
"timestamp": "0x54e34e8e"
|
||||
"totalDifficulty": "0x027f07",
|
||||
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||
"uncles": []
|
||||
}
|
||||
}
|
||||
```
|
||||
@ -1461,16 +1468,23 @@ curl -X POST --data '{
|
||||
"id": 1337,
|
||||
"jsonrpc": "2.0",
|
||||
"result": {
|
||||
"blockHash": '0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b',
|
||||
"blockNumber": '0xb',
|
||||
"contractAddress": '0xb60e8dd61c5d32be8058bb8eb970870f07233155',
|
||||
"cumulativeGasUsed": '0x33bc',
|
||||
"gasUsed": '0x4dc',
|
||||
"logs": [],
|
||||
"logsBloom": "0x00...0",
|
||||
"status": "0x1",
|
||||
"transactionHash": '0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238',
|
||||
"transactionIndex": '0x1'
|
||||
"difficulty": "0x027f07",
|
||||
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"gasLimit": "0x9f759",
|
||||
"gasUsed": "0x9f759",
|
||||
"hash": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331",
|
||||
"logsBloom": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331",
|
||||
"miner": "0x4e65fda2159562a496f9f3522f89122a3088497a",
|
||||
"nonce": "0xe04d296d2460cfb8472af2c5fd05b5a214109c25688d3704aed5484f9a7792f2",
|
||||
"number": "0x1b4",
|
||||
"parentHash": "0x9646252be9520f6e71339a8df9c55e4d7619deeb018d2a3f2d21fc165dde5eb5",
|
||||
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||
"size": "0x027f07",
|
||||
"stateRoot": "0xd5855eb08b3387c0af375e9cdb6acfc05eb8f519e419b874b6ff2ffda7ed1dff",
|
||||
"timestamp": "0x54e34e8e"
|
||||
"totalDifficulty": "0x027f07",
|
||||
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||
"uncles": []
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user