forked from hummingbot/gateway
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcosmos-routes.yml
57 lines (55 loc) · 1.41 KB
/
cosmos-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
paths:
/cosmos:
get:
tags:
- 'cosmos'
summary: 'View the Cosmos network and RPC URL that gateway is configured to use'
description: 'The user can change this by editing src/chains/cosmos/cosmos.config.ts'
operationId: 'root'
produces:
- 'application/json'
responses:
'200':
description: 'Cosmos config'
schema:
$ref: '#/definitions/CosmosConfigResponse'
/cosmos/balances:
post:
tags:
- 'cosmos'
summary: 'Get the balances of a Cosmos wallet'
operationId: 'balances'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/CosmosBalanceRequest'
responses:
'200':
schema:
$ref: '#/definitions/BalancesResponse'
/cosmos/poll:
post:
tags:
- 'cosmos'
summary: 'Poll the status of a Cosmos transaction'
operationId: 'poll'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/CosmosPollRequest'
responses:
'200':
schema:
$ref: '#/definitions/CosmosPollResponse'