supportedChains
property of the PrivyProvider
component, per the instructions below.
viem
-supported networksviem/chains
package, continue with the instructions below. A full list of the package’s supported networks is available here.Otherwise, skip to the Other Networks section.viem
-supported networks for Privy, first, install the viem
package. This package contains JSON representations of several EVM networks, which will be used to initialize the Privy SDK.
viem/chains
package:
supportedChains
prop of your PrivyProvider
with an array including your required networks.:
viem/chains
, you can still use Privy with
it per the steps below!viem
and use the package’s defineChain
method to build a JSON representation of your desired network.
myCustomChain
in the example above) to the supportedChains
array of the PrivyProvider
, like above.
addRpcUrlOverrideToChain
from @privy-io/chains
to override the RPC provider
addRpcUrlOverrideToChain
(e.g. mainnetOverride
) to the supportedChains
config option like before.
defaultChain
nor supportedChains
is explicitly set for your app, Privy will automatically default to the following list of EVM-compatible networks: