⚠️ Important: Upgrade your program with local validator identity
When using a local ER validator, you need to connect it to your preferred base layer (e.g.,mainnet-beta
,devnet
, orlocalhost
) where the accounts are delegated. To delegate your PDA to aspecific ER validator identity
, you must update thedelegation config
in your program. This ensures that accounts can be properly committed and undelegated on the base layer.
These public valdiators are supported for development. Make sure to upgrade
your program with the specific ER validator in delegation config:
- Asia (devnet): MAS1Dt9qreoRMQ14YQuhg8UTZMMzDdKhmkZMECCzk57
- EU (devnet): MEUGGrYPxKk17hCr7wpT6s8dtNokZj5U2L57vjYMS8e
- US (devnet): MUS3hc9TCw4cGC12vHNoYcCGzJG1txjgQLZWVoeNHNd
- Local ER (localhost): mAGicPQYBMvcYveUZA5F5UNNwyHvfYh5xkLS2Fr1mev
Deploy and test on base layer via correct validator identity
1
Set up Solana Test Validator (Localhost) and deploy your upgraded program
- Install
solana-test-validator
:
- Run
solana-test-validator
with cloned delegation program and accounts from Devnet:
- Upgrade and deploy your program to localhost:
2
Install and run MagicBlock ER validator (Localhost)
- Install the latest MagicBlock Ephemeral Validator:
- Run the local ephemeral validator pointing to localhost:
3
Test program instructions and delegation (Localhost)
Run your tests against the local ephemeral validator: