Skip to main content

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:


_10
import * as sdk from "@onflow/sdk"
_10
_10
sdk.getTransactionStatus(transactionId)

Or import directly the specific function:


_10
import { getTransactionStatus } from "@onflow/sdk"
_10
_10
getTransactionStatus(transactionId)

Usage


_10
import * as fcl from "@onflow/fcl";
_10
_10
const 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


_10
export type InteractionBuilderFn = (
_10
ix: Interaction
_10
) => Interaction | Promise<Interaction>


Rate this page