Authority Custody
An issued asset has authorities (mint, freeze, pause, metadata, and any delegate), and losing one can be unrecoverable. Before mainnet, check that:- No authority is a single hot key on a single machine.
- Each authority is held by the smallest party that needs it, rather than one key holding everything. See program and authority design.
- Someone other than the original engineer can run a recovery, and that path has been rehearsed.
Key Management
- Never expose private keys in frontend code. Use backend signing, hardware wallets, multisignature wallets, or key management services.
- Separate hot and cold wallets. Hot wallet for operations, cold for treasury.
- Back up all production keys. Store encrypted backups in multiple secure locations. A key lost without a backup cannot be recovered.
- Use different keys for devnet and mainnet. Your devnet keys shouldn’t be your mainnet keys. Use environment-based configuration to ensure the right keys load for each network.
Signing Infrastructure
For production backend signing, use Keychain, a unified signing library that abstracts multiple key management backends through a single interface: Memory, Vault, Privy, Turnkey, AWS KMS, Fireblocks, GCP KMS, CDP, Para, Dfns, Crossmint, Openfort, Utila, and Fordefi, plus an opt-in Ledger hardware backend in Rust. This lets you develop locally with in-memory keys, then swap to production-grade backends without changing application code. Not sure which backend fits? See Choosing a backend. Keychain is available for Rust, TypeScript, Python, and Go.RPC Security
Treat RPC endpoints like API keys—don’t expose them in frontend code where they can be extracted and abused. Use a backend proxy or environment variables that aren’t bundled into client code.- QuickNode: Endpoint Security Best Practices
- Helius: Protect Your Solana API Keys: Security Best Practices
Monitoring
Track these metrics in production:| Metric | Why |
|---|---|
| Transaction success rate | Detect issues early |
| Confirmation latency | Monitor network health |
| Priority fee spend | Cost management |
| RPC error rate | Provider health |
- Transfers above threshold from treasury
- Failed transaction rate spikes
- Unusual recipient patterns
- RPC error rate increases
Reconciliation
Reconciliation, separately from monitoring, checks that your records match the chain:- Record the transaction signature and the commitment level at which you accepted it, for every state change that matters.
- Order your own records by slot, not by wall-clock time.
- Reconcile against the chain rather than against your own optimistic writes, and against a custodian’s view where one holds the asset. See custody integration.
- Alert on transactions that were sent and never confirmed, which leave your records and the chain out of step.
Security Programs
- STRIDE (Solana Trust, Resilience and Infrastructure for DeFi Enterprises): security assessments of Solana protocols, with findings published, run by Asymmetric Research with the Solana Foundation. An assessment covers a protocol rather than an issuer’s mint, so it is relevant to the venues an asset composes with.
- SIRN (Solana Incident Response Network): security firms that coordinate the response to active incidents.
Verify Addresses
Every token and program has exactly one correct address on mainnet. Spoofed tokens mimicking USDC or other stablecoins are common—they’ll have the same name and symbol but a different mint. Your application should hardcode or allowlist the mint addresses (based on your requirements), never accept them dynamically from untrusted sources. Environment-based configuration: Devnet and Mainnet often use completely different token mints. Set up your application config to load the correct addresses per environment—don’t hardcode mainnet addresses and forget to swap them during testing, or worse, ship devnet addresses to production. Some common stablecoin mints are:| Token | Issuer | Mint Address |
|---|---|---|
| USDC | Circle | EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v |
| USDT | Tether | Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB |
| PYUSD | Paxos (for PayPal) | 2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo |
| USDG | Paxos | 2u1tszSeqZ3qBWF3uNGPFc8TzMk2tdiwknnRMWGWjGWH |
| Program | Address |
|---|---|
| Token Program | TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA |
| Token-2022 Program | TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb |
Validate recipients before sendingClassify every recipient address before signing a transfer. See Verify
Address for the full decision
tree and reference code that distinguishes wallets, token accounts, mints, and
programs.