Shield Protection
Yellowstone Shield MEV protection: on-chain validator allowlist or blocklist, attached with forwardingPolicies or the Solana-ForwardingPolicies header.
Yellowstone Shield lets you control which validators handle your Solana transactions. You create an on-chain policy listing validators you trust (an allowlist) or do not trust (a blocklist), attach the policy when you send, and your transaction only goes to validators that match.
Solana's leader schedule is deterministic, so you often know which validator will process your transaction. If that leader runs sandwich attacks (inserting transactions before and after yours to extract value), frontrunning (copying and executing your transaction idea before you), or other harmful MEV, a normal send still routes to them. Shield is how you opt out. Background: Introducing Yellowstone Shield.
Use cases
Trading apps and wallets protecting swaps from sandwich attacks and frontrunning by never sending to validators known for them.
Senders that route only to vetted validators: top validators by stake, geographically distributed sets, or performance-based allowlists.
RPC providers and transaction forwarders enforcing policy-based routing for their users.
Features and benefits
Allowlist or blocklist
Two strategies: forward only to validators on your allowlist, or never to validators on your blocklist.
Out of the box on Triton
Attach your policy to any send through Triton: forwardingPolicies on sendTransaction, or the Solana-ForwardingPolicies header on /sendtx. No extra infrastructure.
On-chain and transparent
Each policy is a Program Derived Address anyone can inspect, and anyone who knows the address can use it.
Token-gated management
A Token Extensions asset controls each policy. Hold a token to manage it; mint more to share control with the team.
Community policies
Reuse maintained allow and deny lists from the policy explorer instead of curating your own.
Cached enforcement
Policies are cached and checked in the sender via the shield store, with atomic updates and thread-safe checks.
How it works
Create a policy: an on-chain list of identities (typically validators) with an
allowordenystrategy. The policy lives at a Program Derived Address, paired with an SPL token (Token Extensions): creating it mints you 1 token and keeps you the mint authority.Attach the policy address to your transactions, either as the
forwardingPoliciesparameter onsendTransaction(JSON-RPC), or as theSolana-ForwardingPoliciesHTTP header when you send through/sendtx. The header is only read on/sendtx: on a JSON-RPCsendTransactioncall it is ignored, and the transaction goes out without Shield protection.The sender checks your policy on each send that carries it, against every leader it would forward to (the current leader and the next one or two), and skips any leader that fails. If none pass, the transaction isn't forwarded, held or queued, although you still get its signature back.
Ownership follows the token. Anyone holding a policy's token can manage it (add or remove validators), and because the token is fungible and mintable, you can mint and send tokens to share policy management with others.
The policy itself is public: anyone who knows its address can use it in their transactions.
Finding and using an existing policy
Browse the policy explorer at validators.app/yellowstone-shield to see all existing policies, which validators each includes or excludes, and when it was last updated, then copy the policy address for your transactions. Common policy types:
Allow lists: top validators by stake, geographically distributed validators, performance-based selection.
Block lists (deny lists): validators known for sandwich attacks or frontrunning, poor performers, community-flagged validators.
Attach the policy to your sends through Triton:
For /sendtx only (JSON-RPC sendTransaction ignores this header). Separate multiple policies with commas:
The standard web3.js sendTransaction wrapper does not pass the policy parameter, so make the RPC call directly:
Creating your own policy
You need the Solana CLI installed and configured, SOL for transaction fees, and a list of validator addresses.
Install the Shield CLI
Build the CLI from the yellowstone-shield repository:
The build writes the binary to ./target/release/yellowstone-shield-cli. Add that folder to your PATH, or run the binary by that path in the commands below.
Create the policy
--strategy deny blocks the listed validators; --strategy allow permits only the listed validators.
The CLI prints two addresses, Policy (the policy PDA) and Mint: save both. Use the Mint with --mint in the CLI commands below, and pass the Policy PDA in forwardingPolicies when you send. If you pass the mint instead, Shield can't find the policy and the transaction is never forwarded to a leader, even though you get a signature back. You receive 1 token and retain mint authority, so you can mint more tokens later to share policy management.
Managing the policy. You must hold at least 1 policy token to manage it; if you transfer all your tokens away, you lose the ability to manage the policy.
Limitations
Shield is a filter, not a guarantee of protection from sandwich attacks or transaction failures.
Policies need active maintenance. New validators can join at any time and a bad actor can appear at any time. A blocklist only protects against what is on it, so the quality of protection depends entirely on how current the list is kept.
Strict policies can drop time-sensitive transactions. When no eligible leader is available the transaction is dropped, not queued. Be careful pairing a tight allowlist with arbitrage or liquidations.
Check your policy addresses. Triton skips an entry that isn't a valid public key, so the send goes out without that policy.
A valid address that isn't a policy fails the check. This includes the policy's mint and a mistyped address that still decodes to a valid key. Triton skips each leader whose check reaches that address, so the transaction may not be forwarded.
Only Shield-enabled senders enforce policies. A standard Solana RPC ignores
forwardingPolicies, and the standard web3.jssendTransactionwrapper does not pass it: make direct RPC calls as shown in the TypeScript tab above.
What's next
Contact support by clicking the chat icon in your customer dashboard Sales questions? Contact us AI agent? Read llms.txt Follow updates: Blog · X · YouTube · Telegram · GitHub
Last updated