Coder Social home page Coder Social logo

unity-sollana-wallet's Introduction

Unity-Solana Wallet The First Open-Source Unity-Solana Wallet with NFT support solana

The Unity-Solana Wallet is an essential bridge connecting game developers and the Solana blockchain. With Solana’s quick and low-cost transactions, games can start using blockchain technology like never before - in real-time. Thousands of developers will bring millions of players into the Solana ecosystem. This will, in turn, make the Solana projects benefit from an increased number of participants, and cross-protocol interoperability in games will take us beyond the current understanding of DeFi.

Unity-Solana Wallet uses Solnet's implementation .NET SDK, but we had to modify the library to make it Unity compatible with .NET Standard 2.0 and .NET 4.x. Solnet is Solana's .NET SDK to integrate with the .NET ecosystem. Solnet.

video.mp4

Features Create/Backup wallet with mnemonic phrase Account handling Transaction building SOL balance SPL-token balances SPL-token transfers Basic UI examples WebSocket subscription Save and load mnemonics from local txt file Save private key in txt file Dependencies Newtonsoft.Json Chaos.NaCl.Standard Portable.BouncyCastle Zxing External packages Native File Picker Standalone File Browser Roadmap Multiple wallet accounts Camera support with QR code scanning for token transfers Improved UI for in-game easy integration Metaplex NFT / NFT-PRO support with GameObjects Token swaps NFT swaps One-click in-game currency creator Themed UI support Metaplex auctions for in-game store items Installation Clone this repository outside of the main Unity project Go to Package Manager in your project Click on the plus in the top left corner and select "Add package from disk" Select package.json file from a cloned dir Once the package is installed, in the Package Manager inspector you will have Samples. Click on Import Step-by-step instructions If you have an older version of Unity that doesn't have imported Newtonsoft.Json just import it. After importing the wallet Unity will throw unity-plastic error. Just restart Unity. Create a new scene. Phantom-SOL

Import WalletController prefab into your scene. Set Client Source (Mainnet/Testnet/Devnet/Custom uri) and Storage Method (Json/Simple txt) on SimpleWallet script in WalletController prefab. If you use custom URI be careful to use WS/WSS instead of HTTP/HTTPS because WebSocket does not work with HTTP / HTTPS. To save mnemonics in JSON format, select the JSON storage method, and if you want to save it as a regular string, select Simple Txt. If you want to use mnemonics saved in JSON format, you must deserialize it first. You have an example in ReGenerateAccountScreen.cs in the ResolveMnemonicsByType method. Create new Canvas Import WalletHolder prefab into the Canvas or if you want your design just import wallet prefab and customize the scene like we did with WalletHolder.

unity-sollana-wallet's People

Contributors

brotherbro22 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.