-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapi-v1.http
38 lines (31 loc) · 988 Bytes
/
api-v1.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
### Estimate transaction commision
GET {{host}}/api/v1/estimate/tx-commission?transaction={{tx}}
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Estimate buy coin
GET {{host}}/api/v1/estimate/coin-buy?coinToSell={{coin_to_sell_symbol}}&valueToSell={{value}}&coinToBuy={{coin_to_buy_symbol}}
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Estimate sell coin
GET {{host}}/api/v1/estimate/coin-sell?coinToSell={{coin_to_sell_symbol}}&valueToSell={{value}}&coinToBuy={{coin_to_buy_symbol}}
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Nonce
GET {{host}}/api/v1/nonce/{{address}}
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Min gas price
GET {{host}}/api/v1/min-gas
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
### Send transaction
POST {{host}}/api/v1/transaction/push
Accept: */*
Cache-Control: no-cache
Content-Type: application/json
{"transaction" : "{{tx}}"}