Skip to content

Commit 686f5db

Browse files
authored
Merge pull request #991 from Web3Auth/add-chiliz-docs
Add Chilliz docs
2 parents 567d61e + bccf5a4 commit 686f5db

File tree

11 files changed

+562
-0
lines changed

11 files changed

+562
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Integrate Web3Auth with the Chiliz Blockchain in Android
3+
sidebar_label: Android
4+
image: "banners/chiliz.png"
5+
6+
keywords: [android, chiliz, web3auth, authentication, blockchain]
7+
description: "Integrate Web3Auth with the Chiliz Blockchain in Android | Documentation - Web3Auth"
8+
---
9+
10+
import EVMInteraction from "@site/src/common/docs/android-connect-blockchain/_evm-interaction.mdx";
11+
import SEO from "@site/src/components/SEO";
12+
13+
<SEO
14+
title="Integrate Web3Auth with the Chiliz Blockchain in Android"
15+
description="Integrate Web3Auth with the Chiliz Blockchain in Android | Documentation - Web3Auth"
16+
image="https://web3auth.io/docs/banners/chiliz.png"
17+
slug="/connect-blockchain/evm/chiliz/android"
18+
/>
19+
20+
While using the Web3Auth Android SDK, you get the private key within the user scope after successful
21+
authorization. This private key can be used to retrieve the user's address, and interact with
22+
[Chiliz](https://chiliz.com) to make any blockchain calls. We have highlighted a few here for
23+
getting you started quickly on that.
24+
25+
<EVMInteraction />
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
title: Integrate Web3Auth with the Chiliz Blockchain
3+
hide_table_of_contents: true
4+
5+
image: "banners/chiliz.png"
6+
description: "Integrate Web3Auth with the Chiliz Blockchain | Documentation - Web3Auth"
7+
---
8+
9+
import Tiles from "@theme/Tiles";
10+
import SEO from "@site/src/components/SEO";
11+
12+
<SEO
13+
title="Integrate Web3Auth with the Chiliz Blockchain"
14+
description="Integrate Web3Auth with the Chiliz Blockchain | Documentation - Web3Auth"
15+
image="https://web3auth.io/docs/banners/chiliz.png"
16+
slug="/connect-blockchain/evm/chiliz"
17+
/>
18+
19+
Integrate Web3Auth seamlessly with EVM-based Chiliz Blockchain. For Web SDKs, Web3Auth returns a
20+
provider that can be directly used to initialize the libraries like ethers.js, web3.js etc. and make
21+
blockchain calls, while for Mobile & Gaming SDKs, the private key is available in the user scope
22+
which can be used in a similar way to initialize the respective blockchain interaction libraries and
23+
make calls to the network.
24+
25+
This documentation provides a straightforward guide for developers looking to implement blockchain
26+
connections quickly and effortlessly across various platforms.
27+
28+
export const Chiliz = [
29+
{
30+
name: "",
31+
description: "",
32+
tiles: [
33+
{
34+
key: "web",
35+
title: "Web",
36+
icon: "logo-js.png",
37+
path: "/connect-blockchain/evm/chiliz/web",
38+
},
39+
{
40+
key: "android",
41+
title: "Android (Kotlin)",
42+
icon: "logo-android.png",
43+
path: "/connect-blockchain/evm/chiliz/android",
44+
},
45+
{
46+
key: "apple",
47+
title: "iOS (Swift)",
48+
icon: "logo-apple.png",
49+
path: "/connect-blockchain/evm/chiliz/ios",
50+
},
51+
{
52+
key: "flutter",
53+
title: "Flutter",
54+
icon: "logo-flutter.png",
55+
path: "/connect-blockchain/evm/chiliz/flutter",
56+
},
57+
{
58+
key: "react-native",
59+
title: "React Native",
60+
icon: "logo-react.png",
61+
path: "/connect-blockchain/evm/chiliz/react-native",
62+
},
63+
{
64+
key: "unity",
65+
title: "Unity",
66+
icon: "logo-unity.png",
67+
path: "/connect-blockchain/evm/chiliz/unity",
68+
},
69+
],
70+
},
71+
];
72+
73+
<Tiles tileGroups={Chiliz} />
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Integrate Web3Auth with the Chiliz Blockchain in Flutter
3+
sidebar_label: Flutter
4+
image: "banners/chiliz.png"
5+
6+
keywords: [flutter, chiliz, web3auth, authentication, blockchain]
7+
description: "Integrate Web3Auth with the Chiliz Blockchain in Flutter | Documentation - Web3Auth"
8+
---
9+
10+
import EVMInteraction from "@site/src/common/docs/flutter-connect-blockchain/_evm-interaction.mdx";
11+
import Tabs from "@theme/Tabs";
12+
import TabItem from "@theme/TabItem";
13+
import SEO from "@site/src/components/SEO";
14+
15+
<SEO
16+
title="Integrate Web3Auth with the Chiliz Blockchain in Flutter"
17+
description="Integrate Web3Auth with the Chiliz Blockchain in Flutter | Documentation - Web3Auth"
18+
image="https://web3auth.io/docs/banners/chiliz.png"
19+
slug="/connect-blockchain/evm/chiliz/flutter"
20+
/>
21+
22+
While using the Web3Auth Flutter SDK, you get the private key within the user scope after successful
23+
authorization. This private key can be used to retrieve the user's address, and interact with
24+
[Chiliz](https://chiliz.com) to make any blockchain calls. We have highlighted a few here for
25+
getting you started quickly on that.
26+
27+
<EVMInteraction />
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Integrate Web3Auth with the Chiliz Blockchain in iOS/Swift Applications
3+
sidebar_label: iOS
4+
image: "/docs/banners/chiliz.png"
5+
6+
keywords: [ios, swift, chiliz, web3auth, authentication, blockchain]
7+
description:
8+
"Integrate Web3Auth with the Chiliz Blockchain in iOS/Swift Applications | Documentation -
9+
Web3Auth"
10+
---
11+
12+
import EVMInteraction from "@site/src/common/docs/ios-connect-blockchain/_evm-interaction.mdx";
13+
import SEO from "@site/src/components/SEO";
14+
15+
<SEO
16+
title="Integrate Web3Auth with the Chiliz Blockchain in iOS/Swift Applications"
17+
description="Integrate Web3Auth with the Chiliz Blockchain in iOS/Swift Applications | Documentation - Web3Auth"
18+
image="https://web3auth.io/docs/banners/chiliz.png"
19+
slug="/connect-blockchain/evm/chiliz/ios"
20+
/>
21+
22+
While using the Web3Auth iOS SDK, you get the private key within the user scope after successful
23+
authorization. This private key can be used to retrieve the user's address, and interact with
24+
[Chiliz](https://chiliz.com) to make any blockchain calls. We have highlighted a few here for
25+
getting you started quickly on that.
26+
27+
<EVMInteraction />
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
title: Integrate Web3Auth with the Chiliz Blockchain in React Native
3+
sidebar_label: React Native
4+
image: "banners/chiliz.png"
5+
6+
keywords: [react-native, chiliz, web3auth, authentication, blockchain]
7+
description:
8+
"Integrate Web3Auth with the Chiliz Blockchain in React Native | Documentation - Web3Auth"
9+
---
10+
11+
import InstallationSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-installation.mdx";
12+
import GetAccountSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-get-account.mdx";
13+
import UserInfoSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-user-info.mdx";
14+
import GetBalanceSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-get-balance.mdx";
15+
import InitialisationSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-initialisation.mdx";
16+
import SignMessageSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-sign-message.mdx";
17+
import SendTransactionSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-send-transaction.mdx";
18+
import Tabs from "@theme/Tabs";
19+
import TabItem from "@theme/TabItem";
20+
import SEO from "@site/src/components/SEO";
21+
22+
<SEO
23+
title="Integrate Web3Auth with the Chiliz Blockchain in React Native"
24+
description="Integrate Web3Auth with the Chiliz Blockchain in React Native | Documentation - Web3Auth"
25+
image="https://web3auth.io/docs/banners/chiliz.png"
26+
slug="/connect-blockchain/evm/chiliz/react-native"
27+
/>
28+
29+
While using the Web3Auth React Native SDK, you get a
30+
[`EIP1193`](https://eips.ethereum.org/EIPS/eip-1193) provider, similar to the
31+
[Metamask Provider](https://docs.metamask.io/guide/ethereum-provider.html). This provider can be
32+
used with libraries like [`web3.js`](https://web3js.readthedocs.io/en/v1.2.8/getting-started.html),
33+
[`ethers.js`](https://docs.ethers.io/v5/getting-started/) etc. to make
34+
[Chiliz Blockchain](https://www.chiliz.com) blockchain calls like getting the user's `account`,
35+
fetching `balance`, signing transactions, sending transactions, and interacting with smart
36+
contracts. We have highlighted a few key examples to get you started quickly on that.
37+
38+
## Installation
39+
40+
<InstallationSnippet />
41+
42+
## Initializing Provider
43+
44+
Using `eip155` as `chainNamespace` while initializing `web3auth` will provide an
45+
[`EIP1193`](https://eips.ethereum.org/EIPS/eip-1193) compatible provider as **`web3auth.provider`**
46+
after successful authentication.
47+
48+
### Getting the `chainConfig`
49+
50+
<Tabs
51+
defaultValue="mainnet"
52+
values={[
53+
{ label: "Mainnet", value: "mainnet", },
54+
{ label: "Testnet", value: "testnet", },
55+
]}
56+
>
57+
<TabItem
58+
value="mainnet"
59+
>
60+
61+
```typescript
62+
const chainConfig = {
63+
chainNamespace: ChainNamespace.EIP155,
64+
chainId: "0x15B38", // hex of 88888, Chiliz Mainnet
65+
rpcTarget: "https://rpc.ankr.com/chiliz",
66+
// Avoid using public rpcTarget in production.
67+
// Use services like Infura, Quicknode, etc.
68+
displayName: "Chiliz Mainnet",
69+
blockExplorer: "https://chiliscan.com",
70+
ticker: "CHZ",
71+
tickerName: "Chiliz",
72+
};
73+
```
74+
75+
</TabItem>
76+
77+
<TabItem
78+
value="testnet"
79+
>
80+
81+
```typescript
82+
const chainConfig = {
83+
chainNamespace: ChainNamespace.EIP155,
84+
chainId: "0x15B42", // hex of 88882, Chiliz Spicy Testnet
85+
rpcTarget: "https://spicy-rpc.chiliz.com/",
86+
// Avoid using public rpcTarget in production.
87+
// Use services like Infura, Quicknode, etc.
88+
displayName: "Chiliz Spicy Testnet",
89+
blockExplorer: "https://testnet.chiliscan.com/",
90+
ticker: "CHZ",
91+
tickerName: "Chiliz (Testnet)",
92+
};
93+
```
94+
95+
</TabItem>
96+
</Tabs>
97+
98+
## Initialize
99+
100+
<InitialisationSnippet />
101+
102+
## Get User Info
103+
104+
<UserInfoSnippet />
105+
106+
## Get Account
107+
108+
<GetAccountSnippet />
109+
110+
## Get Balance
111+
112+
<GetBalanceSnippet />
113+
114+
## Send Transaction
115+
116+
<SendTransactionSnippet />
117+
118+
## Sign a message
119+
120+
<SignMessageSnippet />
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
title: Integrate Web3Auth with the Chiliz Blockchain in Unity
3+
sidebar_label: Unity
4+
image: "banners/chiliz.png"
5+
6+
keywords: [unity, chiliz, web3auth, authentication, blockchain]
7+
description: "Integrate Web3Auth with the Chiliz Blockchain in Unity | Documentation - Web3Auth"
8+
---
9+
10+
import InstallationSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-installation.mdx";
11+
import GetAccountSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-get-account.mdx";
12+
import UserInfoSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-user-info.mdx";
13+
import GetBalanceSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-get-balance.mdx";
14+
import InitialisationSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-initialisation.mdx";
15+
import SignMessageSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-sign-message.mdx";
16+
import SendTransactionSnippet from "@site/src/common/docs/unity-connect-blockchain/_evm-send-transaction.mdx";
17+
import Tabs from "@theme/Tabs";
18+
import TabItem from "@theme/TabItem";
19+
import SEO from "@site/src/components/SEO";
20+
21+
<SEO
22+
title="Integrate Web3Auth with the Chiliz Blockchain in Unity"
23+
description="Integrate Web3Auth with the Chiliz Blockchain in Unity | Documentation - Web3Auth"
24+
image="https://web3auth.io/docs/banners/chiliz.png"
25+
slug="/connect-blockchain/evm/chiliz/unity"
26+
/>
27+
28+
While using the Web3Auth Unity SDK, you get the private key within the user scope. This private key
29+
can interact with the [Nethereum Library](https://nethereum.com/) to make EVM-based blockchain
30+
calls, like getting the user's `account`, fetching `balance`, `signing transaction`,
31+
`sending transactions`, `reading` from and `writing` to smart contracts. We have highlighted a few
32+
examples to get you started.
33+
34+
## Installation
35+
36+
<InstallationSnippet />
37+
38+
## Chain Details for Chiliz
39+
40+
<Tabs
41+
defaultValue="mainnet"
42+
values={[
43+
{ label: "Mainnet", value: "mainnet", },
44+
{ label: "Testnet", value: "testnet", },
45+
]}
46+
>
47+
<TabItem
48+
value="mainnet"
49+
>
50+
51+
- Chain ID: 0x15B38
52+
- Public RPC URL: https://rpc.ankr.com/chiliz (Avoid using public rpcTarget in production, use
53+
services like Infura, Quicknode, etc.)
54+
- Alternate RPC URL: https://chiliz.publicnode.com
55+
- Display Name: Chiliz Mainnet
56+
- Block Explorer Link: https://chiliscan.com
57+
- Alternate Block Explorer: https://scan.chiliz.com
58+
- Ticker: CHZ
59+
- Ticker Name: Chiliz
60+
61+
</TabItem>
62+
63+
<TabItem
64+
value="testnet"
65+
>
66+
67+
- Chain ID: 0x15B42
68+
- Public RPC URL: https://spicy-rpc.chiliz.com/ (Avoid using public rpcTarget in production, use
69+
services like Infura, Quicknode, etc.)
70+
- Alternate RPC URL: https://chiliz-spicy.publicnode.com
71+
- RPC Websocket URL: wss://spicy-rpc-ws.chiliz.com/
72+
- Alternate Websocket URL: wss://chiliz-spicy.publicnode.com
73+
- Display Name: Chiliz Spicy Testnet
74+
- Block Explorer Link: https://testnet.chiliscan.com/
75+
- Alternate Block Explorer: http://spicy-explorer.chiliz.com/
76+
- Ticker: CHZ
77+
- Ticker Name: Chiliz (Testnet)
78+
79+
</TabItem>
80+
</Tabs>
81+
82+
## Initialize
83+
84+
<InitialisationSnippet />
85+
86+
## Get User Info
87+
88+
<UserInfoSnippet />
89+
90+
## Get Account
91+
92+
<GetAccountSnippet />
93+
94+
## Get Balance
95+
96+
<GetBalanceSnippet />
97+
98+
## Sign a message
99+
100+
<SignMessageSnippet />
101+
102+
## Send Transaction
103+
104+
<SendTransactionSnippet />

0 commit comments

Comments
 (0)