WAX Unity Web3 Suite
Cloud Wallet
Cloud Wallet
  • Getting Started
  • Installation
    • WebGL Installation
    • Mobile Installation
    • Desktop Installation
  • Examples
    • Quick Start
    • Login
    • Transact
    • Token Transfer
    • Vote
    • Manage CPU/NET
    • Sell Ram
    • Buy Ram
    • Bid Name
  • API Docs
    • CloudWalletPlugin
    • CloudWalletErrorEvent
    • CloudWalletLoginEvent
    • CloudWalletSignEvent
    • CloudWalletLogoutEvent
    • CloudWalletInitEvent
    • CloudWalletCreateInfoEvent
    • CloudWalletCreateInfoResult
Powered by GitBook
On this page
Edit on GitHub
  1. Examples

Token Transfer

PreviousTransactNextVote

Last updated 2 years ago

  1. The following example shows how a Token Transfer Action can be created and passed to the Sign-Method of initialized CloudWalletPlugin-Object.

// transfer tokens using a session
private async Task Transfer(string frmAcc, string toAcc, string qnty, string memo)
{
    var action = new EosSharp.Core.Api.v1.Action()
    {
      account = "eosio.token",
      name = "transfer",
      authorization = new List<PermissionLevel>() { _session.Auth },
      data = new Dictionary<string, object>
      {
          {"from", frmAcc},
          {"to", toAcc},
          {"quantity", qnty},
          {"memo", memo}
      }
    };
		
    // Sign 
    _cloudWalletPlugin.Sign(new[] { action });
}
the previously
Page cover image