Midnight Indexer API
The Midnight Indexer API exposes a GraphQL API that enables clients to query and subscribe to blockchain data — blocks, transactions, contracts, and wallet-related events — indexed from the Midnight blockchain.
The deployed version of the Midnight Indexer API is v4.4.
Types, fields, queries, and subscriptions marked Beta are unstable upstream and may change without notice. This includes the bridge API, contract events, and the DUST generation and Merkle tree API.
For the raw GraphQL schema specification, see the Midnight Indexer GraphQL Schema.
API Endpoints
https://midnight-mainnet.blockfrost.io/api/v0
Headers
# Your Blockfrost project ID for Midnight Mainnet
project_id: YOUR_PROJECT_ID
Quick Start
Create a Midnight project on blockfrost.io and make your first API call:
curl -X POST https://midnight-mainnet.blockfrost.io/api/v0 \
-H "project_id: YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"query": "{ block { hash height timestamp } }"}'
Response:
{
"data": {
"block": {
"hash": "d193b2686197789ace64962eb3049c5b94c4bbf9b07da04bef034cd75d83afc4",
"height": 192998,
"timestamp": 1770787800000
}
}
}
Endpoints
Blockfrost exposes three Midnight services. Available networks: mainnet, preprod, preview.
| Service | URL |
|---|---|
| Indexer API | https://midnight-{network}.blockfrost.io/api/v0 |
| Indexer WebSocket | wss://midnight-{network}.blockfrost.io/api/v0/ws |
| Node RPC | https://rpc.midnight-{network}.blockfrost.io |
Indexer API — Send GraphQL queries and mutations over HTTP POST. This is the main entry point for fetching blockchain data (blocks, transactions, contracts, DUST status).
Indexer WebSocket — Subscribe to real-time events using the graphql-transport-ws protocol. Supports block streaming, contract actions, shielded/unshielded transactions, and ledger events.
Node RPC — Direct JSON-RPC connection to the Midnight Node for low-level runtime access, wallet providers, and transaction submission. Use it with libraries like midnight.js that need a node connection.
Authentication
All requests require a valid project ID. There are two ways to pass it:
HTTP header
Include project_id as a request header.
curl -X POST https://midnight-mainnet.blockfrost.io/api/v0 \
-H "project_id: YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"query": "{ block { hash height } }"}'
Query parameter
Append ?project_id=YOUR_PROJECT_ID to the endpoint URL. Use this when your client doesn't support setting custom headers (e.g. Midnight.js SDK).
https://midnight-{network}.blockfrost.io/api/v0?project_id=YOUR_PROJECT_ID
wss://midnight-{network}.blockfrost.io/api/v0/ws?project_id=YOUR_PROJECT_ID
https://rpc.midnight-{network}.blockfrost.io?project_id=YOUR_PROJECT_ID
Replace {network} with mainnet, preprod, or preview.
Request Format
Send a POST request with a JSON body containing:
query(required): The GraphQL query, mutation, or subscription stringvariables(optional): Variables for the GraphQL operation
Example:
{
"query": "query GetBlock($offset: BlockOffset) { block(offset: $offset) { hash height } }",
"variables": { "offset": { "height": 100 } }
}
or without variables:
{
"query": "query { block(offset: { height: 100 }) { hash height } }"
}
Response Format
Responses follow the standard GraphQL format:
{
"data": {
"block": {
"hash": "d193b2686197789ace64962eb3049c5b94c4bbf9b07da04bef034cd75d83afc4",
"height": 192998,
"timestamp": 1770787800000
}
}
}
On error:
{
"data": null,
"errors": [
{
"message": "Invalid value for argument \"offset.height\" expected type \"Int\"",
"locations": [{ "line": 1, "column": 15 }],
"path": ["block"]
}
]
}
HTTP Query Examples
Query the latest block:
curl -X POST https://midnight-mainnet.blockfrost.io/api/v0 \
-H "project_id: YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"query": "{ block { hash height timestamp author transactions { hash } } }"}'
Query a block by height:
curl -X POST https://midnight-mainnet.blockfrost.io/api/v0 \
-H "project_id: YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"query": "{ block(offset: { height: 3 }) { hash height protocolVersion timestamp transactions { hash } } }"}'
Query transactions by hash:
curl -X POST https://midnight-mainnet.blockfrost.io/api/v0 \
-H "project_id: YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"query": "{ transactions(offset: { hash: \"YOUR_TX_HASH\" }) { hash protocolVersion block { height hash } ... on RegularTransaction { fee } } }"}'
Query DUST generation status:
curl -X POST https://midnight-mainnet.blockfrost.io/api/v0 \
-H "project_id: YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"query": "{ dustGenerationStatus(cardanoRewardAddresses: [\"YOUR_CARDANO_REWARD_ADDRESS\"]) { cardanoRewardAddress dustAddress registered nightBalance generationRate currentCapacity } }"}'
Query contract actions:
curl -X POST https://midnight-mainnet.blockfrost.io/api/v0 \
-H "project_id: YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"query": "{ contractAction(address: \"YOUR_CONTRACT_ADDRESS\") { address state transaction { hash } unshieldedBalances { tokenType amount } } }"}'
WebSocket Subscriptions
Subscriptions use a WebSocket connection following the GraphQL over WebSocket protocol.
Most subscriptions accept an optional offset parameter, allowing you to resume from a specific block height or transaction hash instead of starting from the tip. This is useful for catching up after a reconnect without re-processing events you've already seen.
Connecting with websocat:
websocat wss://midnight-mainnet.blockfrost.io/api/v0/ws \
--protocol "graphql-transport-ws" \
-H "project_id: YOUR_PROJECT_ID"
Step 1 — Initialize the connection:
After connecting, send a connection_init message:
{"type": "connection_init"}
The server responds with:
{"type": "connection_ack"}
Step 2 — Send a subscription:
Once acknowledged, send a subscribe message with your GraphQL subscription query:
{
"id": "1",
"type": "subscribe",
"payload": {
"query": "subscription { blocks { hash height timestamp transactions { hash } } }"
}
}
Step 3 — Receive events:
The server pushes next messages whenever new data is available:
{
"id": "1",
"type": "next",
"payload": {
"data": {
"blocks": {
"hash": "d193b2686197789ace64962eb3049c5b94c4bbf9b07da04bef034cd75d83afc4",
"height": 192998,
"timestamp": 1770787800000,
"transactions": []
}
}
}
}
Connecting from JavaScript:
const url = "wss://midnight-mainnet.blockfrost.io/api/v0/ws?project_id=YOUR_PROJECT_ID";
const ws = new WebSocket(url, "graphql-transport-ws");
ws.onopen = () => {
ws.send(JSON.stringify({ type: "connection_init" }));
};
ws.onmessage = (event) => {
const msg = JSON.parse(event.data);
if (msg.type === "connection_ack") {
ws.send(
JSON.stringify({
id: "1",
type: "subscribe",
payload: {
query: "subscription { blocks { hash height timestamp } }",
},
})
);
}
if (msg.type === "next") {
console.log("New block:", msg.payload.data);
}
};
WebSocket Close Codes
Close codes sent by the Midnight Indexer, including the graphql-transport-ws protocol codes (4400, 4401, 4403, 4408, 4409 and others), are forwarded to your client unchanged, with these exceptions:
| Code | Meaning |
|---|---|
4004, 4005, 4006 |
The upstream connection closed with 1004, 1005 or 1006. These codes are reserved and can't be sent in a close frame, so Blockfrost adds 3000 to them. 4006 means the connection to the indexer dropped without a close frame (abnormal closure). |
4429 |
Close reason Rate limit exceeded: too many subscribe messages for your project from the same IP address. |
1013 |
WebSocket send queue exceeded: too many messages were queued for the connection, usually because the client isn't reading them fast enough. |
In all of these cases, reconnect and subscribe again. To avoid missing events, resume from the last event you processed with the subscription's cursor argument:
| Subscription | Resume with |
|---|---|
blocks, contractActions |
offset (a BlockOffset) |
dustLedgerEvents, zswapLedgerEvents |
id |
contractEvents |
id, or filter.fromBlock |
shieldedTransactions |
index |
unshieldedTransactions |
transactionId |
shieldedNullifierTransactions, dustNullifierTransactions |
fromBlock |
dustGenerations |
Subscribe again with a newer blockHash; each subscription returns a complete snapshot at that block. |
bridgePoolUpdates, bridgeBalance |
No cursor. Both emit the current state when you subscribe, but updates sent while you were disconnected are not replayed. |
Query Limits
The server may apply limitations to queries:
max-depth: Maximum nesting depthmax-fields: Maximum number of fieldstimeout: Query execution timeoutcomplexity: Query complexity cost
Requests exceeding limits return errors:
{
"data": null,
"errors": [{ "message": "Query has too many fields: 20. Max fields: 10." }]
}
Pagination with Offsets
Many queries support offsets for pagination:
BlockOffset (oneOf — provide exactly one):
hash: Hex-encoded block hashheight: Block height number
TransactionOffset (oneOf — provide exactly one):
hash: Hex-encoded transaction hashidentifier: Hex-encoded transaction identifier
ContractActionOffset (oneOf — provide exactly one):
blockOffset: A BlockOffsettransactionOffset: A TransactionOffset
If no offset is provided, the latest result is returned.
Shielded Transactions
Shielded transactions are at the core of Midnight's privacy model. Because transaction data is encrypted on-chain, the indexer needs a viewing key to determine which transactions are relevant to a specific wallet.
The connect mutation establishes a server-side session for a given viewing key. The indexer uses this key to scan the chain and filter shielded transactions relevant to that wallet. It returns a session ID used to authenticate the shieldedTransactions subscription.
When you no longer need to monitor shielded transactions for a wallet, call the disconnect mutation with the session ID to end the session and free server-side resources.
Step 1 — Connect with a viewing key:
curl -X POST https://midnight-mainnet.blockfrost.io/api/v0 \
-H "project_id: YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"query": "mutation { connect(viewingKey: \"YOUR_VIEWING_KEY\") }"}'
Response:
{
"data": {
"connect": "SESSION_ID_HEX"
}
}
The viewing key can be in Bech32m format (preferred, e.g. mn_shield-esk1...) or hex.
To skip scanning the start of the chain, pass options: { startIndex: N } to connect; the indexer then searches for relevant transactions from transaction index N onwards.
Step 2 — Subscribe to shielded transactions:
Using the session ID from the connect mutation, subscribe via WebSocket:
{
"id": "1",
"type": "subscribe",
"payload": {
"query": "subscription($sid: HexEncoded!) { shieldedTransactions(sessionId: $sid) { ... on RelevantTransaction { transaction { hash zswapStartIndex zswapEndIndex } zswapCollapsedUpdate { startIndex endIndex update } } ... on ShieldedTransactionsProgress { highestZswapEndIndex highestCheckedZswapEndIndex highestRelevantZswapEndIndex } } }",
"variables": { "sid": "SESSION_ID_HEX" }
}
}
The subscription emits two event types:
RelevantTransaction— a transaction relevant for the wallet. When there is a gap between the current zswap index and the transaction'szswapStartIndex, it also carries azswapCollapsedUpdatewith the collapsed Merkle tree update for that gap.ShieldedTransactionsProgress— reports sync progress (highestZswapEndIndex,highestCheckedZswapEndIndex,highestRelevantZswapEndIndex), useful for showing progress in a UI.
Pass the optional index argument to resume the subscription from a given index instead of zero.
Step 3 — Disconnect when done:
curl -X POST https://midnight-mainnet.blockfrost.io/api/v0 \
-H "project_id: YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"query": "mutation { disconnect(sessionId: \"SESSION_ID_HEX\") }"}'
Other Subscriptions
Besides blocks and shieldedTransactions, the following subscriptions are available:
contractActions(address: HexEncoded!, offset: BlockOffset)— real-time contract events (deploys, calls, updates) for a specific contract addressunshieldedTransactions(address: UnshieldedAddress!, transactionId: Int)— unshielded transaction events for an address, with optional resume from a specific transaction IDdustLedgerEvents(id: Int)— DUST ledger state changes (initial UTXOs, generation time updates, spend processing, parameter changes)zswapLedgerEvents(id: Int)— zswap ledger state changesshieldedNullifierTransactions(nullifierPrefixes: [HexEncoded!]!, fromBlock: Int, toBlock: Int)— references to transactions containing shielded (zswap) nullifiers that match the given prefixes; completes aftertoBlockif setdustNullifierTransactions(nullifierLeBytesPrefixes: [HexEncoded!]!, fromBlock: Int, toBlock: Int)— references to transactions containing DUST nullifiers that match the given little-endian prefixes; completes aftertoBlockif set
The following subscriptions are Beta:
contractEvents(filter: ContractEventFilter!, id: Int)— contract events (mints, burns, spends, receives, pause/unpause, and custom events) matching a filter, in ID order; completes oncefilter.toBlockis reached if setdustGenerations(dustAddress: DustAddress!, blockHash: HexEncoded!, dtimeCutoffHeight: Int!)— a consistent snapshot of a DUST address's generations at a given block, interleaved with collapsed Merkle tree updates; completes once emittedbridgePoolUpdates— bridge pool summary snapshots emitted alongside pool-affecting eventsbridgeBalance(address: HexEncoded!)— a recipient's bridge balance, re-emitted when it changes
Resources
For more information about the Midnight Indexer API, see the official Midnight documentation.
Queries
block
Description
Find a block for the given optional offset; if not present, the latest block is returned.
Response
Returns a Block
Arguments
| Name | Description |
|---|---|
offset - BlockOffset
|
Example
Query
query Block($offset: BlockOffset) {
block(offset: $offset) {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
transactions {
id
hash
protocolVersion
raw
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
systemParameters {
dParameter {
...DParameterFragment
}
termsAndConditions {
...TermsAndConditionsFragment
}
}
contractZswapState
}
transactions {
id
hash
protocolVersion
raw
block {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
contractActions {
address
state
zswapState
transaction {
...TransactionFragment
}
unshieldedBalances {
...ContractBalanceFragment
}
}
unshieldedCreatedOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
unshieldedSpentOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
zswapLedgerEvents {
id
raw
maxId
protocolVersion
}
dustLedgerEvents {
id
raw
maxId
protocolVersion
}
}
systemParameters {
dParameter {
numPermissionedCandidates
numRegisteredCandidates
}
termsAndConditions {
hash
url
}
}
contractZswapState
}
}
Variables
{"offset": BlockOffset}
Response
{
"data": {
"block": {
"hash": HexEncoded,
"height": 987,
"protocolVersion": 123,
"timestamp": 987,
"author": HexEncoded,
"zswapMerkleTreeRoot": HexEncoded,
"ledgerParameters": HexEncoded,
"zswapEndIndex": 987,
"dustCommitmentEndIndex": 987,
"dustGenerationEndIndex": 987,
"dustCommitmentMerkleTreeRoot": HexEncoded,
"dustGenerationMerkleTreeRoot": HexEncoded,
"parent": Block,
"transactions": [Transaction],
"systemParameters": SystemParameters,
"contractZswapState": HexEncoded
}
}
}
bridgeBalance
Description
Beta: this API is unstable and may change without notice.
Get the c2m-bridge balance summary (deposited, claimed, balance) for an address.
Response
Returns a BridgeBalance!
Arguments
| Name | Description |
|---|---|
address - HexEncoded!
|
Example
Query
query BridgeBalance($address: HexEncoded!) {
bridgeBalance(address: $address) {
deposited
claimed
balance
}
}
Variables
{"address": HexEncoded}
Response
{
"data": {
"bridgeBalance": {
"deposited": HexEncoded,
"claimed": HexEncoded,
"balance": HexEncoded
}
}
}
bridgeDeposits
Description
Beta: this API is unstable and may change without notice.
Convenience query for a recipient's deposit history. By default returns only successful UserTransfer events; pass includeUnapproved: true to also include UnapprovedTransfer.
Response
Returns [BridgeEvent!]!
Arguments
| Name | Description |
|---|---|
recipient - HexEncoded!
|
|
includeUnapproved - Boolean
|
|
offset - Int
|
|
limit - Int
|
Example
Query
query BridgeDeposits(
$recipient: HexEncoded!,
$includeUnapproved: Boolean,
$offset: Int,
$limit: Int
) {
bridgeDeposits(
recipient: $recipient,
includeUnapproved: $includeUnapproved,
offset: $offset,
limit: $limit
) {
id
blockHeight
midnightTxHash
}
}
Variables
{
"recipient": HexEncoded,
"includeUnapproved": true,
"offset": 987,
"limit": 123
}
Response
{
"data": {
"bridgeDeposits": [
{
"id": 987,
"blockHeight": 123,
"midnightTxHash": HexEncoded
}
]
}
}
bridgeEvents
Description
Beta: this API is unstable and may change without notice.
List c2m-bridge events with optional filters.
Response
Returns [BridgeEvent!]!
Arguments
| Name | Description |
|---|---|
recipient - HexEncoded
|
|
variant - BridgeEventVariant
|
|
blockHeightFrom - Int
|
|
blockHeightTo - Int
|
|
offset - Int
|
|
limit - Int
|
Example
Query
query BridgeEvents(
$recipient: HexEncoded,
$variant: BridgeEventVariant,
$blockHeightFrom: Int,
$blockHeightTo: Int,
$offset: Int,
$limit: Int
) {
bridgeEvents(
recipient: $recipient,
variant: $variant,
blockHeightFrom: $blockHeightFrom,
blockHeightTo: $blockHeightTo,
offset: $offset,
limit: $limit
) {
id
blockHeight
midnightTxHash
}
}
Variables
{
"recipient": HexEncoded,
"variant": "USER_TRANSFER",
"blockHeightFrom": 987,
"blockHeightTo": 987,
"offset": 123,
"limit": 987
}
Response
{
"data": {
"bridgeEvents": [
{
"id": 123,
"blockHeight": 987,
"midnightTxHash": HexEncoded
}
]
}
}
bridgePoolSummary
Description
Beta: this API is unstable and may change without notice.
Aggregate snapshot of bridge inflows to protocol pools (Reserve and Treasury).
Response
Returns a BridgePoolSummary!
Arguments
| Name | Description |
|---|---|
atBlock - Int
|
Example
Query
query BridgePoolSummary($atBlock: Int) {
bridgePoolSummary(atBlock: $atBlock) {
reserveTotal
treasuryByReason {
reason
total
count
}
subminimumTxCount
lastEventBlockHeight
}
}
Variables
{"atBlock": 987}
Response
{
"data": {
"bridgePoolSummary": {
"reserveTotal": HexEncoded,
"treasuryByReason": [BridgeTreasuryAggregate],
"subminimumTxCount": 987,
"lastEventBlockHeight": 123
}
}
}
bridgeReserveInflows
Description
Beta: this API is unstable and may change without notice.
List Reserve top-up events (ReserveTransfer), optionally bounded by block height.
Response
Returns [BridgeEvent!]!
Example
Query
query BridgeReserveInflows(
$blockHeightFrom: Int,
$blockHeightTo: Int,
$offset: Int,
$limit: Int
) {
bridgeReserveInflows(
blockHeightFrom: $blockHeightFrom,
blockHeightTo: $blockHeightTo,
offset: $offset,
limit: $limit
) {
id
blockHeight
midnightTxHash
}
}
Variables
{"blockHeightFrom": 987, "blockHeightTo": 123, "offset": 123, "limit": 123}
Response
{
"data": {
"bridgeReserveInflows": [
{
"id": 123,
"blockHeight": 987,
"midnightTxHash": HexEncoded
}
]
}
}
bridgeTreasuryInflows
Description
Beta: this API is unstable and may change without notice.
List treasury-redirected events (Invalid, Unapproved, SubminimalFlush), optionally filtered by reason and block range.
Response
Returns [BridgeEvent!]!
Arguments
| Name | Description |
|---|---|
reason - BridgeTreasuryReason
|
|
blockHeightFrom - Int
|
|
blockHeightTo - Int
|
|
offset - Int
|
|
limit - Int
|
Example
Query
query BridgeTreasuryInflows(
$reason: BridgeTreasuryReason,
$blockHeightFrom: Int,
$blockHeightTo: Int,
$offset: Int,
$limit: Int
) {
bridgeTreasuryInflows(
reason: $reason,
blockHeightFrom: $blockHeightFrom,
blockHeightTo: $blockHeightTo,
offset: $offset,
limit: $limit
) {
id
blockHeight
midnightTxHash
}
}
Variables
{
"reason": "INVALID",
"blockHeightFrom": 987,
"blockHeightTo": 123,
"offset": 123,
"limit": 123
}
Response
{
"data": {
"bridgeTreasuryInflows": [
{
"id": 123,
"blockHeight": 123,
"midnightTxHash": HexEncoded
}
]
}
}
committee
Description
Get committee membership for an epoch.
Response
Returns [CommitteeMember!]!
Arguments
| Name | Description |
|---|---|
epoch - Int!
|
Example
Query
query Committee($epoch: Int!) {
committee(epoch: $epoch) {
epochNo
position
sidechainPubkeyHex
expectedSlots
auraPubkeyHex
poolIdHex
spoSkHex
}
}
Variables
{"epoch": 123}
Response
{
"data": {
"committee": [
{
"epochNo": 123,
"position": 123,
"sidechainPubkeyHex": "xyz789",
"expectedSlots": 987,
"auraPubkeyHex": "xyz789",
"poolIdHex": "xyz789",
"spoSkHex": "xyz789"
}
]
}
}
contract
Description
Beta: this API is unstable and may change without notice.
Find a contract by address, resolved as of the given block offset (or its latest state if no offset is given). Returns null if the contract has no action at or before that block.
Response
Returns a Contract
Arguments
| Name | Description |
|---|---|
address - HexEncoded!
|
|
offset - BlockOffset
|
Example
Query
query Contract(
$address: HexEncoded!,
$offset: BlockOffset
) {
contract(
address: $address,
offset: $offset
) {
address
state
maintenanceAuthority {
committee {
kind
key
}
threshold
counter
}
actions {
address
state
zswapState
transaction {
id
hash
protocolVersion
raw
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
unshieldedBalances {
tokenType
amount
}
}
}
}
Variables
{
"address": HexEncoded,
"offset": BlockOffset
}
Response
{
"data": {
"contract": {
"address": HexEncoded,
"state": HexEncoded,
"maintenanceAuthority": ContractMaintenanceAuthority,
"actions": [ContractAction]
}
}
}
contractAction
Description
Find a contract action for the given address and optional offset.
Response
Returns a ContractAction
Arguments
| Name | Description |
|---|---|
address - HexEncoded!
|
|
offset - ContractActionOffset
|
Example
Query
query ContractAction(
$address: HexEncoded!,
$offset: ContractActionOffset
) {
contractAction(
address: $address,
offset: $offset
) {
address
state
zswapState
transaction {
id
hash
protocolVersion
raw
block {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
contractActions {
address
state
zswapState
transaction {
...TransactionFragment
}
unshieldedBalances {
...ContractBalanceFragment
}
}
unshieldedCreatedOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
unshieldedSpentOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
zswapLedgerEvents {
id
raw
maxId
protocolVersion
}
dustLedgerEvents {
id
raw
maxId
protocolVersion
}
}
unshieldedBalances {
tokenType
amount
}
}
}
Variables
{
"address": HexEncoded,
"offset": ContractActionOffset
}
Response
{
"data": {
"contractAction": {
"address": HexEncoded,
"state": HexEncoded,
"zswapState": HexEncoded,
"transaction": Transaction,
"unshieldedBalances": [ContractBalance]
}
}
}
contractEvents
Description
Beta: this API is unstable and may change without notice.
Find contract events matching the filter, ordered by ID; limit defaults to 100 and is capped at 500, offset defaults to 0.
Block-range bounds (fromBlock, toBlock) live on ContractEventFilter for symmetry with the subscription. limit/offset are top-level args.
Response
Returns [ContractEvent!]!
Arguments
| Name | Description |
|---|---|
filter - ContractEventFilter!
|
|
limit - Int
|
|
offset - Int
|
Example
Query
query ContractEvents(
$filter: ContractEventFilter!,
$limit: Int,
$offset: Int
) {
contractEvents(
filter: $filter,
limit: $limit,
offset: $offset
) {
id
raw
maxId
protocolVersion
version
contractAddress
transactionId
transaction {
id
hash
protocolVersion
raw
block {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
contractActions {
address
state
zswapState
transaction {
...TransactionFragment
}
unshieldedBalances {
...ContractBalanceFragment
}
}
unshieldedCreatedOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
unshieldedSpentOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
zswapLedgerEvents {
id
raw
maxId
protocolVersion
}
dustLedgerEvents {
id
raw
maxId
protocolVersion
}
}
}
}
Variables
{
"filter": ContractEventFilter,
"limit": 987,
"offset": 987
}
Response
{
"data": {
"contractEvents": [
{
"id": 987,
"raw": HexEncoded,
"maxId": 123,
"protocolVersion": 123,
"version": 987,
"contractAddress": HexEncoded,
"transactionId": 123,
"transaction": Transaction
}
]
}
}
currentEpochInfo
Description
Get current epoch information.
Response
Returns an EpochInfo
Example
Query
query CurrentEpochInfo {
currentEpochInfo {
epochNo
durationSeconds
elapsedSeconds
}
}
Response
{
"data": {
"currentEpochInfo": {
"epochNo": 987,
"durationSeconds": 123,
"elapsedSeconds": 987
}
}
}
dParameterHistory
Description
Get the full history of D-parameter changes for governance auditability.
Response
Returns [DParameterChange!]!
Example
Query
query DParameterHistory {
dParameterHistory {
blockHeight
blockHash
timestamp
numPermissionedCandidates
numRegisteredCandidates
}
}
Response
{
"data": {
"dParameterHistory": [
{
"blockHeight": 123,
"blockHash": HexEncoded,
"timestamp": 123,
"numPermissionedCandidates": 123,
"numRegisteredCandidates": 987
}
]
}
}
dustCommitmentMerkleTreeUpdate
Description
Beta: this API is unstable and may change without notice.
Get a collapsed Merkle tree update for the dust commitment tree.
Response
Returns a MerkleTreeCollapsedUpdate!
Example
Query
query DustCommitmentMerkleTreeUpdate(
$startIndex: Int!,
$endIndex: Int!
) {
dustCommitmentMerkleTreeUpdate(
startIndex: $startIndex,
endIndex: $endIndex
) {
startIndex
endIndex
update
protocolVersion
}
}
Variables
{"startIndex": 987, "endIndex": 987}
Response
{
"data": {
"dustCommitmentMerkleTreeUpdate": {
"startIndex": 123,
"endIndex": 123,
"update": HexEncoded,
"protocolVersion": 123
}
}
}
dustGenerationMerkleTreeUpdate
Description
Beta: this API is unstable and may change without notice.
Get a collapsed Merkle tree update for the dust generation tree.
Response
Returns a MerkleTreeCollapsedUpdate!
Example
Query
query DustGenerationMerkleTreeUpdate(
$startIndex: Int!,
$endIndex: Int!
) {
dustGenerationMerkleTreeUpdate(
startIndex: $startIndex,
endIndex: $endIndex
) {
startIndex
endIndex
update
protocolVersion
}
}
Variables
{"startIndex": 987, "endIndex": 987}
Response
{
"data": {
"dustGenerationMerkleTreeUpdate": {
"startIndex": 123,
"endIndex": 987,
"update": HexEncoded,
"protocolVersion": 987
}
}
}
dustGenerationStatus
Description
Get DUST generation status for specific Cardano reward addresses.
Response
Returns [DustGenerationStatus!]!
Arguments
| Name | Description |
|---|---|
cardanoRewardAddresses - [CardanoRewardAddress!]!
|
Example
Query
query DustGenerationStatus($cardanoRewardAddresses: [CardanoRewardAddress!]!) {
dustGenerationStatus(cardanoRewardAddresses: $cardanoRewardAddresses) {
cardanoRewardAddress
dustAddress
registered
nightBalance
generationRate
maxCapacity
currentCapacity
utxoTxHash
utxoOutputIndex
}
}
Variables
{"cardanoRewardAddresses": [CardanoRewardAddress]}
Response
{
"data": {
"dustGenerationStatus": [
{
"cardanoRewardAddress": CardanoRewardAddress,
"dustAddress": DustAddress,
"registered": true,
"nightBalance": "abc123",
"generationRate": "xyz789",
"maxCapacity": "xyz789",
"currentCapacity": "xyz789",
"utxoTxHash": HexEncoded,
"utxoOutputIndex": 123
}
]
}
}
dustGenerations
Description
Get all active DUST registrations and aggregated generation stats for Cardano reward addresses.
Response
Returns [DustGenerations!]!
Arguments
| Name | Description |
|---|---|
cardanoRewardAddresses - [CardanoRewardAddress!]!
|
Example
Query
query DustGenerations($cardanoRewardAddresses: [CardanoRewardAddress!]!) {
dustGenerations(cardanoRewardAddresses: $cardanoRewardAddresses) {
cardanoRewardAddress
registrations {
dustAddress
valid
nightBalance
generationRate
maxCapacity
currentCapacity
utxoTxHash
utxoOutputIndex
}
}
}
Variables
{"cardanoRewardAddresses": [CardanoRewardAddress]}
Response
{
"data": {
"dustGenerations": [
{
"cardanoRewardAddress": CardanoRewardAddress,
"registrations": [DustRegistration]
}
]
}
}
epochPerformance
Description
Get epoch performance for all SPOs.
Response
Returns [EpochPerf!]!
Example
Query
query EpochPerformance(
$epoch: Int!,
$limit: Int,
$offset: Int
) {
epochPerformance(
epoch: $epoch,
limit: $limit,
offset: $offset
) {
epochNo
spoSkHex
produced
expected
identityLabel
stakeSnapshot
poolIdHex
validatorClass
}
}
Variables
{"epoch": 987, "limit": 987, "offset": 987}
Response
{
"data": {
"epochPerformance": [
{
"epochNo": 987,
"spoSkHex": "xyz789",
"produced": 123,
"expected": 987,
"identityLabel": "xyz789",
"stakeSnapshot": "abc123",
"poolIdHex": "xyz789",
"validatorClass": "abc123"
}
]
}
}
epochUtilization
Description
Get epoch utilization (produced/expected ratio).
poolMetadata
Description
Get pool metadata by pool ID.
Response
Returns a PoolMetadata
Arguments
| Name | Description |
|---|---|
poolIdHex - String!
|
Example
Query
query PoolMetadata($poolIdHex: String!) {
poolMetadata(poolIdHex: $poolIdHex) {
poolIdHex
hexId
name
ticker
homepageUrl
logoUrl
}
}
Variables
{"poolIdHex": "xyz789"}
Response
{
"data": {
"poolMetadata": {
"poolIdHex": "xyz789",
"hexId": "xyz789",
"name": "xyz789",
"ticker": "xyz789",
"homepageUrl": "abc123",
"logoUrl": "abc123"
}
}
}
poolMetadataList
Description
List pool metadata with pagination.
Response
Returns [PoolMetadata!]!
Example
Query
query PoolMetadataList(
$limit: Int,
$offset: Int,
$withNameOnly: Boolean
) {
poolMetadataList(
limit: $limit,
offset: $offset,
withNameOnly: $withNameOnly
) {
poolIdHex
hexId
name
ticker
homepageUrl
logoUrl
}
}
Variables
{"limit": 123, "offset": 123, "withNameOnly": true}
Response
{
"data": {
"poolMetadataList": [
{
"poolIdHex": "abc123",
"hexId": "abc123",
"name": "abc123",
"ticker": "xyz789",
"homepageUrl": "xyz789",
"logoUrl": "xyz789"
}
]
}
}
registeredFirstValidEpochs
Description
Get first valid epoch for each SPO identity.
Response
Returns [FirstValidEpoch!]!
Arguments
| Name | Description |
|---|---|
uptoEpoch - Int
|
Example
Query
query RegisteredFirstValidEpochs($uptoEpoch: Int) {
registeredFirstValidEpochs(uptoEpoch: $uptoEpoch) {
idKey
firstValidEpoch
}
}
Variables
{"uptoEpoch": 987}
Response
{
"data": {
"registeredFirstValidEpochs": [
{
"idKey": "xyz789",
"firstValidEpoch": 987
}
]
}
}
registeredPresence
Description
Get raw presence events for an epoch range.
Response
Returns [PresenceEvent!]!
Example
Query
query RegisteredPresence(
$fromEpoch: Int!,
$toEpoch: Int!
) {
registeredPresence(
fromEpoch: $fromEpoch,
toEpoch: $toEpoch
) {
epochNo
idKey
source
status
}
}
Variables
{"fromEpoch": 987, "toEpoch": 123}
Response
{
"data": {
"registeredPresence": [
{
"epochNo": 123,
"idKey": "xyz789",
"source": "abc123",
"status": "xyz789"
}
]
}
}
registeredSpoSeries
Description
Get registration statistics for an epoch range.
Response
Returns [RegisteredStat!]!
Example
Query
query RegisteredSpoSeries(
$fromEpoch: Int!,
$toEpoch: Int!
) {
registeredSpoSeries(
fromEpoch: $fromEpoch,
toEpoch: $toEpoch
) {
epochNo
federatedValidCount
federatedInvalidCount
registeredValidCount
registeredInvalidCount
dparam
}
}
Variables
{"fromEpoch": 987, "toEpoch": 987}
Response
{
"data": {
"registeredSpoSeries": [
{
"epochNo": 987,
"federatedValidCount": 987,
"federatedInvalidCount": 987,
"registeredValidCount": 987,
"registeredInvalidCount": 987,
"dparam": 123.45
}
]
}
}
registeredTotalsSeries
Description
Get cumulative registration totals for an epoch range.
Response
Returns [RegisteredTotals!]!
Example
Query
query RegisteredTotalsSeries(
$fromEpoch: Int!,
$toEpoch: Int!
) {
registeredTotalsSeries(
fromEpoch: $fromEpoch,
toEpoch: $toEpoch
) {
epochNo
totalRegistered
newlyRegistered
}
}
Variables
{"fromEpoch": 987, "toEpoch": 123}
Response
{
"data": {
"registeredTotalsSeries": [
{"epochNo": 123, "totalRegistered": 123, "newlyRegistered": 987}
]
}
}
spoByPoolId
Description
Get SPO with metadata by pool ID.
Example
Query
query SpoByPoolId($poolIdHex: String!) {
spoByPoolId(poolIdHex: $poolIdHex) {
poolIdHex
validatorClass
sidechainPubkeyHex
auraPubkeyHex
name
ticker
homepageUrl
logoUrl
}
}
Variables
{"poolIdHex": "abc123"}
Response
{
"data": {
"spoByPoolId": {
"poolIdHex": "xyz789",
"validatorClass": "xyz789",
"sidechainPubkeyHex": "abc123",
"auraPubkeyHex": "abc123",
"name": "xyz789",
"ticker": "xyz789",
"homepageUrl": "abc123",
"logoUrl": "xyz789"
}
}
}
spoCompositeByPoolId
Description
Get composite SPO data (identity + metadata + performance).
Response
Returns a SpoComposite
Arguments
| Name | Description |
|---|---|
poolIdHex - String!
|
Example
Query
query SpoCompositeByPoolId($poolIdHex: String!) {
spoCompositeByPoolId(poolIdHex: $poolIdHex) {
identity {
poolIdHex
mainchainPubkeyHex
sidechainPubkeyHex
auraPubkeyHex
validatorClass
}
metadata {
poolIdHex
hexId
name
ticker
homepageUrl
logoUrl
}
performance {
epochNo
spoSkHex
produced
expected
identityLabel
stakeSnapshot
poolIdHex
validatorClass
}
}
}
Variables
{"poolIdHex": "abc123"}
Response
{
"data": {
"spoCompositeByPoolId": {
"identity": SpoIdentity,
"metadata": PoolMetadata,
"performance": [EpochPerf]
}
}
}
spoCount
Description
Get total count of SPOs.
Response
Returns an Int
Example
Query
query SpoCount {
spoCount
}
Response
{"data": {"spoCount": 123}}
spoIdentities
Description
List SPO identities with pagination.
Response
Returns [SpoIdentity!]!
Example
Query
query SpoIdentities(
$limit: Int,
$offset: Int
) {
spoIdentities(
limit: $limit,
offset: $offset
) {
poolIdHex
mainchainPubkeyHex
sidechainPubkeyHex
auraPubkeyHex
validatorClass
}
}
Variables
{"limit": 123, "offset": 123}
Response
{
"data": {
"spoIdentities": [
{
"poolIdHex": "xyz789",
"mainchainPubkeyHex": "abc123",
"sidechainPubkeyHex": "abc123",
"auraPubkeyHex": "xyz789",
"validatorClass": "abc123"
}
]
}
}
spoIdentityByPoolId
Description
Get SPO identity by pool ID.
Response
Returns a SpoIdentity
Arguments
| Name | Description |
|---|---|
poolIdHex - String!
|
Example
Query
query SpoIdentityByPoolId($poolIdHex: String!) {
spoIdentityByPoolId(poolIdHex: $poolIdHex) {
poolIdHex
mainchainPubkeyHex
sidechainPubkeyHex
auraPubkeyHex
validatorClass
}
}
Variables
{"poolIdHex": "abc123"}
Response
{
"data": {
"spoIdentityByPoolId": {
"poolIdHex": "abc123",
"mainchainPubkeyHex": "xyz789",
"sidechainPubkeyHex": "xyz789",
"auraPubkeyHex": "abc123",
"validatorClass": "xyz789"
}
}
}
spoList
Description
List SPOs with optional search.
Example
Query
query SpoList(
$limit: Int,
$offset: Int,
$search: String
) {
spoList(
limit: $limit,
offset: $offset,
search: $search
) {
poolIdHex
validatorClass
sidechainPubkeyHex
auraPubkeyHex
name
ticker
homepageUrl
logoUrl
}
}
Variables
{
"limit": 987,
"offset": 987,
"search": "xyz789"
}
Response
{
"data": {
"spoList": [
{
"poolIdHex": "abc123",
"validatorClass": "abc123",
"sidechainPubkeyHex": "abc123",
"auraPubkeyHex": "abc123",
"name": "xyz789",
"ticker": "abc123",
"homepageUrl": "abc123",
"logoUrl": "xyz789"
}
]
}
}
spoPerformanceBySpoSk
Description
Get SPO performance by SPO key.
Response
Returns [EpochPerf!]!
Example
Query
query SpoPerformanceBySpoSk(
$spoSkHex: String!,
$limit: Int,
$offset: Int
) {
spoPerformanceBySpoSk(
spoSkHex: $spoSkHex,
limit: $limit,
offset: $offset
) {
epochNo
spoSkHex
produced
expected
identityLabel
stakeSnapshot
poolIdHex
validatorClass
}
}
Variables
{
"spoSkHex": "xyz789",
"limit": 987,
"offset": 123
}
Response
{
"data": {
"spoPerformanceBySpoSk": [
{
"epochNo": 123,
"spoSkHex": "xyz789",
"produced": 987,
"expected": 123,
"identityLabel": "abc123",
"stakeSnapshot": "xyz789",
"poolIdHex": "xyz789",
"validatorClass": "xyz789"
}
]
}
}
spoPerformanceLatest
Description
Get latest SPO performance entries.
Response
Returns [EpochPerf!]!
Example
Query
query SpoPerformanceLatest(
$limit: Int,
$offset: Int
) {
spoPerformanceLatest(
limit: $limit,
offset: $offset
) {
epochNo
spoSkHex
produced
expected
identityLabel
stakeSnapshot
poolIdHex
validatorClass
}
}
Variables
{"limit": 123, "offset": 123}
Response
{
"data": {
"spoPerformanceLatest": [
{
"epochNo": 123,
"spoSkHex": "xyz789",
"produced": 987,
"expected": 987,
"identityLabel": "abc123",
"stakeSnapshot": "abc123",
"poolIdHex": "xyz789",
"validatorClass": "xyz789"
}
]
}
}
stakeDistribution
Description
Get stake distribution with search and ordering.
Response
Returns [StakeShare!]!
Example
Query
query StakeDistribution(
$limit: Int,
$offset: Int,
$search: String,
$orderByStakeDesc: Boolean
) {
stakeDistribution(
limit: $limit,
offset: $offset,
search: $search,
orderByStakeDesc: $orderByStakeDesc
) {
poolIdHex
name
ticker
homepageUrl
logoUrl
liveStake
activeStake
liveDelegators
liveSaturation
declaredPledge
livePledge
stakeShare
}
}
Variables
{
"limit": 123,
"offset": 123,
"search": "abc123",
"orderByStakeDesc": true
}
Response
{
"data": {
"stakeDistribution": [
{
"poolIdHex": "abc123",
"name": "xyz789",
"ticker": "xyz789",
"homepageUrl": "abc123",
"logoUrl": "xyz789",
"liveStake": "xyz789",
"activeStake": "xyz789",
"liveDelegators": 987,
"liveSaturation": 987.65,
"declaredPledge": "abc123",
"livePledge": "xyz789",
"stakeShare": 123.45
}
]
}
}
stakePoolOperators
Description
Get SPO identifiers ordered by performance.
Response
Returns [String!]!
Arguments
| Name | Description |
|---|---|
limit - Int
|
Example
Query
query StakePoolOperators($limit: Int) {
stakePoolOperators(limit: $limit)
}
Variables
{"limit": 123}
Response
{"data": {"stakePoolOperators": ["abc123"]}}
termsAndConditionsHistory
Description
Get the full history of Terms and Conditions changes for governance auditability.
Response
Returns [TermsAndConditionsChange!]!
Example
Query
query TermsAndConditionsHistory {
termsAndConditionsHistory {
blockHeight
blockHash
timestamp
hash
url
}
}
Response
{
"data": {
"termsAndConditionsHistory": [
{
"blockHeight": 987,
"blockHash": HexEncoded,
"timestamp": 987,
"hash": HexEncoded,
"url": "xyz789"
}
]
}
}
transactions
Description
Find transactions for the given offset.
Response
Returns [Transaction!]!
Arguments
| Name | Description |
|---|---|
offset - TransactionOffset!
|
Example
Query
query Transactions($offset: TransactionOffset!) {
transactions(offset: $offset) {
id
hash
protocolVersion
raw
block {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
transactions {
id
hash
protocolVersion
raw
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
systemParameters {
dParameter {
...DParameterFragment
}
termsAndConditions {
...TermsAndConditionsFragment
}
}
contractZswapState
}
contractActions {
address
state
zswapState
transaction {
id
hash
protocolVersion
raw
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
unshieldedBalances {
tokenType
amount
}
}
unshieldedCreatedOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
id
hash
protocolVersion
raw
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
spentAtTransaction {
id
hash
protocolVersion
raw
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
}
unshieldedSpentOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
id
hash
protocolVersion
raw
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
spentAtTransaction {
id
hash
protocolVersion
raw
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
}
zswapLedgerEvents {
id
raw
maxId
protocolVersion
}
dustLedgerEvents {
id
raw
maxId
protocolVersion
}
}
}
Variables
{"offset": TransactionOffset}
Response
{
"data": {
"transactions": [
{
"id": 987,
"hash": HexEncoded,
"protocolVersion": 123,
"raw": HexEncoded,
"block": Block,
"contractActions": [ContractAction],
"unshieldedCreatedOutputs": [UnshieldedUtxo],
"unshieldedSpentOutputs": [UnshieldedUtxo],
"zswapLedgerEvents": [ZswapLedgerEvent],
"dustLedgerEvents": [DustLedgerEvent]
}
]
}
}
zswapMerkleTreeCollapsedUpdate
Description
Get a Merkle tree collapsed update for the given zswap state index range.
Response
Returns a MerkleTreeCollapsedUpdate!
Example
Query
query ZswapMerkleTreeCollapsedUpdate(
$startIndex: Int!,
$endIndex: Int!
) {
zswapMerkleTreeCollapsedUpdate(
startIndex: $startIndex,
endIndex: $endIndex
) {
startIndex
endIndex
update
protocolVersion
}
}
Variables
{"startIndex": 123, "endIndex": 987}
Response
{
"data": {
"zswapMerkleTreeCollapsedUpdate": {
"startIndex": 987,
"endIndex": 987,
"update": HexEncoded,
"protocolVersion": 123
}
}
}
Mutations
connect
Description
Connect the wallet with the given viewing key and return a session ID.
Response
Returns a HexEncoded!
Arguments
| Name | Description |
|---|---|
viewingKey - ViewingKey!
|
|
options - ConnectOptions
|
Example
Query
mutation Connect(
$viewingKey: ViewingKey!,
$options: ConnectOptions
) {
connect(
viewingKey: $viewingKey,
options: $options
)
}
Variables
{
"viewingKey": ViewingKey,
"options": ConnectOptions
}
Response
{"data": {"connect": HexEncoded}}
disconnect
Description
Disconnect the wallet with the given session ID.
Response
Returns a Unit!
Arguments
| Name | Description |
|---|---|
sessionId - HexEncoded!
|
Example
Query
mutation Disconnect($sessionId: HexEncoded!) {
disconnect(sessionId: $sessionId)
}
Variables
{"sessionId": HexEncoded}
Response
{"data": {"disconnect": Unit}}
Subscriptions
blocks
Description
Subscribe to blocks starting at the given offset or at the latest block if the offset is omitted.
Response
Returns a Block!
Arguments
| Name | Description |
|---|---|
offset - BlockOffset
|
Example
Query
subscription Blocks($offset: BlockOffset) {
blocks(offset: $offset) {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
transactions {
id
hash
protocolVersion
raw
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
systemParameters {
dParameter {
...DParameterFragment
}
termsAndConditions {
...TermsAndConditionsFragment
}
}
contractZswapState
}
transactions {
id
hash
protocolVersion
raw
block {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
contractActions {
address
state
zswapState
transaction {
...TransactionFragment
}
unshieldedBalances {
...ContractBalanceFragment
}
}
unshieldedCreatedOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
unshieldedSpentOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
zswapLedgerEvents {
id
raw
maxId
protocolVersion
}
dustLedgerEvents {
id
raw
maxId
protocolVersion
}
}
systemParameters {
dParameter {
numPermissionedCandidates
numRegisteredCandidates
}
termsAndConditions {
hash
url
}
}
contractZswapState
}
}
Variables
{"offset": BlockOffset}
Response
{
"data": {
"blocks": {
"hash": HexEncoded,
"height": 987,
"protocolVersion": 123,
"timestamp": 123,
"author": HexEncoded,
"zswapMerkleTreeRoot": HexEncoded,
"ledgerParameters": HexEncoded,
"zswapEndIndex": 987,
"dustCommitmentEndIndex": 987,
"dustGenerationEndIndex": 123,
"dustCommitmentMerkleTreeRoot": HexEncoded,
"dustGenerationMerkleTreeRoot": HexEncoded,
"parent": Block,
"transactions": [Transaction],
"systemParameters": SystemParameters,
"contractZswapState": HexEncoded
}
}
}
bridgeBalance
Description
Beta: this API is unstable and may change without notice.
Subscribe to a recipient's bridge balance. Emits the current balance on subscribe and re-emits whenever a bridge event for the recipient indexes or the recipient's unshielded UTXOs change (a claim emits no bridge event, but it creates unshielded UTXOs for the recipient).
Response
Returns a BridgeBalance!
Arguments
| Name | Description |
|---|---|
address - HexEncoded!
|
Example
Query
subscription BridgeBalance($address: HexEncoded!) {
bridgeBalance(address: $address) {
deposited
claimed
balance
}
}
Variables
{"address": HexEncoded}
Response
{
"data": {
"bridgeBalance": {
"deposited": HexEncoded,
"claimed": HexEncoded,
"balance": HexEncoded
}
}
}
bridgePoolUpdates
Description
Beta: this API is unstable and may change without notice.
Subscribe to bridge pool updates. Emits a snapshot of the pool summary alongside each pool-affecting event (Reserve, Invalid, Unapproved, SubminimalFlush). Useful for observability dashboards.
Response
Returns a BridgePoolUpdate!
Example
Query
subscription BridgePoolUpdates {
bridgePoolUpdates {
newEvent {
id
blockHeight
midnightTxHash
}
pool {
reserveTotal
treasuryByReason {
reason
total
count
}
subminimumTxCount
lastEventBlockHeight
}
}
}
Response
{
"data": {
"bridgePoolUpdates": {
"newEvent": BridgeEvent,
"pool": BridgePoolSummary
}
}
}
contractActions
Description
Subscribe to contract actions with the given address starting at the given offset or at the latest block if the offset is omitted.
Response
Returns a ContractAction!
Arguments
| Name | Description |
|---|---|
address - HexEncoded!
|
|
offset - BlockOffset
|
Example
Query
subscription ContractActions(
$address: HexEncoded!,
$offset: BlockOffset
) {
contractActions(
address: $address,
offset: $offset
) {
address
state
zswapState
transaction {
id
hash
protocolVersion
raw
block {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
contractActions {
address
state
zswapState
transaction {
...TransactionFragment
}
unshieldedBalances {
...ContractBalanceFragment
}
}
unshieldedCreatedOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
unshieldedSpentOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
zswapLedgerEvents {
id
raw
maxId
protocolVersion
}
dustLedgerEvents {
id
raw
maxId
protocolVersion
}
}
unshieldedBalances {
tokenType
amount
}
}
}
Variables
{
"address": HexEncoded,
"offset": BlockOffset
}
Response
{
"data": {
"contractActions": {
"address": HexEncoded,
"state": HexEncoded,
"zswapState": HexEncoded,
"transaction": Transaction,
"unshieldedBalances": [ContractBalance]
}
}
}
contractEvents
Description
Beta: this API is unstable and may change without notice.
Subscribe to contract events matching the given filter, starting at the given event ID (inclusive) and returning events in monotonic ID order; completes once the chain has reached filter.toBlock if that is set.
Response
Returns a ContractEvent!
Arguments
| Name | Description |
|---|---|
filter - ContractEventFilter!
|
|
id - Int
|
Example
Query
subscription ContractEvents(
$filter: ContractEventFilter!,
$id: Int
) {
contractEvents(
filter: $filter,
id: $id
) {
id
raw
maxId
protocolVersion
version
contractAddress
transactionId
transaction {
id
hash
protocolVersion
raw
block {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
contractActions {
address
state
zswapState
transaction {
...TransactionFragment
}
unshieldedBalances {
...ContractBalanceFragment
}
}
unshieldedCreatedOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
unshieldedSpentOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
zswapLedgerEvents {
id
raw
maxId
protocolVersion
}
dustLedgerEvents {
id
raw
maxId
protocolVersion
}
}
}
}
Variables
{"filter": ContractEventFilter, "id": 123}
Response
{
"data": {
"contractEvents": {
"id": 987,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 123,
"version": 987,
"contractAddress": HexEncoded,
"transactionId": 987,
"transaction": Transaction
}
}
}
dustGenerations
Description
Beta: this API is unstable and may change without notice.
Subscribe to a dust address's generations as a consistent snapshot at block_hash. The wallet's owned generation entries, interleaved with collapsed Merkle tree updates for the non-owned gaps, are served at that block's state (deterministic, independent of the tip). The dtime updates for the wallet's own generations in (dtime_cutoff_height, block_hash] are issued first, as a clean delta for the generations set rather than the tree (pass 0 to replay all). The subscription completes once emitted; re-subscribe at a newer block_hash to advance.
Response
Returns a DustGenerationsEvent!
Arguments
| Name | Description |
|---|---|
dustAddress - DustAddress!
|
|
blockHash - HexEncoded!
|
|
dtimeCutoffHeight - Int!
|
Example
Query
subscription DustGenerations(
$dustAddress: DustAddress!,
$blockHash: HexEncoded!,
$dtimeCutoffHeight: Int!
) {
dustGenerations(
dustAddress: $dustAddress,
blockHash: $blockHash,
dtimeCutoffHeight: $dtimeCutoffHeight
) {
... on DustGenerationsItem {
commitmentMtIndex
generationMtIndex
owner
value
initialValue
backingNight
ctime
transactionId
transactionHash
collapsedMerkleTree {
startIndex
endIndex
update
protocolVersion
}
}
... on DustGenerationsProgress {
highestIndex
collapsedMerkleTree {
startIndex
endIndex
update
protocolVersion
}
protocolVersion
}
... on DustGenerationDtimeUpdateItem {
generationMtIndex
owner
nightUtxoHash
newDtime
transactionId
transactionHash
treeInsertionPath
}
}
}
Variables
{
"dustAddress": DustAddress,
"blockHash": HexEncoded,
"dtimeCutoffHeight": 987
}
Response
{"data": {"dustGenerations": DustGenerationsItem}}
dustLedgerEvents
Description
Subscribe to dust ledger events starting at the given ID or at the very start if omitted.
Response
Returns a DustLedgerEvent!
Arguments
| Name | Description |
|---|---|
id - Int
|
Example
Query
subscription DustLedgerEvents($id: Int) {
dustLedgerEvents(id: $id) {
id
raw
maxId
protocolVersion
}
}
Variables
{"id": 123}
Response
{
"data": {
"dustLedgerEvents": {
"id": 123,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 987
}
}
}
dustNullifierTransactions
Description
Subscribe to transactions containing dust nullifiers whose 32-byte little-endian form starts with one of the provided prefixes. Returns transaction and block references for the wallet to fetch full data. If toBlock is specified, the subscription finishes after reaching that block.
Response
Returns a DustNullifierTransaction!
Arguments
| Name | Description |
|---|---|
nullifierLeBytesPrefixes - [HexEncoded!]!
|
|
fromBlock - Int
|
|
toBlock - Int
|
Example
Query
subscription DustNullifierTransactions(
$nullifierLeBytesPrefixes: [HexEncoded!]!,
$fromBlock: Int,
$toBlock: Int
) {
dustNullifierTransactions(
nullifierLeBytesPrefixes: $nullifierLeBytesPrefixes,
fromBlock: $fromBlock,
toBlock: $toBlock
) {
nullifierLeBytes
commitmentLeBytes
transactionId
transactionHash
blockHeight
blockHash
transaction {
id
hash
protocolVersion
raw
block {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
contractActions {
address
state
zswapState
transaction {
...TransactionFragment
}
unshieldedBalances {
...ContractBalanceFragment
}
}
unshieldedCreatedOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
unshieldedSpentOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
zswapLedgerEvents {
id
raw
maxId
protocolVersion
}
dustLedgerEvents {
id
raw
maxId
protocolVersion
}
}
}
}
Variables
{
"nullifierLeBytesPrefixes": [HexEncoded],
"fromBlock": 987,
"toBlock": 123
}
Response
{
"data": {
"dustNullifierTransactions": {
"nullifierLeBytes": HexEncoded,
"commitmentLeBytes": HexEncoded,
"transactionId": 123,
"transactionHash": HexEncoded,
"blockHeight": 987,
"blockHash": HexEncoded,
"transaction": Transaction
}
}
}
shieldedNullifierTransactions
Description
Subscribe to transactions containing shielded (zswap) nullifiers matching the provided prefixes. Returns transaction and block references for wallet to fetch full data. If toBlock is specified, the subscription finishes after reaching that block.
Response
Returns a ShieldedNullifierTransaction!
Arguments
| Name | Description |
|---|---|
nullifierPrefixes - [HexEncoded!]!
|
|
fromBlock - Int
|
|
toBlock - Int
|
Example
Query
subscription ShieldedNullifierTransactions(
$nullifierPrefixes: [HexEncoded!]!,
$fromBlock: Int,
$toBlock: Int
) {
shieldedNullifierTransactions(
nullifierPrefixes: $nullifierPrefixes,
fromBlock: $fromBlock,
toBlock: $toBlock
) {
transactionId
transactionHash
blockHash
blockHeight
nullifier
transaction {
id
hash
protocolVersion
raw
block {
hash
height
protocolVersion
timestamp
author
zswapMerkleTreeRoot
ledgerParameters
zswapEndIndex
dustCommitmentEndIndex
dustGenerationEndIndex
dustCommitmentMerkleTreeRoot
dustGenerationMerkleTreeRoot
parent {
...BlockFragment
}
transactions {
...TransactionFragment
}
systemParameters {
...SystemParametersFragment
}
contractZswapState
}
contractActions {
address
state
zswapState
transaction {
...TransactionFragment
}
unshieldedBalances {
...ContractBalanceFragment
}
}
unshieldedCreatedOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
unshieldedSpentOutputs {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
zswapLedgerEvents {
id
raw
maxId
protocolVersion
}
dustLedgerEvents {
id
raw
maxId
protocolVersion
}
}
}
}
Variables
{
"nullifierPrefixes": [HexEncoded],
"fromBlock": 123,
"toBlock": 987
}
Response
{
"data": {
"shieldedNullifierTransactions": {
"transactionId": 987,
"transactionHash": HexEncoded,
"blockHash": HexEncoded,
"blockHeight": 987,
"nullifier": HexEncoded,
"transaction": Transaction
}
}
}
shieldedTransactions
Description
Subscribe to shielded transaction events for the given session ID starting at the given index or at zero if omitted.
Response
Returns a ShieldedTransactionsEvent!
Arguments
| Name | Description |
|---|---|
sessionId - HexEncoded!
|
|
index - Int
|
Example
Query
subscription ShieldedTransactions(
$sessionId: HexEncoded!,
$index: Int
) {
shieldedTransactions(
sessionId: $sessionId,
index: $index
) {
... on RelevantTransaction {
transaction {
id
hash
protocolVersion
raw
transactionResult {
...TransactionResultFragment
}
identifiers
zswapMerkleTreeRoot
merkleTreeRoot
zswapStartIndex
startIndex
zswapEndIndex
endIndex
dustCommitmentStartIndex
dustCommitmentEndIndex
dustGenerationStartIndex
dustGenerationEndIndex
fee
fees {
...TransactionFeesFragment
}
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
zswapCollapsedUpdate {
startIndex
endIndex
update
protocolVersion
}
collapsedMerkleTree {
startIndex
endIndex
update
protocolVersion
}
}
... on ShieldedTransactionsProgress {
highestZswapEndIndex
highestEndIndex
highestCheckedZswapEndIndex
highestCheckedEndIndex
highestRelevantZswapEndIndex
highestRelevantEndIndex
protocolVersion
}
}
}
Variables
{"sessionId": HexEncoded, "index": 123}
Response
{"data": {"shieldedTransactions": RelevantTransaction}}
unshieldedTransactions
Description
Subscribe unshielded transaction events for the given address and the given transaction ID or zero if omitted.
Response
Returns an UnshieldedTransactionsEvent!
Arguments
| Name | Description |
|---|---|
address - UnshieldedAddress!
|
|
transactionId - Int
|
Example
Query
subscription UnshieldedTransactions(
$address: UnshieldedAddress!,
$transactionId: Int
) {
unshieldedTransactions(
address: $address,
transactionId: $transactionId
) {
... on UnshieldedTransaction {
transaction {
id
hash
protocolVersion
raw
block {
...BlockFragment
}
contractActions {
...ContractActionFragment
}
unshieldedCreatedOutputs {
...UnshieldedUtxoFragment
}
unshieldedSpentOutputs {
...UnshieldedUtxoFragment
}
zswapLedgerEvents {
...ZswapLedgerEventFragment
}
dustLedgerEvents {
...DustLedgerEventFragment
}
}
createdUtxos {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
spentUtxos {
owner
tokenType
value
intentHash
outputIndex
ctime
initialNonce
registeredForDustGeneration
createdAtTransaction {
...TransactionFragment
}
spentAtTransaction {
...TransactionFragment
}
}
}
... on UnshieldedTransactionsProgress {
highestTransactionId
protocolVersion
}
}
}
Variables
{"address": UnshieldedAddress, "transactionId": 987}
Response
{
"data": {
"unshieldedTransactions": UnshieldedTransaction
}
}
zswapLedgerEvents
Description
Subscribe to zswap ledger events starting at the given ID or at the very start if omitted.
Response
Returns a ZswapLedgerEvent!
Arguments
| Name | Description |
|---|---|
id - Int
|
Example
Query
subscription ZswapLedgerEvents($id: Int) {
zswapLedgerEvents(id: $id) {
id
raw
maxId
protocolVersion
}
}
Variables
{"id": 987}
Response
{
"data": {
"zswapLedgerEvents": {
"id": 987,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 987
}
}
}
Types
AddressOrContract
Description
Beta: this API is unstable and may change without notice.
Tagged-union helper for fields like Either<ZswapCoinPublicKey, ContractAddress> used in standard unshielded events.
Exactly one of userAddress or contractAddress is non-null; the kind discriminator says which.
Fields
| Field Name | Description |
|---|---|
kind - AddressOrContractKind!
|
Which of the two address fields is populated. |
userAddress - HexEncoded
|
The hex-encoded user address; populated when kind is USER. |
contractAddress - HexEncoded
|
The hex-encoded contract address; populated when kind is CONTRACT. |
Example
{
"kind": "USER",
"userAddress": HexEncoded,
"contractAddress": HexEncoded
}
AddressOrContractKind
Description
Discriminator for AddressOrContract.
Values
| Enum Value | Description |
|---|---|
|
|
The address is a user (zswap coin public key) address. |
|
|
The address is a contract address. |
Example
"USER"
Block
Description
A block with its relevant data.
Fields
| Field Name | Description |
|---|---|
hash - HexEncoded!
|
The block hash. |
height - Int!
|
The block height. |
protocolVersion - Int!
|
The protocol version. |
timestamp - Int!
|
The UNIX timestamp. |
author - HexEncoded
|
The hex-encoded block author. |
zswapMerkleTreeRoot - HexEncoded!
|
The hex-encoded serialized zswap state Merkle tree root. |
ledgerParameters - HexEncoded!
|
The hex-encoded ledger parameters for this block. |
zswapEndIndex - Int!
|
The zswap commitment tree end index at this block; exclusive, i.e. the next free index. |
dustCommitmentEndIndex - Int!
|
Beta: this API is unstable and may change without notice. The dust commitment tree end index at this block; exclusive, i.e. the next free index. |
dustGenerationEndIndex - Int!
|
Beta: this API is unstable and may change without notice. The dust generation tree end index at this block; exclusive, i.e. the next free index. |
dustCommitmentMerkleTreeRoot - HexEncoded
|
Beta: this API is unstable and may change without notice. The hex-encoded dust commitment Merkle tree root at this block. |
dustGenerationMerkleTreeRoot - HexEncoded
|
Beta: this API is unstable and may change without notice. The hex-encoded dust generation Merkle tree root at this block. |
parent - Block
|
The parent of this block. |
transactions - [Transaction!]!
|
The transactions within this block. |
systemParameters - SystemParameters!
|
The system parameters (governance) at this block height. |
contractZswapState - HexEncoded
|
Beta: this API is unstable and may change without notice. The zswap commitment tree filtered to the given contract address, resolved from this block's ledger state; null if the contract does not exist at this block. Hex-encoded. For building transactions, compose with |
Arguments
|
|
Example
{
"hash": HexEncoded,
"height": 123,
"protocolVersion": 987,
"timestamp": 987,
"author": HexEncoded,
"zswapMerkleTreeRoot": HexEncoded,
"ledgerParameters": HexEncoded,
"zswapEndIndex": 987,
"dustCommitmentEndIndex": 123,
"dustGenerationEndIndex": 123,
"dustCommitmentMerkleTreeRoot": HexEncoded,
"dustGenerationMerkleTreeRoot": HexEncoded,
"parent": Block,
"transactions": [Transaction],
"systemParameters": SystemParameters,
"contractZswapState": HexEncoded
}
BlockOffset
Description
Either a block hash or a block height.
Fields
| Input Field | Description |
|---|---|
hash - HexEncoded
|
A hex-encoded block hash. |
height - Int
|
A block height. |
Example
{"hash": HexEncoded, "height": 123}
Boolean
Description
The Boolean scalar type represents true or false.
Example
true
BridgeBalance
Description
Beta: this API is unstable and may change without notice.
Per-address bridge balance.
Fields
| Field Name | Description |
|---|---|
deposited - HexEncoded!
|
Sum of UserTransfer amounts for this address, gross/pre-fee (16-byte big-endian u128). |
claimed - HexEncoded!
|
Sum of bridge claim amounts for this address, net/post-fee (16-byte big-endian u128). |
balance - HexEncoded!
|
Remaining claimable, read from the ledger's bridge_receiving map (net, zero once fully claimed). 16-byte big-endian u128. |
Example
{
"deposited": HexEncoded,
"claimed": HexEncoded,
"balance": HexEncoded
}
BridgeClaimTransaction
Description
Beta: this API is unstable and may change without notice.
A claim of bridged NIGHT: a regular ClaimRewards transaction whose ClaimKind is CardanoBridge. Structurally a regular transaction, surfaced as its own type so consumers can tell it apart and read the bridged recipient and amount directly.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The transaction ID. |
hash - HexEncoded!
|
The hex-encoded transaction hash. |
protocolVersion - Int!
|
The protocol version. |
raw - HexEncoded!
|
The hex-encoded serialized transaction content. |
recipient - HexEncoded!
|
The Midnight address the bridged NIGHT is claimed to. |
amount - HexEncoded!
|
The claimed amount as 16-byte big-endian u128. |
block - Block!
|
The block for this transaction. |
contractActions - [ContractAction!]!
|
The contract actions for this transaction. |
unshieldedCreatedOutputs - [UnshieldedUtxo!]!
|
Unshielded UTXOs created by this transaction. |
unshieldedSpentOutputs - [UnshieldedUtxo!]!
|
Unshielded UTXOs spent (consumed) by this transaction. |
zswapLedgerEvents - [ZswapLedgerEvent!]!
|
Zswap ledger events of this transaction. |
dustLedgerEvents - [DustLedgerEvent!]!
|
Dust ledger events of this transaction. |
Example
{
"id": 987,
"hash": HexEncoded,
"protocolVersion": 987,
"raw": HexEncoded,
"recipient": HexEncoded,
"amount": HexEncoded,
"block": Block,
"contractActions": [ContractAction],
"unshieldedCreatedOutputs": [UnshieldedUtxo],
"unshieldedSpentOutputs": [UnshieldedUtxo],
"zswapLedgerEvents": [ZswapLedgerEvent],
"dustLedgerEvents": [DustLedgerEvent]
}
BridgeEvent
Description
Polymorphic c2m-bridge event. Each concrete variant exposes its own additional fields.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
|
blockHeight - Int!
|
|
midnightTxHash - HexEncoded!
|
Possible Types
| BridgeEvent Types |
|---|
Example
{
"id": 123,
"blockHeight": 987,
"midnightTxHash": HexEncoded
}
BridgeEventVariant
Description
GraphQL discriminator for bridge events.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"USER_TRANSFER"
BridgeInvalidTransfer
Description
Beta: this API is unstable and may change without notice.
Malformed bridge metadata. NIGHT redirected to treasury.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
|
blockHeight - Int!
|
|
midnightTxHash - HexEncoded!
|
|
cardanoTxHash - HexEncoded!
|
|
amount - HexEncoded!
|
Example
{
"id": 123,
"blockHeight": 987,
"midnightTxHash": HexEncoded,
"cardanoTxHash": HexEncoded,
"amount": HexEncoded
}
BridgePoolSummary
Description
Beta: this API is unstable and may change without notice.
Aggregate bridge inflows snapshot.
Fields
| Field Name | Description |
|---|---|
reserveTotal - HexEncoded!
|
Cumulative ReserveTransfer amount (16-byte big-endian u128). |
treasuryByReason - [BridgeTreasuryAggregate!]!
|
|
subminimumTxCount - Int!
|
Sum of count from SubminimalFlushTransfer events. |
lastEventBlockHeight - Int
|
Example
{
"reserveTotal": HexEncoded,
"treasuryByReason": [BridgeTreasuryAggregate],
"subminimumTxCount": 987,
"lastEventBlockHeight": 987
}
BridgePoolUpdate
Description
Beta: this API is unstable and may change without notice.
Pair of latest bridge event and refreshed pool summary, emitted by bridgePoolUpdates.
Fields
| Field Name | Description |
|---|---|
newEvent - BridgeEvent
|
The triggering event, or None for the initial snapshot on subscribe. |
pool - BridgePoolSummary!
|
Example
{
"newEvent": BridgeEvent,
"pool": BridgePoolSummary
}
BridgeReserveTransfer
Description
Beta: this API is unstable and may change without notice.
Reserve top-up. NIGHT credited to the protocol Reserve pool.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
|
blockHeight - Int!
|
|
midnightTxHash - HexEncoded!
|
|
cardanoTxHash - HexEncoded!
|
|
amount - HexEncoded!
|
Example
{
"id": 987,
"blockHeight": 123,
"midnightTxHash": HexEncoded,
"cardanoTxHash": HexEncoded,
"amount": HexEncoded
}
BridgeSubminimalFlushTransfer
Description
Beta: this API is unstable and may change without notice.
Aggregated subminimum transfers flushed to treasury.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
|
blockHeight - Int!
|
|
midnightTxHash - HexEncoded!
|
|
amount - HexEncoded!
|
|
count - Int!
|
Number of subminimum Cardano txs aggregated into this flush. |
Example
{
"id": 123,
"blockHeight": 123,
"midnightTxHash": HexEncoded,
"amount": HexEncoded,
"count": 123
}
BridgeTreasuryAggregate
Description
Beta: this API is unstable and may change without notice.
Treasury inflow aggregate by reason.
Fields
| Field Name | Description |
|---|---|
reason - BridgeTreasuryReason!
|
|
total - HexEncoded!
|
Cumulative amount (16-byte big-endian u128). |
count - Int!
|
Example
{"reason": "INVALID", "total": HexEncoded, "count": 987}
BridgeTreasuryReason
Description
GraphQL discriminator for treasury redirection reasons.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"INVALID"
BridgeUnapprovedTransfer
Description
Beta: this API is unstable and may change without notice.
User deposit not in ApprovedTransactions at observation time. NIGHT redirected to treasury.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
|
blockHeight - Int!
|
|
midnightTxHash - HexEncoded!
|
|
cardanoTxHash - HexEncoded!
|
|
amount - HexEncoded!
|
|
recipient - HexEncoded!
|
The recipient parsed from metadata (would have received NIGHT if approved). |
Example
{
"id": 987,
"blockHeight": 987,
"midnightTxHash": HexEncoded,
"cardanoTxHash": HexEncoded,
"amount": HexEncoded,
"recipient": HexEncoded
}
BridgeUserTransfer
Description
Beta: this API is unstable and may change without notice.
Approved user deposit. NIGHT credited to recipient.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
|
blockHeight - Int!
|
|
midnightTxHash - HexEncoded!
|
|
cardanoTxHash - HexEncoded!
|
|
amount - HexEncoded!
|
Amount as 8-byte big-endian u64 NIGHT (in stars). |
recipient - HexEncoded!
|
Example
{
"id": 987,
"blockHeight": 123,
"midnightTxHash": HexEncoded,
"cardanoTxHash": HexEncoded,
"amount": HexEncoded,
"recipient": HexEncoded
}
CardanoRewardAddress
Example
CardanoRewardAddress
CollapsedMerkleTree
Description
A Merkle tree collapsed update between two indices.
Fields
| Field Name | Description |
|---|---|
startIndex - Int!
|
The start index. |
endIndex - Int!
|
The end index. |
update - HexEncoded!
|
The hex-encoded value. |
protocolVersion - Int!
|
The protocol version. |
Example
{
"startIndex": 123,
"endIndex": 987,
"update": HexEncoded,
"protocolVersion": 987
}
CommitteeMember
Description
Committee member for an epoch.
Example
{
"epochNo": 987,
"position": 123,
"sidechainPubkeyHex": "xyz789",
"expectedSlots": 987,
"auraPubkeyHex": "xyz789",
"poolIdHex": "abc123",
"spoSkHex": "abc123"
}
ConnectOptions
Description
Options for the connect mutation.
Fields
| Input Field | Description |
|---|---|
startIndex - Int
|
Transaction index to start searching for relevant transactions (inclusive). |
Example
{"startIndex": 987}
Contract
Description
Beta: this API is unstable and may change without notice.
A contract, identified by address, resolved as of a given block (or the latest state if no offset is given). The topmost contract concept; its actions are a sub-query.
Fields
| Field Name | Description |
|---|---|
address - HexEncoded!
|
The hex-encoded contract address. |
state - HexEncoded!
|
The hex-encoded serialized contract state as of the queried block (the latest contract action at or before it). |
maintenanceAuthority - ContractMaintenanceAuthority!
|
Beta: this API is unstable and may change without notice. The contract's maintenance authority as of the queried block. |
actions - [ContractAction!]!
|
Beta: this API is unstable and may change without notice. Recent contract actions for this contract, newest first, optionally filtered by type; |
Arguments
|
|
Example
{
"address": HexEncoded,
"state": HexEncoded,
"maintenanceAuthority": ContractMaintenanceAuthority,
"actions": [ContractAction]
}
ContractAction
Description
A contract action.
Fields
| Field Name | Description |
|---|---|
address - HexEncoded!
|
|
state - HexEncoded!
|
|
zswapState - HexEncoded!
|
|
transaction - Transaction!
|
|
unshieldedBalances - [ContractBalance!]!
|
Possible Types
| ContractAction Types |
|---|
Example
{
"address": HexEncoded,
"state": HexEncoded,
"zswapState": HexEncoded,
"transaction": Transaction,
"unshieldedBalances": [ContractBalance]
}
ContractActionOffset
Description
Either a block offset or a transaction offset.
Fields
| Input Field | Description |
|---|---|
blockOffset - BlockOffset
|
Either a block hash or a block height. |
transactionOffset - TransactionOffset
|
Either a transaction hash or a transaction identifier. |
Example
{
"blockOffset": BlockOffset,
"transactionOffset": TransactionOffset
}
ContractActionType
Description
Contract action variant, used to filter Contract.actions.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"DEPLOY"
ContractBalance
Description
Represents a token balance held by a contract. This type is exposed through the GraphQL API to allow clients to query unshielded token balances for any contract action (Deploy, Call, Update).
Fields
| Field Name | Description |
|---|---|
tokenType - HexEncoded!
|
Hex-encoded token type identifier. |
amount - String!
|
Balance amount as string to support larger integer values (up to 16 bytes). |
Example
{
"tokenType": HexEncoded,
"amount": "xyz789"
}
ContractCall
Description
A contract call.
Fields
| Field Name | Description |
|---|---|
address - HexEncoded!
|
The hex-encoded serialized address. |
entryPoint - String!
|
The entry point. |
state - HexEncoded!
|
The hex-encoded serialized state. |
zswapState - HexEncoded!
|
The hex-encoded serialized contract-specific zswap state. |
transaction - Transaction!
|
Transaction for this contract call. |
deploy - ContractDeploy!
|
Contract deploy for this contract call. |
unshieldedBalances - [ContractBalance!]!
|
Unshielded token balances held by this contract. |
contractEvents - [ContractEvent!]!
|
Beta: this API is unstable and may change without notice. Contract events emitted by this contract call. Only Events are attributed to a call by matching contract address and entry point within the transaction; if several calls in one transaction share both, their events are not attributed here and remain reachable via the top-level |
Example
{
"address": HexEncoded,
"entryPoint": "xyz789",
"state": HexEncoded,
"zswapState": HexEncoded,
"transaction": Transaction,
"deploy": ContractDeploy,
"unshieldedBalances": [ContractBalance],
"contractEvents": [ContractEvent]
}
ContractDeploy
Description
A contract deployment.
Fields
| Field Name | Description |
|---|---|
address - HexEncoded!
|
The hex-encoded serialized address. |
state - HexEncoded!
|
The hex-encoded serialized state. |
zswapState - HexEncoded!
|
The hex-encoded serialized contract-specific zswap state. |
transaction - Transaction!
|
Transaction for this contract deploy. |
unshieldedBalances - [ContractBalance!]!
|
Unshielded token balances held by this contract. |
Example
{
"address": HexEncoded,
"state": HexEncoded,
"zswapState": HexEncoded,
"transaction": Transaction,
"unshieldedBalances": [ContractBalance]
}
ContractEvent
Description
Common interface implemented by every concrete contract event type.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
|
raw - HexEncoded!
|
|
maxId - Int!
|
|
protocolVersion - Int!
|
|
version - Int!
|
|
contractAddress - HexEncoded!
|
|
transactionId - Int!
|
|
transaction - Transaction!
|
Example
{
"id": 123,
"raw": HexEncoded,
"maxId": 123,
"protocolVersion": 987,
"version": 123,
"contractAddress": HexEncoded,
"transactionId": 123,
"transaction": Transaction
}
ContractEventFilter
Description
Filter for contract events queries and subscriptions; block-range bounds live here so the same shape works for both.
Fields
| Input Field | Description |
|---|---|
contractAddress - HexEncoded!
|
The hex-encoded contract address to filter events for. |
types - [ContractEventType!]
|
Event types to narrow to; must be non-empty when given. |
fieldPrefixes - [FieldPrefixFilter!]
|
Prefix matches on indexed event fields, combined with AND semantics; standard events only. |
fromBlock - Int
|
Lower bound on the block height an event was emitted in; on subscription this acts as a starting cursor alongside id. |
toBlock - Int
|
Upper bound on the block height an event was emitted in; on subscription, the stream completes once the chain has reached this block. |
transactionHash - HexEncoded
|
The hex-encoded transaction hash to narrow to events emitted by that transaction. |
Example
{
"contractAddress": HexEncoded,
"types": ["SHIELDED_SPEND"],
"fieldPrefixes": [FieldPrefixFilter],
"fromBlock": 123,
"toBlock": 123,
"transactionHash": HexEncoded
}
ContractEventType
Description
Closed enum of contract event types the indexer surfaces. Used in filter input only, response discrimination is via __typename.
Values
| Enum Value | Description |
|---|---|
|
|
A contract spends a shielded coin. |
|
|
A contract or user receives a shielded coin. |
|
|
A contract mints a shielded coin. |
|
|
A contract burns a shielded coin. |
|
|
A contract spends an unshielded coin. |
|
|
A contract or user receives an unshielded coin. |
|
|
A contract mints an unshielded coin. |
|
|
A contract burns an unshielded coin. |
|
|
A contract is paused. |
|
|
A contract is unpaused. |
|
|
A custom event emitted by a contract. |
Example
"SHIELDED_SPEND"
ContractMaintenanceAuthority
Description
Beta: this API is unstable and may change without notice.
The maintenance authority of a contract.
Fields
| Field Name | Description |
|---|---|
committee - [ContractMaintenanceVerifyingKey!]!
|
The committee of verifying keys authorised to maintain the contract. |
threshold - Int!
|
The number of committee signatures required to authorise maintenance. |
counter - Int!
|
Monotonic counter guarding against replay of maintenance operations. |
Example
{
"committee": [ContractMaintenanceVerifyingKey],
"threshold": 987,
"counter": 987
}
ContractMaintenanceVerifyingKey
Description
Beta: this API is unstable and may change without notice.
A verifying key in a contract maintenance authority committee.
Fields
| Field Name | Description |
|---|---|
kind - ContractMaintenanceVerifyingKeyKind!
|
The signature scheme of the key. |
key - HexEncoded!
|
The hex-encoded tagged-serialized verifying key. |
Example
{"kind": "SCHNORR", "key": HexEncoded}
ContractMaintenanceVerifyingKeyKind
Description
The signature scheme of a maintenance authority verifying key.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"SCHNORR"
ContractUpdate
Description
A contract update.
Fields
| Field Name | Description |
|---|---|
address - HexEncoded!
|
The hex-encoded serialized address. |
state - HexEncoded!
|
The hex-encoded serialized state. |
zswapState - HexEncoded!
|
The hex-encoded serialized contract-specific zswap state. |
transaction - Transaction!
|
Transaction for this contract update. |
unshieldedBalances - [ContractBalance!]!
|
Unshielded token balances held by this contract after the update. |
Example
{
"address": HexEncoded,
"state": HexEncoded,
"zswapState": HexEncoded,
"transaction": Transaction,
"unshieldedBalances": [ContractBalance]
}
DParameter
Description
The D-parameter controlling validator committee composition.
Example
{"numPermissionedCandidates": 123, "numRegisteredCandidates": 987}
DParameterChange
Description
D-parameter change record for history queries.
Fields
| Field Name | Description |
|---|---|
blockHeight - Int!
|
The block height where this parameter became effective. |
blockHash - HexEncoded!
|
The hex-encoded block hash where this parameter became effective. |
timestamp - Int!
|
The UNIX timestamp when this parameter became effective. |
numPermissionedCandidates - Int!
|
Number of permissioned candidates. |
numRegisteredCandidates - Int!
|
Number of registered candidates. |
Example
{
"blockHeight": 987,
"blockHash": HexEncoded,
"timestamp": 987,
"numPermissionedCandidates": 987,
"numRegisteredCandidates": 987
}
DustAddress
Example
DustAddress
DustGenerationDtimeUpdate
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this dust ledger event. |
raw - HexEncoded!
|
The hex-encoded serialized event. |
maxId - Int!
|
The maximum ID of all dust ledger events. |
protocolVersion - Int!
|
The protocol version. |
Example
{
"id": 987,
"raw": HexEncoded,
"maxId": 123,
"protocolVersion": 987
}
DustGenerationDtimeUpdateItem
Description
Beta: this API is unstable and may change without notice.
A dust generation dtime update emitted when the backing Night UTXO is spent and the entry's decay time is set.
Fields
| Field Name | Description |
|---|---|
generationMtIndex - Int!
|
Generation-tree index of the entry whose dtime changed. |
owner - HexEncoded!
|
The hex-encoded owner (dust address). |
nightUtxoHash - HexEncoded!
|
Hex-encoded hash of the NIGHT UTXO that backs this dust output. |
newDtime - Int!
|
The decay time as observed in this ledger event. |
transactionId - Int!
|
The originating transaction ID (indexer-internal BIGSERIAL). |
transactionHash - HexEncoded!
|
The hex-encoded originating transaction hash (32-byte chain identifier). |
treeInsertionPath - HexEncoded!
|
Hex-encoded tagged-serialised TreeInsertionPath<DustGenerationInfo> from the originating ledger event. Wallets deserialise this and hand it to generating_tree.update_from_evidence(...). |
Example
{
"generationMtIndex": 123,
"owner": HexEncoded,
"nightUtxoHash": HexEncoded,
"newDtime": 987,
"transactionId": 123,
"transactionHash": HexEncoded,
"treeInsertionPath": HexEncoded
}
DustGenerationStatus
Description
DUST generation status for a specific Cardano reward address.
Fields
| Field Name | Description |
|---|---|
cardanoRewardAddress - CardanoRewardAddress!
|
The Bech32-encoded Cardano reward address (e.g., stake_test1... or stake1...). |
dustAddress - DustAddress
|
The Bech32m-encoded associated DUST address if registered. |
registered - Boolean!
|
Whether this reward address is registered. |
nightBalance - String!
|
NIGHT balance backing generation in STAR. |
generationRate - String!
|
DUST generation rate in SPECK per second. |
maxCapacity - String!
|
Maximum DUST capacity in SPECK. |
currentCapacity - String!
|
Current generated DUST capacity in SPECK. |
utxoTxHash - HexEncoded
|
Cardano UTXO transaction hash for update/unregister operations. |
utxoOutputIndex - Int
|
Cardano UTXO output index for update/unregister operations. |
Example
{
"cardanoRewardAddress": CardanoRewardAddress,
"dustAddress": DustAddress,
"registered": true,
"nightBalance": "xyz789",
"generationRate": "xyz789",
"maxCapacity": "abc123",
"currentCapacity": "xyz789",
"utxoTxHash": HexEncoded,
"utxoOutputIndex": 123
}
DustGenerations
Description
Dust generations for a Cardano reward address.
Fields
| Field Name | Description |
|---|---|
cardanoRewardAddress - CardanoRewardAddress!
|
The Bech32-encoded Cardano reward address. |
registrations - [DustRegistration!]!
|
All active registrations with aggregated generation stats. |
Example
{
"cardanoRewardAddress": CardanoRewardAddress,
"registrations": [DustRegistration]
}
DustGenerationsEvent
Description
An event of the dust generations subscription.
Types
| Union Types |
|---|
Example
DustGenerationsItem
DustGenerationsItem
Description
Beta: this API is unstable and may change without notice.
A dust generations item with optional collapsed Merkle tree update.
Fields
| Field Name | Description |
|---|---|
commitmentMtIndex - Int!
|
Index of this output in the dust commitment Merkle tree. |
generationMtIndex - Int!
|
Index of this output in the dust generation Merkle tree. |
owner - HexEncoded!
|
The hex-encoded owner (dust address). |
value - String!
|
The NIGHT value backing this output, in STAR. |
initialValue - String!
|
The DUST value at creation, in SPECK. |
backingNight - HexEncoded!
|
Hex-encoded hash of the NIGHT UTXO that backs this dust output. |
ctime - Int!
|
The creation timestamp. |
transactionId - Int!
|
The originating transaction ID (indexer-internal BIGSERIAL). |
transactionHash - HexEncoded!
|
The hex-encoded originating transaction hash (32-byte chain identifier). |
collapsedMerkleTree - MerkleTreeCollapsedUpdate
|
Collapsed Merkle tree update filling the gap before this entry. |
Example
{
"commitmentMtIndex": 987,
"generationMtIndex": 123,
"owner": HexEncoded,
"value": "abc123",
"initialValue": "abc123",
"backingNight": HexEncoded,
"ctime": 987,
"transactionId": 123,
"transactionHash": HexEncoded,
"collapsedMerkleTree": MerkleTreeCollapsedUpdate
}
DustGenerationsProgress
Description
Beta: this API is unstable and may change without notice.
Progress indicator for dust generations subscription (includes final collapsed update).
Fields
| Field Name | Description |
|---|---|
highestIndex - Int!
|
The highest index processed so far. |
collapsedMerkleTree - MerkleTreeCollapsedUpdate
|
Final collapsed Merkle tree update covering remaining range. |
protocolVersion - Int!
|
The protocol version at the snapshot's block, i.e. the one this snapshot is encoded at. Allows a wallet without any generations to observe a protocol upgrade, which it would otherwise only learn about from the items it receives. |
Example
{
"highestIndex": 987,
"collapsedMerkleTree": MerkleTreeCollapsedUpdate,
"protocolVersion": 987
}
DustInitialUtxo
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this dust ledger event. |
raw - HexEncoded!
|
The hex-encoded serialized event. |
maxId - Int!
|
The maximum ID of all dust ledger events. |
protocolVersion - Int!
|
The protocol version. |
output - DustOutput!
|
The dust output. |
Example
{
"id": 123,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 123,
"output": DustOutput
}
DustLedgerEvent
Description
A dust related ledger event.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
|
raw - HexEncoded!
|
|
maxId - Int!
|
|
protocolVersion - Int!
|
Possible Types
| DustLedgerEvent Types |
|---|
Example
{
"id": 987,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 987
}
DustNullifierTransaction
Description
A transaction containing a dust nullifier match with block context.
Fields
| Field Name | Description |
|---|---|
nullifierLeBytes - HexEncoded!
|
Beta: this API is unstable and may change without notice. The hex-encoded matched nullifier, in 32-byte little-endian form. |
commitmentLeBytes - HexEncoded!
|
Beta: this API is unstable and may change without notice. The hex-encoded commitment, in 32-byte little-endian form. |
transactionId - Int!
|
The transaction ID (indexer-internal BIGSERIAL, use as resumption cursor). |
transactionHash - HexEncoded!
|
The hex-encoded transaction hash (32-byte chain identifier). |
blockHeight - Int!
|
The block height containing this transaction. |
blockHash - HexEncoded!
|
The hex-encoded block hash (use to query block with ledger parameters). |
transaction - Transaction!
|
Beta: this API is unstable and may change without notice. The transaction containing this nullifier match. |
Example
{
"nullifierLeBytes": HexEncoded,
"commitmentLeBytes": HexEncoded,
"transactionId": 123,
"transactionHash": HexEncoded,
"blockHeight": 987,
"blockHash": HexEncoded,
"transaction": Transaction
}
DustOutput
Description
A dust output.
Fields
| Field Name | Description |
|---|---|
nonce - HexEncoded!
|
The hex-encoded 32-byte nonce. |
Example
{"nonce": HexEncoded}
DustRegistration
Description
A single dust registration with aggregated generation stats.
Fields
| Field Name | Description |
|---|---|
dustAddress - DustAddress!
|
The Bech32m-encoded DUST address. |
valid - Boolean!
|
Whether this registration is valid. |
nightBalance - String!
|
NIGHT balance backing generation in STAR. |
generationRate - String!
|
DUST generation rate in SPECK per second. |
maxCapacity - String!
|
Maximum DUST capacity in SPECK. |
currentCapacity - String!
|
Current generated DUST capacity in SPECK. |
utxoTxHash - HexEncoded
|
Cardano UTXO transaction hash. |
utxoOutputIndex - Int
|
Cardano UTXO output index. |
Example
{
"dustAddress": DustAddress,
"valid": true,
"nightBalance": "abc123",
"generationRate": "xyz789",
"maxCapacity": "abc123",
"currentCapacity": "xyz789",
"utxoTxHash": HexEncoded,
"utxoOutputIndex": 123
}
DustSpendProcessed
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this dust ledger event. |
raw - HexEncoded!
|
The hex-encoded serialized event. |
maxId - Int!
|
The maximum ID of all dust ledger events. |
protocolVersion - Int!
|
The protocol version. |
Example
{
"id": 123,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 987
}
EpochInfo
EpochPerf
Description
SPO performance for an epoch.
Example
{
"epochNo": 987,
"spoSkHex": "abc123",
"produced": 987,
"expected": 987,
"identityLabel": "abc123",
"stakeSnapshot": "xyz789",
"poolIdHex": "abc123",
"validatorClass": "xyz789"
}
FieldPrefixFilter
Description
Prefix filter on an indexed field of a standard event; not supported on Misc events.
Fields
| Input Field | Description |
|---|---|
fieldName - String!
|
The indexed field name; one of nullifier, commitment, ciphertext, domainSep, tokenType, sender or recipient. |
prefix - HexEncoded!
|
The hex-encoded field value prefix. An empty string matches all values; otherwise events whose field value starts with this prefix are returned. |
Example
{
"fieldName": "xyz789",
"prefix": HexEncoded
}
FirstValidEpoch
Float
Description
The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.
Example
123.45
HexEncoded
Example
HexEncoded
Int
Description
The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Example
987
MerkleTreeCollapsedUpdate
Description
A Merkle tree collapsed update between two indices.
Fields
| Field Name | Description |
|---|---|
startIndex - Int!
|
The start index. |
endIndex - Int!
|
The end index. |
update - HexEncoded!
|
The hex-encoded value. |
protocolVersion - Int!
|
The protocol version. |
Example
{
"startIndex": 123,
"endIndex": 123,
"update": HexEncoded,
"protocolVersion": 987
}
MiscContractEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
name - HexEncoded!
|
The hex-encoded contract-defined event name (32 bytes). |
payload - HexEncoded!
|
The hex-encoded opaque event payload, up to 256 bytes; consumers decode it with their contract's descriptor. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 123,
"raw": HexEncoded,
"maxId": 123,
"protocolVersion": 987,
"version": 987,
"contractAddress": HexEncoded,
"transactionId": 123,
"name": HexEncoded,
"payload": HexEncoded,
"transaction": Transaction
}
ParamChange
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this dust ledger event. |
raw - HexEncoded!
|
The hex-encoded serialized event. |
maxId - Int!
|
The maximum ID of all dust ledger events. |
protocolVersion - Int!
|
The protocol version. |
Example
{
"id": 123,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 987
}
PausedEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 123,
"raw": HexEncoded,
"maxId": 123,
"protocolVersion": 123,
"version": 987,
"contractAddress": HexEncoded,
"transactionId": 123,
"transaction": Transaction
}
PoolMetadata
Description
Pool metadata from Cardano.
Example
{
"poolIdHex": "xyz789",
"hexId": "abc123",
"name": "xyz789",
"ticker": "abc123",
"homepageUrl": "xyz789",
"logoUrl": "abc123"
}
PresenceEvent
RegisteredStat
Description
Registration statistics for an epoch.
Example
{
"epochNo": 987,
"federatedValidCount": 123,
"federatedInvalidCount": 987,
"registeredValidCount": 987,
"registeredInvalidCount": 987,
"dparam": 987.65
}
RegisteredTotals
RegularTransaction
Description
A regular Midnight transaction.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The transaction ID. |
hash - HexEncoded!
|
The hex-encoded transaction hash. |
protocolVersion - Int!
|
The protocol version. |
raw - HexEncoded!
|
The hex-encoded serialized transaction content. |
transactionResult - TransactionResult!
|
The result of applying this transaction to the ledger state. |
identifiers - [HexEncoded!]!
|
The hex-encoded serialized transaction identifiers. |
zswapMerkleTreeRoot - HexEncoded!
|
The hex-encoded serialized zswap state Merkle tree root. |
merkleTreeRoot - HexEncoded!
|
The hex-encoded serialized zswap state Merkle tree root. Use zswapMerkleTreeRoot instead |
zswapStartIndex - Int!
|
The start index into the zswap state. |
startIndex - Int!
|
The start index into the zswap state. Use zswapStartIndex instead |
zswapEndIndex - Int!
|
The end index into the zswap state; exclusive, i.e. the next free index. |
endIndex - Int!
|
The end index into the zswap state; exclusive, i.e. the next free index. Use zswapEndIndex instead |
dustCommitmentStartIndex - Int!
|
Beta: this API is unstable and may change without notice. The dust commitment tree start index. |
dustCommitmentEndIndex - Int!
|
Beta: this API is unstable and may change without notice. The dust commitment tree end index. |
dustGenerationStartIndex - Int!
|
Beta: this API is unstable and may change without notice. The dust generation tree start index. |
dustGenerationEndIndex - Int!
|
Beta: this API is unstable and may change without notice. The dust generation tree end index. |
fee - String!
|
The fee for this transaction in SPECK (atomic unit of DUST). |
fees - TransactionFees!
|
Fee information for this transaction. Use fee instead |
block - Block!
|
The block for this transaction. |
contractActions - [ContractAction!]!
|
The contract actions for this transaction. |
unshieldedCreatedOutputs - [UnshieldedUtxo!]!
|
Unshielded UTXOs created by this transaction. |
unshieldedSpentOutputs - [UnshieldedUtxo!]!
|
Unshielded UTXOs spent (consumed) by this transaction. |
zswapLedgerEvents - [ZswapLedgerEvent!]!
|
Zswap ledger events of this transaction. |
dustLedgerEvents - [DustLedgerEvent!]!
|
Dust ledger events of this transaction. |
Example
{
"id": 123,
"hash": HexEncoded,
"protocolVersion": 123,
"raw": HexEncoded,
"transactionResult": TransactionResult,
"identifiers": [HexEncoded],
"zswapMerkleTreeRoot": HexEncoded,
"merkleTreeRoot": HexEncoded,
"zswapStartIndex": 987,
"startIndex": 987,
"zswapEndIndex": 123,
"endIndex": 123,
"dustCommitmentStartIndex": 123,
"dustCommitmentEndIndex": 987,
"dustGenerationStartIndex": 123,
"dustGenerationEndIndex": 987,
"fee": "xyz789",
"fees": TransactionFees,
"block": Block,
"contractActions": [ContractAction],
"unshieldedCreatedOutputs": [UnshieldedUtxo],
"unshieldedSpentOutputs": [UnshieldedUtxo],
"zswapLedgerEvents": [ZswapLedgerEvent],
"dustLedgerEvents": [DustLedgerEvent]
}
RelevantTransaction
Description
A transaction relevant for the subscribing wallet and an optional zswap state Merkle tree collapsed update.
Fields
| Field Name | Description |
|---|---|
transaction - RegularTransaction!
|
A transaction relevant for the subscribing wallet. |
zswapCollapsedUpdate - MerkleTreeCollapsedUpdate
|
Only include a zswap state Merkle tree collapsed update if there is a gap between the current zswap index "driving" the subscription and the zswap start index of the transaction. |
collapsedMerkleTree - CollapsedMerkleTree
|
An optional collapsed Merkle tree. Use zswapCollapsedUpdate instead |
Example
{
"transaction": RegularTransaction,
"zswapCollapsedUpdate": MerkleTreeCollapsedUpdate,
"collapsedMerkleTree": CollapsedMerkleTree
}
Segment
ShieldedBurnEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
nullifier - HexEncoded!
|
The hex-encoded nullifier; filterable via fieldPrefixes. |
amount - String
|
The optional amount as a decimal string; hidden in some shielded burns. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 123,
"raw": HexEncoded,
"maxId": 123,
"protocolVersion": 987,
"version": 123,
"contractAddress": HexEncoded,
"transactionId": 123,
"nullifier": HexEncoded,
"amount": "abc123",
"transaction": Transaction
}
ShieldedMintEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
commitment - HexEncoded!
|
The hex-encoded commitment; filterable via fieldPrefixes. |
domainSep - HexEncoded!
|
The hex-encoded domain separator; filterable via fieldPrefixes. |
amount - String
|
The optional amount as a decimal string; hidden in some shielded mints. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 123,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 123,
"version": 123,
"contractAddress": HexEncoded,
"transactionId": 123,
"commitment": HexEncoded,
"domainSep": HexEncoded,
"amount": "abc123",
"transaction": Transaction
}
ShieldedNullifierTransaction
Description
A transaction containing a shielded (zswap) nullifier match with block context.
Fields
| Field Name | Description |
|---|---|
transactionId - Int!
|
The transaction ID (indexer-internal BIGSERIAL, use as resumption cursor). |
transactionHash - HexEncoded!
|
The hex-encoded transaction hash (32-byte chain identifier). |
blockHash - HexEncoded!
|
The hex-encoded block hash (use to query block with ledger parameters). |
blockHeight - Int!
|
The block height containing this transaction. |
nullifier - HexEncoded!
|
The hex-encoded matched nullifier. |
transaction - Transaction!
|
Beta: this API is unstable and may change without notice. The transaction containing this nullifier match. |
Example
{
"transactionId": 987,
"transactionHash": HexEncoded,
"blockHash": HexEncoded,
"blockHeight": 123,
"nullifier": HexEncoded,
"transaction": Transaction
}
ShieldedReceiveEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
commitment - HexEncoded!
|
The hex-encoded commitment; filterable via fieldPrefixes. |
ciphertext - HexEncoded
|
The hex-encoded optional ciphertext of the shielded coin receipt, up to 512 bytes; filterable via fieldPrefixes. |
receivingContractAddress - HexEncoded
|
The hex-encoded receiving contract address; set when received by a contract, null for user recipients. Named to avoid collision with the emitting contractAddress. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 987,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 987,
"version": 123,
"contractAddress": HexEncoded,
"transactionId": 987,
"commitment": HexEncoded,
"ciphertext": HexEncoded,
"receivingContractAddress": HexEncoded,
"transaction": Transaction
}
ShieldedSpendEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
nullifier - HexEncoded!
|
The hex-encoded nullifier; filterable via fieldPrefixes. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 987,
"raw": HexEncoded,
"maxId": 123,
"protocolVersion": 123,
"version": 987,
"contractAddress": HexEncoded,
"transactionId": 123,
"nullifier": HexEncoded,
"transaction": Transaction
}
ShieldedTransactionsEvent
Description
An event of the shielded transactions subscription.
Types
| Union Types |
|---|
Example
RelevantTransaction
ShieldedTransactionsProgress
Description
Information about the shielded transactions indexing progress.
Fields
| Field Name | Description |
|---|---|
highestZswapEndIndex - Int!
|
The highest end index into the zswap state for all transactions. It represents the known state of the blockchain. A value of zero (completely unlikely) means that no shielded transactions have been indexed yet. |
highestEndIndex - Int!
|
The highest end index into the zswap state for all transactions. It represents the known state of the blockchain. A value of zero (completely unlikely) means that no shielded transactions have been indexed yet. Use highestZswapEndIndex instead |
highestCheckedZswapEndIndex - Int!
|
The highest highest end index into the zswap state for all transactions checked for relevance. Initially less than and eventually (when some wallet has been fully indexed) equal to highest_end_index. A value of zero (very unlikely) means that no wallet has subscribed before and indexing for the subscribing wallet has not yet started. |
highestCheckedEndIndex - Int!
|
The highest highest end index into the zswap state for all transactions checked for relevance. Initially less than and eventually (when some wallet has been fully indexed) equal to highest_end_index. A value of zero (very unlikely) means that no wallet has subscribed before and indexing for the subscribing wallet has not yet started. Use highestCheckedZswapEndIndex instead
|
highestRelevantZswapEndIndex - Int!
|
The highest highest end index into the zswap state for all relevant transactions for the subscribing wallet. Usually less than highest_checked_end_index unless the latest checked transaction is relevant for the subscribing wallet. A value of zero means that no relevant transactions have been indexed for the subscribing wallet. |
highestRelevantEndIndex - Int!
|
The highest highest end index into the zswap state for all relevant transactions for the subscribing wallet. Usually less than highest_checked_end_index unless the latest checked transaction is relevant for the subscribing wallet. A value of zero means that no relevant transactions have been indexed for the subscribing wallet. Use highestRelevantZswapEndIndex instead
|
protocolVersion - Int!
|
The protocol version at the tip of the chain, i.e. the one currently in effect, not the one the transactions of this subscription were indexed at. Allows a wallet without any relevant transactions to observe a protocol upgrade, which it would otherwise only learn about from the transactions it receives. A value of zero means that no block has been indexed yet. |
Example
{
"highestZswapEndIndex": 987,
"highestEndIndex": 987,
"highestCheckedZswapEndIndex": 987,
"highestCheckedEndIndex": 123,
"highestRelevantZswapEndIndex": 987,
"highestRelevantEndIndex": 123,
"protocolVersion": 987
}
Spo
Description
SPO with optional metadata.
Example
{
"poolIdHex": "xyz789",
"validatorClass": "abc123",
"sidechainPubkeyHex": "abc123",
"auraPubkeyHex": "xyz789",
"name": "xyz789",
"ticker": "abc123",
"homepageUrl": "xyz789",
"logoUrl": "abc123"
}
SpoComposite
Description
Composite SPO data (identity + metadata + performance).
Fields
| Field Name | Description |
|---|---|
identity - SpoIdentity
|
|
metadata - PoolMetadata
|
|
performance - [EpochPerf!]!
|
Example
{
"identity": SpoIdentity,
"metadata": PoolMetadata,
"performance": [EpochPerf]
}
SpoIdentity
Description
SPO identity information.
Example
{
"poolIdHex": "abc123",
"mainchainPubkeyHex": "abc123",
"sidechainPubkeyHex": "xyz789",
"auraPubkeyHex": "xyz789",
"validatorClass": "xyz789"
}
String
Description
The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Example
"xyz789"
SystemParameters
Description
System parameters at a specific block height.
Fields
| Field Name | Description |
|---|---|
dParameter - DParameter!
|
The D-parameter controlling validator committee composition. |
termsAndConditions - TermsAndConditions
|
The current Terms and Conditions, if any have been set. |
Example
{
"dParameter": DParameter,
"termsAndConditions": TermsAndConditions
}
SystemTransaction
Description
A system Midnight transaction.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The transaction ID. |
hash - HexEncoded!
|
The hex-encoded transaction hash. |
protocolVersion - Int!
|
The protocol version. |
raw - HexEncoded!
|
The hex-encoded serialized transaction content. |
block - Block!
|
The block for this transaction. |
contractActions - [ContractAction!]!
|
The contract actions for this transaction. |
unshieldedCreatedOutputs - [UnshieldedUtxo!]!
|
Unshielded UTXOs created by this transaction. |
unshieldedSpentOutputs - [UnshieldedUtxo!]!
|
Unshielded UTXOs spent (consumed) by this transaction. |
zswapLedgerEvents - [ZswapLedgerEvent!]!
|
Zswap ledger events of this transaction. |
dustLedgerEvents - [DustLedgerEvent!]!
|
Dust ledger events of this transaction. |
Example
{
"id": 987,
"hash": HexEncoded,
"protocolVersion": 123,
"raw": HexEncoded,
"block": Block,
"contractActions": [ContractAction],
"unshieldedCreatedOutputs": [UnshieldedUtxo],
"unshieldedSpentOutputs": [UnshieldedUtxo],
"zswapLedgerEvents": [ZswapLedgerEvent],
"dustLedgerEvents": [DustLedgerEvent]
}
TermsAndConditions
Description
Terms and Conditions agreement.
Fields
| Field Name | Description |
|---|---|
hash - HexEncoded!
|
The hex-encoded hash of the Terms and Conditions document. |
url - String!
|
The URL where the Terms and Conditions can be found. |
Example
{
"hash": HexEncoded,
"url": "abc123"
}
TermsAndConditionsChange
Description
Terms and Conditions change record for history queries.
Fields
| Field Name | Description |
|---|---|
blockHeight - Int!
|
The block height where this T&C version became effective. |
blockHash - HexEncoded!
|
The hex-encoded block hash where this T&C version became effective. |
timestamp - Int!
|
The UNIX timestamp when this T&C version became effective. |
hash - HexEncoded!
|
The hex-encoded hash of the Terms and Conditions document. |
url - String!
|
The URL where the Terms and Conditions can be found. |
Example
{
"blockHeight": 123,
"blockHash": HexEncoded,
"timestamp": 987,
"hash": HexEncoded,
"url": "abc123"
}
Transaction
Description
A Midnight transaction.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
|
hash - HexEncoded!
|
|
protocolVersion - Int!
|
|
raw - HexEncoded!
|
|
block - Block!
|
|
contractActions - [ContractAction!]!
|
|
unshieldedCreatedOutputs - [UnshieldedUtxo!]!
|
|
unshieldedSpentOutputs - [UnshieldedUtxo!]!
|
|
zswapLedgerEvents - [ZswapLedgerEvent!]!
|
|
dustLedgerEvents - [DustLedgerEvent!]!
|
Possible Types
| Transaction Types |
|---|
Example
{
"id": 987,
"hash": HexEncoded,
"protocolVersion": 987,
"raw": HexEncoded,
"block": Block,
"contractActions": [ContractAction],
"unshieldedCreatedOutputs": [UnshieldedUtxo],
"unshieldedSpentOutputs": [UnshieldedUtxo],
"zswapLedgerEvents": [ZswapLedgerEvent],
"dustLedgerEvents": [DustLedgerEvent]
}
TransactionFees
Description
Fees information for a transaction.
Example
{
"paidFees": "abc123",
"estimatedFees": "xyz789"
}
TransactionOffset
Description
Either a transaction hash or a transaction identifier.
Fields
| Input Field | Description |
|---|---|
hash - HexEncoded
|
A hex-encoded transaction hash. |
identifier - HexEncoded
|
A hex-encoded transaction identifier. |
Example
{
"hash": HexEncoded,
"identifier": HexEncoded
}
TransactionResult
Description
The result of applying a transaction to the ledger state. In case of a partial success (status), there will be segments.
Fields
| Field Name | Description |
|---|---|
status - TransactionResultStatus!
|
|
segments - [Segment!]
|
Example
{"status": "SUCCESS", "segments": [Segment]}
TransactionResultStatus
Description
The status of the transaction result: success, partial success or failure.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"SUCCESS"
Unit
Example
Unit
UnpausedEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 987,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 123,
"version": 123,
"contractAddress": HexEncoded,
"transactionId": 123,
"transaction": Transaction
}
UnshieldedAddress
Example
UnshieldedAddress
UnshieldedBurnEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
sender - AddressOrContract!
|
The spending user or contract address; filterable via fieldPrefixes. |
tokenType - HexEncoded!
|
The hex-encoded token type; filterable via fieldPrefixes. |
amount - String!
|
The amount as a decimal string. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 987,
"raw": HexEncoded,
"maxId": 123,
"protocolVersion": 987,
"version": 987,
"contractAddress": HexEncoded,
"transactionId": 987,
"sender": AddressOrContract,
"tokenType": HexEncoded,
"amount": "xyz789",
"transaction": Transaction
}
UnshieldedMintEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
domainSep - HexEncoded!
|
The hex-encoded domain separator; filterable via fieldPrefixes. |
tokenType - HexEncoded!
|
The hex-encoded token type; filterable via fieldPrefixes. |
amount - String!
|
The amount as a decimal string. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 987,
"raw": HexEncoded,
"maxId": 123,
"protocolVersion": 123,
"version": 123,
"contractAddress": HexEncoded,
"transactionId": 123,
"domainSep": HexEncoded,
"tokenType": HexEncoded,
"amount": "abc123",
"transaction": Transaction
}
UnshieldedReceiveEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
recipient - AddressOrContract!
|
The receiving user or contract address; filterable via fieldPrefixes. |
domainSep - HexEncoded!
|
The hex-encoded domain separator; filterable via fieldPrefixes. |
tokenType - HexEncoded!
|
The hex-encoded token type; filterable via fieldPrefixes. |
amount - String!
|
The amount as a decimal string. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 123,
"raw": HexEncoded,
"maxId": 123,
"protocolVersion": 123,
"version": 987,
"contractAddress": HexEncoded,
"transactionId": 987,
"recipient": AddressOrContract,
"domainSep": HexEncoded,
"tokenType": HexEncoded,
"amount": "xyz789",
"transaction": Transaction
}
UnshieldedSpendEvent
Description
Beta: this API is unstable and may change without notice.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this contract event. |
raw - HexEncoded!
|
The hex-encoded serialized event payload. |
maxId - Int!
|
The maximum ID of all contract events. |
protocolVersion - Int!
|
The protocol version. |
version - Int!
|
The event schema version, as declared by the emitting contract's compiler. |
contractAddress - HexEncoded!
|
The hex-encoded address of the emitting contract. |
transactionId - Int!
|
The ID of the transaction this event was emitted from. |
sender - AddressOrContract!
|
The spending user or contract address; filterable via fieldPrefixes. |
domainSep - HexEncoded!
|
The hex-encoded domain separator; filterable via fieldPrefixes. |
tokenType - HexEncoded!
|
The hex-encoded token type; filterable via fieldPrefixes. |
amount - String!
|
The amount as a decimal string. |
transaction - Transaction!
|
The transaction this event was emitted from. |
Example
{
"id": 987,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 987,
"version": 123,
"contractAddress": HexEncoded,
"transactionId": 987,
"sender": AddressOrContract,
"domainSep": HexEncoded,
"tokenType": HexEncoded,
"amount": "xyz789",
"transaction": Transaction
}
UnshieldedTransaction
Description
A transaction that created and/or spent UTXOs alongside these and other information.
Fields
| Field Name | Description |
|---|---|
transaction - Transaction!
|
The transaction that created and/or spent UTXOs. |
createdUtxos - [UnshieldedUtxo!]!
|
UTXOs created in the above transaction, possibly empty. |
spentUtxos - [UnshieldedUtxo!]!
|
UTXOs spent in the above transaction, possibly empty. |
Example
{
"transaction": Transaction,
"createdUtxos": [UnshieldedUtxo],
"spentUtxos": [UnshieldedUtxo]
}
UnshieldedTransactionsEvent
Description
An event of the unshielded transactions subscription.
Types
| Union Types |
|---|
Example
UnshieldedTransaction
UnshieldedTransactionsProgress
Description
Information about the unshielded indexing progress.
Fields
| Field Name | Description |
|---|---|
highestTransactionId - Int!
|
The highest transaction ID of all currently known transactions for a subscribed address. |
protocolVersion - Int!
|
The protocol version at the tip of the chain, i.e. the one currently in effect, not the one the transactions of this subscription were indexed at. Allows a wallet without any transactions to observe a protocol upgrade, which it would otherwise only learn about from the transactions it receives. A value of zero means that no block has been indexed yet. |
Example
{"highestTransactionId": 123, "protocolVersion": 123}
UnshieldedUtxo
Description
Represents an unshielded UTXO.
Fields
| Field Name | Description |
|---|---|
owner - UnshieldedAddress!
|
Owner Bech32m-encoded address. |
tokenType - HexEncoded!
|
Token hex-encoded serialized token type. |
value - String!
|
UTXO value (quantity) as a string to support u128. |
intentHash - HexEncoded!
|
The hex-encoded serialized intent hash. |
outputIndex - Int!
|
Index of this output within its creating transaction. |
ctime - Int
|
The creation time in seconds. |
initialNonce - HexEncoded!
|
The hex-encoded initial nonce for DUST generation tracking. |
registeredForDustGeneration - Boolean!
|
Whether this UTXO is registered for DUST generation. Reported against the chain's current DUST epoch, so a fork that wipes DUST state (ledger 8 -> 9) turns this to |
createdAtTransaction - Transaction!
|
Transaction that created this UTXO. |
spentAtTransaction - Transaction
|
Transaction that spent this UTXO. |
Example
{
"owner": UnshieldedAddress,
"tokenType": HexEncoded,
"value": "xyz789",
"intentHash": HexEncoded,
"outputIndex": 123,
"ctime": 987,
"initialNonce": HexEncoded,
"registeredForDustGeneration": true,
"createdAtTransaction": Transaction,
"spentAtTransaction": Transaction
}
ViewingKey
Example
ViewingKey
ZswapLedgerEvent
Description
A zswap related ledger event.
Fields
| Field Name | Description |
|---|---|
id - Int!
|
The ID of this zswap ledger event. |
raw - HexEncoded!
|
The hex-encoded serialized event. |
maxId - Int!
|
The maximum ID of all zswap ledger events. |
protocolVersion - Int!
|
The protocol version. |
Example
{
"id": 123,
"raw": HexEncoded,
"maxId": 987,
"protocolVersion": 123
}