Skip to content

Firedancer WebSocket API

Firedancer provides an optional HTTP websockets API for consumers to subscribe to validator information. It primarily exists in the current form to support the Firedancer GUI.

WARNING

The API is not currently stable, is not versioned, may not exist for long, may break or start producing incorrect data at any moment, and should not generally be used for anything without extreme caution.

Connecting

To connect to the API, create a WebSocket client from the language of your choice, for example in JavaScript

js
client = new WebSocket("ws://localhost:80/websocket");
toml
[tiles]
    [tiles.gui]
        listen_port = 80

The port to connect to is specified in the validator configuration TOML file.

The API is split into various topics which will be streamed to any and all connected clients.

Keeping Up

The server does not drop information, slow down, or stop publishing the stream of information if the client cannot keep up. A client that is reading too slow and cannot keep up with incoming data stream will have its connection forcibly closed by the server.

Most data updates are streamed in real time as the changes occur except certain updates (performance counters like packet counters) which would change too quickly, which are instead republished on a regular frequency described below.

Each message is published with frequency described in the documentation below. The meaning of these frequencies are:

Frequency   Meaning
OnceThe message is published only once, immediately after a connection is established
LiveThe message is published live, immediately after the underlying data in the validator is changed
RequestThe message is published in response to a specific client request
1sThe message is republished at regular one second intervals
Once + LiveThe message is published immediately after a connection is established, and then republished whenever the data is changed

Most information related to the state of the validator is sent both Once when the connection is established, and then live whenever it is updated.

All data is encoded in JSON, with a containing envelope as follows:

json
{
    "topic": "summary",
    "key": "cluster",
    "value": "mainnet-beta",
}

Queries

Some messages are published on-demand in response to a request, and are marked with a frequency of Request. To issue a query, send a websocket frame to the server with an envelope like:

json
{
    "topic": "slot",
    "key": "query",
    "id": 42,
    "params": {
        "slot": 285291521
    }
}

The topic and key correspond to the request method you wish to call. The id value is an unsigned integer (must fit in u64) that will be echoed back in the envelope of the response object. params are request specific parameters documented for each on-demand query.

If the client issues a malformed request, it will be forcibly disconnected. If the client issues a well-formed request for data that the validator does not have (for example, an old slot), the query will receive a response with a value of null.

json
{
    "topic": "slot",
    "key": "query",
    "id": 42,
    "value": null
}

Forks

The Solana network may occasionally fork, in which case there will be more than one active chain. When showing information derived from the chain, the API will (unless specified otherwise) show information reflecting the current fork choice of this validator. The current fork choice of this validator might not be the newest, or the heaviest (most voted on, or most likely to be chosen) fork.

For example, when showing the transactions per second (TPS) rate under summary.estimated_tps, it will be calculated using the transactions and block timings observed in the current fork. Similarly, the completed_slot is the last completed slot on the current fork choice.

When the validator switches fork choice, certain of this information will be republished to make sure it reflects the new fork choice.

Topics

summary

A set of high level informational fields about the validator.

summary.ping

frequencytypeexample
Requestnullbelow

Sends a ping to the server, which will respond with a pong. This is an application level ping/pong and not a WebSocket control frame.

Example
json
{
    "topic": "summary",
    "key": "ping",
    "id": 42,
}
json
{
    "topic": "summary",
    "key": "ping",
    "id": 42,
    "value": null
}

summary.version

frequencytypeexample
Oncestring"0.106.11814"

The current version of the running validator.

summary.cluster

frequencytypeexample
Oncestring"mainnet-beta"

One of mainnet-beta, devnet, testnet, pythtest, pythnet, development, or unknown. Indicates the cluster that the validator is likely to be running on. The cluster is guessed by looking at the genesis hash of the chain and entrypoints that the validator connects to.

summary.identity_key

frequencytypeexample
Oncestring"Fe4StcZSQ228dKK2hni7aCP7ZprNhj8QKWzFe5usGFYF"

The public identity key assigned to the running validator, encoded in base58. Firedancer does not support changing the identity key of the validator while it is running and this value does not change.

summary.vote_state

frequencytypeexample
Once + Livestringvoting

One of voting, non-voting, or delinquent, indicating the current vote status of the validator. The validator considers itself delinquent if the last vote it has landed on its own currently chosen fork is 150 or more slots behind that fork.

summary.vote_distance

frequencytypeexample
Once + Livenumber2

A number showing the distance between the highest slot the validator has landed a vote for, and the current highest replayed slot on the validators fork choice. A distance of more than 150 means the validator is considered delinquent.

summary.uptime_nanos

frequencytypeexample
Oncenumber21785299176204

The length of time in nanoseconds that the validator has been running. Running time is approximately measured since application startup, and includes time to download a snapshot and catch up to the cluster.

summary.startup_progress

frequencytypeexample
Once + LiveStartupProgressbelow

Information about the validators progress in starting up. There are various stages of starting up which the validator goes through in order before it is ready. Typically, the phase will only move forward except for a special case: the validator can go from downloading_full_snapshot back to searching_for_full_snapshot if the snapshot peer found is downloading too slow and we would like to try a different one (and the same applies for the incremental snapshot).

The phases are,

PhaseDescription
initializingThe validator has just booted and has not yet started looking for RPC services to download snapshots from
searching_for_full_snapshotThe validator is searching over gossip for an RPC node to download a full snapshot from
downloading_full_snapshotThe validator has found an RPC peer to download a full snapshot from and the download is now in progress
searching_for_incremental_snapshotThe validator is searching over gossip for an RPC node to download an incremental snapshot from
downloading_incremental_snapshotThe validator has found an RPC peer to download an incremental snapshot from and the download is now in progress. The incremental snapshot is a smaller snapshot taken more regularly, which builds on top of a full snapshot
cleaning_blockstoreRemoves stale data from the blockstore
cleaning_accountsRemoves stale data from the accounts database
loading_ledgerLoads the ledger data from disk into memory
processing_ledgerThe blockstore is replayed to get to the current slot
starting_servicesRPC, the leader TPU, the replay TVU, snapshots, and all other services are being started
haltedThe validator is halted at a specific slot because of a development option provided at boot, and will not proceed further
waiting_for_supermajorityThe validator is waiting at a specific slot for a supermajority of stake to come online on the gossip network so it can proceed. This is used during cluster restarts
runningThe validator is fully booted and running normally
Example
json
{
	"topic": "summary",
	"key": "startup_progress",
	"value": {
		"phase": "downloading_full_snapshot",
		"downloading_full_snapshot_peer": "145.40.125.99:8899",
		"downloading_full_snapshot_slot": 291059318,
		"downloading_full_snapshot_elapsed_secs": 24.01,
		"downloading_full_snapshot_remaining_secs": 254.26,
		"downloading_full_snapshot_throughput": 17193374.00,
		"downloading_full_snapshot_total_bytes": 4746970624,
		"downloading_full_snapshot_current_bytes": 375455480,
		"downloading_incremental_snapshot_peer": null,
		"downloading_incremental_snapshot_slot": null,
		"downloading_incremental_snapshot_elapsed_secs": null,
		"downloading_incremental_snapshot_remaining_secs": null,
		"downloading_incremental_snapshot_throughput": null,
		"downloading_incremental_snapshot_total_bytes": null,
		"downloading_incremental_snapshot_current_bytes": null,
		"ledger_slot": null,
		"ledger_max_slot": null,
		"waiting_for_supermajority_slot": null,
		"waiting_for_supermajority_stake_percent": null
	}
}

StartupProgress

FieldTypeDescription
phasestringOne of initializing, searching_for_full_snapshot, downloading_full_snapshot, searching_for_incremental_snapshot, downldownloading_incremental_snapshot, cleaning_blockstore, cleaning_accounts, loading_ledger, processing_ledger, starting_services, halted, waiting_for_supermajority, or running
downloading_full_snapshot_slotnumber|nullIf the phase is at least downloading_full_snapshot or later, this is the slot that is being (or was) downloaded from the snapshot provider. Otherwise it is null
downloading_full_snapshot_peerstring|nullIf the phase is at least downloading_full_snapshot or later, this is the peer RPC address that the snapshot is being downlaoded from. Otherwise it is null
downloading_full_snapshot_elapsed_secsnumber|nullIf the phase is at least downloading_full_snapshot or later, this is the duration, in seconds that the validator has been downloading the snapshot for. Otherwise it is null
downloading_full_snapshot_remaining_secsnumber|nullIf the phase is at least downloading_full_snapshot or later, this is the estimated duration, in seconds that the validator has left to download the snapshot. Otherwise it is null
downloading_full_snapshot_throughputnumber|nullIf the phase is currently downloading_full_snapshot, this is the current download throughput in bytes per second. Otherwise it is null
downloading_full_snapshot_total_bytesnumber|nullIf the phase is at least downloading_full_snapshot or later, this is the total size of the snapshot being downloaded in bytes. Otherwise it is null
downloading_full_snapshot_current_bytesnumber|nullIf the phase is at least downloading_full_snapshot or later, this is the current size of the snapshot that has been downloaded in bytes. Otherwise it is null
downloading_incremental_snapshot_slotnumber|nullIf the phase is at least downloading_incremental_snapshot or later, this is the slot that is being (or was) downloaded from the snapshot provider. Otherwise it is null
downloading_incremental_snapshot_peerstring|nullIf the phase is at least downloading_incremental_snapshot or later, this is the peer RPC address that the snapshot is being downlaoded from. Otherwise it is null
downloading_incremental_snapshot_elapsed_secsnumber|nullIf the phase is at least downloading_incremental_snapshot or later, this is the duration, in seconds that the validator has been downloading the snapshot for. Otherwise it is null
downloading_incremental_snapshot_remaining_secsnumber|nullIf the phase is at least downloading_incremental_snapshot or later, this is the estimated duration, in seconds that the validator has left to download the snapshot. Otherwise it is null
downloading_incremental_snapshot_throughputnumber|nullIf the phase is currently downloading_incremental_snapshot, this is the current download throughput in bytes per second. Otherwise it is null
downloading_incremental_snapshot_total_bytesnumber|nullIf the phase is at least downloading_incremental_snapshot or later, this is the total size of the snapshot being downloaded in bytes. Otherwise it is null
downloading_incremental_snapshot_current_bytesnumber|nullIf the phase is at least downloading_incremental_snapshot or later, this is the current size of the snapshot that has been downloaded in bytes. Otherwise it is null
ledger_slotnumber|nullIf the phase is at least processing_ledger or later, this is the current slot that we have replayed up to in the ledger. Otherwise it is null
ledger_max_slotnumber|nullIf the phase is at least processing_ledger or later, this is the maximum slot we need to replay up to in the ledger. Otherwise it is null
waiting_for_supermajority_slotnumber|nullIf the phase is at least waiting_for_supermajority or later, and we are stopped waiting for supermajority, this is the slot that we are stopped at. Otherwise it is null
waiting_for_supermajority_stake_percentnumber|nullIf the phase is at least waiting_for_supermajority or later, and we are stopped waiting for supermajority, this is the percentage of stake that is currently online and gossiping to our node. Otherwise it is null. The validator will proceed with starting up once the stake percent reaches 80

summary.tiles

frequencytypeexample
OnceTile[]below

Information about the tile topology of Firedancer. This is a list of tiles in the system.

Tile

FieldTypeDescription
kindstringWhat kind of tile it is. One of net, quic, verify, dedup, pack, bank, poh, shred, store, sign, plugin, or http.
kind_idnumberThe index of the tile in its kind. For example, if there are four verify tiles they have kind_id values of 0, 1, 2, and 3 respectively.
Example
json
{
    "topic": "summary",
    "key": "tiles",
    "value": [
        { "tile": "net", "kind_id": 0 },
        { "tile": "quic", "kind_id": 0 },
        { "tile": "verify", "kind_id": 0 },
        { "tile": "verify", "kind_id": 1 },
        { "tile": "verify", "kind_id": 2 },
        { "tile": "verify", "kind_id": 3 },
        { "tile": "dedup", "kind_id": 0 },
        { "tile": "pack", "kind_id": 0 },
        { "tile": "bank", "kind_id": 0 },
        { "tile": "bank", "kind_id": 1 },
        { "tile": "poh", "kind_id": 0 },
        { "tile": "shred", "kind_id": 0 },
        { "tile": "store", "kind_id": 0 },
        { "tile": "sign", "kind_id": 0 },
        { "tile": "plugin", "kind_id": 0 }
        { "tile": "http", "kind_id": 0 }
    ]
}

summary.balance

frequencytypeexample
Once + 60snumber21125572

Account balance of this validators identity key in lamports. The balance is on the highest slot of the currently active fork of the validator.

summary.root_slot

frequencytypeexample
Once + Livenumber275138349

The last slot that was rooted. Rooted slots are fully confirmed and irreversible, and the rooted slot will never decrease as switching fork cannot unroot the slot. The number will not always increase by one, as skipped slots do not update the root slot. For example, if the root slot goes from 1001 to 1003 it means slot 1002 was skipped.

summary.optimistically_confirmed_slot

frequencytypeexample
Once + Livenumber275138349

The highest slot on the current fork that was optimistically confirmed. Optimistic confirmation means that over two-thirds of stake have voted to confirm the slot, and it is unlikely (although still possible, if validators switch vote) to not become rooted.

Although rare, the optimistically_confirmed_slot could decrease if a validator switches to another fork that does not have this slot.

summary.completed_slot

frequencytypeexample
Once + Livenumber275138349

The highest completed slot on the current fork choice of the validator. The completed slot may decrease if the validator is switching forks, or could stay the same for much more than the slot production time (400 milliseconds) if leaders are offline and not producing blocks.

summary.estimated_slot

frequencytypeexample
Once + Livenumber275138349

The estimated slot is the same as the completd slot, except it still progresses forward even if the current leaders are skipping (not producing) their slot. For example, if the last completed slot was 1001 and it has been 800 milliseconds since that slot, the estimated slot is likely to be 1003.

summary.estimated_slot_duration_nanos

frequencytypeexample
Once + Livenumber450267129

The estimated duration of each slot on the network. This is a moving average from the prior 750 slots, or around five minutes. Live here means the estimate is republished whenever it changes, which is when a new slot is confirmed on the currently active fork.

summary.skip_rate

frequencytypeexample
Once + LiveSkipRate{"epoch": 522, "skip_rate": 0.456172}

The skip rate of an epoch is the ratio of skipped_slots/total_slots for our leader slots in that epoch. The skip rate is only known for slots that have happened since the validator was started, and we do not incorporate slots from before boot, as we cannot know if they were skipped or not. If no slot has happened since boot, i.e. total_slots==0, skip_rate is 0.

SkipRate

FieldTypeDescription
epochnumberThe epoch that the skip rate is being published for
skip_ratenumberThe updated skip rate for the provided epoch

summary.tps_history

frequencytypeexample
Oncenumber[][][[5492.2,4578.841,914.24,0],[6134.44419,5149.23,985,0]]

A list of the last 150 TPS samples taken by the validator. Currently the spacing between samples is poorly defined, but it's roughly one sample per slot. Each element in the outer array represents a sample, and the outer array will have up to 150 samples. Each sample will have 4 elements, which are total_tps, vote_tps, nonvote_success_tps, and nonvote_failed_tps as defined below. Samples are listed from oldest first.

summary.estimated_tps

frequencytypeexample
Once + Livenumberbelow

The estimated number of transactions per second the network is running at. This includes total, vote, non-vote successful, and non-vote failed transactions. This is a moving average from the prior 150 slots, or around one minute. For a more precise view of transactions per second, the client can calculate it from the stream of new slot data.

The sum of the non-vote successful and the non-vote failed transactions represent the number of non-vote transactions. The sum of the estimated vote and non-vote transactions will be equal to the estimated total tranasactions per second.

Example
json
{
    "topic": "summary",
    "key": "estimated_tps",
    "value": {
        "total": 8348,
        "vote": 6875,
        "nonvote_success": 1473,
        "nonvote_failed": 0
    }
}

summary.live_txn_waterfall

frequencytypeexample
Once + 100msLiveTxnWaterfallbelow
Example
json
{
    "topic": "summary",
    "key": "live_txn_waterfall",
    "value": {
        "next_leader_slot": 285228774,
        "waterfall": {
            "in": {
                "retained": 2014,
                "quic": 66767,
                "udp": 1054,
                "gossip": 517
            },
            "out": {
                "net_overrun": 1,
                "quic_overrun": 44,
                "quic_frag_drop": 13,
                "quic_abandoned": 15,
                "tpu_quic_invalid": 16,
                "tpu_udp_invalid": 17,
                "verify_overrun": 2059,
                "verify_parse": 14,
                "verify_failed": 4092,
                "verify_duplicate": 128,
                "dedup_duplicate": 87,
                "pack_invalid": 12,
                "pack_expired": 2,
                "pack_retained": 1985,
                "pack_overrun": 54,
                "pack_priority": 58422,
                "bank_invalid": 14,
                "block_success": 2976,
                "block_fail": 419
            }
        }
    }
}

LiveTxnWaterfall

FieldTypeDescription
next_leader_slotnumber|nullThe next leader slot that the transactions are being accumulated for
waterfallTxnWaterfallA waterfall of transactions received since the end of the previous leader slot

A transaction waterfall describes the transactions that are received before and during a leader slot, and what happened to them. A typical waterfall is that we acquire transactions from QUIC or gossip in the lead up to (before) our leader slot, drop a few of them that fail to verify, drop a few duplicates, drop some low priority ones that won't fit into our block, and then successfully place some transactions into a block. Transactions can also be received and dropped during the leader slot, but it's important to note: the waterfall shows statistics for all transactions since the end of our last leader slot. These are transactions that are now eligible for palcement into the next one.

The waterfall is typically useful when viewing what happened in a past leader slot: we want to know where transactions came from, and for what reasons they didn't make it into the block. For example, if we received 100,000 transactions leading up to the slot, but only 6000 made it in, what happened to the other 94,000?

The live waterfall is a special case: it's for the next slot of the validator, rather than one that is in the past. Becuase the slot hasn't happened yet, we know certain information: how many transactions we have received so far from users that we could pack into our next block, how many have expired, how many failed to verify, and so on, but we probably won't know how many made it into the block yet, as we do when looking at the waterfall for a block that has been published.

The waterfall should generally be balanced: total transactions in and total transactions out will be the roughly the same, but not always strictly. Transactions in could be more or less than transactions out due to sampling jiter. When subtracting, be sure to account for potential underflow.

summary.live_tile_primary_metric

frequencytypeexample
Once + 100msLiveTilePrimaryMetricbelow
Example
json
{
    "topic": "summary",
    "key": "live_tile_primary_metric",
    "value": {
        "next_leader_slot": 285228774,
        "tile_primary_metric": {
            "quic": 3,
            "net_in": 37803082,
            "net_out": 4982399,
            "verify": 0,
            "dedup": 0,
            "bank": 89407,
            "pack": 0,
            "poh": 0,
            "shred": 0,
            "store": 0
        }
    }
}

LiveTilePrimaryMetric

FieldTypeDescription
next_leader_slotnumber|nullThe next leader slot
tile_primary_metricTilePrimaryMetricPer-tile-type primary metrics. Some of these are point-in-time values (P), and some are 1-second moving window averages (W)

TilePrimaryMetric

FieldTypeDescription
net_innumberIngress bytes per second (W)
quicnumberActive QUIC connections (P)
verifynumberFraction of transactions that failed sigverify (W)
dedupnumberFraction of transactions deduplicated (W)
packnumberFraction of pack buffer filled (P)
banknumberExecution TPS (W)
net_outnumberEgress bytes per second (W)

summary.live_tile_timers

frequencytypeexample
Once + 10msnumber[]below

Live tile timers is an array, one entry per tile, of how idle the tile was in the preceding 10 millisecond sampling window. A value of -1 indicates no sample was taken in the window, typically because the tile was contet switched out by the kernel or it is hung.

The tiles appear in the same order here that they are reported when you first connect by the summary.tiles message.

Example
json
{
    "topic": "summary",
    "key": "live_tile_timers",
    "value": [
        44.972112412,
        90.12,
        5.42148,
        6.24870,
        5.00158,
        8.1111556,
        76.585,
        44.225,
        12.98,
        16.2981,
        43.857,
        14.1,
        3.15716,
        93.2456,
        87.998
    ]
}

epoch

Information about an epoch. Epochs are never modified once they have been determined, so the topic only publishes a continuous stream of new epochs as they are known. When connecting, the current and next epoch are known, unless the validator has recently booted in which case they may not be known and no epochs will be sent until the snapshot is loaded. Epochs become known one epoch in advance, and will only be published once they are confirmed (the prior epoch has fully rooted).

epoch.new

frequencytypeexample
Once + LiveEpochSchedulebelow
Example
json
{
    "epoch": 636,
    "start_time_nanos": 12412481240412,
    "ent_time_nanos": 1719910299914232,
    "start_slot": 274752000,
    "end_slot": 275183999,
    "excluded_stake_lamports": 0,
    "staked_pubkeys": [
        "Fe4StcZSQ228dKK2hni7aCP7ZprNhj8QKWzFe5usGFYF",
        "2CeCyRoYQcctDmbXWrSUfTT4aQkGVCnArAmbdmQ5QGFi",
        "6JPDr4URdEDP5MqPgmDT6jk2nToyMUzNU27qsGxrRgKz",
        "8ri9HeWZv4Dcf4BD46pVPjmefzJLpbtfdAtyxyeG4enL",
        // ... many more ...
    ],
    "staked_lamports": [
        360,
        240,
        180,
        9991,
        // ... many more ...
    ],
    "leader_slots": [
        15,
        1542,
        761,
        // ... many more ...
    ]
}

EpochSchedule

FieldTypeDescription
epochnumberAn identity counter for each epoch, starting at zero for the first epoch and going up
start_time_nanosnumberA UNIX timestamp, in nanoseconds, of when the epoch started. This is the time the last non-skipped block of the prior epoch finished replaying locally on this validator, if the validator was online when that happened, otherwise it is null
end_time_nanos numberA UNIX timestamp, in nanoseconds, of when the epoch ended. This is the time the last non-skipped block of the epoch finished replaying locally on this validator, if the validator was online when that happened, otherwise it is null
start_slotnumberThe first slot (inclusive) in the epoch
end_slotnumberThe last slot (inclusive) in the epoch
excluded_stake_lamportsnumberThis number is almost always zero. Firedancer has a limit of 40,200 for the number of staked peer validators it can keep track of. In the unlikely event that this number is exceeded, the lowest staked peers will be forgotten, and their stake will not appear in the below lists. But is is useful to know the total stake in the epoch, so this value represents the leftover/excluded ("poisoned") amount of stake that we do not know which validator it belongs to
staked_pubkeysstring[]A list of all of validator identity keys for validators which have are staked in this epoch. There will be at most 40,200 staked keys, after which lower staked keys will not be included
staked_lamportsnumber[]A list with the same length as the staked_pubkeys field. stake_lamports[ i ] is the number of lamports staked on the pubkey staked_pubkeys[ i ] as of this epoch
leader_slotsnumber[]An array, one entry per four slots, of which pubkey in the leader_pubkeys array is leader for those slots. On mainnet-beta this array will always have a length of 108,000, which is the number of slots in an epoch divded by four. Leader slots are in groups of four because the leader schedule is generated in such a way as to guarantee each leader gets at least four consecutive slots. For example, to find the pubkey of the leader in slot 1000 of the epoch, it is staked_pubkeys[ leader_slots[ 1000/4 ] ]

On establishing a connection two epochs are sent to the client. The current epoch that the cluster is in, and the next epoch. From then on, new epochs are published live as they are calculated by the validator. For epoch T, it is published as end_slot in epoch T-2 is rooted. The epoch is speculatively known as soon as end_slot in epoch T-2 is compelted, rather than rooted, but no speculative epoch information is published until the epoch is finalized by rooting the slot.

peers

Information about validator peers from the cluster. Peer data is sourced from gossip, the accounts database, and the on-chain configuration program. All peer information is authenticated meaning it can only be reported from the holder of the private key, however not all peer data is validated or checked for correctness. In particular, data from the gossip network and the config program is self reported by the validator and could be empty, corrupt, filled with garbage, or malicious.

Peer information is keyed by the validator identity key. Multiple vote accounts could in theory use the same identity keypair, although it is not likely. Not all identities reported will have gossip data, a vote account, or validator information published to the config program, but all identities will have at least one of these fields reported. Once an identity is no longer in these three data sources, it will be removed.

peers.update

frequencytypeexample
Once + 60sPeerUpdatebelow
Example
json
{
    "update": [
        {
            "identity_pubkey": "Fe4StcZSQ228dKK2hni7aCP7ZprNhj8QKWzFe5usGFYF",
            "gossip": {
                "version": "1.18.15",
                "feature_set": 4215500110,
                "wallclock": 0,
                "shred_version": 0,
                "sockets": {
                    "gossip": "93.119.195.160:8001",
                    "tpu": "192.64.85.26:8000",
                    // ... other sockets ...
                }
            },
            "vote": [
                {
                    "vote_pubkey": "8ri9HeWZv4Dcf4BD46pVPjmefzJLpbtfdAtyxyeG4enL",
                    "activated_stake": 5812,
                    "last_vote": 281795801,
                    "root_slot": 281795770,
                    "epoch_credits": 5917,
                    "commission": 5,
                    "delinquent": false
                }
            ],
            "info": {
                "name": "ExampleStake Firedancer 🔥💃",
                "details": "A longer description of the validator, perhaps describing the team behind it or how the node is operated",
                "website": "https://github.com/firedancer-io/firedancer",
                "icon_url": "https://firedancer-io.github.io/firedancer/fire.svg"
            }
        }
    ],
    "remove": [
        { "identity_pubkey": "8ri9HeWZv4Dcf4BD46pVPjmefzJLpbtfdAtyxyeG4enL" }
    ]
}

PeerUpdateGossip

FieldTypeDescription
wallclocknumberNot entirely sure yet TODO
shred_versionnumberA u16 representing the shred version the validator is configured to use. The shred version is changed when the cluster restarts, and is used to make sure the validator is talking to nodes that have participated in the same cluster restart
versionstring|nullSoftware version being advertised by the validator. Might be null if the validator is not gossiping a version, or we have received the contact information but not the version yet. The version string, if not null, will always be formatted like major.minor.patch where major, minor, and patch are u16s
feature_setnumber|nullFirst four bytes of the FeatureSet hash interpreted as a little endian u32. Might be null if the validator is not gossiping a feature set, or we have received the contact information but not the feature set yet
sockets[key: string]: stringA dictionary of sockets that are advertised by the validator. key will be one of gossip, repair, rpc, rpc_pubsub, serve_repair, serve_repair_quic, tpu, tpu_forwards, tpu_forwards_quic, tpu_quic, tpu_vote, tvu, or tvu_forwards. The value is an address like <addr>:<port>: the location to send traffic to for this validator with the given protocol. Address might be either an IPv4 or an IPv6 address

PeerUpdateVoteAccount

FieldTypeDescription
vote_pubkeystringThe public key of vote account, encoded in base58
activated_stakenumberThe amount of stake in lamports that is activated on this vote account for the current epoch. Warming up or cooling down stake that was delegating during this epoch is not included
last_votenumber|nullThe last vote by the vote account that was landed on chain, as seen by this validator. If the vote account has not yet landed any votes on the chain this will be null
root_slotnumber|nullThe last slot that was rooted by the vote account, based on the vote history. If the vote account has not yet rooted any slots this will be null
epoch_creditsnumberThe number of credits earned by the vote account during the current epoch
delinquentbooleanWhether the vote account is delinquent or not. A vote account is considered delinquent if it has not had a vote land on chain for any of the last 127 (inclusive) confirmed slots, according to this validator. If there have been less than 128 confirmed slots on the chain (it is a new chain), a validator is considered delinquent only if it has not voted yet at all

PeerUpdateInfo

FieldTypeDescription
namestring|nullSelf reported name of the validator, could be any string or null if there is no name set
detailsstring|nullSelf reported detailed description of the validator, could be any string or null if there is no details set
websitestring|nullSelf reported website of the validator, could be any string and need not be a valid URI, or could be null if there is no website set
icon_urlstring|nullSelf reported URL of the validator icon, could be any string and need not be a valid URI, or could be null if there is no icon URI set

PeerUpdate

FieldTypeDescription
identitystringIdentity public key of the validator, encoded in base58
gossipPeerUpdateGossip|nullInformation reported for the validator identity over the gossip network. This is authenticated and the gossip node must have been in possession of the private key to publish gossip data as this identity. Gossip information is not validated or checked for correctness and could be set to any values by the peer
votePeerUpdateVoteAccount[]Information about the vote account(s) associated with this identity key, if there are any. It is extremely unusual for multiple vote accounts to report the same identity key. Vote account information like stake and commission is derived from the accounts on chain and cannot be corrupt, invalid, or incorrect
infoPeerUpdateInfo|nullIf the validator has published self reported identifying information to the chain. This is authenticated and the operator must have been in possession of the private key to publish info as this identity. Information is not validated or checked for correctness and could be set to any values by the peer

PeerRemove

FieldTypeDescription
identitystringIdentity public key of the validator, encoded in base58

PeersUpdate

FieldTypeDescription
addGossipPeerUpdate[]List of peer validators that were added since the last update, or all of the peers for the first update after connecting
updateGossipPeerUpdate[]List of peer validators that were changed since the last update
removeGossipPeerRemove[]List of peer validators that were removed since the last update

The gossip.update message is republished every five seconds, with a list of gossip peers added, removed, or updated. The list of peers is full and includes this node itself, nodes with a different shred_version, nodes publishing corrupt or bad information, and so on.

slot

Slots are opportunities for a leader to produce a block. A slot can be in one of five levels, and in typical operation a slot moves through them in normal order, starting as incomplete and finishing as finalized.

SlotLevel

leveldescription
incompleteThe slot does not exist, either because the chain has not yet reached the slot or because it is still in the process of being replayed by our validator
completedThe slot has been fully received and successfully replayed by our validator
optimistically_confirmedThe slot has been finished and successfully replayed by our validator, and more than two-thirds of stake have voted to confirm the slot
rootedOur validator has rooted the slot and considers the slot final. This occurs when 32 subsequent slots have been built on top of it
finalizedOur validator has rooted the slot, and more than two-thirds of stake has rooted the slot, the network considers it final

Slots are incomplete by default as most slots exist far in the future, and the incomplete level update is not typically published. A slot will only be explicitly marked as incomplete if it exists on the currently active fork, and we switch to a fork that is slower, which has not yet reached the slot so it no longer exists.

A slot that has become rooted or finalized cannot go backwards, and will not become incomplete, completed, or optimistically_confirmed (nor will a finalized slot become rooted), but otherwise all transitions are valid. An optimistically_confirmed slot, for example, could become incomplete if the validator switches to a fork where the slot has not yet been received, although it should be exceedingly rare. Switching from completed to incomplete is more common. Levels can also be skipped, for example going from incomplete straight to optimistically_confirmed (if we switched from a fork that was running behind, to the cluster majority fork including the slot).

In addition to a level, a slot can also be either skipped or included. All levels can be in either the skipped or included state, for example a skipped slot that is rooted means that the slot is skipped and cannot be changed. A slot in the future could be skipped, because we know it does not build on top of the fork we have currently selected, in which case it would be both incomplete and skipped.

Slots are either mine (created by this validator), or not, in which case we are replaying a block from another validator. Slots that are mine contain additional information about our performance creating the block for that slot.

Some information is only known for blocks that have been replayed successfully (reached the completed state), for example the number of transactions in the block. This number can still be known even if we are on a fork which skips that slot. It's possible that we are on a fork where the slot does not yet exist, a slot could be both skipped, and have a status of incomplete, and yet we still know a valid number of transactions in the slot. Once we know information like transactions it does not typically change, although can in extremely rare cases where a leader publishes two different blocks for their leader slot, and we initially replay one but the cluster votes on the other one.

SlotPublish

FieldTypeDescription
slotnumberIdentity of the slot, counting up from zero for the first slot in the chain
minebooleanTrue if this validator was the leader for this slot. This will never change for a slot once it has been published, and will be aligned with the epoch information
skippedbooleanTrue if the slot was skipped. The skipped state is the state in the currently active fork of the validator. The skipped state can change if the validator switches active fork
duration_nanosnumber|nullA duration in nanoseconds of how long it took us to receive and replay the slot. This is the time as measured since we completed replay of the parent slot locally on this validator, til the time we replayed this slot locally on this validator
completed_time_nanosnumber|nullUNIX timestamp in nanoseconds of when this validator finished replaying the slot locally. If the slot was skipped, this may be null which indicates the block for this slot did not finish replaying on this validator. In some cases, a skipped slot will still have a completed time, if we received the data for the block, replayed it, and then decided to use a different fork
levelstringOne of incomplete, completed, optimistically_confirmed, rooted, or finalized as described above. The state is the state in the currently active fork of this validator. The state can change normally (for example, a completed slot becoming optimisitically confirmed or rooted), or also because the validator switched forks
transactionsnumber|nullTotal number of transactions (vote and non-vote) in the block. If the slot is not skipped, this will be non-null, but in some cases it will also be non-null even if the slot was skipped. That's because we replayed the block but selected a fork without it, but we still know how many transactions were in it
vote_transactionsnumber|nullTotal number of vote transactions in the block. Will always be less than or equal to transactions. The number of non-vote transactions is given by transactions - vote_transactions
failed_transactionsnumber|nullTotal number of failed transactions (vote and non-vote) in the block. Failed transactions are those which are included in the block and were charged fees, but failed to execute successfully. This is different from dropped transations which do not pay fees and are not included in the block
compute_unitsnumber|nullTotal number of compute units used by the slot
transaction_feenumber|nullTotal amount of transaction fees that this slot collects in lamports after any burning
priority_feenumber|nullTotal amount of priority fees that this slot collects in lamports after any burning

slot.skipped_history

frequencytypeexample
Oncenumber[][286576808, 286576809, 286576810, 286576811, 286625025, 286625026, 286625027]

A list of all of the recent leader slots of the validator which were skipped. Only two epochs of leader slots are tracked, and skips prior to this are not retrieved.

The skipped slots include unrooted and unconfirmed slots of ours which are skipped on the currently active fork.

slot.update

frequencytypeexample
LiveSlotUpdatebelow
Example

SlotUpdate

FieldTypeDescription
publishSlotPublishGeneral information about the slot
waterfallTxnWaterfall|nullIf the slot is not mine, will be null. Otherwise, a waterfall showing reasons transactions were acquired since the end of the prior leader slot
tile_primary_metricTilePrimaryMetric|nullIf the slot is not mine, will be null. Otherwise, max value of per-tile-type primary metrics since the end of the prior leader slot

slot.query

frequencytypeexample
RequestSlotResponsebelow
paramtypedescription
slotnumberThe slot to query for information about
Example
json
{
    "topic": "slot",
    "key": "query",
    "id": 32,
    "params": {
        "slot": 289245044
    }
}
json
{
    "topic": "slot",
    "key": "query",
    "id": 32,
    "value": {
        "publish": {
            "slot": 289245044,
            "mine": true,
            "skipped": false,
            "level": "rooted",
            "transactions": 6821,
            "vote_transactions": 6746,
            "failed_transactions": 3703,
            "compute_units": 0
        },
        "waterfall": {
            "in": {
                "retained": 0,
                "quic": 28159,
                "udp": 14323,
                "gossip": 4659
            },
            "out": {
                "net_overrun": 0,
                "quic_overrun": 0,
                "quic_frag_drop": 0,
                "quic_abandoned": 0,
                "tpu_quic_invalid": 0,
                "tpu_udp_invalid": 0,
                "verify_overrun": 0,
                "verify_parse": 0,
                "verify_failed": 0,
                "verify_duplicate": 114,
                "dedup_duplicate": 19384,
                "resolv_failed": 3,
                "pack_invalid": 0,
                "pack_expired": 0,
                "pack_retained": 2225,
                "pack_wait_full": 0,
                "pack_leader_slow": 0,
                "bank_invalid": 10253,
                "block_success": 3101,
                "block_fail": 3720
            }
        },
        "tile_primary_metric": {
            "quic": 3,
            "net_in": 37803082,
            "net_out": 4982399,
            "verify": 0,
            "dedup": 0,
            "bank": 89407,
            "pack": 0,
            "poh": 0,
            "shred": 0,
            "store": 0
        },
        "tile_timers": [
            {
                "timestamp_nanos": 0,
                "tile_timers": [
                    44.972112412,
                    90.12,
                    5.42148,
                    6.24870,
                    5.00158,
                    8.1111556,
                    76.585,
                    44.225,
                    12.98,
                    16.2981,
                    43.857,
                    14.1,
                    3.15716,
                    93.2456,
                    87.998
                ]
            },
            {
                "timestamp_nanos": 0,
                "tile_timers": [
                    44.972112412,
                    90.12,
                    5.42148,
                    6.24870,
                    5.00158,
                    8.1111556,
                    76.585,
                    44.225,
                    12.98,
                    16.2981,
                    43.857,
                    14.1,
                    3.15716,
                    93.2456,
                    87.998
                ]
            },
            // ... many more ...
        ]
    }
}

SlotResponse

FieldTypeDescription
publishSlotPublishGeneral information about the slot
waterfallTxnWaterfall|nullIf the slot is not mine, will be null. Otherwise, a waterfall showing reasons transactions were acquired since the end of the prior leader slot
tile_primary_metricTilePrimaryMetric|nullIf the slot is not mine, will be null. Otherwise, max value of per-tile-type primary metrics since the end of the prior leader slot
tile_timersTsTileTimers[]|nullIf the slot is not mine, will be null. Otherwise, an array of TsTileTimers samples from the slot, sorted earliest to latest. We store this information for the most recently completed 4096 leader slots. This will be null for leader slots before that

TxnWaterfall

FieldTypeDescription
inTxnWaterfallInTransactions received into the waterfall
outTxnWaterfallOutTransactions sent out of the waterfall

TxnWaterfallIn

FieldTypeDescription
retainednumberTransactions were received during or prior to an earlier leader slot, but weren't executed and were retained inside the validator to potentially be included in a later slot
quicnumberA QUIC transaction was received. The stream does not have to successfully complete
udpnumberA non-QUIC UDP transaction was received
gossipnumberA gossipped vote transaction was received from a gossip peer

TxnWaterfallOut

FieldTypeDescription
net_overrunnumberTransactions were dropped because the net tile couldn't keep with incoming network packets. It is unclear how many transactions would have been produced by the packets that were dropped, and this counter (along with the corresponding counter for the in side) assumes one tranaction per dropped packet
quic_overrunnumberTransactions were dropped because the QUIC tile couldn't keep with incoming network packets. It is unclear how many transactions would have been produced by the fragments from net that were overrun, and this counter (along with the corresponding counter for the in side) assumes one tranaction per dropped packet
quic_frag_dropnumberTransactions were dropped because there are more ongoing receive operations than buffer space.
quic_abandonednumberTransactions were dropped because a connection closed before all bytes were received.
tpu_quic_invalidnumberTransactions were dropped because the QUIC tile decided that incoming QUIC packets were not valid. It is unclear how many transactions would have been produced by the packets that were invalid, and this counter (along with the corresponding counter for the in side) assumes one tranaction per invalid packet
tpu_udp_invalidnumberTransactions were dropped because the QUIC tile decided that incoming non-QUIC (regular UDP) packets were not valid.
verify_overrunnumberTransactions were dropped because the verify tiles could not verify them quickly enough
verify_parsenumberTransactions were dropped because they were malformed and failed to parse
verify_failednumberTransactions were dropped because signature verification failed
verify_duplicatenumberTransactions were dropped because the verify tiles determined that they had already been processed
dedup_duplicatenumberTransactions were dropped because the dedup tile determined that they had already been processed
resolv_failednumberTransactions were dropped because they contained invalid address lookup tables (LUTs)
pack_invalidnumberTransactions were dropped because pack determined they would never execute. Reasons can include the transaction requested too many compute units, or was too large to fit in a block
pack_expirednumberTransactions were dropped because pack determined that their TTL expired
pack_retainednumberTransactions were retained inside the validator memory because they were not high enough priority to make it into a prior block we produced, but have not yet expired. We might include the transactions in a future block
pack_leader_slownumberTransactions were dropped while leader because the bank tiles could not execute them quickly enough, pack will drop the lowest priority transactions first
pack_wait_fullnumberTransactions were dropped while we were waiting for our leader slot because we ran out of memory to store them. All incoming transactions are dropped without regard for the priority
bank_invalidnumberTransactions were dropped because a bank tile could not execute them enough to charge fees. Failed transactions can still pay fees and be included in a block, but invalid transactions do not make it to a block. Reasons can include insufficient fee payer balance, or invalid address lookup tables
block_successnumberTransactions made it into a block, and execution succeeded
block_failurenumberTransactions made it into a block, but execution failed

TsTileTimers

FieldTypeDescription
timestamp_nanosnumberA timestamp of when the tile timers were sampled, nanoseconds since the UNIX epoch
tile_timersTileTimer[]A list of all tile timing information at the given sample timestamp