forked from ethereum/execution-apis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add eth_getBlockReceipts (ethereum#438)
* eth: add eth_getBlockReceipts Signed-off-by: jsvisa <[email protected]> Signed-off-by: jsvisa <[email protected]> * eth: blockReceipts Signed-off-by: jsvisa <[email protected]> * getBlockReceipts maybe null Signed-off-by: jsvisa <[email protected]> * tests: add eth_getBlockReceipts Signed-off-by: jsvisa <[email protected]> --------- Signed-off-by: jsvisa <[email protected]>
- Loading branch information
Showing
9 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["0x0"]} | ||
<< {"jsonrpc":"2.0","id":1,"result":[]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["0x7a6c6683eb052de1d9debcb78905d427464566c7a305a39d10e6fd309b797845"]} | ||
<< {"jsonrpc":"2.0","id":1,"result":[{"blockHash":"0x7a6c6683eb052de1d9debcb78905d427464566c7a305a39d10e6fd309b797845","blockNumber":"0x5","contractAddress":null,"cumulativeGasUsed":"0x538d","effectiveGasPrice":"0x1ec7cd47","from":"0x658bdf435d810c91414ec09147daa6db62406379","gasUsed":"0x538d","logs":[],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","status":"0x0","to":"0x0000000000000000000000000000000000031ec7","transactionHash":"0x54b25c11650dca0253ef7b91b5415680eea8dac54b029863e12db48908ad386c","transactionIndex":"0x0","type":"0x2"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["earliest"]} | ||
<< {"jsonrpc":"2.0","id":1,"result":[]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["0x0000000000000000000000000000000000000000000000000000000000000000"]} | ||
<< {"jsonrpc":"2.0","id":1,"result":null} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["0xa"]} | ||
<< {"jsonrpc":"2.0","id":1,"result":null} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["latest"]} | ||
<< {"jsonrpc":"2.0","id":1,"result":[{"blockHash":"0x9032fd0afc97b3c5b28fe887051ecb2cc3a3475c102b0aeeaadaebd87d8e1cd3","blockNumber":"0x9","contractAddress":null,"cumulativeGasUsed":"0x5208","effectiveGasPrice":"0x122af098","from":"0x658bdf435d810c91414ec09147daa6db62406379","gasUsed":"0x5208","logs":[],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","status":"0x1","to":"0x658bdf435d810c91414ec09147daa6db62406379","transactionHash":"0xfc00d60c731c8dae864f0e7c8475037068347d178c177f82d9761759b9b00d11","transactionIndex":"0x0","type":"0x0"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["0x3"]} | ||
<< {"jsonrpc":"2.0","id":1,"result":[{"blockHash":"0x97bf0c1e120092367636515ad0fff9b03a76c1d200edc6cbd2268e46413e7679","blockNumber":"0x3","contractAddress":"0xdcdf1e30e221ceb2ed862994fdf18b52588094da","cumulativeGasUsed":"0xcf50","effectiveGasPrice":"0x2806be9d","from":"0x658bdf435d810c91414ec09147daa6db62406379","gasUsed":"0xcf50","logs":[],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","status":"0x1","to":null,"transactionHash":"0xc864b642dab0258a7a671f172fa438b29d35cec47ce30d9e16720a07e1c588b9","transactionIndex":"0x0","type":"0x0"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["0x00000000000000000000000000000000000000000000000000000000deadbeef"]} | ||
<< {"jsonrpc":"2.0","id":1,"result":null} |