Skip to content

Connect a .NET Library to VARA in Unity

VladyslavLapin edited this page May 6, 2024 · 2 revisions

How to Connect a .NET Library to VARA in Unity

Here are the main ways you can connect a library to Unity:

  1. Using NuGet:
  • The VARA RPC API supports NuGet which can be used to interact with the VARA network from Unity.
  • You need to install Vara.Core package in Manage NuGet Packages.
  • You can use docs in NuGet official site: https://www.nuget.org/
  1. Using gRPC:
  • The VARA RPC API supports gRPC, which can be used to interact with the VARA network from Unity.
  • You will need to generate gRPC client libraries for .NET from the VARA API protobuf description.
  • Protobuf description of the VARA API: https://github.com/gear-foundation/vara-wiki
  • Once you have generated the gRPC client libraries, you can use them to send requests to the VARA RPC API and receive responses.
  1. Using the HTTP API:
  • The VARA RPC API is also available over HTTP.
  • You can use the standard Unity HTTP libraries to send requests to the VARA RPC API and receive responses.