diff --git a/docs/connect-blockchain/evm/chiliz/android.mdx b/docs/connect-blockchain/evm/chiliz/android.mdx new file mode 100644 index 000000000..57353bdfc --- /dev/null +++ b/docs/connect-blockchain/evm/chiliz/android.mdx @@ -0,0 +1,25 @@ +--- +title: Integrate Web3Auth with the Chiliz Blockchain in Android +sidebar_label: Android +image: "banners/chiliz.png" + +keywords: [android, chiliz, web3auth, authentication, blockchain] +description: "Integrate Web3Auth with the Chiliz Blockchain in Android | Documentation - Web3Auth" +--- + +import EVMInteraction from "@site/src/common/docs/android-connect-blockchain/_evm-interaction.mdx"; +import SEO from "@site/src/components/SEO"; + + + +While using the Web3Auth Android SDK, you get the private key within the user scope after successful +authorization. This private key can be used to retrieve the user's address, and interact with +[Chiliz](https://chiliz.com) to make any blockchain calls. We have highlighted a few here for +getting you started quickly on that. + + diff --git a/docs/connect-blockchain/evm/chiliz/chiliz.mdx b/docs/connect-blockchain/evm/chiliz/chiliz.mdx new file mode 100644 index 000000000..dbcd53982 --- /dev/null +++ b/docs/connect-blockchain/evm/chiliz/chiliz.mdx @@ -0,0 +1,73 @@ +--- +title: Integrate Web3Auth with the Chiliz Blockchain +hide_table_of_contents: true + +image: "banners/chiliz.png" +description: "Integrate Web3Auth with the Chiliz Blockchain | Documentation - Web3Auth" +--- + +import Tiles from "@theme/Tiles"; +import SEO from "@site/src/components/SEO"; + + + +Integrate Web3Auth seamlessly with EVM-based Chiliz Blockchain. For Web SDKs, Web3Auth returns a +provider that can be directly used to initialize the libraries like ethers.js, web3.js etc. and make +blockchain calls, while for Mobile & Gaming SDKs, the private key is available in the user scope +which can be used in a similar way to initialize the respective blockchain interaction libraries and +make calls to the network. + +This documentation provides a straightforward guide for developers looking to implement blockchain +connections quickly and effortlessly across various platforms. + +export const Chiliz = [ + { + name: "", + description: "", + tiles: [ + { + key: "web", + title: "Web", + icon: "logo-js.png", + path: "/connect-blockchain/evm/chiliz/web", + }, + { + key: "android", + title: "Android (Kotlin)", + icon: "logo-android.png", + path: "/connect-blockchain/evm/chiliz/android", + }, + { + key: "apple", + title: "iOS (Swift)", + icon: "logo-apple.png", + path: "/connect-blockchain/evm/chiliz/ios", + }, + { + key: "flutter", + title: "Flutter", + icon: "logo-flutter.png", + path: "/connect-blockchain/evm/chiliz/flutter", + }, + { + key: "react-native", + title: "React Native", + icon: "logo-react.png", + path: "/connect-blockchain/evm/chiliz/react-native", + }, + { + key: "unity", + title: "Unity", + icon: "logo-unity.png", + path: "/connect-blockchain/evm/chiliz/unity", + }, + ], + }, +]; + + diff --git a/docs/connect-blockchain/evm/chiliz/flutter.mdx b/docs/connect-blockchain/evm/chiliz/flutter.mdx new file mode 100644 index 000000000..4405a5f1a --- /dev/null +++ b/docs/connect-blockchain/evm/chiliz/flutter.mdx @@ -0,0 +1,27 @@ +--- +title: Integrate Web3Auth with the Chiliz Blockchain in Flutter +sidebar_label: Flutter +image: "banners/chiliz.png" + +keywords: [flutter, chiliz, web3auth, authentication, blockchain] +description: "Integrate Web3Auth with the Chiliz Blockchain in Flutter | Documentation - Web3Auth" +--- + +import EVMInteraction from "@site/src/common/docs/flutter-connect-blockchain/_evm-interaction.mdx"; +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; +import SEO from "@site/src/components/SEO"; + + + +While using the Web3Auth Flutter SDK, you get the private key within the user scope after successful +authorization. This private key can be used to retrieve the user's address, and interact with +[Chiliz](https://chiliz.com) to make any blockchain calls. We have highlighted a few here for +getting you started quickly on that. + + diff --git a/docs/connect-blockchain/evm/chiliz/ios.mdx b/docs/connect-blockchain/evm/chiliz/ios.mdx new file mode 100644 index 000000000..eed3366d5 --- /dev/null +++ b/docs/connect-blockchain/evm/chiliz/ios.mdx @@ -0,0 +1,27 @@ +--- +title: Integrate Web3Auth with the Chiliz Blockchain in iOS/Swift Applications +sidebar_label: iOS +image: "/docs/banners/chiliz.png" + +keywords: [ios, swift, chiliz, web3auth, authentication, blockchain] +description: + "Integrate Web3Auth with the Chiliz Blockchain in iOS/Swift Applications | Documentation - + Web3Auth" +--- + +import EVMInteraction from "@site/src/common/docs/ios-connect-blockchain/_evm-interaction.mdx"; +import SEO from "@site/src/components/SEO"; + + + +While using the Web3Auth iOS SDK, you get the private key within the user scope after successful +authorization. This private key can be used to retrieve the user's address, and interact with +[Chiliz](https://chiliz.com) to make any blockchain calls. We have highlighted a few here for +getting you started quickly on that. + + diff --git a/docs/connect-blockchain/evm/chiliz/react-native.mdx b/docs/connect-blockchain/evm/chiliz/react-native.mdx new file mode 100644 index 000000000..8f65ae4c4 --- /dev/null +++ b/docs/connect-blockchain/evm/chiliz/react-native.mdx @@ -0,0 +1,120 @@ +--- +title: Integrate Web3Auth with the Chiliz Blockchain in React Native +sidebar_label: React Native +image: "banners/chiliz.png" + +keywords: [react-native, chiliz, web3auth, authentication, blockchain] +description: + "Integrate Web3Auth with the Chiliz Blockchain in React Native | Documentation - Web3Auth" +--- + +import InstallationSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-installation.mdx"; +import GetAccountSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-get-account.mdx"; +import UserInfoSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-user-info.mdx"; +import GetBalanceSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-get-balance.mdx"; +import InitialisationSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-initialisation.mdx"; +import SignMessageSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-sign-message.mdx"; +import SendTransactionSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-send-transaction.mdx"; +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; +import SEO from "@site/src/components/SEO"; + + + +While using the Web3Auth React Native SDK, you get a +[`EIP1193`](https://eips.ethereum.org/EIPS/eip-1193) provider, similar to the +[Metamask Provider](https://docs.metamask.io/guide/ethereum-provider.html). This provider can be +used with libraries like [`web3.js`](https://web3js.readthedocs.io/en/v1.2.8/getting-started.html), +[`ethers.js`](https://docs.ethers.io/v5/getting-started/) etc. to make +[Chiliz Blockchain](https://www.chiliz.com) blockchain calls like getting the user's `account`, +fetching `balance`, signing transactions, sending transactions, and interacting with smart +contracts. We have highlighted a few key examples to get you started quickly on that. + +## Installation + + + +## Initializing Provider + +Using `eip155` as `chainNamespace` while initializing `web3auth` will provide an +[`EIP1193`](https://eips.ethereum.org/EIPS/eip-1193) compatible provider as **`web3auth.provider`** +after successful authentication. + +### Getting the `chainConfig` + + + + +```typescript +const chainConfig = { + chainNamespace: ChainNamespace.EIP155, + chainId: "0x15B38", // hex of 88888, Chiliz Mainnet + rpcTarget: "https://rpc.ankr.com/chiliz", + // Avoid using public rpcTarget in production. + // Use services like Infura, Quicknode, etc. + displayName: "Chiliz Mainnet", + blockExplorer: "https://chiliscan.com", + ticker: "CHZ", + tickerName: "Chiliz", +}; +``` + + + + + +```typescript +const chainConfig = { + chainNamespace: ChainNamespace.EIP155, + chainId: "0x15B42", // hex of 88882, Chiliz Spicy Testnet + rpcTarget: "https://spicy-rpc.chiliz.com/", + // Avoid using public rpcTarget in production. + // Use services like Infura, Quicknode, etc. + displayName: "Chiliz Spicy Testnet", + blockExplorer: "https://testnet.chiliscan.com/", + ticker: "CHZ", + tickerName: "Chiliz (Testnet)", +}; +``` + + + + +## Initialize + + + +## Get User Info + + + +## Get Account + + + +## Get Balance + + + +## Send Transaction + + + +## Sign a message + + diff --git a/docs/connect-blockchain/evm/chiliz/unity.mdx b/docs/connect-blockchain/evm/chiliz/unity.mdx new file mode 100644 index 000000000..f0a51b13e --- /dev/null +++ b/docs/connect-blockchain/evm/chiliz/unity.mdx @@ -0,0 +1,104 @@ +--- +title: Integrate Web3Auth with the Chiliz Blockchain in Unity +sidebar_label: Unity +image: "banners/chiliz.png" + +keywords: [unity, chiliz, web3auth, authentication, blockchain] +description: "Integrate Web3Auth with the Chiliz Blockchain in Unity | Documentation - Web3Auth" +--- + +import InstallationSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-installation.mdx"; +import GetAccountSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-get-account.mdx"; +import UserInfoSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-user-info.mdx"; +import GetBalanceSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-get-balance.mdx"; +import InitialisationSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-initialisation.mdx"; +import SignMessageSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-sign-message.mdx"; +import SendTransactionSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-send-transaction.mdx"; +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; +import SEO from "@site/src/components/SEO"; + + + +While using the Web3Auth Unity SDK, you get the private key within the user scope. This private key +can interact with the [Nethereum Library](https://nethereum.com/) to make EVM-based blockchain +calls, like getting the user's `account`, fetching `balance`, `signing transaction`, +`sending transactions`, `reading` from and `writing` to smart contracts. We have highlighted a few +examples to get you started. + +## Installation + + + +## Chain Details for Chiliz + + + + +- Chain ID: 0x15B38 +- Public RPC URL: https://rpc.ankr.com/chiliz (Avoid using public rpcTarget in production, use + services like Infura, Quicknode, etc.) +- Alternate RPC URL: https://chiliz.publicnode.com +- Display Name: Chiliz Mainnet +- Block Explorer Link: https://chiliscan.com +- Alternate Block Explorer: https://scan.chiliz.com +- Ticker: CHZ +- Ticker Name: Chiliz + + + + + +- Chain ID: 0x15B42 +- Public RPC URL: https://spicy-rpc.chiliz.com/ (Avoid using public rpcTarget in production, use + services like Infura, Quicknode, etc.) +- Alternate RPC URL: https://chiliz-spicy.publicnode.com +- RPC Websocket URL: wss://spicy-rpc-ws.chiliz.com/ +- Alternate Websocket URL: wss://chiliz-spicy.publicnode.com +- Display Name: Chiliz Spicy Testnet +- Block Explorer Link: https://testnet.chiliscan.com/ +- Alternate Block Explorer: http://spicy-explorer.chiliz.com/ +- Ticker: CHZ +- Ticker Name: Chiliz (Testnet) + + + + +## Initialize + + + +## Get User Info + + + +## Get Account + + + +## Get Balance + + + +## Sign a message + + + +## Send Transaction + + diff --git a/docs/connect-blockchain/evm/chiliz/web.mdx b/docs/connect-blockchain/evm/chiliz/web.mdx new file mode 100644 index 000000000..ccd37a0ec --- /dev/null +++ b/docs/connect-blockchain/evm/chiliz/web.mdx @@ -0,0 +1,167 @@ +--- +title: Integrate Web3Auth with the Chiliz Blockchain in JavaScript +sidebar_label: Web +image: "banners/chiliz.png" +keywords: + [ + chiliz, + wallet, + integration, + API, + SDK, + web3auth, + authentication, + blockchain, + solution, + development, + ] +description: + "Integrate Web3Auth with the Chiliz Blockchain in JavaScript | Documentation - Web3Auth" +--- + +import InstallationSnippet from "@site/src/common/docs/web-connect-blockchain/_evm-installation.mdx"; +import GetUserInfoSnippet from "@site/src/common/docs/_get-userinfo.mdx"; +import GetAccountAndBalanceSnippet from "@site/src/common/docs/web-connect-blockchain/_evm-get-account-n-balance.mdx"; +import SendTransactionSnippet from "@site/src/common/docs/web-connect-blockchain/_evm-send-transaction.mdx"; +import SignTransactionSnippet from "@site/src/common/docs/web-connect-blockchain/_evm-sign-transaction.mdx"; +import SignPersonalMessageSnippet from "@site/src/common/docs/web-connect-blockchain/_evm-sign-message-personal-sign.mdx"; +import SignTypedDataV4Snippet from "@site/src/common/docs/web-connect-blockchain/_evm-sign-message-v4.mdx"; +import SmartContractSoliditySnippet from "@site/src/common/docs/_smart-contract-solidity.mdx"; +import DeployContractSolidityDeploySnippet from "@site/src/common/docs/_smart-contract-solidity-deploy.mdx"; +import DeployContractSolidityReadSnippet from "@site/src/common/docs/_smart-contract-solidity-read.mdx"; +import DeployContractSolidityWriteSnippet from "@site/src/common/docs/_smart-contract-solidity-write.mdx"; +import FetchUserPrivateKeySnippet from "@site/src/common/docs/web-connect-blockchain/_evm-fetch-user-private-key.mdx"; +import InitializeWeb3Auth from "@site/src/common/docs/_initialize-web3auth-evm-pnp-sfa.mdx"; +import TabItem from "@theme/TabItem"; +import Tabs from "@theme/Tabs"; +import SEO from "@site/src/components/SEO"; + + + +While using the Web3Auth Web SDK, you get a [`EIP1193`](https://eips.ethereum.org/EIPS/eip-1193) +provider, similar to the [Metamask Provider](https://docs.metamask.io/guide/ethereum-provider.html). +This provider can be used with libraries like +[`web3.js`](https://web3js.readthedocs.io/en/v1.2.8/getting-started.html), +[`ethers.js`](https://docs.ethers.io/v5/getting-started/) etc. to make +[Chiliz Blockchain](https://www.chiliz.com) calls like getting the user's `account`, fetching +`balance`, `sign transaction`, `send transaction`, `read` from and `write` to the smart contract, +etc. We have highlighted a few examples to get you started. + +## Installation + +To interact with the Chiliz blockchain, you can use either library with Web3Auth. + + + +## Initializing Provider + +Using `eip155` as `chainNamespace` while initializing `web3auth` will provide an +[`EIP1193`](https://eips.ethereum.org/EIPS/eip-1193) compatible provider as **`web3auth.provider`** +after successful authentication. + +### Getting the `chainConfig` + + + + +```typescript +const chainConfig = { + chainNamespace: CHAIN_NAMESPACES.EIP155, + chainId: "0x15B38", // hex of 88888, Chiliz Mainnet + rpcTarget: "https://rpc.ankr.com/chiliz", + // Avoid using public rpcTarget in production. + // Use services like Infura, Quicknode, etc. + displayName: "Chiliz Mainnet", + blockExplorerUrl: "https://chiliscan.com", + ticker: "CHZ", + tickerName: "Chiliz", + logo: "https://cdn.chiliz.com/logo.png", +}; +``` + + + + + +```typescript +const chainConfig = { + chainNamespace: CHAIN_NAMESPACES.EIP155, + chainId: "0x15B42", // hex of 88882, Chiliz Spicy Testnet + rpcTarget: "https://spicy-rpc.chiliz.com/", + // Avoid using public rpcTarget in production. + // Use services like Infura, Quicknode, etc. + displayName: "Chiliz Spicy Testnet", + blockExplorerUrl: "https://testnet.chiliscan.com/", + ticker: "CHZ", + tickerName: "Chiliz (Testnet)", + logo: "https://cdn.chiliz.com/logo-testnet.png", +}; +``` + + + + +### Initializing and Instantiating the Web3Auth SDK + + + +## Get User Info + + + +## Get Account and Balance + + + +## Send Transaction + + + +## Sign Transaction + + + +## Sign Message + +### Personal Sign + + + +### Sign Typed Data v4 + + + +## Smart Contract + + + +### Deploy Contract + + + +### Read From Contract + + + +### Write to Contract + + + +## Fetch User's Private Key + + diff --git a/sidebars.ts b/sidebars.ts index 98faf0a44..ad30722a2 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -637,6 +637,19 @@ const sidebars: SidebarsConfig = { "connect-blockchain/evm/celo/unity", ], }, + { + type: "category", + label: "Chiliz", + items: [ + "connect-blockchain/evm/chiliz/chiliz", + "connect-blockchain/evm/chiliz/web", + "connect-blockchain/evm/chiliz/android", + "connect-blockchain/evm/chiliz/ios", + "connect-blockchain/evm/chiliz/react-native", + "connect-blockchain/evm/chiliz/flutter", + "connect-blockchain/evm/chiliz/unity", + ], + }, { type: "category", label: "Cronos", diff --git a/src/common/docs/_evm-chains.mdx b/src/common/docs/_evm-chains.mdx index d30191fca..6fe26ecbf 100644 --- a/src/common/docs/_evm-chains.mdx +++ b/src/common/docs/_evm-chains.mdx @@ -77,6 +77,12 @@ export const EVMChains = [ icon: "logo-celo.png", path: "/connect-blockchain/evm/celo/", }, + { + key: "chiliz", + title: "Chiliz", + icon: "logo-chiliz.png", + path: "/connect-blockchain/evm/chiliz/", + }, { key: "cronos", title: "Cronos", diff --git a/static/banners/chiliz.png b/static/banners/chiliz.png new file mode 100644 index 000000000..cd3414079 Binary files /dev/null and b/static/banners/chiliz.png differ diff --git a/static/logos/logo-chiliz.png b/static/logos/logo-chiliz.png new file mode 100644 index 000000000..b9923a875 Binary files /dev/null and b/static/logos/logo-chiliz.png differ