diff --git a/cmd/rpcdaemon/commands/eth_api.go b/cmd/rpcdaemon/commands/eth_api.go index 59ca0026b..6f40f7c56 100644 --- a/cmd/rpcdaemon/commands/eth_api.go +++ b/cmd/rpcdaemon/commands/eth_api.go @@ -57,7 +57,7 @@ type EthAPI interface { ChainId(ctx context.Context) (hexutil.Uint64, error) /* called eth_protocolVersion elsewhere */ BlockNumber(ctx context.Context) (hexutil.Uint64, error) Syncing(ctx context.Context) (interface{}, error) - // GasPrice(_ context.Context) (*hexutil.Big, error) + GasPrice(_ context.Context) (*hexutil.Big, error) // Sending related (see ./eth_call.go) Call(ctx context.Context, args ethapi.CallArgs, blockNrOrHash rpc.BlockNumberOrHash, overrides *map[common.Address]ethapi.Account) (hexutil.Bytes, error) diff --git a/cmd/rpcdaemon/commands/eth_block.go b/cmd/rpcdaemon/commands/eth_block.go index 4d84d7d81..2ed6cd447 100644 --- a/cmd/rpcdaemon/commands/eth_block.go +++ b/cmd/rpcdaemon/commands/eth_block.go @@ -7,7 +7,6 @@ import ( "github.com/ledgerwatch/turbo-geth/common" "github.com/ledgerwatch/turbo-geth/common/hexutil" "github.com/ledgerwatch/turbo-geth/core/rawdb" - "github.com/ledgerwatch/turbo-geth/core/types" "github.com/ledgerwatch/turbo-geth/rpc" "github.com/ledgerwatch/turbo-geth/turbo/adapter/ethapi" ) @@ -73,38 +72,6 @@ func (api *APIImpl) GetBlockByHash(ctx context.Context, hash common.Hash, fullTx return response, err } -// GetHeaderByNumber returns a block's header by number -func (api *APIImpl) GetHeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Header, error) { - tx, err := api.dbReader.Begin(ctx) - if err != nil { - return nil, err - } - defer tx.Rollback() - - header := rawdb.ReadHeaderByNumber(tx, uint64(number.Int64())) - if header == nil { - return nil, fmt.Errorf("block header not found: %d", number.Int64()) - } - - return header, nil -} - -// GetHeaderByHash returns a block's header by hash -func (api *APIImpl) GetHeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error) { - tx, err := api.dbReader.Begin(ctx) - if err != nil { - return nil, err - } - defer tx.Rollback() - - header := rawdb.ReadHeaderByHash(tx, hash) - if header == nil { - return nil, fmt.Errorf("block header not found: %s", hash.String()) - } - - return header, nil -} - // GetBlockTransactionCountByNumber returns the number of transactions in the block func (api *APIImpl) GetBlockTransactionCountByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*hexutil.Uint, error) { tx, err := api.dbReader.Begin(ctx) diff --git a/cmd/rpcdaemon/commands/tg_api.go b/cmd/rpcdaemon/commands/tg_api.go index 82cf85f74..1b2f39c7e 100644 --- a/cmd/rpcdaemon/commands/tg_api.go +++ b/cmd/rpcdaemon/commands/tg_api.go @@ -14,11 +14,16 @@ type TgAPI interface { Forks(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (Forks, error) // Blocks related (see ./tg_blocks.go) - GetHeaderByNumber(_ context.Context, number rpc.BlockNumber) (*types.Header, error) + GetHeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Header, error) GetHeaderByHash(_ context.Context, hash common.Hash) (*types.Header, error) // Receipt related (see ./tg_receipts.go) GetLogsByHash(ctx context.Context, hash common.Hash) ([][]*types.Log, error) + + // Issuance / reward related (see ./tg_issuance.go) + BlockReward(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) + UncleReward(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) + Issuance(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) } // TgImpl is implementation of the TgAPI interface diff --git a/cmd/rpcdaemon/commands/tg_block.go b/cmd/rpcdaemon/commands/tg_block.go index 179f4fa09..f96ee8464 100644 --- a/cmd/rpcdaemon/commands/tg_block.go +++ b/cmd/rpcdaemon/commands/tg_block.go @@ -11,16 +11,16 @@ import ( ) // GetHeaderByNumber returns a block's header by number -func (api *TgImpl) GetHeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Header, error) { +func (api *TgImpl) GetHeaderByNumber(ctx context.Context, blockNumber rpc.BlockNumber) (*types.Header, error) { tx, err := api.db.Begin(ctx, nil, false) if err != nil { return nil, err } defer tx.Rollback() - header := rawdb.ReadHeaderByNumber(tx, uint64(number.Int64())) + header := rawdb.ReadHeaderByNumber(tx, uint64(blockNumber.Int64())) if header == nil { - return nil, fmt.Errorf("block header not found: %d", number.Int64()) + return nil, fmt.Errorf("block header not found: %d", blockNumber.Int64()) } return header, nil diff --git a/cmd/rpcdaemon/commands/trace_api_custom.go b/cmd/rpcdaemon/commands/tg_issuance.go similarity index 76% rename from cmd/rpcdaemon/commands/trace_api_custom.go rename to cmd/rpcdaemon/commands/tg_issuance.go index 6b193962d..d7f0ed314 100644 --- a/cmd/rpcdaemon/commands/trace_api_custom.go +++ b/cmd/rpcdaemon/commands/tg_issuance.go @@ -3,14 +3,16 @@ package commands import ( "context" "fmt" + "github.com/ledgerwatch/turbo-geth/common/hexutil" "github.com/ledgerwatch/turbo-geth/consensus/ethash" "github.com/ledgerwatch/turbo-geth/core/rawdb" + "github.com/ledgerwatch/turbo-geth/core/types" "github.com/ledgerwatch/turbo-geth/rpc" ) // BlockReward returns the block reward for this block -func (api *TraceAPIImpl) BlockReward(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) { +func (api *TgImpl) BlockReward(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) { tx, err := api.dbReader.Begin(ctx) if err != nil { return Issuance{}, err @@ -21,7 +23,7 @@ func (api *TraceAPIImpl) BlockReward(ctx context.Context, blockNr rpc.BlockNumbe } // UncleReward returns the uncle reward for this block -func (api *TraceAPIImpl) UncleReward(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) { +func (api *TgImpl) UncleReward(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) { tx, err := api.dbReader.Begin(ctx) if err != nil { return Issuance{}, err @@ -32,7 +34,7 @@ func (api *TraceAPIImpl) UncleReward(ctx context.Context, blockNr rpc.BlockNumbe } // Issuance returns the issuance for this block -func (api *TraceAPIImpl) Issuance(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) { +func (api *TgImpl) Issuance(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) { tx, err := api.dbReader.Begin(ctx) if err != nil { return Issuance{}, err @@ -42,7 +44,7 @@ func (api *TraceAPIImpl) Issuance(ctx context.Context, blockNr rpc.BlockNumber) return api.rewardCalc(tx, blockNr, "issuance") } -func (api *TraceAPIImpl) rewardCalc(db rawdb.DatabaseReader, blockNr rpc.BlockNumber, which string) (Issuance, error) { +func (api *TgImpl) rewardCalc(db rawdb.DatabaseReader, blockNr rpc.BlockNumber, which string) (Issuance, error) { genesisHash := rawdb.ReadBlockByNumber(db, 0).Hash() chainConfig := rawdb.ReadChainConfig(db, genesisHash) if chainConfig.Ethash == nil { @@ -80,6 +82,14 @@ func (api *TraceAPIImpl) rewardCalc(db rawdb.DatabaseReader, blockNr rpc.BlockNu return Issuance{}, fmt.Errorf("should not happen in rewardCalc") } +func (api *TgImpl) getBlockByRPCNumber(db rawdb.DatabaseReader, blockNr rpc.BlockNumber) (*types.Block, error) { + blockNum, err := getBlockNumber(blockNr, db) + if err != nil { + return nil, err + } + return rawdb.ReadBlockByNumber(db, blockNum), nil +} + // Issuance structure to return information about issuance type Issuance struct { BlockReward string `json:"blockReward,omitempty"` diff --git a/cmd/rpcdaemon/commands/tg_system.go b/cmd/rpcdaemon/commands/tg_system.go index a7d3f7413..4f71aee15 100644 --- a/cmd/rpcdaemon/commands/tg_system.go +++ b/cmd/rpcdaemon/commands/tg_system.go @@ -15,7 +15,7 @@ type Forks struct { Next *uint64 `json:"next,omitempty"` } -// returns forkID hash, sorted list of already passed forks and next fork block +// Forks returns forkID hash, sorted list of already passed forks and next fork block func (api *TgImpl) Forks(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (Forks, error) { blockNumber, _, err := rpchelper.GetBlockNumber(blockNrOrHash, api.dbReader) if err != nil { diff --git a/cmd/rpcdaemon/commands/trace_api_adhoc.go b/cmd/rpcdaemon/commands/trace_adhoc.go similarity index 100% rename from cmd/rpcdaemon/commands/trace_api_adhoc.go rename to cmd/rpcdaemon/commands/trace_adhoc.go diff --git a/cmd/rpcdaemon/commands/trace_api.go b/cmd/rpcdaemon/commands/trace_api.go index 88078a7bf..51a950018 100644 --- a/cmd/rpcdaemon/commands/trace_api.go +++ b/cmd/rpcdaemon/commands/trace_api.go @@ -6,31 +6,24 @@ import ( "github.com/ledgerwatch/turbo-geth/cmd/rpcdaemon/cli" "github.com/ledgerwatch/turbo-geth/common" "github.com/ledgerwatch/turbo-geth/common/hexutil" - "github.com/ledgerwatch/turbo-geth/core/rawdb" - "github.com/ledgerwatch/turbo-geth/core/types" "github.com/ledgerwatch/turbo-geth/ethdb" "github.com/ledgerwatch/turbo-geth/rpc" ) // TraceAPI RPC interface into tracing API type TraceAPI interface { - // Ad-hoc + // Ad-hoc (see ./trace_adhoc.go) ReplayBlockTransactions(ctx context.Context, blockNr rpc.BlockNumber, traceTypes []string) ([]interface{}, error) ReplayTransaction(ctx context.Context, txHash common.Hash, traceTypes []string) ([]interface{}, error) Call(ctx context.Context, call CallParam, blockNr rpc.BlockNumber) ([]interface{}, error) CallMany(ctx context.Context, calls CallParams) ([]interface{}, error) RawTransaction(ctx context.Context, txHash common.Hash, traceTypes []string) ([]interface{}, error) - // Filtering + // Filtering (see ./trace_filtering.go) Transaction(ctx context.Context, txHash common.Hash) (ParityTraces, error) Get(ctx context.Context, txHash common.Hash, txIndicies []hexutil.Uint64) (*ParityTrace, error) Block(ctx context.Context, blockNr rpc.BlockNumber) (ParityTraces, error) Filter(ctx context.Context, req TraceFilterRequest) (ParityTraces, error) - - // Custom (turbo geth exclusive) - BlockReward(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) - UncleReward(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) - Issuance(ctx context.Context, blockNr rpc.BlockNumber) (Issuance, error) } // TraceAPIImpl is implementation of the TraceAPI interface based on remote Db access @@ -50,11 +43,3 @@ func NewTraceAPI(db ethdb.KV, dbReader ethdb.Database, cfg *cli.Flags) *TraceAPI traceType: cfg.TraceType, } } - -func (api *TraceAPIImpl) getBlockByRPCNumber(db rawdb.DatabaseReader, blockNr rpc.BlockNumber) (*types.Block, error) { - blockNum, err := getBlockNumber(blockNr, db) - if err != nil { - return nil, err - } - return rawdb.ReadBlockByNumber(db, blockNum), nil -} diff --git a/cmd/rpcdaemon/commands/trace_api_filtering.go b/cmd/rpcdaemon/commands/trace_filtering.go similarity index 100% rename from cmd/rpcdaemon/commands/trace_api_filtering.go rename to cmd/rpcdaemon/commands/trace_filtering.go diff --git a/cmd/rpcdaemon/testdata/RPC_Testing.json b/cmd/rpcdaemon/testdata/RPC_Testing.json index 612fe9761..325caecc7 100644 --- a/cmd/rpcdaemon/testdata/RPC_Testing.json +++ b/cmd/rpcdaemon/testdata/RPC_Testing.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "5b5634d6-f829-4e6a-a2da-59d89d960def", + "_postman_id": "09309408-0335-4b10-876d-d7b745c0b1f8", "name": "RPC_Testing", "description": "A collection holding all the Ethereum JSON RPC API calls", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" @@ -15,7 +15,7 @@ { "listen": "test", "script": { - "id": "a4f40d49-eb3a-4b19-8ddf-c14b2fa1f2f8", + "id": "bc304427-5d18-4e83-aa5a-b0ae55ce4e0a", "exec": [ "pm.test('Has correct result', function() {", " const jsonData = pm.response.json();", @@ -64,7 +64,7 @@ { "listen": "test", "script": { - "id": "364854d3-595e-4f01-88c7-fd2604c75d10", + "id": "49e7fff5-02f5-45c8-bfb3-111fc1a015e0", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -83,7 +83,7 @@ { "listen": "prerequest", "script": { - "id": "2bfdd128-4cef-4b10-ac5b-cd263cd85c41", + "id": "fb8d4fce-3aa5-4752-ae44-7b9376aa9a17", "exec": [ "" ], @@ -128,7 +128,7 @@ { "listen": "test", "script": { - "id": "089310ef-b153-41d6-808e-f4b826a4eb31", + "id": "6b20d8f3-0e73-4bbc-a327-9f2ab8ee8d97", "exec": [ "expected = {", " \"jsonrpc\": \"2.0\",", @@ -175,7 +175,7 @@ { "listen": "test", "script": { - "id": "a62e1b6f-5e6a-4cd6-9b6d-0622998964b7", + "id": "7572174a-09d7-4f94-9412-8b0f4b87cc0a", "exec": [ "expected = {", " \"jsonrpc\": \"2.0\",", @@ -222,7 +222,7 @@ { "listen": "test", "script": { - "id": "517a72ed-6680-4cb3-934e-37762efde77a", + "id": "0e533d76-e261-4106-a50a-883e11e85495", "exec": [ "expected = {", " \"jsonrpc\": \"2.0\",", @@ -279,7 +279,7 @@ { "listen": "test", "script": { - "id": "27a9a661-837c-4815-9826-0171fef1f338", + "id": "da3c0034-7585-4ffa-b445-584ceb89968b", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -366,7 +366,7 @@ { "listen": "test", "script": { - "id": "a82fa929-58b9-48f3-8562-9fa9aafeb592", + "id": "ab1b0b4a-06f1-48c5-b712-962016fb5d36", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -453,7 +453,7 @@ { "listen": "test", "script": { - "id": "e6aa4a6b-7b7a-404a-8a1a-4238b9ddc138", + "id": "3ba6b20b-43be-4a3a-a9c2-828dc16ee07e", "exec": [ "pm.test('Has correct result', function() {", " const jsonData = pm.response.json();", @@ -496,7 +496,7 @@ { "listen": "test", "script": { - "id": "a96eaa80-be77-49a8-9cac-1226440a8cc2", + "id": "81dacfd6-138f-466d-a3fa-6b3df9efca1a", "exec": [ "pm.test('Has correct result', function() {", " const jsonData = pm.response.json();", @@ -546,7 +546,7 @@ { "listen": "test", "script": { - "id": "11834155-9306-4b57-bced-823d2511aa9d", + "id": "501dfe0d-c9bd-412a-bb49-93f82d2a32be", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -624,7 +624,7 @@ { "listen": "test", "script": { - "id": "7d7b3006-0a4f-40e1-993b-6fdf505cf27b", + "id": "a44831eb-6226-4852-98ad-bb6edaca9fa9", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -700,7 +700,7 @@ { "listen": "test", "script": { - "id": "7dcbb965-b9ee-4d07-bfab-f6d2ec08f714", + "id": "5ce3a644-7970-4108-ac27-b6c01a730af8", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -776,7 +776,7 @@ { "listen": "test", "script": { - "id": "cb1e617f-fd50-436e-9c2e-5931661aa3ce", + "id": "7bfdc1cb-aa60-4850-b0f1-8c1c2998d411", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -889,7 +889,7 @@ { "listen": "test", "script": { - "id": "369dd45d-81b9-4535-8ecf-2d13cb6a0402", + "id": "a32201d7-6052-43d3-b950-f63767acec98", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -970,7 +970,7 @@ { "listen": "test", "script": { - "id": "7ba584b3-39a1-457e-ace3-ccb95a25e72d", + "id": "08c96a4d-6966-432e-a0b1-02a150a85ae4", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -1058,7 +1058,7 @@ { "listen": "test", "script": { - "id": "6f71f34f-47fb-4f72-9966-6c9f7fce4c77", + "id": "2babec43-e6e5-4c6f-9481-bfd5f37d52de", "exec": [ "var isAllTests = pm.globals.get('TEST_ALL') === 'true';", "if (isAllTests) {", @@ -1103,7 +1103,7 @@ { "listen": "test", "script": { - "id": "c66d100c-5efa-4e7a-9f5d-773f0e4f2439", + "id": "89b1fd56-cf16-4d10-8424-952fbbc64e41", "exec": [ "var isAllTests = pm.globals.get('TEST_ALL') === 'true';", "if (isAllTests) {", @@ -1148,7 +1148,7 @@ { "listen": "test", "script": { - "id": "8b5a4737-4fc4-4f8c-8caa-63be4dce3348", + "id": "5a8c474d-0db2-4a4b-aef7-72e244e688fa", "exec": [ "var isAllTests = pm.globals.get('TEST_ALL') === 'true';", "if (isAllTests) {", @@ -1193,7 +1193,7 @@ { "listen": "test", "script": { - "id": "31759590-c019-4b45-b877-26791f744825", + "id": "00065405-5323-4aae-bed5-7bde07a95fbb", "exec": [ "var isAllTests = pm.globals.get('TEST_ALL') === 'true';", "if (isAllTests) {", @@ -1238,7 +1238,7 @@ { "listen": "test", "script": { - "id": "92a73157-508b-4108-aa45-b6ebfa6952bc", + "id": "ac4c38f9-c508-442f-b74a-42384c543798", "exec": [ "var isAllTests = pm.globals.get('TEST_ALL') === 'true';", "if (isAllTests) {", @@ -1283,7 +1283,7 @@ { "listen": "test", "script": { - "id": "853ac6b9-91d0-4487-99f8-cf055f1596b0", + "id": "04de0925-76a1-4f83-b68f-4a0f8e6986e7", "exec": [ "var isAllTests = pm.globals.get('TEST_ALL') === 'true';", "if (isAllTests) {", @@ -1335,7 +1335,7 @@ { "listen": "test", "script": { - "id": "72b08a82-7a0b-45ac-bf52-eb56f13c1559", + "id": "0b05099d-806e-4dcb-92d3-4076c795e374", "exec": [ "var expectedNethermind = {", " \"jsonrpc\": \"2.0\",", @@ -1404,7 +1404,7 @@ { "listen": "test", "script": { - "id": "d6aa6d5e-4d58-49c4-8ebb-473a9c829d35", + "id": "e3c7fe50-78f5-4f2e-bede-35489de5da41", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -1452,7 +1452,7 @@ { "listen": "test", "script": { - "id": "f5bd6eaf-a42a-43c8-8560-fdb046434872", + "id": "21337e1c-797c-4a20-b533-3fb8d8a0cd63", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -1500,7 +1500,7 @@ { "listen": "test", "script": { - "id": "b25d4da9-58e8-4758-a0b8-be623b2c019e", + "id": "2b0063b2-6150-4a90-abaa-dcb874febbd5", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -1548,7 +1548,7 @@ { "listen": "test", "script": { - "id": "e1440e67-3d42-4eda-b75e-34df9b254ecc", + "id": "15e6708c-f286-4817-a87a-d86b3d8e14f7", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -1603,7 +1603,7 @@ { "listen": "test", "script": { - "id": "1dec9ec7-c96f-416e-a866-75d554d21f41", + "id": "eb99e3f1-d51c-49d9-bb6f-60ee36a36d48", "exec": [ "pm.test('Has correct result', function() {", " var isParity = pm.environment.get('HOST') == \"{{PARITY}}\";", @@ -1652,7 +1652,7 @@ { "listen": "test", "script": { - "id": "2f14d8fc-1c05-469e-b7dc-0d3d1e61b8f0", + "id": "89038cb5-dea8-485a-9eba-941b0c9bff02", "exec": [ "// We can't really test this because it changes all the time", "// We can't really test this because it changes all the time", @@ -1695,7 +1695,7 @@ { "listen": "test", "script": { - "id": "7dbdd2c2-690d-4c16-8a75-ac8d38ecfcf3", + "id": "ec1436da-79e1-46ef-b4df-7f9d2ae6ce6b", "exec": [ "// There's nothing really to test here. The node is always syncing", "pm.test('Endpoint not tested', function() {", @@ -1737,7 +1737,7 @@ { "listen": "test", "script": { - "id": "196fde3d-54ef-49a5-8d9a-f412560e8bad", + "id": "1552b53f-411c-48f8-930b-43baa430d0b4", "exec": [ "// This can't really be tested as it changes all the time", "pm.test('Cannot test because the value changes each time', function() {", @@ -1786,7 +1786,7 @@ { "listen": "test", "script": { - "id": "1d570e1e-9311-4998-9a9c-b6ad48d43b13", + "id": "72906d88-dbda-44a9-a6d2-4b4a55ea44da", "exec": [ "var isAllTests = pm.globals.get('TEST_ALL') === 'true';", "if (isAllTests) {", @@ -1831,7 +1831,7 @@ { "listen": "test", "script": { - "id": "a180c9f1-16ed-44ad-af4a-be852ffbb131", + "id": "ba0664a9-c01d-4eb5-ae24-71f72d024763", "exec": [ "var isAllTests = pm.globals.get('TEST_ALL') === 'true';", "if (isAllTests) {", @@ -1876,7 +1876,7 @@ { "listen": "test", "script": { - "id": "43f501a0-5b5d-45e5-a1c6-1f76ba5712a8", + "id": "868f0421-36af-45ac-864c-b00ccc0514e8", "exec": [ "var isAllTests = pm.globals.get('TEST_ALL') === 'true';", "if (isAllTests) {", @@ -1921,7 +1921,7 @@ { "listen": "test", "script": { - "id": "61b7d5bd-f970-40a0-9709-88abd43bfc73", + "id": "a9315d4a-4d21-4c9a-ae62-c4b2b5da30b4", "exec": [ "var isAllTests = pm.globals.get('TEST_ALL') === 'true';", "if (isAllTests) {", @@ -1965,7 +1965,7 @@ { "listen": "prerequest", "script": { - "id": "d329be3c-f2a4-494b-891b-34b0d30d08ac", + "id": "9b83d621-c369-4800-9d09-163c12a1f1f0", "type": "text/javascript", "exec": [ "" @@ -1975,7 +1975,7 @@ { "listen": "test", "script": { - "id": "b6b02c54-6c76-4ad7-8429-6f89ef2535ed", + "id": "bf874b18-dea7-4635-9641-3de32e946d6b", "type": "text/javascript", "exec": [ "" @@ -1995,7 +1995,7 @@ { "listen": "test", "script": { - "id": "f9122e1e-a263-4fb9-8215-f7133f824ddb", + "id": "08934775-5708-4610-a3b7-6d3a75325219", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2070,7 +2070,7 @@ { "listen": "test", "script": { - "id": "34dbb320-b530-4028-9d5e-94844d45f542", + "id": "ae8f389e-4c6f-42ae-b628-ccb75a6c33fc", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2141,7 +2141,7 @@ { "listen": "test", "script": { - "id": "9c8b4330-fea1-4401-aac7-09b2df5f0b79", + "id": "83142344-cb6f-4510-b86e-6c0d370244c3", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2212,7 +2212,7 @@ { "listen": "test", "script": { - "id": "edc7edac-29ff-4405-bf5d-56f8928c5ad8", + "id": "dcb856dd-2aff-4951-a88d-3b2c07ee2861", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2289,7 +2289,7 @@ { "listen": "test", "script": { - "id": "40ca211e-934b-4f7f-9322-94ed05f86927", + "id": "f4c634bc-f53e-4034-9906-1d07b3845789", "exec": [ "var allTests = false; //pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2363,7 +2363,7 @@ { "listen": "test", "script": { - "id": "bb9d999c-a2b2-4cd0-b999-b7f94eb3be58", + "id": "4ec2f784-ba38-45a1-8303-77f742ee358e", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2440,7 +2440,900 @@ }, { "name": "trace", - "item": [], + "item": [ + { + "name": "getBlockByHash Copy", + "event": [ + { + "listen": "test", + "script": { + "id": "238dcc82-8f12-4b64-a641-4f95713912bd", + "exec": [ + "var expected = {", + " \"jsonrpc\": \"2.0\",", + " \"id\": 1,", + " \"result\": {", + " \"difficulty\": \"0xb5708d578a6\",", + " \"extraData\": \"0xd783010400844765746887676f312e352e31856c696e7578\",", + " \"gasLimit\": \"0x2fefd8\",", + " \"gasUsed\": \"0x14820\",", + " \"hash\": \"0x0b4c6fb75ded4b90218cf0346b0885e442878f104e1b60bf75d5b6860eeacd53\",", + " \"logsBloom\": \"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",", + " \"miner\": \"0x0c729be7c39543c3d549282a40395299d987cec2\",", + " \"mixHash\": \"0x1530cda332d86d5d7462e3a0eb585e22c88348dd796d29e6ef18196a78cdce07\",", + " \"nonce\": \"0x938e5630b060b7d3\",", + " \"number\": \"0xf4629\",", + " \"parentHash\": \"0x96810a6076e621e311a232468bfd3dcfac08f4803b255af0f00300f47981c10f\",", + " \"receiptsRoot\": \"0x075608bec75d988c52ea6750f4c2204fd60082eb1df32cf8f4732e8a591eef62\",", + " \"sha3Uncles\": \"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347\",", + " \"size\": \"0x3e1\",", + " \"stateRoot\": \"0xb3f9408d80048b6f206951c4e387f8da37fb8510eccc18527865fa746c47bbc5\",", + " \"timestamp\": \"0x56bff9bb\",", + " \"totalDifficulty\": \"0x6332227c16fd7c67\",", + " \"transactions\": [", + " \"0x730724cb08a6eb17bf6b3296359d261570d343ea7944a17a9d7287d77900db08\",", + " \"0xef2ea39c20ba09553b2f3cf02380406ac766039ca56612937eed5e7f3503fb3a\",", + " \"0x5352c80aa2073e21ce6c4aa5488c38455f3519955ece7dca5af3e326797bcc63\",", + " \"0x060e4cf9fa8d34a8b423b5b3691b2541255ff7974ff16699e104edcfb63bd521\"", + " ],", + " \"transactionsRoot\": \"0xb779480508401ddd57f1f1e83a54715dcafc6ccec4e4d842c1b68cb418e6560d\",", + " \"uncles\": []", + " }", + "}", + "", + "pm.test('Has correct result', function() {", + " const jsonData = pm.response.json();", + " var keys = Object.keys(jsonData.result);", + " keys.map(function (k) {", + " var value = jsonData.result[k] ? jsonData.result[k] : null;", + " var expect = expected.result[k] ? expected.result[k] : null;", + " if (expect && typeof expect === 'object') {", + " jsonData.result[k].map(function (value, index) {", + " var expect = expected.result[k][index];", + " pm.expect(value).to.be.equal(expect)", + " })", + " } else {", + " pm.expect(value).to.be.equal(expect)", + " }", + " });", + "})", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"eth_getBlockByHash\",\n\t\"params\":[\n\t\t\"0x0b4c6fb75ded4b90218cf0346b0885e442878f104e1b60bf75d5b6860eeacd53\", \n\t\tfalse\n\t],\n\t\"id\":1\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "{{HOST}}", + "host": [ + "{{HOST}}" + ] + }, + "description": "Returns information about a block by hash.\r\n\r\n**Parameters**\r\n\r\n`DATA`, 32 Bytes - Hash of a block.\r\n\r\n`Boolean` - If true it returns the full transaction objects, if false only the hashes of the transactions.\r\n\r\n```\r\nparams: [\r\n '0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331',\r\n true\r\n]\r\n```\r\n\r\n**Returns**\r\n\r\n`Object` - A block object, or null when no block was found:\r\n\r\n`number`: `QUANTITY` - the block number. null when its pending block.\r\n\r\n`hash`: `DATA`, 32 Bytes - hash of the block. `null` when its pending block.\r\n\r\n`parentHash`: `DATA`, 32 Bytes - hash of the parent block.\r\n\r\n`nonce`: `DATA`, 8 Bytes - hash of the generated proof-of-work. `null` when its pending block.\r\n\r\n`sha3Uncles`: `DATA`, 32 Bytes - SHA3 of the uncles data in the block.\r\n\r\n`logsBloom`: `DATA`, 256 Bytes - the bloom filter for the logs of the block. `null` when its pending block.\r\n\r\n`transactionsRoot`: `DATA`, 32 Bytes - the root of the transaction trie of the block.\r\n\r\n`stateRoot`: `DATA`, 32 Bytes - the root of the final state trie of the block.\r\n\r\n`receiptsRoot`: `DATA`, 32 Bytes - the root of the receipts trie of the block.\r\n\r\n`miner`: `DATA`, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.\r\n\r\n`difficulty`: `QUANTITY` - integer of the difficulty for this block.\r\n\r\n`totalDifficulty`: `QUANTITY` - integer of the total difficulty of the chain until this block.\r\n\r\n`extraData`: `DATA` - the \"extra data\" field of this block.\r\n\r\n`size`: `QUANTITY` - integer the size of this block in bytes.\r\n\r\n`gasLimit`: `QUANTITY` - the maximum gas allowed in this block.\r\n\r\n`gasUsed`: `QUANTITY` - the total used gas by all transactions in this block.\r\n\r\n`timestamp`: `QUANTITY` - the unix timestamp for when the block was collated.\r\n\r\n`transactions`: `Array` - Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.\r\n\r\n`uncles`: `Array` - Array of uncle hashes." + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "tg", + "item": [ + { + "name": "tg_forks", + "event": [ + { + "listen": "test", + "script": { + "id": "4d7d420a-0cd7-44a8-8d58-a0a7926f6455", + "exec": [ + "var expected = {", + " \"jsonrpc\": \"2.0\",", + " \"id\": 1,", + " \"result\": {", + " \"genesis\": \"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3\",", + " \"passed\": [", + " 1150000,", + " 1920000,", + " 2463000,", + " 2675000,", + " 4370000,", + " 7280000,", + " 9069000,", + " 9200000", + " ]", + " }", + "}", + "", + "pm.test('Has correct result', function() {", + " pm.expect(pm.response.json()).to.be.deep.equal(expected);", + "})", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"tg_forks\",\n\t\"params\":[\"0xa7d8c0\"],\n\t\"id\":1\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "{{HOST}}", + "host": [ + "{{HOST}}" + ] + }, + "description": "Returns forkID hash, sorted list of already passed forks and next fork block\r\n\r\n**Parameters**\r\n\r\n`QUANTITY|TAG` - integer of a block number, or the string `\"earliest\"`, `\"latest\"` or `\"pending\"`, as in the default block parameter, or \r\n\r\n`DATA` - 32 byte block hash \r\n\r\n**Returns**\r\n\r\nTODO" + }, + "response": [] + }, + { + "name": "tg_getHeaderByNumber", + "event": [ + { + "listen": "test", + "script": { + "id": "9b319387-bbe2-4846-a9b6-1c909e1f5ccc", + "exec": [ + "var expected = {", + " \"jsonrpc\": \"2.0\",", + " \"id\": 1,", + " \"result\": {", + " \"parentHash\": \"0xb495a1d7e6663152ae92708da4843337b958146015a2802f4193a410044698c9\",", + " \"sha3Uncles\": \"0x6b17b938c6e4ef18b26ad81b9ca3515f27fd9c4e82aac56a1fd8eab288785e41\",", + " \"miner\": \"0x5088d623ba0fcf0131e0897a91734a4d83596aa0\",", + " \"stateRoot\": \"0x76ab0b899e8387436ff2658e2988f83cbf1af1590b9fe9feca3714f8d1824940\",", + " \"transactionsRoot\": \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",", + " \"receiptsRoot\": \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",", + " \"logsBloom\": \"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",", + " \"difficulty\": \"0x3fe802ffe\",", + " \"number\": \"0x3\",", + " \"gasLimit\": \"0x1388\",", + " \"gasUsed\": \"0x0\",", + " \"timestamp\": \"0x55ba4260\",", + " \"extraData\": \"0x476574682f76312e302e302d66633739643332642f6c696e75782f676f312e34\",", + " \"mixHash\": \"0x65e12eec23fe6555e6bcdb47aa25269ae106e5f16b54e1e92dcee25e1c8ad037\",", + " \"nonce\": \"0x2e9344e0cbde83ce\",", + " \"hash\": \"0x3d6122660cc824376f11ee842f83addc3525e2dd6756b9bcf0affa6aa88cf741\"", + " }", + "}", + "", + "pm.test('Has correct result', function() {", + " pm.expect(pm.response.json()).to.be.deep.equal(expected);", + "})", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"tg_getHeaderByNumber\",\n\t\"params\":[\n\t\t\"0x3\"\n\t],\n\t\"id\":1\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "{{HOST}}", + "host": [ + "{{HOST}}" + ] + }, + "description": "Returns a block's header by number\r\n\r\n**Parameters**\r\n\r\n`QUANTITY|TAG` - integer of a block number, or the string `\"earliest\"`, `\"latest\"` or `\"pending\"`, as in the default block parameter, or \r\n\r\n```\r\nTODO\r\n```\r\n\r\n**Returns**\r\n\r\nTODO" + }, + "response": [] + }, + { + "name": "tg_getHeaderByHash", + "event": [ + { + "listen": "test", + "script": { + "id": "ff81e0d6-6936-45a0-aabb-569146515e35", + "exec": [ + "var expected = {", + " \"jsonrpc\": \"2.0\",", + " \"id\": 1,", + " \"result\": {", + " \"parentHash\": \"0xb495a1d7e6663152ae92708da4843337b958146015a2802f4193a410044698c9\",", + " \"sha3Uncles\": \"0x6b17b938c6e4ef18b26ad81b9ca3515f27fd9c4e82aac56a1fd8eab288785e41\",", + " \"miner\": \"0x5088d623ba0fcf0131e0897a91734a4d83596aa0\",", + " \"stateRoot\": \"0x76ab0b899e8387436ff2658e2988f83cbf1af1590b9fe9feca3714f8d1824940\",", + " \"transactionsRoot\": \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",", + " \"receiptsRoot\": \"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",", + " \"logsBloom\": \"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",", + " \"difficulty\": \"0x3fe802ffe\",", + " \"number\": \"0x3\",", + " \"gasLimit\": \"0x1388\",", + " \"gasUsed\": \"0x0\",", + " \"timestamp\": \"0x55ba4260\",", + " \"extraData\": \"0x476574682f76312e302e302d66633739643332642f6c696e75782f676f312e34\",", + " \"mixHash\": \"0x65e12eec23fe6555e6bcdb47aa25269ae106e5f16b54e1e92dcee25e1c8ad037\",", + " \"nonce\": \"0x2e9344e0cbde83ce\",", + " \"hash\": \"0x3d6122660cc824376f11ee842f83addc3525e2dd6756b9bcf0affa6aa88cf741\"", + " }", + "}", + "", + "pm.test('Has correct result', function() {", + " pm.expect(pm.response.json()).to.be.deep.equal(expected);", + "})", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"tg_getHeaderByHash\",\n\t\"params\":[\n\t\t\"0x3d6122660cc824376f11ee842f83addc3525e2dd6756b9bcf0affa6aa88cf741\"\n\t],\n\t\"id\":1\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "{{HOST}}", + "host": [ + "{{HOST}}" + ] + }, + "description": "Returns a block's header by number\r\n\r\n**Parameters**\r\n\r\n`DATA`, 32 Bytes - Hash of a block.\r\n\r\n```\r\nparams: [\r\n '0x3d6122660cc824376f11ee842f83addc3525e2dd6756b9bcf0affa6aa88cf741'\r\n]\r\n```\r\n\r\n**Returns**\r\n\r\nTODO" + }, + "response": [] + }, + { + "name": "tg_getLogsByHash", + "event": [ + { + "listen": "test", + "script": { + "id": "a8bf6ff9-7b3b-41f9-9020-872b1b844350", + "exec": [ + "var expected = {", + " \"jsonrpc\": \"2.0\",", + " \"id\": 1,", + " \"result\": [", + " [", + " {", + " \"address\": \"0x607f4c5bb672230e8672085532f7e901544a7375\",", + " \"topics\": [", + " \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",", + " \"0x00000000000000000000000061e0155305f4a9976b5ee63fc08c73c1716d792f\",", + " \"0x0000000000000000000000002624edafce546781883c26fc9c461d4c8e782ef9\"", + " ],", + " \"data\": \"0x000000000000000000000000000000000000000000000000000000174876e800\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x3cb6ba87d0ba0e3b7c6955dc212e29683fe1a9ddcca099df24a0cf77b7e804b7\",", + " \"transactionIndex\": \"0x5\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x0\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x607f4c5bb672230e8672085532f7e901544a7375\",", + " \"topics\": [", + " \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",", + " \"0x000000000000000000000000636e7b8d775d059dc6de9ff318d7536224287a17\",", + " \"0x0000000000000000000000002624edafce546781883c26fc9c461d4c8e782ef9\"", + " ],", + " \"data\": \"0x0000000000000000000000000000000000000000000000000000005d21dba000\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xa410e17c32e9141d7ef9b0b91b549670027d291cb210030bcffe8ba637437b47\",", + " \"transactionIndex\": \"0x6\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x1\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x607f4c5bb672230e8672085532f7e901544a7375\",", + " \"topics\": [", + " \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",", + " \"0x00000000000000000000000074d4f1bede6bb5fcafb83133cd77b2fed05ef50a\",", + " \"0x0000000000000000000000002624edafce546781883c26fc9c461d4c8e782ef9\"", + " ],", + " \"data\": \"0x0000000000000000000000000000000000000000000000000000006b1a22f800\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x790964772aaba7508c10a49fb3057f5783e55e3dd606426b796f176b5ace3c01\",", + " \"transactionIndex\": \"0x7\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x2\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0xedbaf3c5100302dcdda53269322f3730b1f0416d\",", + " \"topics\": [", + " \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",", + " \"0x0000000000000000000000002f17a36cd39151b27445086e8baaec2bf5b1ff9a\",", + " \"0x00000000000000000000000057838d8ec2bd0e85f4bb21c836d71a440fc9927d\"", + " ],", + " \"data\": \"0x000000000000000000000000000000000000000000000000000000012a05e648\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xa7cc180363486b42c41fb315587daf22d7f25ffb051f23cf551c4168b0299bfd\",", + " \"transactionIndex\": \"0x8\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x3\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x209c4784ab1e8183cf58ca33cb740efbf3fc18ef\",", + " \"topics\": [", + " \"0x23919512b2162ddc59b67a65e3b03c419d4105366f7d4a632f5d3c3bee9b1cff\"", + " ],", + " \"data\": \"0x00000000000000000000000032be343b94f860124dc4fee278fdcbd38c102d88\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xecf009c9e3f1e6c87831b62f4e9a63d31967c790ceeb20facf8759169914f784\",", + " \"transactionIndex\": \"0x15\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x4\",", + " \"removed\": false", + " },", + " {", + " \"address\": \"0xcabb53488b46136b3a2c61acf26aea409b2612b5\",", + " \"topics\": [", + " \"0x23919512b2162ddc59b67a65e3b03c419d4105366f7d4a632f5d3c3bee9b1cff\"", + " ],", + " \"data\": \"0x000000000000000000000000209c4784ab1e8183cf58ca33cb740efbf3fc18ef\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xecf009c9e3f1e6c87831b62f4e9a63d31967c790ceeb20facf8759169914f784\",", + " \"transactionIndex\": \"0x15\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x5\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0xf0f8b0b8dbb1124261fc8d778e2287e3fd2cf4f5\",", + " \"topics\": [", + " \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",", + " \"0x0000000000000000000000000f3a9ca4ed4c75379d4923cb8fc5af3ca3e86ef1\",", + " \"0x0000000000000000000000009ebb6fcd4dca399c3299f0403d72e432092502f2\"", + " ],", + " \"data\": \"0x0000000000000000000000000000000000000000000000000000000007f28152\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xac19c8308f194a3e527558f7c6dccb3fe9cc1cd4dc9260f56e29255af377ce97\",", + " \"transactionIndex\": \"0x19\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x6\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x20a741c37d095f82635017fb82f63d900c2842a4\",", + " \"topics\": [", + " \"0x92ca3a80853e6663fa31fa10b99225f18d4902939b4c53a9caae9043f6efd004\"", + " ],", + " \"data\": \"0x000000000000000000000000f1ab9bd21ec62fd90c2235422a0c08fa7275dde70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f4e2d546b849dd5c14a52ce4b48f3535ddb3fe7000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x0e6cc40030519f5df702ab4d48a8d2816054b08e01e97ca8e1f0b05a2dc48120\",", + " \"transactionIndex\": \"0x1b\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x7\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x314159265dd8dbb310642f98f50c066173c1259b\",", + " \"topics\": [", + " \"0xce0457fe73731f824cc272376169235128c118b49d344817417c6d108d155e82\",", + " \"0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae\",", + " \"0x78f42a0ec1045b9d9ae19b4f98b46be3c6d734f96b0c68a50b5cb4a6a47b4efb\"", + " ],", + " \"data\": \"0x0000000000000000000000009285742ad8a9266d770035ea70d75f11824b0786\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x9ab15aa0a6ebaeb06e81a743fcad5ec9473b7f0f94a58ee4ff7bfa2a267c621f\",", + " \"transactionIndex\": \"0x1e\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x8\",", + " \"removed\": false", + " },", + " {", + " \"address\": \"0x6090a6e47849629b7245dfa1ca21d94cd15878ef\",", + " \"topics\": [", + " \"0x0f0c27adfd84b60b6f456b0e87cdccb1e5fb9603991588d87fa99f5b6b61e670\",", + " \"0x78f42a0ec1045b9d9ae19b4f98b46be3c6d734f96b0c68a50b5cb4a6a47b4efb\",", + " \"0x0000000000000000000000009285742ad8a9266d770035ea70d75f11824b0786\"", + " ],", + " \"data\": \"0x000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000005963abbf\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x9ab15aa0a6ebaeb06e81a743fcad5ec9473b7f0f94a58ee4ff7bfa2a267c621f\",", + " \"transactionIndex\": \"0x1e\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x9\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x314159265dd8dbb310642f98f50c066173c1259b\",", + " \"topics\": [", + " \"0xce0457fe73731f824cc272376169235128c118b49d344817417c6d108d155e82\",", + " \"0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae\",", + " \"0x78f42a0ec1045b9d9ae19b4f98b46be3c6d734f96b0c68a50b5cb4a6a47b4efb\"", + " ],", + " \"data\": \"0x0000000000000000000000009285742ad8a9266d770035ea70d75f11824b0786\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x92deba352bfd42fb0bed316a9716242bcde6d7ace7a69bca684f40ebf87df773\",", + " \"transactionIndex\": \"0x1f\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0xa\",", + " \"removed\": false", + " },", + " {", + " \"address\": \"0x6090a6e47849629b7245dfa1ca21d94cd15878ef\",", + " \"topics\": [", + " \"0x0f0c27adfd84b60b6f456b0e87cdccb1e5fb9603991588d87fa99f5b6b61e670\",", + " \"0x78f42a0ec1045b9d9ae19b4f98b46be3c6d734f96b0c68a50b5cb4a6a47b4efb\",", + " \"0x0000000000000000000000009285742ad8a9266d770035ea70d75f11824b0786\"", + " ],", + " \"data\": \"0x000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000005963abbf\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x92deba352bfd42fb0bed316a9716242bcde6d7ace7a69bca684f40ebf87df773\",", + " \"transactionIndex\": \"0x1f\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0xb\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x314159265dd8dbb310642f98f50c066173c1259b\",", + " \"topics\": [", + " \"0xce0457fe73731f824cc272376169235128c118b49d344817417c6d108d155e82\",", + " \"0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae\",", + " \"0x538ac7078b3b12c3540d62cd5eef0e7c6e122235ed9b2e351bcad69962781bb1\"", + " ],", + " \"data\": \"0x000000000000000000000000dc784458e2516a9d0531509f784dcf21983a60d7\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xc408eeff5b3d20c9a2241c3c5abb83fb3b7c37bc5c9f6476a84470a8e6dce8a3\",", + " \"transactionIndex\": \"0x24\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0xc\",", + " \"removed\": false", + " },", + " {", + " \"address\": \"0x6090a6e47849629b7245dfa1ca21d94cd15878ef\",", + " \"topics\": [", + " \"0x0f0c27adfd84b60b6f456b0e87cdccb1e5fb9603991588d87fa99f5b6b61e670\",", + " \"0x538ac7078b3b12c3540d62cd5eef0e7c6e122235ed9b2e351bcad69962781bb1\",", + " \"0x000000000000000000000000dc784458e2516a9d0531509f784dcf21983a60d7\"", + " ],", + " \"data\": \"0x000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000005962c367\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xc408eeff5b3d20c9a2241c3c5abb83fb3b7c37bc5c9f6476a84470a8e6dce8a3\",", + " \"transactionIndex\": \"0x24\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0xd\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x314159265dd8dbb310642f98f50c066173c1259b\",", + " \"topics\": [", + " \"0xce0457fe73731f824cc272376169235128c118b49d344817417c6d108d155e82\",", + " \"0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae\",", + " \"0xb5fbe5ec1f662517a5085d631a80b0c58dfc8d9ba903bedfcbdbb1780cc1d169\"", + " ],", + " \"data\": \"0x000000000000000000000000dc784458e2516a9d0531509f784dcf21983a60d7\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xb94c45158937bd13b6ec20305e9f90a784ae8c28c5d200e5a7e3c922906e03a2\",", + " \"transactionIndex\": \"0x25\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0xe\",", + " \"removed\": false", + " },", + " {", + " \"address\": \"0x6090a6e47849629b7245dfa1ca21d94cd15878ef\",", + " \"topics\": [", + " \"0x0f0c27adfd84b60b6f456b0e87cdccb1e5fb9603991588d87fa99f5b6b61e670\",", + " \"0xb5fbe5ec1f662517a5085d631a80b0c58dfc8d9ba903bedfcbdbb1780cc1d169\",", + " \"0x000000000000000000000000dc784458e2516a9d0531509f784dcf21983a60d7\"", + " ],", + " \"data\": \"0x000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000005962c727\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xb94c45158937bd13b6ec20305e9f90a784ae8c28c5d200e5a7e3c922906e03a2\",", + " \"transactionIndex\": \"0x25\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0xf\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x60bf91ac87fee5a78c28f7b67701fbcfa79c18ec\",", + " \"topics\": [", + " \"0x940c4b3549ef0aaff95807dc27f62d88ca15532d1bf535d7d63800f40395d16c\",", + " \"0x000000000000000000000000185b628dd733b8a665362042ee821516996ed4ee\",", + " \"0x0000000000000000000000002bb1296bf26ab726a8f74a41e655ca262131e999\",", + " \"0x4343000000000000000000000000000000000000000000000000000000000000\"", + " ],", + " \"data\": \"0x0000000000000000000000000000000000000000000000000000000000f646e0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x2af140c51fd2df8f92727f98b9dfd7035f5267500162106d9b8c46bc1969113e\",", + " \"transactionIndex\": \"0x29\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x10\",", + " \"removed\": false", + " },", + " {", + " \"address\": \"0xe4c94d45f7aef7018a5d66f44af780ec6023378e\",", + " \"topics\": [", + " \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",", + " \"0x000000000000000000000000185b628dd733b8a665362042ee821516996ed4ee\",", + " \"0x0000000000000000000000002bb1296bf26ab726a8f74a41e655ca262131e999\"", + " ],", + " \"data\": \"0x0000000000000000000000000000000000000000000000000000000000f646e0\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x2af140c51fd2df8f92727f98b9dfd7035f5267500162106d9b8c46bc1969113e\",", + " \"transactionIndex\": \"0x29\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x11\",", + " \"removed\": false", + " },", + " {", + " \"address\": \"0x4b9e0d224dabcc96191cace2d367a8d8b75c9c81\",", + " \"topics\": [", + " \"0xae7443ddaf98d964198bed69ffecbbdeea67363d04c21a72f94bcb1a10fae229\",", + " \"0x000000000000000000000000e4c94d45f7aef7018a5d66f44af780ec6023378e\",", + " \"0x000000000000000000000000185b628dd733b8a665362042ee821516996ed4ee\",", + " \"0x6265656f6e652d70726f64000000000000000000000000000000000000000000\"", + " ],", + " \"data\": \"0x0000000000000000000000000000000000000000000000000008360f7f30d00000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x2af140c51fd2df8f92727f98b9dfd7035f5267500162106d9b8c46bc1969113e\",", + " \"transactionIndex\": \"0x29\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x12\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x60bf91ac87fee5a78c28f7b67701fbcfa79c18ec\",", + " \"topics\": [", + " \"0x940c4b3549ef0aaff95807dc27f62d88ca15532d1bf535d7d63800f40395d16c\",", + " \"0x000000000000000000000000313cd4f7e1afe625fd5cf4d0c3bc5df182a28c3d\",", + " \"0x000000000000000000000000c3b535529cfc1761f73e02837c46c08716ac6687\",", + " \"0x504c425400000000000000000000000000000000000000000000000000000000\"", + " ],", + " \"data\": \"0x00000000000000000000000000000000000000000000000000000000014e4250000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xb7b212ac06505f6b2b3d5f9cbb4a4a52bc301ff20979f6f6d6a0c66133e3ce7e\",", + " \"transactionIndex\": \"0x2b\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x13\",", + " \"removed\": false", + " },", + " {", + " \"address\": \"0x0affa06e7fbe5bc9a764c979aa66e8256a631f02\",", + " \"topics\": [", + " \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",", + " \"0x000000000000000000000000313cd4f7e1afe625fd5cf4d0c3bc5df182a28c3d\",", + " \"0x000000000000000000000000c3b535529cfc1761f73e02837c46c08716ac6687\"", + " ],", + " \"data\": \"0x00000000000000000000000000000000000000000000000000000000014e4250\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xb7b212ac06505f6b2b3d5f9cbb4a4a52bc301ff20979f6f6d6a0c66133e3ce7e\",", + " \"transactionIndex\": \"0x2b\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x14\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0x60bf91ac87fee5a78c28f7b67701fbcfa79c18ec\",", + " \"topics\": [", + " \"0x940c4b3549ef0aaff95807dc27f62d88ca15532d1bf535d7d63800f40395d16c\",", + " \"0x000000000000000000000000e4e7f6e7d082aeaaa1dd20907ea426a3cc70b0df\",", + " \"0x000000000000000000000000965d5624c8a0ba85c83391054865623e2b3bef93\",", + " \"0x4343000000000000000000000000000000000000000000000000000000000000\"", + " ],", + " \"data\": \"0x00000000000000000000000000000000000000000000000000000000395226d0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xb54635b949c6bc91c59d7ec4451f38b74823508bd2c222de9245c5c5fc0faf22\",", + " \"transactionIndex\": \"0x2c\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x15\",", + " \"removed\": false", + " },", + " {", + " \"address\": \"0xe4c94d45f7aef7018a5d66f44af780ec6023378e\",", + " \"topics\": [", + " \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",", + " \"0x000000000000000000000000e4e7f6e7d082aeaaa1dd20907ea426a3cc70b0df\",", + " \"0x000000000000000000000000965d5624c8a0ba85c83391054865623e2b3bef93\"", + " ],", + " \"data\": \"0x00000000000000000000000000000000000000000000000000000000395226d0\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xb54635b949c6bc91c59d7ec4451f38b74823508bd2c222de9245c5c5fc0faf22\",", + " \"transactionIndex\": \"0x2c\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x16\",", + " \"removed\": false", + " },", + " {", + " \"address\": \"0x4b9e0d224dabcc96191cace2d367a8d8b75c9c81\",", + " \"topics\": [", + " \"0xae7443ddaf98d964198bed69ffecbbdeea67363d04c21a72f94bcb1a10fae229\",", + " \"0x000000000000000000000000e4c94d45f7aef7018a5d66f44af780ec6023378e\",", + " \"0x000000000000000000000000e4e7f6e7d082aeaaa1dd20907ea426a3cc70b0df\",", + " \"0x6265656f6e652d70726f64000000000000000000000000000000000000000000\"", + " ],", + " \"data\": \"0x000000000000000000000000000000000000000000000000000725364dc2100000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0xb54635b949c6bc91c59d7ec4451f38b74823508bd2c222de9245c5c5fc0faf22\",", + " \"transactionIndex\": \"0x2c\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x17\",", + " \"removed\": false", + " }", + " ],", + " [", + " {", + " \"address\": \"0xedbaf3c5100302dcdda53269322f3730b1f0416d\",", + " \"topics\": [", + " \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",", + " \"0x000000000000000000000000cf62dfc079c5d594c257c8fcc0bc2334d17595e1\",", + " \"0x000000000000000000000000080a59af96a4dc69b33d41361fea51236b48ad8b\"", + " ],", + " \"data\": \"0x0000000000000000000000000000000000000000000000000000000000004853\",", + " \"blockNumber\": \"0x3d18a4\",", + " \"transactionHash\": \"0x8d3f2cd5dc1297faf4af6a5597ea28785eba2d719b903a9d5fffcf1ee77f890c\",", + " \"transactionIndex\": \"0x2d\",", + " \"blockHash\": \"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\",", + " \"logIndex\": \"0x18\",", + " \"removed\": false", + " }", + " ]", + " ]", + "}", + "", + "pm.test('Has correct result', function() {", + " pm.expect(pm.response.json()).to.be.deep.equal(expected);", + "})", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"eth_getLogsByHash\",\n\t\"params\":[\n\t\t\"0xd3f1853788b02e31067f2c6e65cb0ae56729e23e3c92e2393af9396fa182701d\"\n \n\t],\n\t\"id\":1\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "{{HOST}}", + "host": [ + "{{HOST}}" + ] + }, + "description": "Returns all logs in a block\r\n\r\n**Parameters**\r\n\r\n`blockHash` - `DATA`, 32 bytes, hash of block at which to retreive data.\r\n\r\n```\r\nTODO\r\n```\r\n\r\n**Returns**\r\n\r\nTODO" + }, + "response": [] + }, + { + "name": "tg_blockReward", + "event": [ + { + "listen": "test", + "script": { + "id": "b6f0e444-c73c-47db-b15f-7fda893e6d8e", + "exec": [ + "var expected = {", + " \"jsonrpc\": \"2.0\",", + " \"id\": 1,", + " \"result\": {", + " \"blockReward\": \"0x478eae0e571ba000\",", + " \"uncleReward\": \"0x340aad21b3b70000\",", + " \"issuance\": \"0x7b995b300ad2a000\"", + " }", + "}", + "", + "pm.test('Has correct result', function() {", + " pm.expect(pm.response.json()).to.be.deep.equal(expected);", + "})", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"tg_issuance\",\n\t\"params\":[\n\t\t\"0x3\"\n\t],\n\t\"id\":1\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "{{HOST}}", + "host": [ + "{{HOST}}" + ] + }, + "description": "Returns the block reward for this block\r\n\r\n**Parameters**\r\n\r\n`QUANTITY|TAG` - integer of a block number, or the string `\"earliest\"`, `\"latest\"` or `\"pending\"`, as in the default block parameter, or \r\n\r\n```\r\nTODO\r\n```\r\n\r\n**Returns**\r\n\r\nTODO" + }, + "response": [] + }, + { + "name": "tg_uncleReward", + "event": [ + { + "listen": "test", + "script": { + "id": "be318c3a-d43c-4d17-bd87-9a22a9fdfb67", + "exec": [ + "var expected = {", + " \"jsonrpc\": \"2.0\",", + " \"id\": 1,", + " \"result\": {", + " \"blockReward\": \"0x478eae0e571ba000\",", + " \"uncleReward\": \"0x340aad21b3b70000\",", + " \"issuance\": \"0x7b995b300ad2a000\"", + " }", + "}", + "", + "pm.test('Has correct result', function() {", + " pm.expect(pm.response.json()).to.be.deep.equal(expected);", + "})", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"tg_issuance\",\n\t\"params\":[\n\t\t\"0x3\"\n\t],\n\t\"id\":1\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "{{HOST}}", + "host": [ + "{{HOST}}" + ] + }, + "description": "Returns the uncle reward for this block\r\n\r\n**Parameters**\r\n\r\n`QUANTITY|TAG` - integer of a block number, or the string `\"earliest\"`, `\"latest\"` or `\"pending\"`, as in the default block parameter, or \r\n\r\n```\r\nTODO\r\n```\r\n\r\n**Returns**\r\n\r\nTODO" + }, + "response": [] + }, + { + "name": "tg_issuance", + "event": [ + { + "listen": "test", + "script": { + "id": "754c5665-a64f-430b-a40b-a6ef98d43b78", + "exec": [ + "var expected = {", + " \"jsonrpc\": \"2.0\",", + " \"id\": 1,", + " \"result\": {", + " \"blockReward\": \"0x478eae0e571ba000\",", + " \"uncleReward\": \"0x340aad21b3b70000\",", + " \"issuance\": \"0x7b995b300ad2a000\"", + " }", + "}", + "", + "pm.test('Has correct result', function() {", + " pm.expect(pm.response.json()).to.be.deep.equal(expected);", + "})", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"tg_issuance\",\n\t\"params\":[\n\t\t\"0x3\"\n\t],\n\t\"id\":1\n}", + "options": { + "raw": {} + } + }, + "url": { + "raw": "{{HOST}}", + "host": [ + "{{HOST}}" + ] + }, + "description": "Returns the issuance for this block\r\n\r\n**Parameters**\r\n\r\n`QUANTITY|TAG` - integer of a block number, or the string `\"earliest\"`, `\"latest\"` or `\"pending\"`, as in the default block parameter, or \r\n\r\n```\r\nTODO\r\n```\r\n\r\n**Returns**\r\n\r\nTODO" + }, + "response": [] + } + ], "protocolProfileBehavior": {} }, { @@ -2455,7 +3348,7 @@ { "listen": "test", "script": { - "id": "f9c5670f-1d94-41f4-9bed-1506d8b00f40", + "id": "4b78bb42-708b-4093-a759-2f84a1e24a22", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2510,7 +3403,7 @@ { "listen": "test", "script": { - "id": "d557b71d-b824-4207-9a6e-f16438518d1a", + "id": "2808eacf-4676-45a3-8ee3-4e439f7f5439", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2564,7 +3457,7 @@ { "listen": "test", "script": { - "id": "8e77210f-3c89-46bf-84f8-243ca58d3884", + "id": "a7ac2ff5-daf0-4341-abb4-6c55dcdf4697", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2620,7 +3513,7 @@ { "listen": "test", "script": { - "id": "9521c645-644e-498c-8797-917bfcde7be6", + "id": "604e0a0e-9218-4ee1-93e9-684806fe4dcb", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2678,7 +3571,7 @@ { "listen": "test", "script": { - "id": "8e4cff09-69a5-42c4-b3e9-b3d0f1999677", + "id": "5076d4c6-32f7-4d15-b571-bdb7fccb7693", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -2737,7 +3630,7 @@ { "listen": "test", "script": { - "id": "24c1968d-6a65-46d3-aae0-aa0e78b42039", + "id": "ce67a39c-34a3-47f2-8f28-2727f5ccb2bb", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -2797,7 +3690,7 @@ { "listen": "test", "script": { - "id": "3314c08d-8b77-4864-9bd7-2abdd8e5d3f0", + "id": "419b1764-2326-4c9a-ad2a-ff8427860570", "exec": [ "var allTests = pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -7772,7 +8665,7 @@ { "listen": "test", "script": { - "id": "a6d1104f-faa2-46a3-a5c7-09dd6c489f6b", + "id": "7a12abd4-f166-4be0-bfd3-85a2c8b1d87b", "exec": [ "var allTests = false; //pm.globals.get('TEST_ALL') === 'true';", "if (!allTests)", @@ -7807,7 +8700,7 @@ { "listen": "prerequest", "script": { - "id": "30435bd1-97be-4916-8114-9dba3e05dd7b", + "id": "67da125d-66a8-42a8-92e2-6ddcc64a4769", "exec": [ "postman.setNextRequest('debug_getModifiedAccountsByNumber')" ], @@ -7846,7 +8739,7 @@ { "listen": "test", "script": { - "id": "a7793001-2a35-4214-b41a-e9287a16d44e", + "id": "7f7d0967-fab2-49b6-bbe3-35418a556eb0", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -7902,7 +8795,7 @@ { "listen": "test", "script": { - "id": "760c7cc3-64cb-4cf0-b71a-92a6a7d0688d", + "id": "8085d3fd-6cd7-48b4-b897-cd75b7234d69", "exec": [ "var expected = {", " \"jsonrpc\": \"2.0\",", @@ -7967,7 +8860,7 @@ { "listen": "test", "script": { - "id": "8f6d6335-1b58-4726-96e9-e1f6ab780e49", + "id": "f1506329-f412-4b7f-9393-f0b1bc4636b4", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8016,7 +8909,7 @@ { "listen": "test", "script": { - "id": "f9217116-d1cf-4740-ac0b-eef926b8f931", + "id": "a2d877bd-26e3-4c9e-85d2-a22b7e2fc5e7", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8065,7 +8958,7 @@ { "listen": "test", "script": { - "id": "0fd977a6-0fd4-4c04-892f-45a28ac41069", + "id": "4bfc3e91-da7b-4802-972c-3c46e618c72d", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8114,7 +9007,7 @@ { "listen": "test", "script": { - "id": "63db2077-f014-48f1-8bf9-adb128ed4ffd", + "id": "82adf40b-9f93-4325-9505-10312372457a", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8163,7 +9056,7 @@ { "listen": "test", "script": { - "id": "60e12ead-2079-4db0-9f44-ded7e3491666", + "id": "5358615e-9120-4f7c-93a9-ad82c6c05c5a", "exec": [ "var isParity = pm.environment.get('HOST') == \"{{PARITY}}\";", "(isParity ? pm.test.skip : pm.test)('Is deprecated', function() {", @@ -8184,7 +9077,7 @@ { "listen": "prerequest", "script": { - "id": "d73623e0-71b8-4d95-b033-56ff6ab2204d", + "id": "37287d98-0e15-4195-90a9-2f39c5c45b43", "exec": [ "var isParity = pm.environment.get('HOST') == \"{{PARITY}}\";", "if (isParity) {", @@ -8233,7 +9126,7 @@ { "listen": "test", "script": { - "id": "c6d9b9cf-969a-4bcf-9f79-45f3472ec0d0", + "id": "2570c079-05b5-4fe6-af7b-bfb0a74f91f2", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8253,7 +9146,7 @@ { "listen": "prerequest", "script": { - "id": "a9ab6df4-5e20-4dc8-a5ba-5d3345bd77af", + "id": "d4d1752a-0896-4a60-92c8-245d08d9df08", "exec": [ "" ], @@ -8292,7 +9185,7 @@ { "listen": "test", "script": { - "id": "f7f40858-69dc-4a9e-a1c1-de750f2f8121", + "id": "0920ddfd-2293-4ca4-a058-44db49932a8f", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8341,7 +9234,7 @@ { "listen": "test", "script": { - "id": "f46e0f32-5e98-4c1a-a6ee-1b219c09f2d2", + "id": "85cd87db-1a75-4adf-ad0e-b4efc1859ad0", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8390,7 +9283,7 @@ { "listen": "test", "script": { - "id": "6422da25-7338-4c1d-8c97-8b09791113e6", + "id": "a68c65c9-fa31-4706-933a-9ae81913fa47", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8446,7 +9339,7 @@ { "listen": "test", "script": { - "id": "c11973e6-065e-460e-9208-e0ed93b16334", + "id": "8ed497e0-6f43-495a-be18-afd28055f88b", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8495,7 +9388,7 @@ { "listen": "test", "script": { - "id": "2fa4b3dc-4dcb-46de-b3ed-ab065f030993", + "id": "e3bddd5b-6e05-4c4f-aad0-cf60acb26d3a", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8544,7 +9437,7 @@ { "listen": "test", "script": { - "id": "806fe733-efa2-43c1-9327-deee801c9a93", + "id": "b62fba27-e204-493f-92e4-2e1603bc673e", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8593,7 +9486,7 @@ { "listen": "test", "script": { - "id": "35287575-a7d0-4384-8f64-ab3756d8e2be", + "id": "985c4d0e-5c28-48c6-a63f-c2d0d9b48897", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8642,7 +9535,7 @@ { "listen": "test", "script": { - "id": "e8e2e866-d016-4581-bf67-7b4148c035bf", + "id": "077b8e70-d1f1-41dc-a8b7-9d8396abfd0c", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8691,7 +9584,7 @@ { "listen": "test", "script": { - "id": "0c196f35-53be-4a03-acac-92321720c356", + "id": "1291da7d-5c3e-4a46-ae24-897fe44f9fe8", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8740,7 +9633,7 @@ { "listen": "test", "script": { - "id": "8cba7888-6564-4c31-b9c9-0b95712fcbaf", + "id": "06af01e0-18f7-4145-b42a-f5ca07151bed", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8789,7 +9682,7 @@ { "listen": "test", "script": { - "id": "b68a02ac-d72e-4eef-ae68-b3c62bdfc603", + "id": "614511c6-6f4c-49b9-9604-1f5165b87b66", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8838,7 +9731,7 @@ { "listen": "test", "script": { - "id": "e32552f4-cddd-426c-a0cf-a92e47357bd8", + "id": "5a82cbe3-8ab8-48bb-8b4b-e613a7de3379", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8887,7 +9780,7 @@ { "listen": "test", "script": { - "id": "6783aede-0f67-48e4-865a-f3d5a21831f5", + "id": "b7b9572c-4ff1-4841-8c07-2b1950dbbf01", "exec": [ "pm.test('Is deprecated', function() {", " const jsonData = pm.response.json();", @@ -8940,7 +9833,7 @@ { "listen": "prerequest", "script": { - "id": "a3eb1169-a4be-47eb-b442-7297580ae4aa", + "id": "3bb26d62-88c4-40bc-a178-7fc18ff1166c", "type": "text/javascript", "exec": [ "" @@ -8950,7 +9843,7 @@ { "listen": "test", "script": { - "id": "21557b17-96ae-4a8d-8cd3-8cebad1c7cf1", + "id": "4aeb4a24-5dd4-4800-88bf-0f97db747e65", "type": "text/javascript", "exec": [ "" @@ -8965,7 +9858,7 @@ { "listen": "prerequest", "script": { - "id": "487d1c5b-fcb7-40fe-8dba-075d18f96629", + "id": "e5158f46-d6f3-4378-8a0c-166b2aef6730", "type": "text/javascript", "exec": [ "" @@ -8975,7 +9868,7 @@ { "listen": "test", "script": { - "id": "4f8f18ff-6b18-415f-a2b1-2671bae00afc", + "id": "b91ab55a-19cf-4462-81fc-45b733f0c0b1", "type": "text/javascript", "exec": [ "pm.test('Base tests', function() {",