Get swap routes for a denom
swap.routes.list_by_denom(RouteListByDenomParams**kwargs) -> RouteListByDenomResponse
GET/api/v1/swap/routes
Get swap routes for a denom
Get swap routes for a denom
from neptune_api_v2 import NeptuneAPIV2
client = NeptuneAPIV2()
response = client.swap.routes.list_by_denom(
contract_address="injvalcons1a03k0ztfyjnd70apawva003pkh0adqmau0a9q0",
source_denom="source_denom",
)
print(response.data){
"data": {
"source": "inj",
"targets": [
"ibc/F6CC233E5C0EA36B1F74AB1AF98471A2D6A80E2542856639703E908B4D93E7C4",
"peggy0xAaEf88cEa01475125522e117BFe45cF32044E238"
]
},
"error": null,
"status": 200,
"status_text": "200 OK"
}{
"data": null,
"error": {
"kind": "internal",
"scope": "server",
"message": "An unexpected error occurred"
},
"status": 500,
"status_text": "500 Internal Server Error"
}Returns Examples
{
"data": {
"source": "inj",
"targets": [
"ibc/F6CC233E5C0EA36B1F74AB1AF98471A2D6A80E2542856639703E908B4D93E7C4",
"peggy0xAaEf88cEa01475125522e117BFe45cF32044E238"
]
},
"error": null,
"status": 200,
"status_text": "200 OK"
}{
"data": null,
"error": {
"kind": "internal",
"scope": "server",
"message": "An unexpected error occurred"
},
"status": 500,
"status_text": "500 Internal Server Error"
}