historical ofac data example

Returns the latest 10 events on Ethereum, where transaction hash is 0xaffc…059a, block date since 2023-08-01 and block date till 2023-09-01: block number, block time, call path, internal calls, from, to, signature name and 11 more fields.

By Divyasshree · saved 10 April 2026 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive, network: eth) {
    Events(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Transaction: {Hash: {is: "0xaffc906f070c27c62b308bb65a7f0dae5c018ab1ce99745a7d29fd79f31b059a"}}, Block: {Number: {eq: "17894128"}, Date: {since: "2023-08-01", till: "2023-09-01"}}}
    ) {
      Block {
        Number
        Time
      }
      Call {
        CallPath
        InternalCalls
        From
        To
        Signature {
          Name
        }
      }
      Topics {
        Hash
      }
      Transaction {
        From
        To
        Type
      }
      Arguments {
        Name
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
      Log {
        Signature {
          Name
        }
        SmartContract
      }
    }
  }
}

Similar queries