Page cover image

Bid Name

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

// bid name using a session
async Task BidName(string nameToBid , string bidAmount )
{
    //Create an action object
    var action = new EosSharp.Core.Api.v1.Action()
    {
      account = "eosio",
      name = "bidname",
      authorization = new List<PermissionLevel>() { _session.Auth },
      data = new Dictionary<string, object>
      {
         { "newname", nameToBid },
         { "bidder", UiToolkitExample.Account },
         { "bid", bidAmount }
      }
    };
		
    // Sign with the action created
    _cloudWalletPlugin.Sign(new[] { action });
}

Last updated