Solana - Block Rewards by Addresses

Returns block rewards on Solana, where height is above 0, sorted by block height: block height, iso8601, block hash, amount, reward type, currency address, currency name and 2 more fields.

By Nick · saved 17 October 2024 · Bitquery API v1

What it returns

Filters

The query

query (
  $addresses: [String!]!
  $blockHashes: [String!]
  $limit: Int!
  $offset: Int!
  $from: ISO8601DateTime
  $till: ISO8601DateTime
  $fromHeight: Int = 0
) {
  solana(network: solana) {
    blockRewards(
      options: { limit: $limit, offset: $offset, asc: "block.height" }
      date: { since: $from, till: $till }
      height: { gt: $fromHeight }
      account: { in: $addresses }
      blockHash: { in: $blockHashes }
    ) {
      block {
        height
        timestamp {
          iso8601
        }
        hash
      }
      amount
      rewardType
      currency {
        address
        name
        symbol
      }
      account
    }
  }
}

Similar queries