BSC ALL TX

Returns the latest 5000 transactions and transfers on Ethereum and BNB Chain, where tx to is 0x7f5B…f7D2, tx sender is 0x7f5B…f7D2 and receiver is 0x7f5B…f7D2: timestamp time, block height, hash, gas value, to address, contract type, gas currency name and 23 more fields.

By geebz · saved 7 October 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
    ethereum(network: $network) {
      inbound_tx: transactions(
        options: {desc: "block.height", limit: $limit, offset: $offset}
        date: {since: $from, till: $till}
        txTo: {is: $address}
      ) {
        block {
          timestamp {
            time(format: "%Y-%m-%d %H:%M:%S")
          }
          height
        }
        hash
        gasValue
        to {
          reveiverAddress: address
          smartContract {
            contractType
          }
        }
        gasCurrency {
          name
          tokenId
          symbol
          tokenType
        }
        currency {
          decimals
          address
          name
          symbol
          tokenId
          tokenType
        }
        amount
        count
        error
        gas
        gasPrice
        index
        nonce
        success
        creates {
          address
          annotation
        }
        address: sender {
          senderAddress: address
        }
      }
      outbound_tx: transactions(
        options: {desc: "block.height", limit: $limit, offset: $offset}
        date: {since: $from, till: $till}
        txSender: {is: $address}
      ) {
        block {
          timestamp {
            time(format: "%Y-%m-%d %H:%M:%S")
          }
          height
        }
        hash
        gasValue
        to {
          address
          smartContract {
            contractType
          }
        }
        gasCurrency {
          name
          tokenId
          symbol
          tokenType
        }
        currency {
          decimals
          address
          name
          symbol
          tokenId
          tokenType
        }
        amount
        count
        error
        gas
        gasPrice
        index
        nonce
        success
        creates {
          address
          annotation
        }
        address: sender {
          address
        }
      }
      internal_tx: transfers(
        receiver: {is: $address}
        options: {limit: $limit, offset: $offset}
        date: {since: $from, till: $till}
      ) {
        currency(currency: {is: "BNB"}) {
          symbol
          tokenId
          tokenType
          name
          decimals
          address
        }
        receiver {
          address
        }
        sender {
          address
        }
        amount
        block {
          height
          timestamp {
            iso8601
          }
        }
        transaction {
          txFrom {
            address
            annotation
          }
          gas
          hash
        }
        external(external: false)
      }
      internalTx_out: transfers(
        sender: {is: $address}
        options: {limit: $limit, offset: $offset}
      ) {
        currency(currency: {is: "BNB"}) {
          symbol
          tokenId
          tokenType
          name
          decimals
          address
        }
        receiver {
          address
        }
        sender {
          address
        }
        amount
        block {
          height
          timestamp {
            iso8601
          }
        }
        transaction {
          txFrom {
            address
            annotation
          }
          gas
          hash
        }
        external(external: false)
      }
    }
}

Variables

{
  "network":"bsc",
  "address":"0x7f5B2F361A2C983ce4E41326424E110C1e94f7D2",
  "limit":5000,
  "offset":0,
  "since":null,
  "till":null,
  "dateFormat":"%Y-%m-%d"
}

Similar queries