Integrate Embedded Wallets with the Zetachain Blockchain in Unity
While using the Web3Auth Unity SDK, you get the private key within the user scope. This private key can interact with the Nethereum Library to make EVM based blockchain calls, like getting user's account, fetch balance, sign transaction, send transaction, read from and write to the smart contract, etc. We have highlighted a few here for getting you started quickly on that.
Chain Details for Zetachain
- Mainnet
- Chain ID: 0x1B58
- Public RPC URL: https://zetachain-mainnet.g.allthatnode.com/archive/evm
- Display Name: ZetaChain Mainnet
- Block Explorer Link: https://zetachain.blockscout.com
- Ticker: ZETA
- Ticker Name: ZetaChain
Installation
In this reference, we're using the Nethereum library to demonstrate how to make blockchain calls
using it with Web3Auth.
Package installation instructions (Official repository)
Install via Package Manager using OpenUpm
-
open Edit/Project Settings/Package Manager
-
add a new Scoped Registry (or edit the existing OpenUPM entry)
-
Name package.openupm.com
-
Scope(s) com.nethereum.unity
-
-
click Save or Apply
-
Open Window/Package Manager
-
click +
-
select Add package by name... or Add package from git URL...
-
paste com.nethereum.unity into name
-
paste 4.19.2 into version (or your preferred one)
-
click Add