getTransactionStatus
A builder function that returns the status of transaction.
The transaction id provided must be from the current spork.
Consider using 'fcl.tx(id)' instead of calling this method directly for real-time transaction monitoring.
Import
You can import the entire package and access the function:
_10import * as sdk from "@onflow/sdk"_10_10sdk.getTransactionStatus(transactionId)
Or import directly the specific function:
_10import { getTransactionStatus } from "@onflow/sdk"_10_10getTransactionStatus(transactionId)
Usage
_10import * as fcl from "@onflow/fcl";_10_10const status = await fcl.send([_10 fcl.getTransactionStatus("9dda5f281897389b99f103a1c6b180eec9dac870de846449a302103ce38453f3")_10]).then(fcl.decode);
Parameters
transactionId
- Type:
string
- Description: The id of the transaction to get the status of
Returns
InteractionBuilderFn
_10export type InteractionBuilderFn = (_10 ix: Interaction_10) => Interaction | Promise<Interaction>