Patch

Mutate any field. Even what you don't own.

Patches mutate the account store directly. Use them to set up preconditions. Use transactions to test the code paths your program actually runs.

Three modes. Picked automatically.

Reley decodes against the IDL when one exists. Falls back to native layout for SPL programs. Drops to raw byte editing when there is no map.

IDL field set

Anchor accounts, decoded against the IDL.

Field-level setter, re-encoded with the discriminator preserved. Works for any account the program publishes an IDL for.

pool.adminDLMM…7v2→ Bn4…wA
Native layout

SPL Token, Token-2022, lookup tables.

Native account layouts surfaced as named fields - mint authority, extensions, freeze authority, addresses. No IDL required.

mint.authoritynull→ wallet
Raw splice

When the layout is unknown.

Byte-offset editor. Pick offset, supply hex bytes, save. The escape hatch for non-Anchor, non-native account types.

offset 960x00 (8B)→ 0xff…

Examples.

Make USDC mintable to your wallet

Patch the mint authority on the cloned USDC mint account to your local keypair. Now you can mint any supply you need to stage test scenarios.

Flip a pool admin to test owner-only paths

Set Meteora DLMM pool.admin to your wallet, then call the admin-only instruction your program needs to integrate with.

Push an oracle price to an extreme

Patch a Pyth or Switchboard feed value. Test how your liquidation, AMM, or perp engine handles edges of its config.

Backdate a vesting cliff

Edit the start timestamp on a vesting PDA. Combine with warp_time and your claim path runs against state that took weeks to reach on mainnet.

Scope

Project patches or sandbox patches.

Project patches auto-apply to every sandbox on creation and on every reset. Sandbox patches live in one sandbox only - useful for scratch experiments you do not want to keep.

scope·behavior
projectbaked into every sandboxprojectre-applies on resetsandboxscoped to one sandboxsandboxwiped on reset

Stop testing
against production.

Source under PolyForm Noncommercial 1.0. macOS today. Windows and Linux next.

Apple Silicon + Intel · macOS 12+