Market Swaps

Returns the latest 10 smart contract events and transactions on Ethereum and BNB Chain, where smart contract address is 0xACbF…5649, tx hash is 0x0838…dba9 and smart contract event is SwapMade: transaction hash, block height, iso8601, unixtime, event index, argument, argument type and 9 more fields.

By Mr.milanesa · saved 5 May 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    smartContractEvents(
      options: {desc: "block.height", limit: 10}
      smartContractEvent: {is: "SwapMade"}
      smartContractAddress: {is: "0xACbF7e6505d5E0F7D992B725eaf9d3563Baf5649"}
    ) {
      transaction {
        hash
      }
      block {
        height
        timestamp {
          iso8601
          unixtime
        }
      }
      eventIndex
      arguments {
        argument
        argumentType
        index
        value
      }
    }
    transactions {
      amount
    }
    transfers(
      txHash: {in: "0x0838a2a7a094e8aa8bf5b294424e30ca6525fe3766f39b1d5968791fb703dba9"}
    ) {
      amount
      currency {
        address
        decimals
        name
        symbol
        tokenId
        tokenType
      }
    }
  }
}

Similar queries