bsc_transactions

Returns calls and transactions on BNB Chain, where block date since 2025-01-01: count.

By Leon Peterson · saved 11 December 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query GetContractTransactions($network: evm_network!, $contractAddress: String!) {
  EVM(dataset: combined, network: $network) {
       
    # Internal transactions (calls) involving the contract
    InternalTransactions: Calls(
      where: {
        Block: {Date: {since: "2025-01-01"}}
        any: [
          {Call: {From: {is: $contractAddress}, Depth: {gt: 0}}}
          {Call: {To: {is: $contractAddress}, Depth: {gt: 0}}}
        ]
      }
    ) {
      count
    }
    
    # Total external transactions
    TotalExternalTransactions: Transactions(
      where: {
        Block: {Date: {since: "2025-01-01"}}
        any: [
          {Transaction: {To: {is: $contractAddress}}}
          {Transaction: {From: {is: $contractAddress}}}
        ]
      }
    ) {
      count
    }
  }
}

Variables

{
  "network": "bsc",
  "contractAddress": "0x6579Ce535723073112F346Ea7aAedBC7eea74Cb5"
}

Similar queries