token details using aliasing

Returns 2 smart contract events and transfers on Ethereum, where smart contract address is 0x5C69…aA6f, receiver is 0xf2a5…bbcf and smart contract address is 0xf629…3b9c, sorted by block timestamp time: argument, arguments value, block height, unixtime, timestamp time, currency symbol, amount and 5 more fields.

By gaurav · saved 11 August 2022 · run 5 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    contract_events: smartContractEvents(
      options: {desc: "block.height", limit: 10}
      smartContractEvent: {is: "PairCreated"}
      smartContractAddress: {is: "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"}
    ) {
      arguments {
        argument
        value
      }
      block {
        height
        timestamp {
          unixtime
        }
      }
    }
    transfers: transfers(
      options: {asc: "block.timestamp.time", limit: 2}
      amount: {gt: 0}
      receiver: {is: "0xf2a5fa5d574362e2d082e52b52ac570f7470bbcf"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      currency {
        symbol
      }
      amount
    }
    contract_calls: smartContractCalls(
      smartContractAddress: {is: "0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c"}
    ) {
      smartContract {
        contractType
        address {
          address
        }
        currency {
          symbol
          name
          decimals
          tokenType
        }
      }
      amount
    }
  }
}

Similar queries