DOCUMENTATION

Streaming

Open the stream, authenticate, and filter the accounts and transactions you want. Two streams share one endpoint and one token: Subscribe for executed accounts, transactions and slots, and SubscribeDeshred for transactions before they execute.

Access and authentication

Access is checked twice, and both checks must pass.

1. IP allow-list

The endpoint only accepts connections from the one IP address registered on your subscription. A connection from any other address is dropped at the firewall: it times out and never reaches the service. You can change the address in the dashboard under Subscription; the new one is allowed within a few seconds and your token stays the same.

2. Token

Every Subscribe and SubscribeDeshred call must carry your token in the x-token gRPC metadata header. It is checked when the stream is opened: a missing or unknown token is refused. The token identifies your subscription and carries its limits, and it stays the same for as long as you have an account. Keep it out of source control; anyone holding it and connecting from your address uses your stream allowance.

Endpoint

LOCATIONENDPOINTTRANSPORT
Frankfurt (FRA)http://fra.no-name.io:10000gRPC over HTTP/2, plaintext

Both streams, Subscribe and SubscribeDeshred, are served on this endpoint and port with the same token. A token opens the streams its plan includes: one of them, or both. Calling the other returns PERMISSION_DENIED.

The endpoint is plaintext HTTP/2 (no TLS). TLS termination costs latency on every update, and the IP allow-list already restricts who can connect. Use http://, not https://. Host your client in or near Frankfurt: every millisecond of network distance is added to every update.

Subscribing

The service implements the Yellowstone geyser.Geyser/Subscribe bidirectional stream. You open the stream, send a SubscribeRequest, and receive SubscribeUpdate messages. Two rules apply to every request:

Filters are named. Each update lists the names of the filters it matched, so one stream can carry several logical subscriptions. You can replace the filters on a live stream by sending a new SubscribeRequest on it; you do not need to reconnect.

Transactions are also served before they execute, on a second stream: see deshredded transactions.

Account filters

An account filter matches when the account is in account or its owner is in owner, and every entry in filters passes. Named filters are OR'd together.

FIELDSUPPORTEDNOTES
accountYesList of account pubkeys.
ownerYesList of owner program ids.
filters.memcmpYesbytes, base58 or base64 data at an offset.
filters.datasizeYesExact data length.
nonemptyTxnSignatureYesOnly writes caused by a transaction.
accountsDataSliceYesReceive only the byte ranges you need.
filters.tokenAccountState, filters.lamportsNoUse memcmp and datasize instead.
cuckooAccountsFilterYesA compact table of accounts instead of a list: cuckoo account filters.

An account filter must name at least one account or owner, or carry a cuckoo table. Filters that would match the whole chain, such as an empty filter or owner set to the System program, are refused. Subscribing to token accounts by owner = Token or Token-2022 program is allowed; add a datasize or memcmp to keep the stream to what you need.

Cuckoo account filters

An account filter can carry a cuckoo table instead of a list of accounts: a compact set of 16-bit fingerprints, built for you by the standard Yellowstone client libraries. 100,000 accounts take 256 KiB as a table, against about 4.5 MB as a list of base58 strings.

When to use one

Building and sending a table

CLIENTBUILDER
TypeScript @triton-one/yellowstone-grpc 10.0.0CompressedAccountFilterSet
Rust yellowstone-grpc-proto 12.4 or lateryellowstone_grpc_proto::cuckoo::CompressedAccountFilterSet
Other languagesFill the CuckooFilter message in SubscribeRequestFilterAccounts.cuckoo_accounts_filter yourself, in the layout under rules.

Size the set for the most accounts it will ever hold: the table's size is fixed when you create it, and a full table refuses further inserts. Keep the set object for as long as the stream runs. You edit it to change the subscription, and it answers exactly whether an account is yours.

import Client, { CommitmentLevel, CompressedAccountFilterSet } from "@triton-one/yellowstone-grpc";

const client = new Client("http://fra.no-name.io:10000", process.env.NONAME_TOKEN, {
  grpcMaxDecodingMessageSize: 64 * 1024 * 1024,
});
const stream = await client.subscribe();

const set = new CompressedAccountFilterSet(200_000);   // the most accounts it will hold
for (const key of myAccounts) set.insert(key);         // base58 string or Uint8Array

const request = {
  accounts: {}, transactions: {}, slots: {}, blocks: {}, blocksMeta: {}, entry: {}, transactionsStatus: {},
  accountsDataSlice: [], commitment: CommitmentLevel.PROCESSED,
};
set.insertIntoSubscribeRequest(request, "pools");      // request.accounts.pools carries the table
stream.write(request);

stream.on("data", (update) => {
  if (!update.account) return;
  if (!set.contains(update.account.account.pubkey)) return;   // a false positive: drop it
  // ... your account
});

// a change: edit the set, then send the whole request again on the same stream
set.remove(oldKey);
set.insert(newKey);
set.insertIntoSubscribeRequest(request, "pools");
stream.write(request);
use solana_pubkey::Pubkey;
use yellowstone_grpc_proto::{cuckoo::CompressedAccountFilterSet, prelude::*};

// `tx` and `stream` from client.subscribe(), as in the examples
let mut set = CompressedAccountFilterSet::with_capacity(200_000)?;   // the most accounts it will hold
for key in &my_accounts { set.insert(*key)?; }

let mut req = SubscribeRequest { commitment: Some(CommitmentLevel::Processed as i32), ..Default::default() };
set.insert_into_subscribe_request(&mut req, "pools");
tx.send(req.clone()).await?;

while let Some(update) = stream.next().await {
    if let Some(subscribe_update::UpdateOneof::Account(a)) = update?.update_oneof {
        let info = a.account.unwrap();
        if !set.contains(Pubkey::try_from(info.pubkey.as_slice())?) { continue; }   // a false positive
        // ... your account
    }
}

// a change (from another task that owns `set` and `tx`): edit, then send the whole request again
set.remove(old_key);
set.insert(new_key)?;
set.insert_into_subscribe_request(&mut req, "pools");
tx.send(req.clone()).await?;

How a table matches

An account write matches a filter with a table when the account is in the table or listed in account, and, if the filter also sets owner, its owner is one of those, and every entry in filters passes. Next to a table, owner narrows the match instead of adding accounts; this is the standard Yellowstone rule. Each update names the filter it matched in filters, as with lists.

False positives

A table holds fingerprints, not keys, so it also says yes to about 8 in 65,536 of the accounts it does not hold. Every account you put in it is delivered; the cost is a few updates you did not ask for. In our tests a table of 120,000 accounts brought 4 to 24 such updates a minute. Check each update's pubkey with the set's contains, which is exact because the builder keeps the real keys next to the table, and drop the others. An owner, memcmp or datasize next to the table removes the ones from other programs before they are sent.

Changing the set

Insert and remove on the set, then send the whole SubscribeRequest again on the same stream: the new table replaces the old one, and you do not reconnect. Each send counts toward the filter-update limit. An update the node refuses, for example a malformed table or more keys than the limit, is ignored, and the stream keeps the filters it had.

Rules

RULEIF NOT
16-bit fingerprints, 4 entries per bucket, SIP_HASH (any seed)INVALID_ARGUMENT
Bucket count a power of two, and data exactly bucket count × 4 × 2 bytesINVALID_ARGUMENT
The accounts in a table count toward the 200,000 keys of a stream, with every other key in the requestPERMISSION_DENIED
Tables on account filters only. cuckooAccountInclude on transaction filters is not served: use accountInclude listsINVALID_ARGUMENT

The standard builders produce exactly this layout, so these checks only matter if you build tables yourself.

Transaction filters

FIELDMEANING
accountIncludeMatches if the transaction references any of these accounts.
accountRequiredMatches only if the transaction references all of these accounts.
accountExcludeRejects the transaction if it references any of these accounts.
failedtrue = only failed, false = only successful, unset = both.
signatureMatch one transaction signature.

Account matching covers the static account keys and the keys loaded through address lookup tables. A transaction filter must name at least one account in accountInclude or accountRequired. Keys that appear in nearly every transaction (the Token programs, Compute Budget, the System program) are refused as the only selector, because that is the full chain.

Deshredded transactions

The second stream, Yellowstone geyser.Geyser/SubscribeDeshred, carries each transaction as soon as it is rebuilt from shreds, before it is executed, so it usually arrives ahead of the executed update of the same transaction. It is sold on its own or together with Subscribe, and the trial includes it. You open the stream, send a SubscribeDeshredRequest, and receive SubscribeUpdateDeshred messages. Examples: TypeScript, Rust.

Same endpoint, same token

It is served on the endpoint and port above (:10000), to your registered IP address, with the same x-token. There is no second token or address. Deshred streams count toward the same limits as Subscribe streams.

Client versions

CLIENTSUBSCRIBEDESHRED FROMCALL
TypeScript @triton-one/yellowstone-grpc5.0.7client.subscribeDeshred()
Rust yellowstone-grpc-client12.1client.subscribe_deshred()
Other languagesyellowstone-grpc-proto 12.1geyser.Geyser/SubscribeDeshred

Slot statuses on this stream and the shred range in each update need a newer proto than those first versions: yellowstone-grpc-proto 12.7 has them, and so do TypeScript 10.0.0 and Rust 13.5. An older client has no deshred call at all; in TypeScript that is a type error or subscribeDeshred is not a function, in Rust no method named subscribe_deshred. Upgrade the client; Subscribe works with older versions.

Filters

FIELDSUPPORTEDNOTES
deshredTransactions.accountIncludeYesMatches if the transaction references any of these accounts.
deshredTransactions.accountRequiredYesMatches only if it references all of them.
deshredTransactions.accountExcludeYesRejects it if it references any of them.
slotsYesSlot statuses on the same stream (proto 12.7 and later).
failed, signatureNoNothing has executed yet. Use Subscribe for outcomes.

Accounts match in the static keys and in the keys loaded through address lookup tables. The rules are those of transaction filters: a filter must name at least one account in accountInclude or accountRequired, and keys that appear in nearly every transaction are refused as the only selector, with PERMISSION_DENIED.

What an update carries

The signature, the transaction exactly as it is in the block (signatures and message), the addresses its lookup tables load (writable and read-only), the slot, and the range of shreds it was rebuilt from.

No execution result. No status meta, balances or logs: the transaction has not run yet. It can still fail, and it can be on a fork that is later dropped.

What is not served

REQUESTRESULT
blocks, blocksMeta, entry, transactionsStatusINVALID_ARGUMENT: accounts, transactions and slots only.
Commitment CONFIRMED or FINALIZEDINVALID_ARGUMENT: only processed commitment is supported.
Unary Ping, GetVersion, GetSlot, GetLatestBlockhash and the other unary callsUNIMPLEMENTED.
Wildcard or chain-wide filtersPERMISSION_DENIED.

Processed means processed. Updates are produced as transactions execute, on whichever fork the leader is building. A small share of processed state is later abandoned when a fork is dropped. If you need confirmation before acting, pair this feed with a confirmed-commitment source for the accounts where it matters, such as nonces.

Some client libraries call GetVersion or the unary Ping on connect as a health check. Disable that check, or ignore its failure, and rely on HTTP/2 keepalive instead.

Limits

LIMITPER TOKEN
Concurrent streams16
Named filters per request256
Keys across all filters of one stream (a cuckoo table counts the accounts in it)200,000
Filter updates on a live stream120 per 10 seconds
Maximum message size64 MiB
Registered IP addresses1

A stream slot is released when its connection closes. Clients that reconnect in a tight loop without closing the previous stream can hold all 16 slots and lock themselves out with RESOURCE_EXHAUSTED; close streams you replace, and back off between reconnects.