The unofficial Moralis Unity SDK to easily access web3 data for building web3 games, wallets, marketplaces and more...
- Register for Moralis to get an API key
- Create a MoralisConfig in Resources folder (Assets -> Create -> Scriptable Objects -> Moralis Config)
- Set your MoralisConfig Api Key (for development only, exposes API key in the game client)
- Open MoralisDemo scene
- Run the game and view logs
- Download the latest version of Moralis-Unity-ProxyServer
- Setup and run the proxy server with USE_AUTH = false
- Disable The Moralis ApiKeyAuthentication component
- Enable the Moralis ProxyServerAuthentication component
- Run game and view logs
- Download the latest version of Moralis-Unity-ProxyServer
- Setup and run the proxy server with USE_AUTH = true
- Download Metamask from the Unity Asset Store
- Add MetamaskUnity component to the scene
- Disable the Moralis ApiKeyAuthentication component
- Enable the Moralis ProxyServerAuthentication component
- Disable the Moralis ProxyServerAuthentication.InitWithoutAuth
- Add METAMASK scripting define symbol to Edit -> ProjectSettings -> Player: OtherSettings - Scripting Define Symbols
- Run game, login with metamask mobile wallet, view logs
All API calls are the same as Node.js in the Official Moralis Documentation