forked from hummingbot/gateway
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathevm-routes.yml
104 lines (101 loc) · 2.42 KB
/
evm-routes.yml
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
paths:
/evm/nonce:
post:
tags:
- 'evm'
summary: 'Get the current nonce for the provided private key'
operationId: 'nonce'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/NonceRequest'
responses:
'200':
schema:
$ref: '#/definitions/NonceResponse'
/evm/nextNonce:
post:
tags:
- 'evm'
summary: 'Get the next nonce for the provided private key'
operationId: 'nonce'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/NonceRequest'
responses:
'200':
schema:
$ref: '#/definitions/NonceResponse'
/evm/allowances:
post:
tags:
- 'evm'
summary: 'Get the ERC20 allowances for a spender on a given private key'
operationId: 'allowances'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/AllowancesRequest'
responses:
'200':
schema:
$ref: '#/definitions/AllowancesResponse'
/evm/approve:
post:
tags:
- 'evm'
summary: 'Create an ERC20 approval for a spender on an private key'
operationId: 'approve'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/ApproveRequest'
responses:
'200':
schema:
$ref: '#/definitions/ApproveResponse'
/evm/cancel:
post:
tags:
- 'evm'
summary: 'Cancel transaction'
operationId: 'cancel'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/CancelRequest'
responses:
'200':
schema:
$ref: '#/definitions/CancelResponse'