Get USDT Approval Events with TxFrom Field

Returns all the approval events from USDT in descending order.

Returns 10 smart contract events on Ethereum, where smart contract address is 0xdac1…1ec7 and smart contract event is Approval, sorted by block timestamp iso8601, highest first: smart contract event name, smart contract event signature, signature hash, address address, annotation, transaction hash, tx from address and iso8601.

By Nikhil · saved 6 July 2023 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($address: String) {
  ethereum {
    smartContractEvents(
      smartContractAddress: {is: $address}
      smartContractEvent: {is: "Approval"}
      options: {limit: 10, desc: "block.timestamp.iso8601"}
    ) {
      smartContractEvent {
        name
        signature
        signatureHash
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      transaction {
        hash
        txFrom {
          address
        }
      }
      block {
        timestamp {
          iso8601
        }
      }
    }
  }
}

Variables

{
  "address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}

Similar queries