First steps with the VEDriversLite

Are you deveveloper? It will be very easy to understand how to use the VEDriversLite package in your application code.
Example is created in the C#

First Steps With VEDriversLite

Install package to your project

  1. Open Visual Studio IDE
  2. Create New Project
  3. Select Console Application .NET Core (3.1 or 5.0)
  4. Right click to your new project in the “Solution Explorer” -> “Manage Nuget Packages…”
  5. Browse for VEDriversLite and click to “Install”
  6. Add “using VEDriversLite;” to top of your Program.cs

Create new Neblio Address

  1. Create NeblioAccount class instance
  2. Call CreateNewAccount Function with your new password as parameter
  3. If you pass as second parameter true, new account key is encrypted with password and stored in key.txt in root folder of the app.
  4. Thats all. Now you can send Neblio and tokens to this address (please visit VENFT page for the airdrop).

Send Blockchain Transaction

  1. If you have key.txt file with your address private key you can load it.
  2. Call LoadAccount with the password as parameter (you must have key.txt in the root folder of the app)
  3. Define receiver of the transaction.
  4. Call SendNeblioPayment with: receiver, amount of Neblio and optional message as parameters.
  5. Check result and display new transaction id.

Create NFT

  1. If you have key.txt file with your address private key you can load it.
  2. Call LoadAccount with the password as parameter (you must have key.txt in the root folder of the app)
    Add “using
  3. VEDriversLite.NFT;” to top of your Program.cs
  4. Create empty instance of some NFT carrier class (ImageNFT, PostNFT, MessageNFT, etc.)
  5. Fill the parameters what you need to fill – most of them are optional (details in class descriptions)
  6. Call MintNFT with: NFT carrier as parameter.Check result and display new transaction id of this NFT.

Load NFT

  1. For display the NFT you do not need to init the account.
  2. Call the NFTFactory fucntion GetNFT with txid of the NFT you want to load.
  3. These parameters will load NFT data and wait for whole load even the origin of the NFT must be found (other load parameters you can explore later).
  4. Display the data of the loaded NFT.

Explore More functions

VEFramework is big environment. You can find more functions on project Wiki.