This project is based on NEthereum:
https://github.com/Nethereum/Nethereum/releases/tag/3.0.0-rc1
You can get the necessary DLLs to make the project work here:
https://github.com/Nethereum/Nethereum/releases/download/3.0.0-rc1/unitynet35dlls.zip
Thanks to this plugin you will be able to include Ethereum cryptocurreny and Blockchain signning authentication in your games and applications.
The video tutorials make reference to Bitcoin but the methodology works almost the same way with Ethereum.
-
SET UP THE RUNTIME:
First of all, we make sure that the Scripting Runtime Version: ".NET 4.x Equivalent" in order for the NEthereum DLL to work.
-
INSTALLATION OF NEthereum DLL:
On Visual Studio open the NuGet console and run the command line: "Install-Package Nethereum.Portable"
After installing the DLL you will be able to run the code without problems.
-
GET YOUR OWN KEYS AND SET UP AT AT CLASS: EthereumController.cs
public const string ETHERSCAN_API_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; // Get your own key at: https://etherscan.io public const string INFURA_API_KEY = "YYYYYYYYYYYYYYYYY"; // Get your own key at: https://infura.io/
-
RUN THE SCENE:
Assets\YourEthereumScreens\Scenes\YourEhereumWallet.unity
-
OR FOLLOW THE INSTRUCTIONS OF THIS VIDEO TUTORIAL TO INTEGRATE ETHEREUM IN YOUR APP/GAME:
-
CREATE NEW PROJECT AND IMPORT YourEthereumController PACKAGE
-
DRAG THE PREFABS TO THE SCENE:
Assets\YourEthereumController\Screens\Resources\Prefabs\ScreenEthereumController.prefab Assets\YourEthereumController\Screens\Resources\Prefabs\LanguageController.prefab
-
ADD UI\EventSystem TO THE SCENE.
-
CREATE A NEW GAMEOBJECT AND ATTACH IT A SCRIPT CALLED Example.cs
-
OPEN THE SCRIPT AND ADD THE CODE INSTRUCTION THAT WILL ALLOW YOU TO OPEN THE WALLET SCREEN.
-
FOLLOW THE INSTRUCTIONS IN THE VIDEO TO ADD ETHEREUM FUNDS
-
MODIFY THE SCRIPT AND USE THE INSTRUCTION TO OPEN THE SCREEN THAT WILL ALLOW YOU TO SEND CASH
-
AFTER PERFORMING THE OPERATION YOU CAN CHECK IN TRANSACTIONS' SCREEN THAT THE OPERATION HAS BEEN DONE.