This page has task-sized snippets for the QUIC-only Solana BDN. Feeds use the raw MoQT client (@clutchcall/sdk/moqt). Transactions use the HTTP/3 submit API. There is no typed Crypto client yet — see SDK methods.

Connect to the feed relay

Dial the feed relay once. Reuse the client for every track. The client reconnects automatically.

Subscribe to a feed track

Each public mainnet track lives under sol/feed/mainnet. Decode the frame payload as the track’s schema.

Stream recent blockhash

The blockhash track carries { slot, blockhash, lastValidBlockHeight }. Keep the latest object to build transactions against a fresh blockhash.

Track the priority-fee market

The priorityFee track carries { slot, p50, max }. Set your compute-unit price from the live p50. Do not guess.

Submit a transaction with BDN fan-out

Send the signed tx to the BDN once. The BDN dedups the tx and lands it on every edge’s nearby leaders. leader=auto resolves the schedule for you.

Submit straight to the TPU (no fan-out)

Skip the mesh. Land on the current + next leader directly from this node.

Target a specific validator leader

Pin the land to one validator’s TPU instead of auto-resolving the schedule.

Submit from code over HTTP/3

The body is the raw signed transaction bytes. There is no JSON envelope.

Deduplicate your own re-submits

The BDN dedups on the first 64 bytes (the Solana signature). It is safe to send the same signed tx again across edges. The tx lands at most once per leader within the dedup TTL. Thus a retry loop does not double-land.

Subscribe to your private feed

The BDN publishes a private feed (your own gossip/Geyser ingest) under sol/feed/<orgId>. Subscribe to its slots track with an org-scoped token.

Subscribe before the feed exists

The relay holds a subscribe for a namespace that is not announced yet. Thus you can subscribe to a private feed before your ingest publishes its first slot. Frames start to flow the moment the ingest publishes. You do not need a special call. Subscribe early.

React to relay reconnects

The client replays subscriptions automatically. Use onState only for logging, or to pause your own work while the link is down.

Tear down cleanly

Close a single track, or the whole client.