Skip to content

Commit 878a0c0

Browse files
authored
Add mainnet tests few api (#128)
1 parent 2e96c24 commit 878a0c0

File tree

22 files changed

+364
-0
lines changed

22 files changed

+364
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"erigon_blockNumber",
6+
"params":[],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":null
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"erigon_blockNumber",
6+
"params":["earliest"],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":"0x0"
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"erigon_blockNumber",
6+
"params":["safe"],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":null
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"erigon_blockNumber",
6+
"params":["latest"],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":null
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"erigon_blockNumber",
6+
"params":["finalized"],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":null
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"erigon_blockNumber",
6+
"params":["latestExecuted"],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":null
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"erigon_nodeInfo",
6+
"params":[],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result": null
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[
2+
{
3+
"request": {
4+
"jsonrpc":"2.0",
5+
"method":"erigon_watchTheBurn",
6+
"params":["0x49BDEF"],
7+
"id":1
8+
},
9+
"response": {
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result": {
13+
"blockReward": "0x2c3c465ca58ec000",
14+
"burnt": "0x0",
15+
"issuance": "0x6aaf7c8516d0c000",
16+
"tips": "0x0",
17+
"totalBurnt": "0x0",
18+
"totalIssued": "0x0",
19+
"uncleReward": "0x3e73362871420000"
20+
}
21+
}
22+
}
23+
]
24+

integration/mainnet/eth_maxPriorityFeePerGas/test_01.json

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[
22
{
3+
"test": {
4+
"reference": "",
5+
"description": ""
6+
},
37
"request":{
48
"jsonrpc":"2.0",
59
"method":"eth_maxPriorityFeePerGas",

integration/mainnet/eth_mining/test_01.json

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[
22
{
3+
"test": {
4+
"reference": "",
5+
"description": ""
6+
},
37
"request": {
48
"jsonrpc":"2.0",
59
"method":"eth_mining",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"eth_protocolVersion",
6+
"params":[],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":"0x42"
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[
2+
{
3+
"test": {
4+
"reference": "",
5+
"description": ""
6+
},
7+
"request": {
8+
"jsonrpc":"2.0",
9+
"method":"eth_submitHashrate",
10+
"params":[
11+
"0x1",
12+
"0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"
13+
],
14+
"id":1
15+
},
16+
"response": {
17+
"id":1,
18+
"jsonrpc":"2.0",
19+
"error":{
20+
"code":-32000,
21+
"message":"not supported, consensus engine is not ethash"
22+
}
23+
}
24+
}
25+
]
26+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[
2+
{
3+
"test": {
4+
"reference": "",
5+
"description": ""
6+
},
7+
"request": {
8+
"jsonrpc":"2.0",
9+
"method":"eth_submitWork",
10+
"params":[
11+
"0x0000000000000001",
12+
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
13+
"0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
14+
],
15+
"id":1
16+
},
17+
"response": {
18+
"id":1,
19+
"jsonrpc":"2.0",
20+
"error":{
21+
"code":-32000,
22+
"message":"not supported, consensus engine is not ethash"
23+
}
24+
}
25+
}
26+
]
27+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"test": {
4+
"reference": "",
5+
"description": ""
6+
},
7+
"request":{
8+
"jsonrpc":"2.0",
9+
"method":"eth_syncing",
10+
"params":[],
11+
"id":1
12+
},
13+
"response":{
14+
"jsonrpc":"2.0",
15+
"id":1,
16+
"result":null
17+
}
18+
}
19+
]
20+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"net_listening",
6+
"params":[],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":true
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"net_peerCount",
6+
"params":[],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":null
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"net_version",
6+
"params":[],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":"1"
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"ots_getApiLevel",
6+
"params":[],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":8
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request": {
4+
"jsonrpc": "2.0",
5+
"method": "txpool_status",
6+
"params": [],
7+
"id": 1
8+
},
9+
"response": {
10+
"result":null,
11+
"id": 1,
12+
"jsonrpc": "2.0"
13+
}
14+
}
15+
]
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"unknown_method",
6+
"params":[],
7+
"id":1
8+
},
9+
"response":{
10+
"error": {
11+
"code": -32601,
12+
"message": "the method unknown_method does not exist/is not available"
13+
},
14+
"id": 1,
15+
"jsonrpc": "2.0"
16+
}
17+
}
18+
]
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"web3_clientVersion",
6+
"params":[],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":null
13+
}
14+
}
15+
]
16+
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"request":{
4+
"jsonrpc":"2.0",
5+
"method":"web3_sha3",
6+
"params":["0x00"],
7+
"id":1
8+
},
9+
"response":{
10+
"jsonrpc":"2.0",
11+
"id":1,
12+
"result":"0xbc36789e7a1e281436464229828f817d6612f7b477d66591ff96a9e064bcc98a"
13+
}
14+
}
15+
]
16+

0 commit comments

Comments
 (0)