Protocol Testing
The safest order is:- diagnose env and RPC
- build bundles
- send one direct protocol transaction
- only then involve the vault
Step 1. Diagnose runtime
- RPC URLs present
- owner addresses matching local signers
- wallet balances greater than
0 SOL - program executable on the configured cluster
Step 2. Validate Drift bundle construction
executionSource: "drift-sdk"instructionEnvelopespresent
deposit before withdraw.
Step 3. Validate Kamino bundle construction
executionSource: "kamino-sdk"instructionEnvelopespresent
Step 4. Send a real Drift transaction without the vault
Step 5. Bring in the vault
After protocol paths are working:- bootstrap the vault
- inspect state
- run a vault user deposit
- run a rebalance
Common errors
Drift withdraw requires an existing user account
You attemptedwithdraw before doing a real deposit.
Program not executable
VAULT_PROGRAM_ID is still a placeholder or belongs to the wrong cluster.