X
Docs
What is RLock?

What is RLock?

Understand the core concepts and benefits of RLock.

RLock is a pragmatic SDK that turns many user intents into safe, efficient Solana transactions. It gives you:

  • Compute budget tuning (reasonable CU limits and priority fees).
  • ALT offloading to shrink message size.
  • Message-size safety with explicit checks for v0 transactions.
  • Reliable submission lanes with retries and optional preflight.

Why it matters

Real dApps combine multiple instructions and still need to fit Solana's message size while finishing quickly under load. RLock's small, typed surface helps you assemble, size-check, and send transactions without footguns.

What RLock does for you

  • Inserts ComputeBudget instructions (limit + price) based on a policy.
  • Optionally resolves Address Lookup Tables (ALTs) to cut byte size.
  • Builds v0 VersionedTransactions and throws if they exceed limits.
  • Sends via L1 RPC or a Router you control — with retries/backoff.
Edit on GitHub