-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapi-v2.http
67 lines (56 loc) · 1.55 KB
/
api-v2.http
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
GET {{host}}/api/v2/price_commission
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
###
### Estimate transaction
GET {{host}}/api/v2/estimate_tx_commission/{{tx}}
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Estimate buy coin
GET {{host}}/api/v2/estimate_coin_buy?coin_to_buy=MNT&value_to_buy=10000000000000000000&coin_to_sell=MUSDC&swap_from=pool
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Estimate sell coin
GET {{host}}/api/v2/estimate_coin_sell?
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Estimate sell all coin
GET {{host}}/api/v2/estimate_coin_sell_all?coin_id_to_buy=0&coin_id_to_sell=1902&value_to_sell=1000000000000000000
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Nonce
GET {{host}}/api/v2/nonce/{{address}}
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Min gas price
GET {{host}}/api/v2/min_gas_price
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Coin info
GET {{host}}/api/v2/coin_info/{{symbol}}
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Coin info by id
GET {{host}}/api/v2/coin_info_by_id/{{id}}
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Send transaction
GET {{host}}/api/v2/send_transaction/{{tx}}
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Send transaction
POST {{host}}/api/v2/send_transaction
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
{"transaction" : "{{tx}}"}