DOCS/GRAPHQL API

GraphQL API

Type-safe blockchain queries with full introspection support.

Endpoint

POST https://api.chainvue.io/graphql

Authentication

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Available Queries

NETWORKS

networks

List all available networks

[Network]
network

Get a specific network by chainId

Network

BLOCKS

blocks

List blocks with pagination

BlockConnection
block

Get block by height or hash

Block

IDENTITIES

identities

Search identities

IdentityConnection
identity

Get identity by name or address

Identity
identityHistory

Get revision history

[IdentityVersion]

CURRENCIES

currencies

List all currencies

CurrencyConnection
currency

Get currency by name or ID

Currency
currencyState

Get current state/price

CurrencyState

ADDRESSES

address

Get address details

Address
addressBalances

Get all balances for address

AddressBalanceConnection
addressUtxos

Get UTXOs for address

UTXOConnection
addressTransactions

Get transaction history

AddressTransactionConnection
richList

Get top holders

RichListConnection

Example Query

query GetRecentBlocks {
  blocks(
    chainId: "iJhCezBExJHvtyH3fGhNnt2NhU4Ztkf2yq"
    limit: 10
  ) {
    blocks {
      height
      hash
      timestamp
      txCount
    }
    hasMore
  }
}

Pagination

List queries support cursor-based pagination:

  • limit - Number of items to return (default: 50, max: 100)
  • cursor - Cursor for next page
  • hasMore - Whether more results exist
  • nextCursor - Cursor for the next page

Next Steps