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 fcl from '@onflow/fcl';_10_10fcl.getTransactionStatus(transactionId);
Or import directly the specific function:
_10import { getTransactionStatus } from '@onflow/fcl';_10_10getTransactionStatus(transactionId);
Usage
_10import * as fcl from '@onflow/fcl';_10_10const status = await fcl_10 .send([_10 fcl.getTransactionStatus(_10 '9dda5f281897389b99f103a1c6b180eec9dac870de846449a302103ce38453f3',_10 ),_10 ])_10 .then(fcl.decode);
Parameters
transactionId
- Type:
string
- Description: The id of the transaction to get the status of
Returns
_10export type InteractionBuilderFn = (_10 ix: Interaction,_10) => Interaction | Promise<Interaction>;
A function that processes an interaction object