transactionStatus

Gets the current transaction status based on its ID.

Example

You can explore the full code for this example in Github.

export async function getStatus(id: string) {
  const response = await basehub().mutation({
    transactionStatus: {
      __args: {
        id,
      },
    },
  });

  return response.transactionStatus;
}