txs_for_address_in_block

get any txs involving a given address in a given block

Returns transactions and blocks, where block number is 21825102: data, from, to, transaction hash, gas price, gas fee cap, gas tip cap and 6 more fields.

By Rob · saved 11 February 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query ($address: String, $block: String) {
  EVM {
    Transactions(
      where: {Block: {Number: {eq: $block}}, any: [{Transaction: {To: {is: $address}}}, {Transaction: {From: {is: $address}}}]}
    ) {
      Transaction {
        Data
        From
        To
        Hash
        GasPrice
        GasFeeCap
        GasTipCap
        Cost
        Type
        Value
      }
      TransactionStatus {
        Success
      }
    }
    Blocks(where: {Block: {Number: {eq: $block}}}) {
      Block {
        Number
        ParentHash
      }
    }
  }
}

Variables

{
  "address": "0x959053F8ab48C799b40bE561F8D135604C534564",
  "block": "21825102"
}

Similar queries