forked from cerc-io/plugeth
internal/ethapi: add testcases for blobTx (#27818)
Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
parent
f56ee7d9c5
commit
9f4a528793
@ -24,6 +24,7 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/consensus"
|
"github.com/ethereum/go-ethereum/consensus"
|
||||||
"github.com/ethereum/go-ethereum/consensus/misc"
|
"github.com/ethereum/go-ethereum/consensus/misc"
|
||||||
"github.com/ethereum/go-ethereum/consensus/misc/eip1559"
|
"github.com/ethereum/go-ethereum/consensus/misc/eip1559"
|
||||||
|
"github.com/ethereum/go-ethereum/consensus/misc/eip4844"
|
||||||
"github.com/ethereum/go-ethereum/core/rawdb"
|
"github.com/ethereum/go-ethereum/core/rawdb"
|
||||||
"github.com/ethereum/go-ethereum/core/state"
|
"github.com/ethereum/go-ethereum/core/state"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
@ -87,6 +88,11 @@ func (b *BlockGen) SetPoS() {
|
|||||||
b.header.Difficulty = new(big.Int)
|
b.header.Difficulty = new(big.Int)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetBlobGas sets the data gas used by the blob in the generated block.
|
||||||
|
func (b *BlockGen) SetBlobGas(blobGasUsed uint64) {
|
||||||
|
b.header.BlobGasUsed = &blobGasUsed
|
||||||
|
}
|
||||||
|
|
||||||
// addTx adds a transaction to the generated block. If no coinbase has
|
// addTx adds a transaction to the generated block. If no coinbase has
|
||||||
// been set, the block's coinbase is set to the zero address.
|
// been set, the block's coinbase is set to the zero address.
|
||||||
//
|
//
|
||||||
@ -393,6 +399,19 @@ func makeHeader(chain consensus.ChainReader, parent *types.Block, state *state.S
|
|||||||
header.GasLimit = CalcGasLimit(parentGasLimit, parentGasLimit)
|
header.GasLimit = CalcGasLimit(parentGasLimit, parentGasLimit)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if chain.Config().IsCancun(header.Number, header.Time) {
|
||||||
|
var (
|
||||||
|
parentExcessBlobGas uint64
|
||||||
|
parentBlobGasUsed uint64
|
||||||
|
)
|
||||||
|
if parent.ExcessBlobGas() != nil {
|
||||||
|
parentExcessBlobGas = *parent.ExcessBlobGas()
|
||||||
|
parentBlobGasUsed = *parent.BlobGasUsed()
|
||||||
|
}
|
||||||
|
excessBlobGas := eip4844.CalcExcessBlobGas(parentExcessBlobGas, parentBlobGasUsed)
|
||||||
|
header.ExcessBlobGas = &excessBlobGas
|
||||||
|
header.BlobGasUsed = new(uint64)
|
||||||
|
}
|
||||||
return header
|
return header
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
25
internal/ethapi/testdata/eth_getBlockByHash-hash-1.json
vendored
Normal file
25
internal/ethapi/testdata/eth_getBlockByHash-hash-1.json
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x342770c0",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0x0da274b315de8e4d5bf8717218ec43540464ef36378cb896469bb731e1d3f3cb",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x1",
|
||||||
|
"parentHash": "0xbdc7d83b8f876938810462fe8d053263a482e44201e3883d4ae204ff4de7eff5",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"size": "0x26a",
|
||||||
|
"stateRoot": "0x92c5c55a698963f5b06e3aee415630f5c48b0760e537af94917ce9c4f42a2e22",
|
||||||
|
"timestamp": "0xa",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactions": [
|
||||||
|
"0x644a31c354391520d00e95b9affbbb010fc79ac268144ab8e28207f4cf51097e"
|
||||||
|
],
|
||||||
|
"transactionsRoot": "0xca0ebcce920d2cdfbf9e1dbe90ed3441a1a576f344bd80e60508da814916f4e7",
|
||||||
|
"uncles": []
|
||||||
|
}
|
1
internal/ethapi/testdata/eth_getBlockByHash-hash-empty-fullTx.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getBlockByHash-hash-empty-fullTx.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
23
internal/ethapi/testdata/eth_getBlockByHash-hash-genesis.json
vendored
Normal file
23
internal/ethapi/testdata/eth_getBlockByHash-hash-genesis.json
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x3b9aca00",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x0",
|
||||||
|
"hash": "0xbdc7d83b8f876938810462fe8d053263a482e44201e3883d4ae204ff4de7eff5",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x0",
|
||||||
|
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"size": "0x200",
|
||||||
|
"stateRoot": "0xfe168c5e9584a85927212e5bea5304bb7d0d8a893453b4b2c52176a72f585ae2",
|
||||||
|
"timestamp": "0x0",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactions": [],
|
||||||
|
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||||
|
"uncles": []
|
||||||
|
}
|
41
internal/ethapi/testdata/eth_getBlockByHash-hash-latest-1-fullTx.json
vendored
Normal file
41
internal/ethapi/testdata/eth_getBlockByHash-hash-latest-1-fullTx.json
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x121a9cca",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0xda97ed946e0d502fb898b0ac881bd44da3c7fee5eaf184431e1ec3d361dad17e",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x9",
|
||||||
|
"parentHash": "0x5abd19c39d9f1c6e52998e135ea14e1fbc5db3fa2a108f4538e238ca5c2e68d7",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"size": "0x26a",
|
||||||
|
"stateRoot": "0xbd4aa2c2873df709151075250a8c01c9a14d2b0e2f715dbdd16e0ef8030c2cf0",
|
||||||
|
"timestamp": "0x5a",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactions": [
|
||||||
|
{
|
||||||
|
"blockHash": "0xda97ed946e0d502fb898b0ac881bd44da3c7fee5eaf184431e1ec3d361dad17e",
|
||||||
|
"blockNumber": "0x9",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gas": "0x5208",
|
||||||
|
"gasPrice": "0x121a9cca",
|
||||||
|
"hash": "0xecd155a61a5734b3efab75924e3ae34026c7c4133d8c2a46122bd03d7d199725",
|
||||||
|
"input": "0x",
|
||||||
|
"nonce": "0x8",
|
||||||
|
"to": "0x0d3ab14bbad3d99f4203bd7a11acb94882050e7e",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"value": "0x3e8",
|
||||||
|
"type": "0x0",
|
||||||
|
"v": "0x1b",
|
||||||
|
"r": "0xc6028b8e983d62fa8542f8a7633fb23cc941be2c897134352d95a7d9b19feafd",
|
||||||
|
"s": "0xeb6adcaaae3bed489c6cce4435f9db05d23a52820c78bd350e31eec65ed809d"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transactionsRoot": "0x0767ed8359337dc6a8fdc77fe52db611bed1be87aac73c4556b1bf1dd3d190a5",
|
||||||
|
"uncles": []
|
||||||
|
}
|
25
internal/ethapi/testdata/eth_getBlockByHash-hash-latest.json
vendored
Normal file
25
internal/ethapi/testdata/eth_getBlockByHash-hash-latest.json
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0xfdc7303",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0x97f540a3577c0f645c5dada5da86f38350e8f847e71f21124f917835003e2607",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0xa",
|
||||||
|
"parentHash": "0xda97ed946e0d502fb898b0ac881bd44da3c7fee5eaf184431e1ec3d361dad17e",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"size": "0x26a",
|
||||||
|
"stateRoot": "0xbb62872e4023fa8a8b17b9cc37031f4817d9595779748d01cba408b495707a91",
|
||||||
|
"timestamp": "0x64",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactions": [
|
||||||
|
"0x3ee4094ca1e0b07a66dd616a057e081e53144ca7e9685a126fd4dda9ca042644"
|
||||||
|
],
|
||||||
|
"transactionsRoot": "0xb0893d21a4a44dc26a962a6e91abae66df87fb61ac9c60e936aee89c76331445",
|
||||||
|
"uncles": []
|
||||||
|
}
|
1
internal/ethapi/testdata/eth_getBlockByHash-hash-pending-fullTx.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getBlockByHash-hash-pending-fullTx.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
1
internal/ethapi/testdata/eth_getBlockByHash-hash-pending.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getBlockByHash-hash-pending.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
23
internal/ethapi/testdata/eth_getBlockByNumber-number-0.json
vendored
Normal file
23
internal/ethapi/testdata/eth_getBlockByNumber-number-0.json
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x3b9aca00",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x0",
|
||||||
|
"hash": "0xbdc7d83b8f876938810462fe8d053263a482e44201e3883d4ae204ff4de7eff5",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x0",
|
||||||
|
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"size": "0x200",
|
||||||
|
"stateRoot": "0xfe168c5e9584a85927212e5bea5304bb7d0d8a893453b4b2c52176a72f585ae2",
|
||||||
|
"timestamp": "0x0",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactions": [],
|
||||||
|
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||||
|
"uncles": []
|
||||||
|
}
|
25
internal/ethapi/testdata/eth_getBlockByNumber-number-1.json
vendored
Normal file
25
internal/ethapi/testdata/eth_getBlockByNumber-number-1.json
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x342770c0",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0x0da274b315de8e4d5bf8717218ec43540464ef36378cb896469bb731e1d3f3cb",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x1",
|
||||||
|
"parentHash": "0xbdc7d83b8f876938810462fe8d053263a482e44201e3883d4ae204ff4de7eff5",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"size": "0x26a",
|
||||||
|
"stateRoot": "0x92c5c55a698963f5b06e3aee415630f5c48b0760e537af94917ce9c4f42a2e22",
|
||||||
|
"timestamp": "0xa",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactions": [
|
||||||
|
"0x644a31c354391520d00e95b9affbbb010fc79ac268144ab8e28207f4cf51097e"
|
||||||
|
],
|
||||||
|
"transactionsRoot": "0xca0ebcce920d2cdfbf9e1dbe90ed3441a1a576f344bd80e60508da814916f4e7",
|
||||||
|
"uncles": []
|
||||||
|
}
|
1
internal/ethapi/testdata/eth_getBlockByNumber-number-latest+1.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getBlockByNumber-number-latest+1.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
41
internal/ethapi/testdata/eth_getBlockByNumber-number-latest-1.json
vendored
Normal file
41
internal/ethapi/testdata/eth_getBlockByNumber-number-latest-1.json
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x121a9cca",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0xda97ed946e0d502fb898b0ac881bd44da3c7fee5eaf184431e1ec3d361dad17e",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x9",
|
||||||
|
"parentHash": "0x5abd19c39d9f1c6e52998e135ea14e1fbc5db3fa2a108f4538e238ca5c2e68d7",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"size": "0x26a",
|
||||||
|
"stateRoot": "0xbd4aa2c2873df709151075250a8c01c9a14d2b0e2f715dbdd16e0ef8030c2cf0",
|
||||||
|
"timestamp": "0x5a",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactions": [
|
||||||
|
{
|
||||||
|
"blockHash": "0xda97ed946e0d502fb898b0ac881bd44da3c7fee5eaf184431e1ec3d361dad17e",
|
||||||
|
"blockNumber": "0x9",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gas": "0x5208",
|
||||||
|
"gasPrice": "0x121a9cca",
|
||||||
|
"hash": "0xecd155a61a5734b3efab75924e3ae34026c7c4133d8c2a46122bd03d7d199725",
|
||||||
|
"input": "0x",
|
||||||
|
"nonce": "0x8",
|
||||||
|
"to": "0x0d3ab14bbad3d99f4203bd7a11acb94882050e7e",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"value": "0x3e8",
|
||||||
|
"type": "0x0",
|
||||||
|
"v": "0x1b",
|
||||||
|
"r": "0xc6028b8e983d62fa8542f8a7633fb23cc941be2c897134352d95a7d9b19feafd",
|
||||||
|
"s": "0xeb6adcaaae3bed489c6cce4435f9db05d23a52820c78bd350e31eec65ed809d"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transactionsRoot": "0x0767ed8359337dc6a8fdc77fe52db611bed1be87aac73c4556b1bf1dd3d190a5",
|
||||||
|
"uncles": []
|
||||||
|
}
|
25
internal/ethapi/testdata/eth_getBlockByNumber-tag-latest.json
vendored
Normal file
25
internal/ethapi/testdata/eth_getBlockByNumber-tag-latest.json
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0xfdc7303",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0x97f540a3577c0f645c5dada5da86f38350e8f847e71f21124f917835003e2607",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0xa",
|
||||||
|
"parentHash": "0xda97ed946e0d502fb898b0ac881bd44da3c7fee5eaf184431e1ec3d361dad17e",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"size": "0x26a",
|
||||||
|
"stateRoot": "0xbb62872e4023fa8a8b17b9cc37031f4817d9595779748d01cba408b495707a91",
|
||||||
|
"timestamp": "0x64",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactions": [
|
||||||
|
"0x3ee4094ca1e0b07a66dd616a057e081e53144ca7e9685a126fd4dda9ca042644"
|
||||||
|
],
|
||||||
|
"transactionsRoot": "0xb0893d21a4a44dc26a962a6e91abae66df87fb61ac9c60e936aee89c76331445",
|
||||||
|
"uncles": []
|
||||||
|
}
|
50
internal/ethapi/testdata/eth_getBlockByNumber-tag-pending-fullTx.json
vendored
Normal file
50
internal/ethapi/testdata/eth_getBlockByNumber-tag-pending-fullTx.json
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"difficulty": "0x0",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x0",
|
||||||
|
"gasUsed": "0x0",
|
||||||
|
"hash": null,
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": null,
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": null,
|
||||||
|
"number": "0xb",
|
||||||
|
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"size": "0x256",
|
||||||
|
"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"timestamp": "0x2a",
|
||||||
|
"totalDifficulty": null,
|
||||||
|
"transactions": [
|
||||||
|
{
|
||||||
|
"blockHash": "0x6cebd9f966ea686f44b981685e3f0eacea28591a7a86d7fbbe521a86e9f81165",
|
||||||
|
"blockNumber": "0xb",
|
||||||
|
"from": "0x0000000000000000000000000000000000000000",
|
||||||
|
"gas": "0x457",
|
||||||
|
"gasPrice": "0x2b67",
|
||||||
|
"hash": "0x4afee081df5dff7a025964032871f7d4ba4d21baf5f6376a2f4a9f79fc506298",
|
||||||
|
"input": "0x111111",
|
||||||
|
"nonce": "0xb",
|
||||||
|
"to": "0x0d3ab14bbad3d99f4203bd7a11acb94882050e7e",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"value": "0x6f",
|
||||||
|
"type": "0x0",
|
||||||
|
"chainId": "0x7fffffffffffffee",
|
||||||
|
"v": "0x0",
|
||||||
|
"r": "0x0",
|
||||||
|
"s": "0x0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transactionsRoot": "0x98d9f6dd0aa479c0fb448f2627e9f1964aca699fccab8f6e95861547a4699e37",
|
||||||
|
"uncles": [],
|
||||||
|
"withdrawals": [
|
||||||
|
{
|
||||||
|
"index": "0x0",
|
||||||
|
"validatorIndex": "0x1",
|
||||||
|
"address": "0x1234000000000000000000000000000000000000",
|
||||||
|
"amount": "0xa"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"withdrawalsRoot": "0x73d756269cdfc22e7e17a3548e36f42f750ca06d7e3cd98d1b6d0eb5add9dc84"
|
||||||
|
}
|
33
internal/ethapi/testdata/eth_getBlockByNumber-tag-pending.json
vendored
Normal file
33
internal/ethapi/testdata/eth_getBlockByNumber-tag-pending.json
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"difficulty": "0x0",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x0",
|
||||||
|
"gasUsed": "0x0",
|
||||||
|
"hash": null,
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": null,
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": null,
|
||||||
|
"number": "0xb",
|
||||||
|
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"size": "0x256",
|
||||||
|
"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"timestamp": "0x2a",
|
||||||
|
"totalDifficulty": null,
|
||||||
|
"transactions": [
|
||||||
|
"0x4afee081df5dff7a025964032871f7d4ba4d21baf5f6376a2f4a9f79fc506298"
|
||||||
|
],
|
||||||
|
"transactionsRoot": "0x98d9f6dd0aa479c0fb448f2627e9f1964aca699fccab8f6e95861547a4699e37",
|
||||||
|
"uncles": [],
|
||||||
|
"withdrawals": [
|
||||||
|
{
|
||||||
|
"index": "0x0",
|
||||||
|
"validatorIndex": "0x1",
|
||||||
|
"address": "0x1234000000000000000000000000000000000000",
|
||||||
|
"amount": "0xa"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"withdrawalsRoot": "0x73d756269cdfc22e7e17a3548e36f42f750ca06d7e3cd98d1b6d0eb5add9dc84"
|
||||||
|
}
|
1
internal/ethapi/testdata/eth_getBlockReceipts-block-notfound.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getBlockReceipts-block-notfound.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
20
internal/ethapi/testdata/eth_getBlockReceipts-block-with-blob-tx.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getBlockReceipts-block-with-blob-tx.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"blobGasPrice": "0x1",
|
||||||
|
"blobGasUsed": "0x20000",
|
||||||
|
"blockHash": "0x2ffcbc982ea819900e22b96c72bc85c8c64e080b9479d1c68ee49f55564816e7",
|
||||||
|
"blockNumber": "0x6",
|
||||||
|
"contractAddress": null,
|
||||||
|
"cumulativeGasUsed": "0x5208",
|
||||||
|
"effectiveGasPrice": "0x1b09d63b",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"logs": [],
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"status": "0x1",
|
||||||
|
"to": "0x0d3ab14bbad3d99f4203bd7a11acb94882050e7e",
|
||||||
|
"transactionHash": "0xb51ee3d2a89ba5d5623c73133c8d7a6ba9fb41194c17f4302c21b30994a1180f",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x3"
|
||||||
|
}
|
||||||
|
]
|
18
internal/ethapi/testdata/eth_getBlockReceipts-block-with-contract-create-tx.json
vendored
Normal file
18
internal/ethapi/testdata/eth_getBlockReceipts-block-with-contract-create-tx.json
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"blockHash": "0xc7f8a266e8bee4e36fd6374ebb280b16b4ec881e865f9d69e3c8743a71f0197e",
|
||||||
|
"blockNumber": "0x2",
|
||||||
|
"contractAddress": "0xae9bea628c4ce503dcfd7e305cab4e29e7476592",
|
||||||
|
"cumulativeGasUsed": "0xcf50",
|
||||||
|
"effectiveGasPrice": "0x2db16291",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0xcf50",
|
||||||
|
"logs": [],
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"status": "0x1",
|
||||||
|
"to": null,
|
||||||
|
"transactionHash": "0x340e58cda5086495010b571fe25067fecc9954dc4ee3cedece00691fa3f5904a",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x0"
|
||||||
|
}
|
||||||
|
]
|
18
internal/ethapi/testdata/eth_getBlockReceipts-block-with-dynamic-fee-tx.json
vendored
Normal file
18
internal/ethapi/testdata/eth_getBlockReceipts-block-with-dynamic-fee-tx.json
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"blockHash": "0xa85ac2ee14add4cf9e92f1a023b4c9eac355266f9e87e70bdcd557d848c61305",
|
||||||
|
"blockNumber": "0x4",
|
||||||
|
"contractAddress": null,
|
||||||
|
"cumulativeGasUsed": "0x538d",
|
||||||
|
"effectiveGasPrice": "0x2325c42f",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0x538d",
|
||||||
|
"logs": [],
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"status": "0x0",
|
||||||
|
"to": "0x0000000000000000000000000000000000031ec7",
|
||||||
|
"transactionHash": "0xdcde2574628c9d7dff22b9afa19f235959a924ceec65a9df903a517ae91f5c84",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x2"
|
||||||
|
}
|
||||||
|
]
|
34
internal/ethapi/testdata/eth_getBlockReceipts-block-with-legacy-contract-call-tx.json
vendored
Normal file
34
internal/ethapi/testdata/eth_getBlockReceipts-block-with-legacy-contract-call-tx.json
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"blockHash": "0x790f05c0ce7b6add0c7b1e8a777811738c540436e898ae6b09688dacc6581254",
|
||||||
|
"blockNumber": "0x3",
|
||||||
|
"contractAddress": null,
|
||||||
|
"cumulativeGasUsed": "0x5e28",
|
||||||
|
"effectiveGasPrice": "0x281c2585",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0x5e28",
|
||||||
|
"logs": [
|
||||||
|
{
|
||||||
|
"address": "0x0000000000000000000000000000000000031ec7",
|
||||||
|
"topics": [
|
||||||
|
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
|
||||||
|
"0x000000000000000000000000703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"0x0000000000000000000000000000000000000000000000000000000000000003"
|
||||||
|
],
|
||||||
|
"data": "0x000000000000000000000000000000000000000000000000000000000000000d",
|
||||||
|
"blockNumber": "0x3",
|
||||||
|
"transactionHash": "0xeaf3921cbf03ba45bad4e6ab807b196ce3b2a0b5bacc355b6272fa96b11b4287",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"blockHash": "0x790f05c0ce7b6add0c7b1e8a777811738c540436e898ae6b09688dacc6581254",
|
||||||
|
"logIndex": "0x0",
|
||||||
|
"removed": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"logsBloom": "0x00000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000800000000000000008000000000000000000000000000000000020000000080000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000400000000002000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000",
|
||||||
|
"status": "0x1",
|
||||||
|
"to": "0x0000000000000000000000000000000000031ec7",
|
||||||
|
"transactionHash": "0xeaf3921cbf03ba45bad4e6ab807b196ce3b2a0b5bacc355b6272fa96b11b4287",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x0"
|
||||||
|
}
|
||||||
|
]
|
18
internal/ethapi/testdata/eth_getBlockReceipts-block-with-legacy-transfer-tx.json
vendored
Normal file
18
internal/ethapi/testdata/eth_getBlockReceipts-block-with-legacy-transfer-tx.json
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"blockHash": "0x698945ab39ebe6cecff84886b3142630cf03a74b2c19eec8043534463a6ff60b",
|
||||||
|
"blockNumber": "0x1",
|
||||||
|
"contractAddress": null,
|
||||||
|
"cumulativeGasUsed": "0x5208",
|
||||||
|
"effectiveGasPrice": "0x342770c0",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"logs": [],
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"status": "0x1",
|
||||||
|
"to": "0x0d3ab14bbad3d99f4203bd7a11acb94882050e7e",
|
||||||
|
"transactionHash": "0x644a31c354391520d00e95b9affbbb010fc79ac268144ab8e28207f4cf51097e",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x0"
|
||||||
|
}
|
||||||
|
]
|
1
internal/ethapi/testdata/eth_getBlockReceipts-hash-empty.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getBlockReceipts-hash-empty.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
1
internal/ethapi/testdata/eth_getBlockReceipts-hash-notfound.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getBlockReceipts-hash-notfound.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
1
internal/ethapi/testdata/eth_getBlockReceipts-number-0.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getBlockReceipts-number-0.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
[]
|
1
internal/ethapi/testdata/eth_getBlockReceipts-number-1.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getBlockReceipts-number-1.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
[]
|
1
internal/ethapi/testdata/eth_getBlockReceipts-tag-earliest.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getBlockReceipts-tag-earliest.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
[]
|
20
internal/ethapi/testdata/eth_getBlockReceipts-tag-latest.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getBlockReceipts-tag-latest.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"blobGasPrice": "0x1",
|
||||||
|
"blobGasUsed": "0x20000",
|
||||||
|
"blockHash": "0x2ffcbc982ea819900e22b96c72bc85c8c64e080b9479d1c68ee49f55564816e7",
|
||||||
|
"blockNumber": "0x6",
|
||||||
|
"contractAddress": null,
|
||||||
|
"cumulativeGasUsed": "0x5208",
|
||||||
|
"effectiveGasPrice": "0x1b09d63b",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"logs": [],
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"status": "0x1",
|
||||||
|
"to": "0x0d3ab14bbad3d99f4203bd7a11acb94882050e7e",
|
||||||
|
"transactionHash": "0xb51ee3d2a89ba5d5623c73133c8d7a6ba9fb41194c17f4302c21b30994a1180f",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x3"
|
||||||
|
}
|
||||||
|
]
|
20
internal/ethapi/testdata/eth_getHeaderByHash-hash-0.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getHeaderByHash-hash-0.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x3b9aca00",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x0",
|
||||||
|
"hash": "0xbdc7d83b8f876938810462fe8d053263a482e44201e3883d4ae204ff4de7eff5",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x0",
|
||||||
|
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"stateRoot": "0xfe168c5e9584a85927212e5bea5304bb7d0d8a893453b4b2c52176a72f585ae2",
|
||||||
|
"timestamp": "0x0",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
|
||||||
|
}
|
20
internal/ethapi/testdata/eth_getHeaderByHash-hash-1.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getHeaderByHash-hash-1.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x342770c0",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0x0da274b315de8e4d5bf8717218ec43540464ef36378cb896469bb731e1d3f3cb",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x1",
|
||||||
|
"parentHash": "0xbdc7d83b8f876938810462fe8d053263a482e44201e3883d4ae204ff4de7eff5",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"stateRoot": "0x92c5c55a698963f5b06e3aee415630f5c48b0760e537af94917ce9c4f42a2e22",
|
||||||
|
"timestamp": "0xa",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactionsRoot": "0xca0ebcce920d2cdfbf9e1dbe90ed3441a1a576f344bd80e60508da814916f4e7"
|
||||||
|
}
|
1
internal/ethapi/testdata/eth_getHeaderByHash-hash-empty.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getHeaderByHash-hash-empty.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
20
internal/ethapi/testdata/eth_getHeaderByHash-hash-latest-1.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getHeaderByHash-hash-latest-1.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x121a9cca",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0xda97ed946e0d502fb898b0ac881bd44da3c7fee5eaf184431e1ec3d361dad17e",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x9",
|
||||||
|
"parentHash": "0x5abd19c39d9f1c6e52998e135ea14e1fbc5db3fa2a108f4538e238ca5c2e68d7",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"stateRoot": "0xbd4aa2c2873df709151075250a8c01c9a14d2b0e2f715dbdd16e0ef8030c2cf0",
|
||||||
|
"timestamp": "0x5a",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactionsRoot": "0x0767ed8359337dc6a8fdc77fe52db611bed1be87aac73c4556b1bf1dd3d190a5"
|
||||||
|
}
|
20
internal/ethapi/testdata/eth_getHeaderByHash-hash-latest.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getHeaderByHash-hash-latest.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0xfdc7303",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0x97f540a3577c0f645c5dada5da86f38350e8f847e71f21124f917835003e2607",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0xa",
|
||||||
|
"parentHash": "0xda97ed946e0d502fb898b0ac881bd44da3c7fee5eaf184431e1ec3d361dad17e",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"stateRoot": "0xbb62872e4023fa8a8b17b9cc37031f4817d9595779748d01cba408b495707a91",
|
||||||
|
"timestamp": "0x64",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactionsRoot": "0xb0893d21a4a44dc26a962a6e91abae66df87fb61ac9c60e936aee89c76331445"
|
||||||
|
}
|
1
internal/ethapi/testdata/eth_getHeaderByHash-hash-pending.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getHeaderByHash-hash-pending.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
20
internal/ethapi/testdata/eth_getHeaderByNumber-number-0.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getHeaderByNumber-number-0.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x3b9aca00",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x0",
|
||||||
|
"hash": "0xbdc7d83b8f876938810462fe8d053263a482e44201e3883d4ae204ff4de7eff5",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x0",
|
||||||
|
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"stateRoot": "0xfe168c5e9584a85927212e5bea5304bb7d0d8a893453b4b2c52176a72f585ae2",
|
||||||
|
"timestamp": "0x0",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
|
||||||
|
}
|
20
internal/ethapi/testdata/eth_getHeaderByNumber-number-1.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getHeaderByNumber-number-1.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x342770c0",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0x0da274b315de8e4d5bf8717218ec43540464ef36378cb896469bb731e1d3f3cb",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x1",
|
||||||
|
"parentHash": "0xbdc7d83b8f876938810462fe8d053263a482e44201e3883d4ae204ff4de7eff5",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"stateRoot": "0x92c5c55a698963f5b06e3aee415630f5c48b0760e537af94917ce9c4f42a2e22",
|
||||||
|
"timestamp": "0xa",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactionsRoot": "0xca0ebcce920d2cdfbf9e1dbe90ed3441a1a576f344bd80e60508da814916f4e7"
|
||||||
|
}
|
1
internal/ethapi/testdata/eth_getHeaderByNumber-number-latest+1.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getHeaderByNumber-number-latest+1.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
20
internal/ethapi/testdata/eth_getHeaderByNumber-number-latest-1.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getHeaderByNumber-number-latest-1.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0x121a9cca",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0xda97ed946e0d502fb898b0ac881bd44da3c7fee5eaf184431e1ec3d361dad17e",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0x9",
|
||||||
|
"parentHash": "0x5abd19c39d9f1c6e52998e135ea14e1fbc5db3fa2a108f4538e238ca5c2e68d7",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"stateRoot": "0xbd4aa2c2873df709151075250a8c01c9a14d2b0e2f715dbdd16e0ef8030c2cf0",
|
||||||
|
"timestamp": "0x5a",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactionsRoot": "0x0767ed8359337dc6a8fdc77fe52db611bed1be87aac73c4556b1bf1dd3d190a5"
|
||||||
|
}
|
20
internal/ethapi/testdata/eth_getHeaderByNumber-tag-latest.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getHeaderByNumber-tag-latest.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"baseFeePerGas": "0xfdc7303",
|
||||||
|
"difficulty": "0x20000",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x47e7c4",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"hash": "0x97f540a3577c0f645c5dada5da86f38350e8f847e71f21124f917835003e2607",
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": "0x0000000000000000000000000000000000000000",
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": "0x0000000000000000",
|
||||||
|
"number": "0xa",
|
||||||
|
"parentHash": "0xda97ed946e0d502fb898b0ac881bd44da3c7fee5eaf184431e1ec3d361dad17e",
|
||||||
|
"receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"stateRoot": "0xbb62872e4023fa8a8b17b9cc37031f4817d9595779748d01cba408b495707a91",
|
||||||
|
"timestamp": "0x64",
|
||||||
|
"totalDifficulty": "0x1",
|
||||||
|
"transactionsRoot": "0xb0893d21a4a44dc26a962a6e91abae66df87fb61ac9c60e936aee89c76331445"
|
||||||
|
}
|
20
internal/ethapi/testdata/eth_getHeaderByNumber-tag-pending.json
vendored
Normal file
20
internal/ethapi/testdata/eth_getHeaderByNumber-tag-pending.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"difficulty": "0x0",
|
||||||
|
"extraData": "0x",
|
||||||
|
"gasLimit": "0x0",
|
||||||
|
"gasUsed": "0x0",
|
||||||
|
"hash": null,
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"miner": null,
|
||||||
|
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"nonce": null,
|
||||||
|
"number": "0xb",
|
||||||
|
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||||
|
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
|
||||||
|
"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"timestamp": "0x2a",
|
||||||
|
"totalDifficulty": null,
|
||||||
|
"transactionsRoot": "0x98d9f6dd0aa479c0fb448f2627e9f1964aca699fccab8f6e95861547a4699e37",
|
||||||
|
"withdrawalsRoot": "0x73d756269cdfc22e7e17a3548e36f42f750ca06d7e3cd98d1b6d0eb5add9dc84"
|
||||||
|
}
|
18
internal/ethapi/testdata/eth_getTransactionReceipt-blob-tx.json
vendored
Normal file
18
internal/ethapi/testdata/eth_getTransactionReceipt-blob-tx.json
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"blobGasPrice": "0x1",
|
||||||
|
"blobGasUsed": "0x20000",
|
||||||
|
"blockHash": "0x2ffcbc982ea819900e22b96c72bc85c8c64e080b9479d1c68ee49f55564816e7",
|
||||||
|
"blockNumber": "0x6",
|
||||||
|
"contractAddress": null,
|
||||||
|
"cumulativeGasUsed": "0x5208",
|
||||||
|
"effectiveGasPrice": "0x1b09d63b",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"logs": [],
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"status": "0x1",
|
||||||
|
"to": "0x0d3ab14bbad3d99f4203bd7a11acb94882050e7e",
|
||||||
|
"transactionHash": "0xb51ee3d2a89ba5d5623c73133c8d7a6ba9fb41194c17f4302c21b30994a1180f",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x3"
|
||||||
|
}
|
16
internal/ethapi/testdata/eth_getTransactionReceipt-create-contract-tx.json
vendored
Normal file
16
internal/ethapi/testdata/eth_getTransactionReceipt-create-contract-tx.json
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"blockHash": "0xc7f8a266e8bee4e36fd6374ebb280b16b4ec881e865f9d69e3c8743a71f0197e",
|
||||||
|
"blockNumber": "0x2",
|
||||||
|
"contractAddress": "0xae9bea628c4ce503dcfd7e305cab4e29e7476592",
|
||||||
|
"cumulativeGasUsed": "0xcf50",
|
||||||
|
"effectiveGasPrice": "0x2db16291",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0xcf50",
|
||||||
|
"logs": [],
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"status": "0x1",
|
||||||
|
"to": null,
|
||||||
|
"transactionHash": "0x340e58cda5086495010b571fe25067fecc9954dc4ee3cedece00691fa3f5904a",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x0"
|
||||||
|
}
|
16
internal/ethapi/testdata/eth_getTransactionReceipt-create-contract-with-access-list.json
vendored
Normal file
16
internal/ethapi/testdata/eth_getTransactionReceipt-create-contract-with-access-list.json
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"blockHash": "0x0ccd45c62e8af3a4cd7db1045c2bfeffe5c027749506ec94a744c11f69e5c785",
|
||||||
|
"blockNumber": "0x5",
|
||||||
|
"contractAddress": "0xfdaa97661a584d977b4d3abb5370766ff5b86a18",
|
||||||
|
"cumulativeGasUsed": "0xe01c",
|
||||||
|
"effectiveGasPrice": "0x1ecb3fb4",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0xe01c",
|
||||||
|
"logs": [],
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"status": "0x1",
|
||||||
|
"to": null,
|
||||||
|
"transactionHash": "0xb5a1148819cfdfff9bfe70035524fec940eb735d89b76960b97751d01ae2a9f2",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x1"
|
||||||
|
}
|
16
internal/ethapi/testdata/eth_getTransactionReceipt-dynamic-tx-with-logs.json
vendored
Normal file
16
internal/ethapi/testdata/eth_getTransactionReceipt-dynamic-tx-with-logs.json
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"blockHash": "0xa85ac2ee14add4cf9e92f1a023b4c9eac355266f9e87e70bdcd557d848c61305",
|
||||||
|
"blockNumber": "0x4",
|
||||||
|
"contractAddress": null,
|
||||||
|
"cumulativeGasUsed": "0x538d",
|
||||||
|
"effectiveGasPrice": "0x2325c42f",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0x538d",
|
||||||
|
"logs": [],
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"status": "0x0",
|
||||||
|
"to": "0x0000000000000000000000000000000000031ec7",
|
||||||
|
"transactionHash": "0xdcde2574628c9d7dff22b9afa19f235959a924ceec65a9df903a517ae91f5c84",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x2"
|
||||||
|
}
|
16
internal/ethapi/testdata/eth_getTransactionReceipt-normal-transfer-tx.json
vendored
Normal file
16
internal/ethapi/testdata/eth_getTransactionReceipt-normal-transfer-tx.json
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"blockHash": "0x698945ab39ebe6cecff84886b3142630cf03a74b2c19eec8043534463a6ff60b",
|
||||||
|
"blockNumber": "0x1",
|
||||||
|
"contractAddress": null,
|
||||||
|
"cumulativeGasUsed": "0x5208",
|
||||||
|
"effectiveGasPrice": "0x342770c0",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0x5208",
|
||||||
|
"logs": [],
|
||||||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"status": "0x1",
|
||||||
|
"to": "0x0d3ab14bbad3d99f4203bd7a11acb94882050e7e",
|
||||||
|
"transactionHash": "0x644a31c354391520d00e95b9affbbb010fc79ac268144ab8e28207f4cf51097e",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x0"
|
||||||
|
}
|
1
internal/ethapi/testdata/eth_getTransactionReceipt-txhash-empty.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getTransactionReceipt-txhash-empty.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
1
internal/ethapi/testdata/eth_getTransactionReceipt-txhash-notfound.json
vendored
Normal file
1
internal/ethapi/testdata/eth_getTransactionReceipt-txhash-notfound.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
null
|
32
internal/ethapi/testdata/eth_getTransactionReceipt-with-logs.json
vendored
Normal file
32
internal/ethapi/testdata/eth_getTransactionReceipt-with-logs.json
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"blockHash": "0x790f05c0ce7b6add0c7b1e8a777811738c540436e898ae6b09688dacc6581254",
|
||||||
|
"blockNumber": "0x3",
|
||||||
|
"contractAddress": null,
|
||||||
|
"cumulativeGasUsed": "0x5e28",
|
||||||
|
"effectiveGasPrice": "0x281c2585",
|
||||||
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"gasUsed": "0x5e28",
|
||||||
|
"logs": [
|
||||||
|
{
|
||||||
|
"address": "0x0000000000000000000000000000000000031ec7",
|
||||||
|
"topics": [
|
||||||
|
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
|
||||||
|
"0x000000000000000000000000703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
|
"0x0000000000000000000000000000000000000000000000000000000000000003"
|
||||||
|
],
|
||||||
|
"data": "0x000000000000000000000000000000000000000000000000000000000000000d",
|
||||||
|
"blockNumber": "0x3",
|
||||||
|
"transactionHash": "0xeaf3921cbf03ba45bad4e6ab807b196ce3b2a0b5bacc355b6272fa96b11b4287",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"blockHash": "0x790f05c0ce7b6add0c7b1e8a777811738c540436e898ae6b09688dacc6581254",
|
||||||
|
"logIndex": "0x0",
|
||||||
|
"removed": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"logsBloom": "0x00000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000800000000000000008000000000000000000000000000000000020000000080000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000400000000002000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000",
|
||||||
|
"status": "0x1",
|
||||||
|
"to": "0x0000000000000000000000000000000000031ec7",
|
||||||
|
"transactionHash": "0xeaf3921cbf03ba45bad4e6ab807b196ce3b2a0b5bacc355b6272fa96b11b4287",
|
||||||
|
"transactionIndex": "0x0",
|
||||||
|
"type": "0x0"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user