-
Notifications
You must be signed in to change notification settings - Fork 384
/
execute.yaml
97 lines (97 loc) · 2.7 KB
/
execute.yaml
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
- name: eth_call
summary: Executes a new message call immediately without creating a transaction on the block chain.
params:
- name: Transaction
required: true
schema:
$ref: '#/components/schemas/GenericTransaction'
- name: Block
required: false
schema:
$ref: '#/components/schemas/BlockNumberOrTagOrHash'
result:
name: Return data
schema:
$ref: '#/components/schemas/bytes'
examples:
- name: eth_call example
params:
- name: Transaction
value:
to: '0x69498dd54bd25aa0c886cf1f8b8ae0856d55ff13'
value: '0x1'
- name: Block
value: 'latest'
result:
name: Return data
value: '0x'
- name: eth_estimateGas
summary: Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
params:
- name: Transaction
required: true
schema:
$ref: '#/components/schemas/GenericTransaction'
- name: Block
required: false
schema:
$ref: '#/components/schemas/BlockNumberOrTag'
result:
name: Gas used
schema:
$ref: '#/components/schemas/uint'
examples:
- name: eth_estimateGas example
params:
- name: Transaction
value:
from: '0xfe3b557e8fb62b89f4916b721be55ceb828dbd73'
to: '0x44aa93095d6749a706051658b970b941c72c1d53'
value: '0x1'
result:
name: Gas used
value: '0x5208'
- name: eth_createAccessList
summary: Generates an access list for a transaction.
params:
- name: Transaction
required: true
schema:
$ref: '#/components/schemas/GenericTransaction'
- name: Block
required: false
schema:
$ref: '#/components/schemas/BlockNumberOrTag'
result:
name: Gas used
schema:
title: Access list result
type: object
additionalProperties: false
properties:
accessList:
title: "accessList"
$ref: '#/components/schemas/AccessList'
error:
title: "error"
type: string
gasUsed:
title: Gas used
$ref: '#/components/schemas/uint'
examples:
- name: eth_createAccessList example
params:
- name: Transaction
value:
from: '0xaea8f8f781326bfe6a7683c2bd48dd6aa4d3ba63'
data: '0x608060806080608155'
- name: Block
value: 'latest'
result:
name: Gas used
value:
accessList:
- address: '0xa02457e5dfd32bda5fc7e1f1b008aa5979568150'
storageKeys:
- '0x0000000000000000000000000000000000000000000000000000000000000081'
gasUsed: '0x125f8'