Getting Started

In this guide we show how to use it.

A sample application is available at: https://github.com/blocto/blocto-unity-sdk

Requirements

  • .Net Core version >= 2.1

  • iOS version >= 13

  • Android version >= 7.1

Release Page

Portto.Blocto.Core and Portto.Blocto.Solana is available through github. You can download at github release page

Import .unitypackage

You can import Custom Packages, which are made by portto using Unity. More description at unity document.

Choose Assets > Import Package > to import both types of package.

Wallet Provider

  1. Register app id (bloctoSDKAppId) in order to init BloctoWalletProvider

  2. Create BloctoWalletProvider instance.

using Blocto.Sdk.Core.Extension;
using Blocto.Sdk.Core.Utility;
using Blocto.Sdk.Aptos;
        
_bloctoWalletProvider = BloctoWalletProvider.CreateBloctoWalletProvider(
            gameObject: gameObject,
            env: EnvEnum.Mainnet,
            bloctoAppIdentifier:Guid.Parse("your appId")
        ); 

Both EnvEnum.Testnet and EnvEnum.Devnet use Aptos testnet.

Last updated