Unity to connect to Sepolia #5348
Answered
by
skibitsky
xiaoliu1991
asked this question in
Developer Support
-
Use web3modal ,How to set up Unity to connect to Sepolia? |
Beta Was this translation helpful? Give feedback.
Answered by
skibitsky
Sep 10, 2024
Replies: 1 comment
-
Hello! You can add Sepolia to the list of supported chains in var sepolia = new WalletConnectUnity.Core.Chain(
chainNamespace: "eip155",
chainReference: "11155111", // Sepolia's chain ID
name: "Ethereum Sepolia Testnet",
viemName: "sepolia",
nativeCurrency: new WalletConnectUnity.Core.Currency
(
"Ethereum",
"ETH",
18
),
blockExplorer: new WalletConnectUnity.Core.BlockExplorer
("Etherscan", "https://sepolia.etherscan.io"),
rpcUrl: "https://1rpc.io/sepolia", // Replace with your Sepolia RPC URL
isTestnet: true,
imageUrl: "https://cryptologos.cc/logos/ethereum-eth-logo.png"
);
await Web3Modal.InitializeAsync(new Web3ModalConfig
{
supportedChains = new[]
{
sepolia
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xiaoliu1991
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
You can add Sepolia to the list of supported chains in
Web3ModalConfig