In this guide we show how to use it.
A sample application is available at: https://github.com/blocto/blocto-unity-sdk
- .Net Core version >= 2.1
- iOS version >= 13
- Android version >= 7.1
Portto.Blocto.Core and Portto.Blocto.Solana is available through github. You can download at github release page
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.
- Register app id (bloctoSDKAppId) in order to init
BloctoWalletProvider
- Create
BloctoWalletProvider
instance.
using Blocto.Sdk.Core.Extension;
using Blocto.Sdk.Core.Utility;
using Blocto.Sdk.Evm;
var bloctoWalletProvider = BloctoWalletProvider.CreateBloctoWalletProvider(
gameObject: gameObject,
env: EnvEnum.Devnet,
bloctoAppIdentifier:Guid.Parse("{your app id}")
);
bloctoWalletProvider.Chain = [ChainEnum.Ethereum/ChainEnum.BSC/...];
regarding the blockchain supported by Evm SDK, we provide ChainEnum.Ethereum (Ethereum), ChainEnum.BSC (Bsc), ChainEnum.Polygon (Polygon), ChainEnum.Avalanche (Avalanche).
in Ethereumdev
for Goerli and prod
for mainnet.
in BSCdev
for testnet and prod
for mainnet.
in Polygondev
for Mumbai and prod
for mainnet.
in Avalanchedev
for FUJI Testnet and prod
for mainnet.