import CopyableNoFollow from '@site/src/components/CopyableNoFollow'
In this reference, we're using the Nethereum library to demonstrate how to make blockchain calls
using it with Web3Auth.
See the 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
-
URL
-
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
-
Download the latest
net461dllsAOT.zippackage from Nethereum's latest release -
Extract and the rename the folder to
NethereumLibfor easy identification. -
Move the folder to the
Assets/Pluginsfolder of your Unity project. -
You might have to delete a few files from the
NethereumLibfold er, if you're getting any errors while building the project. For our implementation, we deleted the following files:Newtonsoft.Json.dll, all the files starting withSystem.*,UnityEngine.dll,Nethereum.Web3Lite.dll,Nethereum.HdWallet.dll,NBitcoin.dll,Nethereum.RPC.Reactive.dllandCommon.Logging.Core.dll.
:::info
We have followed this guide to set up
the Nethereum package in our app. You can check their sample applications as well for a decent
reference.
You can also check the Web3Auth Unity Sample Apps, where we have added the required packages.
:::