diff --git a/docs/connect-blockchain/new.mdx b/docs/connect-blockchain/new.mdx deleted file mode 100644 index 2bb92071a..000000000 --- a/docs/connect-blockchain/new.mdx +++ /dev/null @@ -1,1066 +0,0 @@ -### Testnet - -#### SKALE Europa Hub Testnet - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1c6199cc", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Europa Hub Testnet", - blockExplorer: "https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1c6199cc", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Europa Hub Testnet", - blockExplorer: "https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const Web3 = require("web3"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1c6199cc", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Europa Hub Testnet", - blockExplorer: "https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1c6199cc", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Europa Hub Testnet", - blockExplorer: "https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1c6199cc", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Europa Hub Testnet", - blockExplorer: "https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const ethers = require("ethers"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1c6199cc", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Europa Hub Testnet", - blockExplorer: "https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - - - - -#### SKALE Calypso NFT Hub Testnet - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1482a7b2", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Calypso NFT Hub Testnet", - blockExplorer: "https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com/ ", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1482a7b2", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Calypso NFT Hub Testnet", - blockExplorer: "https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com/ ", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const Web3 = require("web3"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1482a7b2", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Calypso NFT Hub Testnet", - blockExplorer: "https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com/ ", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1482a7b2", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Calypso NFT Hub Testnet", - blockExplorer: "https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com/ ", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1482a7b2", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Calypso NFT Hub Testnet", - blockExplorer: "https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com/ ", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const ethers = require("ethers"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1482a7b2", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Calypso NFT Hub Testnet", - blockExplorer: "https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com/ ", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - - - - -#### SKALE Nebula Gaming Hub Testnet - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1dfd2731", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Nebula Gaming Hub Testnet", - blockExplorer: "https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1dfd2731", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Nebula Gaming Hub Testnet", - blockExplorer: "https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const Web3 = require("web3"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1dfd2731", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Nebula Gaming Hub Testnet", - blockExplorer: "https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1dfd2731", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Nebula Gaming Hub Testnet", - blockExplorer: "https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1dfd2731", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Nebula Gaming Hub Testnet", - blockExplorer: "https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const ethers = require("ethers"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x1dfd2731", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Nebula Gaming Hub Testnet", - blockExplorer: "https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - - - - -#### SKALE Titan Community Hub - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x5a79c44e", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Titan Community Hub Testnet", - blockExplorer: "https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x5a79c44e", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Titan Community Hub Testnet", - blockExplorer: "https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const Web3 = require("web3"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x5a79c44e", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Titan Community Hub Testnet", - blockExplorer: "https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x5a79c44e", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Titan Community Hub Testnet", - blockExplorer: "https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x5a79c44e", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Titan Community Hub Testnet", - blockExplorer: "https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const ethers = require("ethers"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x5a79c44e", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Titan Community Hub Testnet", - blockExplorer: "https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - - - - -#### SKALE Chaos Testnet - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const Web3 = require("web3"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const ethers = require("ethers"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - - - diff --git a/docs/connect-blockchain/skale.mdx b/docs/connect-blockchain/skale.mdx index 510a5257d..43af86262 100644 --- a/docs/connect-blockchain/skale.mdx +++ b/docs/connect-blockchain/skale.mdx @@ -1,7 +1,7 @@ --- title: Integrate Web3Auth with the Skale Blockchain sidebar_label: Skale -image: "content-hub/guides/banners/optimism.png" +image: "content-hub/guides/banners/skale.png" displayed_sidebar: docs keywords: [skale, blockchain, web3auth] description: "Integrate Web3Auth with the Skale Blockchain | Documentation - Web3Auth" diff --git a/docs/connect-blockchain/temp.mdx b/docs/connect-blockchain/temp.mdx deleted file mode 100644 index 374f35811..000000000 --- a/docs/connect-blockchain/temp.mdx +++ /dev/null @@ -1,212 +0,0 @@ -#### SKALE Chaos Testnet - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import Web3 from "web3"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const Web3 = require("web3"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const web3 = new Web3(web3authProvider); // web3auth.provider -``` - - - - - - - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -import { Web3Auth } from "@web3auth/modal"; -import { CHAIN_NAMESPACES } from "@web3auth/base"; -import { ethers } from "ethers"; - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - -```tsx -const { Web3Auth } = require("@web3auth/modal"); -const ethers = require("ethers"); - -const web3auth = new Web3Auth({ - clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // get it from Web3Auth Dashboard - web3AuthNetwork: "sapphire_mainnet", - chainConfig: { - chainNamespace: "eip155", - chainId: "0x50877ed6", - rpcTarget: "https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix", - // Avoid using public rpcTarget in production. - // Use services like Infura, Quicknode etc - displayName: "SKALE Chaos Testnet", - blockExplorer: "https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com/", - ticker: "ETH", - tickerName: "ETH", - }, -}); -await web3auth.initModal(); - -const web3authProvider = await web3auth.connect(); - -const provider = new ethers.providers.Web3Provider(web3authProvider); // web3auth.provider -``` - - - - - - diff --git a/docs/connect-blockchain/zkatana.mdx b/docs/connect-blockchain/zkatana.mdx index 8b644852e..e7aff2f4c 100644 --- a/docs/connect-blockchain/zkatana.mdx +++ b/docs/connect-blockchain/zkatana.mdx @@ -1,7 +1,7 @@ --- title: Integrate Web3Auth with the zKatana Blockchain sidebar_label: zKatana -image: "content-hub/guides/banners/optimism.png" +image: "content-hub/guides/banners/zkatana.png" displayed_sidebar: docs keywords: [zkatana, blockchain, web3auth] description: "Integrate Web3Auth with the zKatana Blockchain | Documentation - Web3Auth" diff --git a/static/content-hub/guides/banners/skale.png b/static/content-hub/guides/banners/skale.png new file mode 100644 index 000000000..611bdba09 Binary files /dev/null and b/static/content-hub/guides/banners/skale.png differ diff --git a/static/content-hub/guides/banners/zkatana.png b/static/content-hub/guides/banners/zkatana.png new file mode 100644 index 000000000..a6eab7baf Binary files /dev/null and b/static/content-hub/guides/banners/zkatana.png differ