cover | coverY |
---|---|
../.gitbook/assets/UNITY3DxWAX-1920x360_Devs_03.png |
0 |
- To transact with a session, create a method and pass an EosSharp Action-Object to it.
- Call the method
await LinkSession.Transact(new TransactArgs(){Action = action)
to attempt the transaction. - 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}");
}