Blockchain Game SDK
Heathen Engineering's BGSDK Foundation allows you to manage in-game items as blockchain assets. It is a complete wrapper around Arkane Network's Web API.
The BGSDK articles are a work in progress and being updated frequently. If you have any questions at all please reach out over Discord​
Join the Heathen Assets Discord Server!
Discord

Introduction

"Minting" or creating new items (tokens) is a secure operation that cannot be performed from the game/app client.
That is to say, the program that the player is running *cannot* its self create a new token and add it to the users wallet.
Instead you will need to use a trusted system such as a Web Server or Live Operations provider to perform these trusted operations against the Venly Web API.
The purpose of the BGSDK kit at runtime in Unity is to simplify the use of these items in game e.g. to easily query what items a user has and relate that to objects in Unity for gameplay/app execution purposes.
BGSDK kit at dev time, that is within the Unity Editor can be used to perform "trusted" operations such as minting tokens, creating new token and contract types, etc. These operations are made available for testing purposes only and cannot be ran during run time.
Heathen Engineering's BGSDK Foundation allows you to manage in-game items as blockchain assets. It is a complete wrapper around Venly's Web API with regards to client safe operations. The tool simplifies integration with Arkane API exposing all relevant features and functions to C# classes and includes Editor extensions to aid in design and deployment of Contracts and Tokens.
πŸ‘‹ Introduction
Venly API

Requirements

Please note that you will need to register for an account with Venly Network to receive the required Client ID and Secret used by the kit to connect to the Venly Network backend. This must be acquired from Venly Network directly.

Features

The following tables map the Venly Web API functions to corresponding functions in Unity.

User API

2021-10-05
The Venly authentication methods are temporarily deprecated as per Venly request. If you have any questions or need more support around authentication through the Venly APIs please contact Venly.
For the Web API the features are covered under the "How to authenticate" Heathen's wrapper around the web API exposes them as shown below.
Once authenticated the system will maintain the authentication token in memory. You should not need to worry about authenticating the user again after that initial authentication is handled.
Unity SDK
Use
​User.GetProfile​
Fetches information about the authenticated user
Takes access token data in from an outside source
Exchanges a facebook token to authenticate the user

Wallet API

Wallet API features are the core of what you will be using at run time in your game/app. Heathen methods are all part of static classes which assume authentication has already been handled.
Web API
Unity SDK
​Create wallet​
​Wallets.Create​
​Retrieve a wallet​
​Wallets.Git​
​Wallets.List​
​Retrieve NFTs​
​Wallets.NFTs​

NFT API

Token management is a feature of Heathen's editor tools. Most of these features are wrapped up in the BGSDK Settings object and performed in bulk when you synchronize. As editor features they are not available at run time.
Web API
Unity SDK
Create Contract
EditorUtilities.SyncSettings
Retrieve Contract
EditorUtilities.SyncSettings
Retrieve all contracts
EditorUtilities.SyncSettings
Create NFT template
EditorUtilities.SyncSettings
Retrieve NFT template
EditorUtilities.SyncSettings
Retrieve all NFT templates
EditorUtilities.SyncSettings
Retrieve NFT metadata
Coming Soon
Mint NFT
Privileged.MintNonFungibleToken
Mint fungible token
Privileged.MintFungibleToken
Retrieve NFTs by template
EditorUtilities.SyncSettings
Last modified 13d ago