signTransaction
and signAndSendTransaction
), set RPC clients under the config.solana.rpcs
prop of the PrivyProvider
:
The
config.solana.rpcs
configuration is only required for Privy’s embedded wallet UIs. If you
are using external Solana wallets (e.g., Phantom, Solflare) without embedded wallet UIs, you do
not need to set config.solana.rpcs
.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 theConnection
instance for your transaction with the RPC URL for the SVM, like so: