Advanced
Configuring Solana networks
Privy supports Solana clusters such as Mainnet Beta, Devnet, and Testnet.
To configure the Solana clusters to use in your application and custom RPC URLs for it, pass an array of clusters to the config.solanaClusters
prop of the PrivyProvider
:
Each cluster in the array should be an object with the following fields:
Field | Type | Description |
---|---|---|
name | 'mainnet-beta' | 'devnet' | 'testnet' | Name of the Solana cluster. |
rpcUrl | string | Custom RPC URL for the cluster. We strongly recommend using a custom RPC URL in production to avoid rate limiting on public RPC endpoints. |
Custom Solana Virtual Machine (SVM) networks
In addition to supporting transactions on Solana mainnet, devnet, and testnet, Privy also supports sending transactions on any blockchain that implements the Solana Virtual Machine (SVM).
You can send a transaction on a custom SVM by initializing the Connection
instance for your transaction with the RPC URL for the SVM, like so:
Was this page helpful?