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 a parameter
  3. If your second parameter is true, new account key is encrypted with chosen password and stored in key.txt in root folder of the app.
  4. Now you can send Neblio and tokens to this address (please visit VENFT page for the airdrop).

Send Blockchain Transaction

  1. If you have a key.txt file with your address private key, you can load it.
  2. Call LoadAccount with the chosen password as a parameter (you must have the 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 the 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)
  3. Add “using 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 that you need to fill – most of them are optional (details in class descriptions).
  6. Call MintNFT with: NFT carrier as parameter.
  7. Check the result and display new transaction ID of this NFT.

Load NFT

  1. To display the NFT you don’t need to initialize the account.
  2. Call the NFTFactory‘s fucntion GetNFT with transaction ID of the NFT you want to load.
  3. These parameters load the NFT data and wait for the entire load, even if the origin of the NFT must be found (you can explore other load parameters later).
  4. Display the data of the loaded NFT.

Explore More functions

VEFramework is a big environment. You can find more functions on the Project Wiki.