aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/BlockTests/bcJS_API_Test.json
blob: f1b9c92217ec260eb1e7cc417595d2df0ec84b07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
{
    "JS_API_Tests" : {
        "blocks" : [
            {
                "transactions" : [
                    {
                        "data" : "0x60406103ca600439600451602451336000819055506000600481905550816001819055508060028190555042600581905550336003819055505050610381806100496000396000f30060003560e060020a9004806343d726d61461004257806391b7f5ed14610050578063d686f9ee14610061578063f5bade661461006f578063fcfff16f1461008057005b61004a6101de565b60006000f35b61005b6004356100bf565b60006000f35b610069610304565b60006000f35b61007a60043561008e565b60006000f35b6100886100f0565b60006000f35b600054600160a060020a031633600160a060020a031614156100af576100b4565b6100bc565b806001819055505b50565b600054600160a060020a031633600160a060020a031614156100e0576100e5565b6100ed565b806002819055505b50565b600054600160a060020a031633600160a060020a031614806101255750600354600160a060020a031633600160a060020a0316145b61012e57610161565b60016004819055507f59ebeb90bc63057b6515673c3ecf9438e5058bca0f92585014eced636878c9a560006000a16101dc565b60045460011480610173575060015434105b6101b85760016004819055507f59ebeb90bc63057b6515673c3ecf9438e5058bca0f92585014eced636878c9a560006000a142600581905550336003819055506101db565b33600160a060020a03166000346000600060006000848787f16101d757005b5050505b5b565b60006004546000146101ef576101f4565b610301565b600054600160a060020a031633600160a060020a031614801561022c5750600054600160a060020a0316600354600160a060020a0316145b61023557610242565b6000600481905550610301565b600354600160a060020a031633600160a060020a03161461026257610300565b600554420360025402905060015481116102c757600354600160a060020a0316600082600154036000600060006000848787f161029b57005b505050600054600160a060020a03166000826000600060006000848787f16102bf57005b5050506102ee565b600054600160a060020a031660006001546000600060006000848787f16102ea57005b5050505b60006004819055506000546003819055505b5b50565b6000600054600160a060020a031633600160a060020a031614156103275761032c565b61037e565b600554420360025402905060015481116103455761037d565b600054600160a060020a031660006001546000600060006000848787f161036857005b50505060006004819055506000546003819055505b5b505600000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000023",
                        "gasLimit" : "600000",
                        "gasPrice" : "1",
                        "nonce" : "0",
                        "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
                        "to" : "",
                        "value" : "100000"
                    }
                ],
                "uncleHeaders" : [
                ]
            },
            {
                "transactions" : [
                    {
                        "data" : "",
                        "gasLimit" : "314159",
                        "gasPrice" : "1",
                        "nonce" : "1",
                        "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
                        "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
                        "value" : "10"
                    }
                ],
                "uncleHeaders" : [
                ]
            },
            {
                "transactions" : [
                    {
                        "data" : "0xfcfff16f",
                        "gasLimit" : "600000",
                        "gasPrice" : "1",
                        "nonce" : "2",
                        "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
                        "to" : "6295ee1b4f6dd65047762f924ecd367c17eabf8f",
                        "value" : "0x42"
                    }
                ],
                "uncleHeaders" : [
                ]
            },
            {
                "transactions" : [
                    {
                        "data" : "",
                        "gasLimit" : "314159",
                        "gasPrice" : "1",
                        "nonce" : "3",
                        "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
                        "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
                        "value" : "10"
                    }
                ],
                "uncleHeaders" : [
                    {
                        "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
                        "coinbase" : "a94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                        "difficulty" : "131072",
                        "extraData" : "0x",
                        "gasLimit" : "3141592",
                        "gasUsed" : "0",
                        "hash" : "9de9879b6a81d1b6c4993c63c90a3c9d1e775f14572694778e828bc64972ae04",
                        "mixHash" : "b557f905d29ed0fca99d65d0adcce698dee97cf72a13c7cd8d7a7826b8eee770",
                        "nonce" : "18a524c1790fa83b",
                        "number" : "2",
                        "parentHash" : "6134fc6b5d99ee03c4aab1592640f6f9dcbc850668d75d631aee34989b938fae",
                        "receiptTrie" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
                        "stateRoot" : "ff640b30d613c35dad43e3693329e1b1ee6350f989cf46a288025a1cbfdab9cd",
                        "timestamp" : "0x54c98c82",
                        "transactionsTrie" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
                        "uncleHash" : "1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
                    },
                    {
                        "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
                        "coinbase" : "bcde5374fce5edbc8e2a8697c15331677e6ebf0b",
                        "difficulty" : "131072",
                        "extraData" : "0x",
                        "gasLimit" : "3141592",
                        "gasUsed" : "0",
                        "hash" : "9de9879b6a81d1b6c4993c63c90a3c9d1e775f14572694778e828bc64972ae04",
                        "mixHash" : "b557f905d29ed0fca99d65d0adcce698dee97cf72a13c7cd8d7a7826b8eee770",
                        "nonce" : "18a524c1790fa83b",
                        "number" : "2",
                        "parentHash" : "6134fc6b5d99ee03c4aab1592640f6f9dcbc850668d75d631aee34989b938fae",
                        "receiptTrie" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
                        "stateRoot" : "ff640b30d613c35dad43e3693329e1b1ee6350f989cf46a288025a1cbfdab9cd",
                        "timestamp" : "0x54c98c82",
                        "transactionsTrie" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
                        "uncleHash" : "1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
                    }
                ]
            },
            {
                "transactions" : [
                    {
                        "data" : "",
                        "gasLimit" : "314159",
                        "gasPrice" : "1",
                        "nonce" : "4",
                        "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
                        "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
                        "value" : "10"
                    }
                ],
                "uncleHeaders" : [
                ]
            },
            {
                "transactions" : [
                    {
                        "data" : "",
                        "gasLimit" : "314159",
                        "gasPrice" : "1",
                        "nonce" : "5",
                        "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
                        "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
                        "value" : "10"
                    }
                ],
                "uncleHeaders" : [
                    {
                        "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
                        "coinbase" : "bcde5374fce5edbc8e2a8697c15331677e6ebf0b",
                        "difficulty" : "131072",
                        "extraData" : "0x",
                        "gasLimit" : "314159",
                        "gasUsed" : "0",
                        "hash" : "9de9879b6a81d1b6c4993c63c90a3c9d1e775f14572694778e828bc64972ae04",
                        "mixHash" : "b557f905d29ed0fca99d65d0adcce698dee97cf72a13c7cd8d7a7826b8eee770",
                        "nonce" : "18a524c1790fa83b",
                        "number" : "2",
                        "parentHash" : "6134fc6b5d99ee03c4aab1592640f6f9dcbc850668d75d631aee34989b938fae",
                        "receiptTrie" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
                        "stateRoot" : "ff640b30d613c35dad43e3693329e1b1ee6350f989cf46a288025a1cbfdab9cd",
                        "timestamp" : "0x54c98c82",
                        "transactionsTrie" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
                        "uncleHash" : "1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
                    }
                ]
            },
            {
                "transactions" : [
                    {
                        "data" : "",
                        "gasLimit" : "314159",
                        "gasPrice" : "1",
                        "nonce" : "6",
                        "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
                        "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
                        "value" : "10"
                    }
                ],
                "uncleHeaders" : [
                ]
            },
            {
                "transactions" : [
                    {
                        "data" : "",
                        "gasLimit" : "314159",
                        "gasPrice" : "1",
                        "nonce" : "7",
                        "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
                        "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
                        "value" : "10"
                    }
                ],
                "uncleHeaders" : [
                ]
            },
            {
                "transactions" : [
                    {
                        "data" : "",
                        "gasLimit" : "314159",
                        "gasPrice" : "1",
                        "nonce" : "8",
                        "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
                        "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
                        "value" : "10"
                    }
                ],
                "uncleHeaders" : [
                ]
            }
        ],
        "expect" : {
            "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
                "balance" : "70"
            },
            "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : {
                "storage" : {
                    "0x" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                    "0x01" : "0x42",
                    "0x02" : "0x23",
                    "0x03" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                    "0x04" : "0x01",
                    "0x05" : "0x55114a49"
                }
            }
        },
        "genesisBlockHeader" : {
            "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "coinbase" : "8888f1f195afa192cfee860698584c030f4c9db1",
            "difficulty" : "0x020000",
            "extraData" : "0x42",
            "gasLimit" : "0x2fefd8",
            "gasUsed" : "0x",
            "hash" : "fd14b310ae11a0c7676efe909a17e41ad02c6844dbf78cd63e3ef564b48c2313",
            "mixHash" : "a966ec2638f836ff19e02c51cc83266e5e54047e2c5d238b93dc1806c788890e",
            "nonce" : "4fd18ffeb816cfde",
            "number" : "0x",
            "parentHash" : "0000000000000000000000000000000000000000000000000000000000000000",
            "receiptTrie" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "stateRoot" : "e1a3750b19ae018e0179d9e5f2ab65af3afe10b15e1754f85f8324b4ba38fe9f",
            "timestamp" : "0x54c98c81",
            "transactionsTrie" : "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "uncleHash" : "1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
        },
        "genesisRLP" : "0xf901fcf901f7a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a0e1a3750b19ae018e0179d9e5f2ab65af3afe10b15e1754f85f8324b4ba38fe9fa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080832fefd8808454c98c8142a0a966ec2638f836ff19e02c51cc83266e5e54047e2c5d238b93dc1806c788890e884fd18ffeb816cfdec0c0",
        "pre" : {
            "6295ee1b4f6dd65047762f924ecd367c17eabf8f" : {
                "balance" : "0x0186a0",
                "code" : "0x60003560e060020a9004806343d726d61461004257806391b7f5ed14610050578063d686f9ee14610061578063f5bade661461006f578063fcfff16f1461008057005b61004a6101de565b60006000f35b61005b6004356100bf565b60006000f35b610069610304565b60006000f35b61007a60043561008e565b60006000f35b6100886100f0565b60006000f35b600054600160a060020a031633600160a060020a031614156100af576100b4565b6100bc565b806001819055505b50565b600054600160a060020a031633600160a060020a031614156100e0576100e5565b6100ed565b806002819055505b50565b600054600160a060020a031633600160a060020a031614806101255750600354600160a060020a031633600160a060020a0316145b61012e57610161565b60016004819055507f59ebeb90bc63057b6515673c3ecf9438e5058bca0f92585014eced636878c9a560006000a16101dc565b60045460011480610173575060015434105b6101b85760016004819055507f59ebeb90bc63057b6515673c3ecf9438e5058bca0f92585014eced636878c9a560006000a142600581905550336003819055506101db565b33600160a060020a03166000346000600060006000848787f16101d757005b5050505b5b565b60006004546000146101ef576101f4565b610301565b600054600160a060020a031633600160a060020a031614801561022c5750600054600160a060020a0316600354600160a060020a0316145b61023557610242565b6000600481905550610301565b600354600160a060020a031633600160a060020a03161461026257610300565b600554420360025402905060015481116102c757600354600160a060020a0316600082600154036000600060006000848787f161029b57005b505050600054600160a060020a03166000826000600060006000848787f16102bf57005b5050506102ee565b600054600160a060020a031660006001546000600060006000848787f16102ea57005b5050505b60006004819055506000546003819055505b5b50565b6000600054600160a060020a031633600160a060020a031614156103275761032c565b61037e565b600554420360025402905060015481116103455761037d565b600054600160a060020a031660006001546000600060006000848787f161036857005b50505060006004819055506000546003819055505b5b5056",
                "nonce" : "0x",
                "storage" : {
                    "0x" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                    "0x01" : "0x42",
                    "0x02" : "0x23",
                    "0x03" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                    "0x05" : "0x54c98c81"
                }
            },
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "0x09184e72a000",
                "code" : "0x",
                "nonce" : "0x",
                "storage" : {
                }
            }
        }
    }
}