The client to use. AvalancheCoreClient
The transaction ID GetTxStatusParameters
The transaction status. GetTxStatusReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { getTxStatus } from '@avalanche-sdk/client/methods/pChain'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const status = await getTxStatus(client, {
txID: "11111111111111111111111111111111LpoYY"
})
Get the status of a transaction.