Skip to content

Unity to connect to Sepolia #5348

Discussion options

You must be logged in to vote

Hello!

You can add Sepolia to the list of supported chains in Web3ModalConfig

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.Initia…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xiaoliu1991
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants