POST
https://prv.gateway.indexer.biya.io
/
injective_spot_exchange_rpc.InjectiveSpotExchangeRPC
/
AtomicSwapHistory
AtomicSwapHistory
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/AtomicSwapHistory \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "contract_address": "<string>",
  "skip": 123,
  "limit": 123,
  "from_number": 123,
  "to_number": 123
}
'
Get historical atomic swaps.
address
string
Address (optional)
contract_address
string
Contract address (optional)
skip
number
Skip count (optional)
limit
number
Limit count (optional)
from_number
number
From block number (optional)
to_number
number
To block number (optional)

Response

{
  "paging": {
    "total": "number",
    "from": "number",
    "to": "number",
    "count_by_subaccount": "number",
    "next": ["string"]
  },
  "data": [
    {
      "sender": "string",
      "route": "string",
      "source_coin": {
        "denom": "string",
        "amount": "string",
        "usd_value": "string"
      },
      "dest_coin": {
        "denom": "string",
        "amount": "string",
        "usd_value": "string"
      },
      "fees": [
        {
          "denom": "string",
          "amount": "string",
          "usd_value": "string"
        }
      ],
      "contract_address": "string",
      "index_by_sender": "number",
      "index_by_sender_contract": "number",
      "tx_hash": "string",
      "executed_at": "number",
      "refund_amount": "string"
    }
  ]
}