Functions relating to Flow Transactions
More...
Functions relating to Flow Transactions
◆ GetById()
static async Task< FlowTransaction > DapperLabs.Flow.Sdk.Transactions.GetById |
( |
string |
transactionId | ) |
|
|
inlinestatic |
Gets a transaction by its ID
- Parameters
-
transactionId | The 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
-
transactionId | The 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()
Submits a transaction to the blockchain
- Parameters
-
script | The text contents of the transaction to execute |
arguments | Cadence 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
-
onSubmitSuccess | Callback that will be called once the transaction is successfully submitted, passes in the transaction ID as a parameter |
script | The text contents of the transaction to execute |
arguments | Cadence arguments that will be passed to the transaction |
- Returns
- A Task that will resolve to a FlowTransactionResult upon completion
◆ SubmitAndWaitUntilExecuted() [2/2]
Submits a transaction to the blockchain and waits until executed before returning
- Parameters
-
script | The text contents of the transaction to execute |
arguments | Cadence 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
-
onSubmitSuccess | Callback that will be called once the transaction is successfully submitted, passes in the transaction ID as a parameter |
script | The text contents of the transaction to execute |
arguments | Cadence arguments that will be passed to the transaction |
- Returns
- A Task that will resolve to a FlowTransactionResult upon completion
◆ SubmitAndWaitUntilSealed() [2/2]
Submits a transaction to the blockchain and waits until sealed before returning
- Parameters
-
script | The text contents of the transaction to execute |
arguments | Cadence arguments that will be passed to the transaction |
- Returns
- A Task that will resolve to a FlowTransactionResult upon completion