Swap

Swap returns simulated swap amount.

get
Query parameters
offer_coinstringOptional

offer_coin defines the coin being offered (i.e. 1000000uluna).

ask_denomstringOptional

ask_denom defines the denom of the coin to swap to.

Responses
200
A successful response.
application/json
get
GET //terra/market/v1beta1/swap HTTP/1.1
Host: lunc.nownodes.io
Accept: */*
{
  "return_coin": {
    "denom": "text",
    "amount": "text"
  }
}