Mirror RPC
How to manage you mirror-chain instances
Introduction
Mirror allows you to spin up devnet like environments that mimic Solana mainnet better than devnet. It is currently in a beta state, but we are actively targeting:
Mimicking mainnet under congestion so you can understand how your programs work under load
Allow you to pull in live mainnet state such as Orca AMM and all associated PDAs or airdrop USDC
Getting Started
You will need an api_key
to create your first mirror-chain instance. We are still in closed beta, but would love to offer you an api_key
. To get started contact us at:
Contact Info
Twitter DMs: https://x.com/M1rrorLabs
Telegram: @hunterws
Email: [email protected]
Demo Codebase
If you prefer learning by reading code, check out the codebase we use to test Mirror. It is a good example of using a mirror-chain in a CICD context.
https://github.com/m1rror-labs/mockchain-testing/blob/main/tests/rpc.test.ts
Creating a Mockchain instance
Use this endpoint to create a new Mirror instance. On the free beta, you are allowed up to 5 Mirror instances. Don't fret though because you can delete unused instances at will!
The URL returned you can use as an RPC url such as https://api.mainnet-beta.solana.com
NOTE: You don't need an api-key to hit the rpc endpoint, the blockchain-id is private enough!
Getting existing instances
Sometimes it's nice to see what Mirror instances you are running! We will add a UI to manage this, but for the time being, you can just hit this API.
Deleting a mirror-chain instance
Deleting a mirror-chain instance is incredibly easy!
Delete All
You can also delete all your mirror-chain instances if you want to do housekeeping
Last updated