Skip to content

Latest commit

 

History

History
60 lines (36 loc) · 1.89 KB

File metadata and controls

60 lines (36 loc) · 1.89 KB

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.

Package installation instructions

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

Installing package for old version

  • Download the latest net461dllsAOT.zip package from Nethereum's latest release

  • Extract and the rename the folder to NethereumLib for easy identification.

  • Move the folder to the Assets/Plugins folder of your Unity project.

  • You might have to delete a few files from the NethereumLib folder, 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 with System.*, UnityEngine.dll, Nethereum.Web3Lite.dll, Nethereum.HdWallet.dll, NBitcoin.dll, Nethereum.RPC.Reactive.dll and Common.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.

:::