Query_Fail

Returns 25 transactions on Ethereum and BNB Chain, where tx to is 0x12f5…1e82 and tx sender is 0x12f5…1e82, sorted by block height: sender address, contract type, protocol type, to address, amount, success, nonce and 13 more fields.

By Omkar Acharekar · saved 24 March 2023 · run 119 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $orderby: [String!], $address: String!, $startblockheight: Int!, $endblockheight: Int!, $limit: Int!, $offset: Int!, $startdate: ISO8601DateTime!, $enddate: ISO8601DateTime!) {
  ethereum(network: $network) {
    inbound: transactions(
      options: {asc: $orderby, limit: $limit, offset: $offset}
      txTo: {is: $address}
      date: {between: [$startdate, $enddate]}
      height: {gteq: $startblockheight, lteq: $endblockheight}
    ) {
      from: sender {
        address
        smartContract {
          contractType
          protocolType
        }
      }
      to {
        address
        smartContract {
          contractType
          protocolType
        }
      }
      amount
      success
      nonce
      count
      index
      block {
        height
        timestamp {
          iso8601
        }
      }
      gasValue
      gasPrice
      gas
      gasCurrency {
        decimals
        symbol
      }
      hash
      currency {
        address
        decimals
        name
        symbol
      }
    }
    outbound: transactions(
      options: {asc: $orderby, limit: $limit, offset: $offset}
      txSender: {is: $address}
      date: {between: [$startdate, $enddate]}
      height: {gteq: $startblockheight, lteq: $endblockheight}
    ) {
      from: sender {
        address
        smartContract {
          contractType
          protocolType
        }
      }
      to {
        address
        smartContract {
          contractType
          protocolType
        }
      }
      amount
      success
      nonce
      count
      index
      block {
        height
        timestamp {
          iso8601
        }
      }
      gasValue
      gasPrice
      gas
      gasCurrency {
        decimals
        symbol
      }
      hash
      currency {
        address
        decimals
        name
        symbol
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "address": "0x12f5b93b759ddee65dd2fad29954f0ad41f91e82",
  "startblockheight": 4998812,
  "endblockheight": 5148811,
  "limit":25,
  "offset":0,
  "orderby":"block.height",
  "startdate":"2021-02-18",
  "enddate":"2021-02-24"
}

Similar queries