Get historical atomic swaps
OK response.
swap data
Paging defines the structure for required params for handling pagination
const response = await fetch('https://inj-indexer.nownodes.io/api/exchange/spot/v1/atomicSwapHistory?address=inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"data": [
{
"contractAddress": "Doloremque et excepturi occaecati voluptates laborum tempore.",
"destCoin": {
"amount": "1000000000000000000",
"denom": "USDT"
},
"executedAt": 5135189294612931000,
"fees": [
{
"amount": "1000000000000000000",
"denom": "USDT"
},
{
"amount": "1000000000000000000",
"denom": "USDT"
}
],
"indexBySender": 1535512668,
"indexBySenderContract": 201189989,
"refundAmount": "Amet at voluptatem natus.",
"route": "Tempore earum sed.",
"sender": "Voluptatum est distinctio molestiae similique eum.",
"sourceCoin": {
"amount": "1000000000000000000",
"denom": "USDT"
},
"txHash": "Laboriosam vitae reiciendis sed molestiae ratione quisquam."
},
{
"contractAddress": "Doloremque et excepturi occaecati voluptates laborum tempore.",
"destCoin": {
"amount": "1000000000000000000",
"denom": "USDT"
},
"executedAt": 5135189294612931000,
"fees": [
{
"amount": "1000000000000000000",
"denom": "USDT"
},
{
"amount": "1000000000000000000",
"denom": "USDT"
}
],
"indexBySender": 1535512668,
"indexBySenderContract": 201189989,
"refundAmount": "Amet at voluptatem natus.",
"route": "Tempore earum sed.",
"sender": "Voluptatum est distinctio molestiae similique eum.",
"sourceCoin": {
"amount": "1000000000000000000",
"denom": "USDT"
},
"txHash": "Laboriosam vitae reiciendis sed molestiae ratione quisquam."
},
{
"contractAddress": "Doloremque et excepturi occaecati voluptates laborum tempore.",
"destCoin": {
"amount": "1000000000000000000",
"denom": "USDT"
},
"executedAt": 5135189294612931000,
"fees": [
{
"amount": "1000000000000000000",
"denom": "USDT"
},
{
"amount": "1000000000000000000",
"denom": "USDT"
}
],
"indexBySender": 1535512668,
"indexBySenderContract": 201189989,
"refundAmount": "Amet at voluptatem natus.",
"route": "Tempore earum sed.",
"sender": "Voluptatum est distinctio molestiae similique eum.",
"sourceCoin": {
"amount": "1000000000000000000",
"denom": "USDT"
},
"txHash": "Laboriosam vitae reiciendis sed molestiae ratione quisquam."
}
],
"paging": {
"countBySubaccount": 3144167030999342600,
"from": 1916499695,
"next": [
"Ea rerum.",
"Aut dolorem cum voluptas quae.",
"Voluptas repellendus qui ipsam est."
],
"to": 391437627,
"total": 7364854934794692000
}
}