Skip to content

VeChain implementation in .NET Core

License

Notifications You must be signed in to change notification settings

lspz/VeChainCore

 
 

Repository files navigation

Build Status Dotnet

VeChainCore

VeChainCore is a VeChain API implementation in .NET Core. It simply wraps the already friendly RESTful web API in some C# magic. The project is designed to be used in other applications and speed up the development process by letting you focus on the flashy stuff not just the invisible back-end processes.

Prerequisites

For the application to interact with the VeChain blockchain it is needed that you have http access to a running node instance. To run a node on a device install Thor-Sync or run a node using the VeChain node source code.

Usage

Simply create a new instance of the VeChainClient and direct it to your hosted VeChain instance. Be aware, VeChainCore does not provide the blockchain itself and will not work without an instance of the VeChain blockchain!

var vechainClient = new VeChainClient();
vechainClient.SetBlockchainAddress("http://localhost:8669");

This client can then be used to interact with the blockchain, for instance getting a block by its block id. The following code retrieves the genesis block for us as a Block object.

Block genesis = vechainClient.GetBlock(0)

Pull Requests

Pull requests are always welcome. If you feel that the project should have more features or you think you found a bug in the code, please let me know with an issue or fix it yourself and send a pull request.

About

VeChain implementation in .NET Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%