tron query justmoney bug

Returns the latest 10 DEX trades on Tron, where tx hash is 0x77a1…86c3: timestamp time, block height, trade index, protocol, full name, address address, annotation and 8 more fields.

By gaurav · saved 9 June 2022 · Bitquery API v1

What it returns

Filters

The query

query ($network: TronNetwork!, $hash: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  tron(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      txHash: {is: $hash}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        symbol
        tokenType
      }
      sellAmount
      sellCurrency {
        address
        symbol
        tokenType
      }
      price
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "tron",
  "hash": "0x77a17c527e55b2bb35c3dcf2bcbfafca81b60236f445d62e1b2d720159cb86c3"
}

Similar queries