alexis davis

payment, deposits,assets

Returns 10 address details and blocks on Tron, Bitcoin and Algorand, where height is 10, height is above 10 and version is 10: balance, claimable rewards, protocol type, contract type, annotation, address, any of date and 38 more fields.

By alexis · saved 24 July 2023 · Bitquery API v1

What it returns

Filters

The query

query MyQuery {
  tron(network: tron) {
    address(address: {in: "", is: ""}) {
      balance(in: USD)
      claimableRewards(in: USD)
      smartContract {
        protocolType
        contractType
      }
      annotation
      address
    }
    blocks(
      any: {date: {in: "", before: "", between: "", is: "", since: ""}, height: {in: 10, gteq: 10, gt: 10, between: 10, is: 10}, version: {in: 10, is: 10, gt: 10}, witness: {in: "", is: ""}}
      blockHash: {in: "", is: ""}
      date: {in: "", is: "", between: ""}
      options: {limit: 10}
    ) {
      any(of: date)
      countBigInt(blockHash: {in: "", is: ""}, uniq: witnesses)
      count(
        blockHash: {in: "", is: ""}
        date: {is: "", in: "", not: "", since: ""}
        height: {is: 10, in: 10, notIn: 10}
        parentBlockHash: {is: "", in: ""}
        version: {in: 10, is: 10}
        uniq: witnesses
        witness: {in: "", is: ""}
      )
    }
    arguments(any: {external: true, signatureType: Function}, date: {}) {
      smartContractSignature(
        signatureType: Function
        smartContractMethod: {}
        smartContractEvent: {in: "", is: ""}
      ) {
        ... on Method {
          name
          signature
          signatureHash
        }
        ... on Event {
          name
          signature
          signatureHash
        }
      }
      txIndex
      value {
        value
        address {
          annotation
          address
        }
      }
      number(
        argumentType: {is: ""}
        external: true
        receiver: {in: "", is: ""}
        signatureType: Function
        smartContractAddress: {in: "", is: ""}
        smartContractEvent: {in: "", is: ""}
        smartContractMethod: {in: "", is: ""}
        time: {after: "", is: "", in: "", since: "", till: ""}
        txHash: {in: "", is: ""}
      )
      owner {
        address
        annotation
        smartContract {
          contractType
          currency {
            tokenType
            symbol
            name
            decimals
          }
          protocolType
        }
      }
      receiver {
        address
        smartContract {
          contractType
          protocolType
        }
        annotation
      }
      smartContract {
        currency {
          name
          symbol
          decimals
        }
        contractType
      }
      txHash
    }
  }
  bitcoin(network: bitcoin)
  algorand(network: algorand) {
    address(address: {in: "", is: ""}) {
      status
      pendingRewards(in: USD)
      rewards(in: USD)
    }
    blocks(
      blockHash: {in: "", is: "", notIn: ""}
      currentProtocol: {in: ""}
      date: {before: "", between: "", in: "", after: ""}
      blockReward: {in: 1.5, between: 1.5, gteq: 1.5, is: 1.5}
      height: {}
      proposer: {in: ""}
    ) {
      any(of: date)
      currentProtocol
      expression(get: "")
      frac
      hash
      maximum(of: date, get: date)
      nextProtocolApprovals
      nextProtocolSwitchOn
      nextProtocolVoteBefore
      count(currentProtocol: {in: "", is: ""})
      minimum(of: date, get: date)
      previousBlockHash
      reward(calculate: maximum, currentProtocol: {in: "", is: ""}, in: USD)
      seed
      timestamp(time: {between: "", before: ""})
      txnRoot
      upgradeApprove
      upgradePropose
    }
    smartContractCalls(
      any: {date: {after: "", in: "", is: "", before: ""}, time: {in: "", is: ""}}
    ) {
      any(of: date)
      count(date: {is: "", in: ""}, txIndex: {in: 10, is: 10})
      genesisHash64
      lastRound
      maximum(of: date, get: date)
      note
    }
  }
  metrics(queryId: "") {
    id
    sqlRequestsCount
  }
}

Variables

{}a

Similar queries