Unity
Before using, please review the prerequisites
All unity SDKs are open source, click here to view

Init

public void Init()
{
var metadata = DAppMetadata.Create("Particle Connect",
"https://connect.particle.network/icons/512.png",
"https://connect.particle.network");
ParticleNetwork.Init(_chainInfo);
ParticleConnectInteraction.Init(_chainInfo, metadata);
}
public void NavigatorWallet()
{
// If you want to navigator wallet token, set display to 0
// If you want to navigator wallet NFT, set display to 1
int display = 0;
ParticleWalletGUI.NavigatorWallet(display);
}
public void NavigatorTokenReceive()
{
// If you want to test solana, your should replace under value with solana test account.
// Navigator to token receive page
// This is ChainLink Token in Ethereum Gnerli
string tokenAddress = TestAccount.EVM.TokenContractAddress;
ParticleWalletGUI.NavigatorTokenReceive(tokenAddress);
}
public void NavigatorTokenSend()
{
// If you want to test solana, your should replace under value with solana test account.
// This is ChainLink Token in Ethereum Gnerli
string tokenAddress = TestAccount.EVM.TokenContractAddress;
// Another receiver address
string toAddress = TestAccount.EVM.ReceiverAddress;
// Send amount
string amount = "1000000000";
ParticleWalletGUI.NavigatorTokenSend(tokenAddress, toAddress, amount);
}
public void NavigatorTokenTransactionRecords()
{
// If you want to test solana, your should replace under value with solana test account.
// This is ChainLink Token in Ethereum Gnerli
string tokenAddress = TestAccount.EVM.TokenContractAddress;
ParticleWalletGUI.NavigatorTokenTransactionRecords(tokenAddress);
}
public void NavigatorNFTSend()
{
// If you want to test solana, your should replace under value with solana test account.
// This is a test NFT
string mint = TestAccount.EVM.NFTContractAddress;
string tokenId = TestAccount.EVM.NFTTokenId;
string receiveAddress = "";
ParticleWalletGUI.NavigatorNFTSend(mint, tokenId, receiveAddress);
}
public void NavigatorNFTDetails()
{
// If you want to test solana, your should replace under value with solana test account.
// This is a test NFT
string mint = TestAccount.EVM.NFTContractAddress;
string tokenId = TestAccount.EVM.NFTTokenId;
ParticleWalletGUI.NavigatorNFTDetails(mint, tokenId);
}
public void NavigatorPay()
{
ParticleWalletGUI.NavigatorPay();
}
public async void NavigatorLoginList()
{
var nativeResultData = await ParticleWalletGUI.Instance.NavigatorLoginList();
if (nativeResultData.isSuccess)
{
Debug.Log(nativeResultData.data);
}
else
{
var errorData = JsonConvert.DeserializeObject<NativeErrorData>(nativeResultData.data);
Debug.Log(errorData);
}
}
public void NavigatorSwap()
{
ParticleWalletGUI.NavigatorSwap();
}
Last modified 23d ago
Copy link
On this page
Init
Navigator Wallet
Navigator Token Receive
Navigator Token Send
Navigator Token Transaction Records
Navigator NFT Send
Navigator NFT Details
Navigator Pay
Navigator Login List
Navigator Swap