test_add_txn

Returns 10 transactions on Ethereum and BNB Chain, where tx to is 0x55C9…47F1 and tx sender is 0x55C9…47F1, sorted by block height: iso8601 and block height.

By Omkar_BQ · saved 2 October 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $startblockheight: Int!, $endblockheight: Int!, $orderby: [String!]) {
  ethereum(network: $network) {
    inbound: transactions(
      options: {asc: $orderby, limit: $limit}
      height: {gteq: $startblockheight, lteq: $endblockheight}
      txTo: {is: $address}
    ) {
      block {
        timestamp {
          iso8601
        }
        height
      }
    }
    outbound: transactions(
      options: {asc: $orderby, limit: $limit}
      height: {gteq: $startblockheight, lteq: $endblockheight}
      txSender: {is: $address}
    ) {
      block {
        timestamp {
          iso8601
        }
        height
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "limit" : 10,
  "orderby": "block.height",
  "startblockheight": 21942032,
  "endblockheight": 32248213,
  "address": "0x55C979C335e7F7b30F0A86E32CF66927Cf7E47F1"
}

Similar queries