LP Value Information

Get pairs of LP

Returns one address detail on Ethereum and BNB Chain, where address is 0x1afb…20fb, base currency is 0xbb4c…095c and smart contract address is 0x0eD7…4fD0, sorted by block height transaction index, highest first: currency symbol, currency address, balances value, block height, timestamp time, transaction index, count and 11 more fields.

By Casor · saved 12 July 2022 · run 36 times · Bitquery API v1

What it returns

Filters

The query

query($address: String!, $base: [String!]){
  ethereum(network: bsc) {
    address(address: {is: "0x1afb32b76696cdf05593ca3f3957aefb23a220fb"}) {
      balances(currency: {is: $address}) {
        currency {
          symbol
          address
        }
        value
      }
    }
    dexTrades(
      baseCurrency: {in: $base}
      options: {desc: ["block.height", "transaction.index"], limit: 1}
      smartContractAddress: {is: $address}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        index
      }
      count
      tradeAmount(in: USD)
      exchange {
        fullName
        address {
          address
        }
      }
      smartContract {
        address {
          address
        }
      }
      quoteCurrency {
        address
        symbol
        name
      }
      baseCurrency {
        address
        name
        symbol
      }
      quoteAmount
      quotePrice
    }
    
  }
}

Variables

{
  "address":"0x0eD7e52944161450477ee417DE9Cd3a859b14fD0",
  "base":[
    "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
  ]
}

Similar queries