Skip to content

Commit

Permalink
Merge pull request #923 from Web3Auth/new-evm-chains-addition
Browse files Browse the repository at this point in the history
added zircuit, aleph and mint chains
  • Loading branch information
ihsraham authored Sep 24, 2024
2 parents cf2b02e + dc13c58 commit 24d0202
Show file tree
Hide file tree
Showing 29 changed files with 2,316 additions and 0 deletions.
73 changes: 73 additions & 0 deletions docs/connect-blockchain/evm/aleph-zero/aleph-zero.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
title: Integrate Web3Auth with the Aleph Zero Blockchain
hide_table_of_contents: true

image: "banners/aleph-zero.png"
description: "Integrate Web3Auth with the Aleph zero Blockchain | Documentation - Web3Auth"
---

import Tiles from "@theme/Tiles";
import SEO from "@site/src/components/SEO";

<SEO
title="Integrate Web3Auth with the Aleph zero Blockchain"
description="Integrate Web3Auth with the Aleph zero Blockchain | Documentation - Web3Auth"
image="https://web3auth.io/docs/banners/aleph-zero.png"
slug="/connect-blockchain/evm/aleph-zero"
/>

Integrate Web3Auth seamlessly with EVM-based Aleph zero 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 Alephzero = [
{
name: "",
description: "",
tiles: [
{
key: "web",
title: "Web",
icon: "logo-js.png",
path: "/connect-blockchain/evm/aleph-zero/web",
},
{
key: "android",
title: "Android (Kotlin)",
icon: "logo-android.png",
path: "/connect-blockchain/evm/aleph-zero/android",
},
{
key: "apple",
title: "iOS (Swift)",
icon: "logo-apple.png",
path: "/connect-blockchain/evm/aleph-zero/ios",
},
{
key: "flutter",
title: "Flutter",
icon: "logo-flutter.png",
path: "/connect-blockchain/evm/aleph-zero/flutter",
},
{
key: "react-native",
title: "React Native",
icon: "logo-react.png",
path: "/connect-blockchain/evm/aleph-zero/react-native",
},
{
key: "unity",
title: "Unity",
icon: "logo-unity.png",
path: "/connect-blockchain/evm/aleph-zero/unity",
},
],
},
];

<Tiles tileGroups={Alephzero} />
99 changes: 99 additions & 0 deletions docs/connect-blockchain/evm/aleph-zero/android.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
---
title: Integrate Web3Auth with the Aleph Zero Blockchain in Android
sidebar_label: Android
image: "banners/aleph-zero.png"

keywords: [android, aleph-zero, web3auth, authentication, blockchain]
description:
"Integrate Web3Auth with the Aleph Zero Blockchain in Android | Documentation - Web3Auth"
---

import InstallationSnippet from "@site/src/common/docs/android-connect-blockchain/_evm-installation.mdx";
import GetAccountSnippet from "@site/src/common/docs/android-connect-blockchain/_evm-get-account.mdx";
import UserInfoSnippet from "@site/src/common/docs/android-connect-blockchain/_evm-user-info.mdx";
import GetBalanceSnippet from "@site/src/common/docs/android-connect-blockchain/_evm-get-balance.mdx";
import InitialisationSnippet from "@site/src/common/docs/android-connect-blockchain/_evm-initialisation.mdx";
import SignMessageSnippet from "@site/src/common/docs/android-connect-blockchain/_evm-sign-message.mdx";
import SendTransactionSnippet from "@site/src/common/docs/android-connect-blockchain/_evm-send-transaction.mdx";
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import SEO from "@site/src/components/SEO";

<SEO
title="Integrate Web3Auth with the Aleph Zero Blockchain in Android"
description="Integrate Web3Auth with the Aleph Zero Blockchain in Android | Documentation - Web3Auth"
image="https://web3auth.io/docs/banners/aleph-zero.png"
slug="/connect-blockchain/evm/aleph-zero/android"
/>

While using the Web3Auth Android SDK, you get the private key and sessionId within the user scope.
This private key can interact with [Aleph Zero Blockchain](https://alephzero.org) to make any
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

<InstallationSnippet />

## Chain Details for Aleph Zero

<Tabs
defaultValue="mainnet"
values={[
{ label: "Mainnet", value: "mainnet", },
{ label: "Testnet", value: "testnet", },
]}
>
<TabItem
value="mainnet"
>

- Chain ID: 0xA1EF
- Public RPC URL: https://rpc.alephzero.raas.gelato.cloud (Avoid using public rpcTarget in
production, use services like Infura, Quicknode etc)
- Display Name: Aleph Zero Mainnet
- Block Explorer Link: https://evm-explorer.alephzero.org
- Ticker: AZERO
- Ticker Name: Aleph Zero

</TabItem>

<TabItem
value="testnet"
>

- Chain ID: 0x7F7
- Public RPC URL: https://rpc.alephzero-testnet.gelato.digital (Avoid using public rpcTarget in
production, use services like Infura, Quicknode etc)
- Display Name: Aleph Zero Testnet
- Block Explorer Link: https://evm-explorer-testnet.alephzero.org/
- Ticker: AZERO
- Ticker Name: Aleph Zero

</TabItem>
</Tabs>

## Initialize

<InitialisationSnippet />

## Get User Info

<UserInfoSnippet />

## Get Account

<GetAccountSnippet />

## Get Balance

<GetBalanceSnippet />

## Send Transaction

<SendTransactionSnippet />

## Sign a message

<SignMessageSnippet />
119 changes: 119 additions & 0 deletions docs/connect-blockchain/evm/aleph-zero/flutter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
---
title: Integrate Web3Auth with the Aleph Zero Blockchain in Flutter
sidebar_label: Flutter
image: "banners/aleph-zero.png"

keywords: [flutter, aleph-zero, web3auth, authentication, blockchain]
description:
"Integrate Web3Auth with the Aleph Zero Blockchain in Flutter | Documentation - Web3Auth"
---

import InstallationSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-installation.mdx";
import GetAccountSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-get-account.mdx";
import UserInfoSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-user-info.mdx";
import GetBalanceSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-get-balance.mdx";
import InitialisationSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-initialisation.mdx";
import SignTransactionSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-sign-transaction.mdx";
import SendTransactionSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-send-transaction.mdx";
import TestContractSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-test-contract.mdx";
import DeployContractSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-deploy-contract.mdx";
import ReadContractSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-read-contract.mdx";
import WriteContractSnippet from "@site/src/common/docs/flutter-connect-blockchain/_evm-write-contract.mdx";
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import SEO from "@site/src/components/SEO";

<SEO
title="Integrate Web3Auth with the Aleph Zero Blockchain in Flutter"
description="Integrate Web3Auth with the Aleph Zero Blockchain in Flutter | Documentation - Web3Auth"
image="https://web3auth.io/docs/banners/aleph-zero.png"
slug="/connect-blockchain/evm/aleph-zero/flutter"
/>

While using the Web3Auth Flutter SDK, you get the private key within the user scope. This private
key can interact with [Aleph Zero Blockchain](https://alephzero.org) to make any 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

<InstallationSnippet />

## Chain Details for Aleph Zero

<Tabs
defaultValue="mainnet"
values={[
{ label: "Mainnet", value: "mainnet", },
{ label: "Testnet", value: "testnet", },
]}
>
<TabItem
value="mainnet"
>

- Chain ID: 0xA1EF
- Public RPC URL: https://rpc.alephzero.raas.gelato.cloud (Avoid using public rpcTarget in
production, use services like Infura, Quicknode etc)
- Display Name: Aleph Zero Mainnet
- Block Explorer Link: https://evm-explorer.alephzero.org
- Ticker: AZERO
- Ticker Name: Aleph Zero

</TabItem>

<TabItem
value="testnet"
>

- Chain ID: 0x7F7
- Public RPC URL: https://rpc.alephzero-testnet.gelato.digital (Avoid using public rpcTarget in
production, use services like Infura, Quicknode etc)
- Display Name: Aleph Zero Testnet
- Block Explorer Link: https://evm-explorer-testnet.alephzero.org/
- Ticker: AZERO
- Ticker Name: Aleph Zero

</TabItem>
</Tabs>

## Initialize

<InitialisationSnippet />

## Get User Info

<UserInfoSnippet />

## Get Account

<GetAccountSnippet />

## Get Balance

<GetBalanceSnippet />

## Send Transaction

<SendTransactionSnippet />

## Sign Transaction

<SignTransactionSnippet />

## Smart Contract

<TestContractSnippet />

### Deploy Contract

<DeployContractSnippet />

### Read From Contract

<ReadContractSnippet />

### Write to Contract

<WriteContractSnippet />
100 changes: 100 additions & 0 deletions docs/connect-blockchain/evm/aleph-zero/ios.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
---
title: Integrate Web3Auth with the Aleph Zero Blockchain in iOS/Swift Applications
sidebar_label: iOS
image: "/docs/banners/aleph-zero.png"

keywords: [ios, swift, aleph-zero, web3auth, authentication, blockchain]
description:
"Integrate Web3Auth with the Aleph Zero Blockchain in iOS/Swift Applications | Documentation -
Web3Auth"
---

import InstallationSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-installation.mdx";
import GetAccountSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-get-account.mdx";
import UserInfoSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-user-info.mdx";
import GetBalanceSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-get-balance.mdx";
import InitialisationSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-initialisation.mdx";
import SignMessageSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-sign-message.mdx";
import SendTransactionSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-send-transaction.mdx";
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import SEO from "@site/src/components/SEO";

<SEO
title="Integrate Web3Auth with the Aleph Zero Blockchain in iOS/Swift Applications"
description="Integrate Web3Auth with the Aleph Zero Blockchain in iOS/Swift Applications | Documentation - Web3Auth"
image="https://web3auth.io/docs/banners/aleph-zero.png"
slug="/connect-blockchain/evm/aleph-zero/ios"
/>

While using the Web3Auth iOS SDK, you get the private key within the user scope. This private key
can interact with [Aleph Zero Blockchain](https://alephzero.org) to make any blockchain calls, like
getting the user's `account`, fetching `balance`, signing transactions, sending transactions, and
interacting with smart contracts. We have highlighted a few examples to get you started quickly on
that.

## Installation

<InstallationSnippet />

## Chain Details for Aleph Zero

<Tabs
defaultValue="mainnet"
values={[
{ label: "Mainnet", value: "mainnet", },
{ label: "Testnet", value: "testnet", },
]}
>
<TabItem
value="mainnet"
>

- Chain ID: 0xA1EF
- Public RPC URL: https://rpc.alephzero.raas.gelato.cloud (Avoid using public rpcTarget in
production, use services like Infura, Quicknode etc)
- Display Name: Aleph Zero Mainnet
- Block Explorer Link: https://evm-explorer.alephzero.org
- Ticker: AZERO
- Ticker Name: Aleph Zero

</TabItem>

<TabItem
value="testnet"
>

- Chain ID: 0x7F7
- Public RPC URL: https://rpc.alephzero-testnet.gelato.digital (Avoid using public rpcTarget in
production, use services like Infura, Quicknode etc)
- Display Name: Aleph Zero Testnet
- Block Explorer Link: https://evm-explorer-testnet.alephzero.org/
- Ticker: AZERO
- Ticker Name: Aleph Zero

</TabItem>
</Tabs>

## Initialize

<InitialisationSnippet />

## Get User Info

<UserInfoSnippet />

## Get Account

<GetAccountSnippet />

## Get Balance

<GetBalanceSnippet />

## Send Transaction

<SendTransactionSnippet />

## Sign a message

<SignMessageSnippet />
Loading

0 comments on commit 24d0202

Please sign in to comment.