wallet queries - All inbound and outbound transactions of a wallet

All inbound and outbound transactions of a wallet

Returns money flows on Ethereum, where initial address is 0x1f54…fa4c, currency is 0xa0b8…eb48 and date since 2023-01-30, sorted by amount, highest first: sender address, annotation, contract type, currency symbol, currency name, receiver address, amount and 4 more fields.

By gaurav · saved 6 February 2023 · run 18 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $currency: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      currency: {is: $currency}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      amount
      currency {
        symbol
      }
      transaction {
        hash
      }
      block {
        height
      }
      depth
      count
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      currency: {is: $currency}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      amount
      currency {
        symbol
      }
      depth
      transaction {
        hash
      }
      block {
        height
      }
      count
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0x1f549050641488c748118bb76c022a365dccfa4c",
  "currency": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "from": "2023-01-30",
  "till": "2023-02-06T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries