GraphQL API Reference

The GraphQL API provides flexible querying with exactly the data you need.

Endpoint

POST /graphql

Public API

The API is public and does not require authentication. Rate limiting is applied per IP address.

Schema

Types

Transaction

type Transaction {
  signature: String!
  slot: Int!
  blockTime: Int!
  programId: String!
  protocolName: String!
  instructionType: String!
  fee: Int!
  computeUnits: Int!
  accountsCount: Int!
  date: String!
  hour: Int!
}

ProtocolAnalytics

TimeSeriesPoint

FeeAnalytics

Stats

Queries

transactions

Query transactions with filters.

Arguments:

Argument
Type
Required
Description

protocolName

String

No

Filter by protocol

programId

String

No

Filter by program ID

dateFrom

String

No

Start date (YYYY-MM-DD)

dateTo

String

No

End date (YYYY-MM-DD)

signature

String

No

Filter by signature

limit

Int

No

Number of results (default: 100)

offset

Int

No

Number to skip (default: 0)

Example:

transaction

Get a single transaction by signature.

Arguments:

Argument
Type
Required
Description

signature

String

Yes

Transaction signature

Example:

protocolAnalytics

Get analytics for a protocol.

Arguments:

Argument
Type
Required
Description

protocolName

String

Yes

Protocol name

dateFrom

String

No

Start date

dateTo

String

No

End date

Example:

timeSeries

Get time series data.

Arguments:

Argument
Type
Required
Description

protocolName

String

No

Filter by protocol

dateFrom

String

Yes

Start date

dateTo

String

Yes

End date

granularity

String

No

hour or day (default: hour)

Example:

feeAnalytics

Get fee analytics.

Arguments:

Argument
Type
Required
Description

protocolName

String

No

Filter by protocol

dateFrom

String

No

Start date

dateTo

String

No

End date

Example:

stats

Get global statistics.

Example:

Example Requests

Using curl

Using JavaScript

Using Python

GraphQL Playground

You can use any GraphQL client or IDE to explore the API:

Last updated