-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathopenrpc.json
More file actions
77 lines (77 loc) · 2.2 KB
/
Copy pathopenrpc.json
File metadata and controls
77 lines (77 loc) · 2.2 KB
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
{
"openrpc": "1.3.2",
"info": {
"title": "Protect API",
"description": "APIs that Protect API Serves without proxying upstream to a provider",
"version": "1.0.0"
},
"methods": [
{
"name": "eth_sendPrivateTransaction",
"description": "Send a single private transaction. Private transactions are sent directly to validators and not included in the public mempool.",
"params": [
{
"name": "TransactionString",
"description": "The raw signed transaction",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "MaxBlockNumber",
"description": "Highest block number that the block can be included in",
"schema": {
"type": "string",
"format": "^0x(0|[1-9a-f][0-9a-f]*)$"
}
},
{
"name": "Preferences",
"description": "Transaction preferences",
"schema": {
"type": "object",
"properties": {
"fast": {
"type": "boolean"
}
}
}
}
],
"result": {
"name": "TransactionHash",
"schema": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
},
"examples": [
{
"name": "sendPrivateTransactionExample",
"params": [
{
"name": "TransactionString",
"value": "0x02f87205158459682f00850c51e9727a82520894477db63b8e73aea96f201c3c4f5e8fbfcdd18b5c87038d7ea4c6800080c080a0312d6375e578ab953a41456d4be583a46dced97a9e38f349bb8e7b63d14cfc1ea001daea40332180670568a1864e6d3f910b194903128d4a0a5c499597f3f6ff40"
},
{
"name": "MaxBlockNumber",
"value": "0x2540be400"
},
{
"name": "Preferences",
"value": {
"fast": true
}
}
],
"result": {
"name": "ResultExample",
"value": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
}
}
]
}
]
}