in and out transactions from a wallet

Returns 10 transactions on Ethereum, where transaction to is 0x19f4…1e1e and transaction from is 0x19f4…1e1e: block time, block number, transaction hash, cost, to and from.

By Divyasshree N · saved 5 April 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query myquery($address:String!){
  EVM(dataset: combined, network: eth) {
    in_transaction: Transactions(
      limit: {count: 10}
      orderBy: [{descending: Block_Number}]
      where: {Transaction: {To: {is: $address}}}
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
        Cost
        To
        From
      }
    }
     out_transaction: Transactions(
      limit: {count: 10}
      orderBy: [{descending: Block_Number}]
      where: {Transaction: {From: {is: $address}}}
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
        Cost
        To
        From
      }
    }
  }
}

Variables

{
  "address":"0x19f4d695952cef25328686ac7db05bddaba81e1e"
}

Similar queries