transaction
¤
Protocols for building and executing transactions in the Fluree ledger.
Classes:
-
TransactionBuilder–Protocol for building transaction operations.
-
TransactionReadyToCommit–Protocol for transaction operations ready to be committed.
TransactionBuilder
¤
Bases: SupportsContext['TransactionBuilder'], SupportsInsert['TransactionReadyToCommit'], SupportsWhere['TransactionBuilder'], Protocol
Protocol for building transaction operations.
TransactionReadyToCommit
¤
Bases: SupportsRequestCreation, SupportsCommitable, SupportsContext['TransactionReadyToCommit'], SupportsWhere['TransactionReadyToCommit'], HasInsertData, Protocol
Protocol for transaction operations ready to be committed.
Methods:
acommit
async
¤
acommit() -> FlureeResponse
Executes the transaction asynchronously.
Raises:
-
RequestError–If the HTTP request fails.
-
TypeError–If the type parameter cannot be resolved.
commit
¤
commit() -> FlureeResponse
Executes the transaction synchronously.
Raises:
-
RequestError–If the HTTP request fails.
-
TypeError–If the type parameter cannot be resolved.