For the complete documentation index, see llms.txt. This page is also available as Markdown.

Verify a Transaction

Verify that an XL1 transaction reached finalized chain state.

A returned transaction hash proves submission, not finality. Verify the transaction through the SDK viewer and finalized chain state.

const transaction = await gateway.connection.viewer?.transaction.byHash(transactionHash)

Check all of the following:

  • the viewer returned a transaction for the expected hash;

  • the signer and network match the user-approved operation;

  • the expected payload hashes and schemas are present;

  • the containing block is finalized; and

  • every dereferenced application payload passes your schema validator.

Use ExplorerLinks from @xyo-network/xl1-sdk when presenting a human-readable explorer link. Do not hand-build explorer URLs.

Last updated