trx from sender/receiver

Returns the latest transfers on Ethereum, where currency is 0xdac1…1ec7, sender is 0xa5cb…0187 and receiver is 0xc275…be19: timestamp time, block height, sender address, receiver address, transaction hash, amount, currency symbol and 3 more fields.

By Isha · saved 28 September 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!,$currency: String!$sender: String!,$receiver: String!) {
  ethereum(network: $network) {
    transfers(
      options: {desc: "block.timestamp.time"}
      currency:{is:$currency}
      sender:{is:$sender}
      receiver: {is: $receiver}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      sender {
        address
      }
      receiver {
        address
      }
      transaction {
        hash
      }

      amount(amount: {})
      currency {
        symbol
        address
        decimals
        name
      }
    }
  }
}

Variables

{
  "network": "ethereum",
  "sender":"0xa5cb0648383b871de9d8c8a2f31bb985ec160187",
  "receiver":"0xc275eb05cdc185e28a717e3883c24c77b82bbe19",
  "currency":"0xdac17f958d2ee523a2206206994597c13d831ec7"
}

Similar queries