Avalanche SDK Client
    Preparing search index...

    Function getTxStatus

    • Type Parameters

      • chain extends undefined | Chain

      Parameters

      Returns Promise<GetTxStatusReturnType>

      The transaction status. GetTxStatusReturnType

      import { createAvalancheCoreClient } from '@avalanche-sdk/client'
      import { avalanche } from '@avalanche-sdk/client/chains'
      import { getTxStatus } from '@avalanche-sdk/client/methods/xchain'

      const client = createAvalancheCoreClient({
      chain: avalanche,
      transport: {
      type: "http",
      url: "<url>",
      },
      })

      const status = await getTxStatus(client, {
      txID: "2QouvMUbQ6tchBHSJdZ7MoFhsQhHt5KqZQqHdZ7MoFhsQhHt5KqZQ"
      })