Page cover image

Transact (with a Session)

  1. To transact with a session, create a method and pass an EosSharp Action-Object to it.

  2. Call the method await LinkSession.Transact(new TransactArgs(){Action = action) to attempt the transaction.

  3. When this method is called from your UI or another script, the Transport will display a prompt and ask the user to sign the transaction containing the Action passed (without requiring the user to log in again).

internal async Task TransactWithoutSession(EosSharp.Core.Api.v1.Action action)
{
	var transactResult = await mySession.Transact(new TransactArgs() { Action = action });
	Debug.Log($"Transaction broadcast! {transactResult.Processed}");
}

Last updated