First steps with the VEFramework API

Do you have your own application? Do you write apps in another language? Do not worry, it is amazingly simple to use the blockchain through the VEFramework API.

First Steps With VEFramework API

The Swagger OpenAPI Description

All VEFramework APIs includes OpenAPI Description with use of the Swagger tools. It is simple way how to test the API or create client for specific language.

Main page of Swagger Tools

Page of Swagger Online Editor

Page of Swagger Code Generator

Page with the VENFT App Server API

 

Test Simple Commands

The testing is very simple because for public commands you do not need to be programmer or have already the program.

You can test public commands right from the Swagger UI or with compile own URL address and test it directly:

https://venftappserver.azurewebsites.net/api/GetNFT/d9ec61c0b910adf4748b61dfd3fbd25ce417c1b4c3e7dde193c15e43c3f0fcce

You can test this one: Neblio NFT Data

Or you can call this command directly from the Swagger UI like this:

Browse existing NFTs by pages

VEFramework contains the functions how to obtain all NFTs on specific token or with specific parameters. The list of the NFTs available for sale is one of the example of these kind of the commands. You can browse these NFTs by page with 25 results with use of this command:

https://venftappserver.azurewebsites.net/api/GetPublicSellNFTsPage/1

Create NFT

Minting of the NFTs with API is very simple. You will just fill properties of the new NFT and send them to correct API command such as MintNFTImage, MintNFTMusic, MintNFTTickt, etc. and that is it.

With API you can write transactions into the blockchain. These commands can be public or hidden with credentials.
We recommend you to start own instance of the VENFT App Server which provides this API. Then you can simply use this API based on your own setting.

 

Access API from different Languages

If you have some existing application or you are creating one in the different language than the C#, F# or VB you can use simple http request call to obtain the data from the API.

Here is the example of Python code:

Explore More functions

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