How to Migrate from Raw Solana RPC
If your app or bot is built around raw Solana RPC, do not try to replace everything at once.
The best migration path is:
- smallest change first
- highest operational payoff first
- keep raw RPC for the parts that are still fine
For most teams, that means starting with transaction submission, then simulation and build, then moving read-heavy polling and discovery off raw RPC.
The Progressive Path
Step 1: Keep your builder, replace submission
This is usually the easiest high-impact change.
You keep building and signing transactions the way you already do, but stop sending them through raw sendTransaction.
Use:
POST /v1/sendfor any signed transactionGET /v1/stream/txfor transaction lifecycle trackingGET /v1/tx/:signaturefor fallback polling
Why this is the best first step:
- minimal code change
- removes a lot of retry and confirmation glue
- gives you a cleaner submission surface immediately
- reduces time spent fighting dropped transactions and confirmation polling
If your current stack is build -> sign -> sendTransaction -> poll, this is the least disruptive migration with immediate benefit.
Step 2: Stop managing simulation and build plumbing yourself
Once submission is moved, the next highest-payoff step is to stop managing the swap transaction assembly path yourself.
Use:
Why this matters:
- fewer moving parts around simulation and route selection
- less blockhash-management glue in your hot path
- less transaction assembly code to maintain
- cleaner separation between build, sign, and submit
This is where teams usually stop fighting transaction-shape issues and start simplifying the execution path itself.
Step 3: Replace price polling
After execution is under control, move the repetitive read loops.
Use:
This is low risk and often one of the fastest cost wins.
It removes:
- repeated
getAccountInfoloops - stale cached third-party price endpoints
- unnecessary RPC load just to keep prices fresh
Step 4: Replace pool discovery and pool reads
If you are using getProgramAccounts for pool discovery, move that next.
Use:
This is usually the biggest raw RPC cost reduction on the read side.
What to Keep on RPC
You should usually keep raw RPC for:
- wallet-specific reads
- custom program interactions
- historical lookups
- account state unique to your application
Venum is not meant to replace every RPC method. It is meant to replace the repetitive execution and market-data patterns that create the most cost and maintenance.
Migration Order by Goal
If your biggest pain is dropped transactions
Start here:
If your biggest pain is RPC cost
Start here:
If your biggest pain is infra complexity
Start here:
Before and After
Before
Typical raw RPC stack:
- build transactions manually
- manage blockhash timing and retries
- call
sendTransaction - poll confirmations
- separately poll prices
- separately scan pools
After
Typical progressive Venum-assisted stack:
- keep signing client-side
- replace raw submission first
- replace swap build and routing next
- replace price polling
- replace pool discovery
The goal is not to rip out RPC.
The goal is to remove the parts that are expensive, repetitive, and brittle.
Smallest Safe First Step
If you want the safest migration possible, do this first:
- keep your existing transaction builder
- submit signed transactions through
POST /v1/send - track them through
GET /v1/stream/tx
That gives you a real migration win without forcing an architectural rewrite.
Next Step After That
Once submission is stable, move to the hosted swap flow:
POST /v1/quotePOST /v1/swap/build- sign client-side
POST /v1/swap
That is the point where you stop carrying most of the routing, simulation, and transaction-assembly burden yourself.
