Unity FlowSDK 2.0.0
FLOW Unity SDK
Loading...
Searching...
No Matches
DapperLabs.Flow.Sdk.Transactions Class Reference

Functions relating to Flow Transactions More...

Static Public Member Functions

static void ResetSequenceTracking ()
 Used to reset sequence tracking data. Used when resetting emulator state because sequence numbers will reset at that point. More...
 
static async Task< FlowTransactionResponseSubmit (string script, List< CadenceBase > arguments=null)
 Submits a transaction to the blockchain More...
 
static async Task< FlowTransactionResultSubmitAndWaitUntilExecuted (string script, params CadenceBase[] arguments)
 Submits a transaction to the blockchain and waits until executed before returning More...
 
static async Task< FlowTransactionResultSubmitAndWaitUntilSealed (string script, params CadenceBase[] arguments)
 Submits a transaction to the blockchain and waits until sealed before returning More...
 
static async Task< FlowTransactionResultSubmitAndWaitUntilExecuted (Action< string > onSubmitSuccess, string script, params CadenceBase[] arguments)
 Submits a transaction to the blockchain and waits until executed before returning More...
 
static async Task< FlowTransactionResultSubmitAndWaitUntilSealed (Action< string > onSubmitSuccess, string script, params CadenceBase[] arguments)
 Submits a transaction to the blockchain and waits until sealed before returning More...
 
static async Task< FlowTransactionGetById (string transactionId)
 Gets a transaction by its ID More...
 
static async Task< FlowTransactionResultGetResult (string transactionId)
 Gets the result of a transaction More...
 

Detailed Description

Functions relating to Flow Transactions

Member Function Documentation

◆ GetById()

static async Task< FlowTransaction > DapperLabs.Flow.Sdk.Transactions.GetById ( string  transactionId)
inlinestatic

Gets a transaction by its ID

Parameters
transactionIdThe ID of the transaction
Returns
A Task that will resolve into a FlowTransaction when complete

◆ GetResult()

static async Task< FlowTransactionResult > DapperLabs.Flow.Sdk.Transactions.GetResult ( string  transactionId)
inlinestatic

Gets the result of a transaction

Parameters
transactionIdThe ID of the transaction
Returns
A Task that will resolve into a FlowTransactionResult when complete

◆ ResetSequenceTracking()

static void DapperLabs.Flow.Sdk.Transactions.ResetSequenceTracking ( )
inlinestatic

Used to reset sequence tracking data. Used when resetting emulator state because sequence numbers will reset at that point.

◆ Submit()

static async Task< FlowTransactionResponse > DapperLabs.Flow.Sdk.Transactions.Submit ( string  script,
List< CadenceBase arguments = null 
)
inlinestatic

Submits a transaction to the blockchain

Parameters
scriptThe text contents of the transaction to execute
argumentsCadence arguments that will be passed to the transaction
Returns
A Task that will resolve to a FlowTransactionResponse upon completion

◆ SubmitAndWaitUntilExecuted() [1/2]

static async Task< FlowTransactionResult > DapperLabs.Flow.Sdk.Transactions.SubmitAndWaitUntilExecuted ( Action< string >  onSubmitSuccess,
string  script,
params CadenceBase[]  arguments 
)
inlinestatic

Submits a transaction to the blockchain and waits until executed before returning

Parameters
onSubmitSuccessCallback that will be called once the transaction is successfully submitted, passes in the transaction ID as a parameter
scriptThe text contents of the transaction to execute
argumentsCadence arguments that will be passed to the transaction
Returns
A Task that will resolve to a FlowTransactionResult upon completion

◆ SubmitAndWaitUntilExecuted() [2/2]

static async Task< FlowTransactionResult > DapperLabs.Flow.Sdk.Transactions.SubmitAndWaitUntilExecuted ( string  script,
params CadenceBase[]  arguments 
)
inlinestatic

Submits a transaction to the blockchain and waits until executed before returning

Parameters
scriptThe text contents of the transaction to execute
argumentsCadence arguments that will be passed to the transaction
Returns
A Task that will resolve to a FlowTransactionResult upon completion

◆ SubmitAndWaitUntilSealed() [1/2]

static async Task< FlowTransactionResult > DapperLabs.Flow.Sdk.Transactions.SubmitAndWaitUntilSealed ( Action< string >  onSubmitSuccess,
string  script,
params CadenceBase[]  arguments 
)
inlinestatic

Submits a transaction to the blockchain and waits until sealed before returning

Parameters
onSubmitSuccessCallback that will be called once the transaction is successfully submitted, passes in the transaction ID as a parameter
scriptThe text contents of the transaction to execute
argumentsCadence arguments that will be passed to the transaction
Returns
A Task that will resolve to a FlowTransactionResult upon completion

◆ SubmitAndWaitUntilSealed() [2/2]

static async Task< FlowTransactionResult > DapperLabs.Flow.Sdk.Transactions.SubmitAndWaitUntilSealed ( string  script,
params CadenceBase[]  arguments 
)
inlinestatic

Submits a transaction to the blockchain and waits until sealed before returning

Parameters
scriptThe text contents of the transaction to execute
argumentsCadence arguments that will be passed to the transaction
Returns
A Task that will resolve to a FlowTransactionResult upon completion