The client to use. AvalancheCoreClient
The parameters to use. GetAtomicTxStatusParameters
The status of the atomic transaction. GetAtomicTxStatusReturnType
avax.getAtomicTxStatus is deprecated in AvalancheGo and is not available after the Helicon upgrade. Use getAtomicTx instead: the transaction is accepted when blockHeight is set.
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { getAtomicTxStatus } from '@avalanche-sdk/client/methods/cChain'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const status = await getAtomicTxStatus(client, {
txID: "2QouvMUbQ6oy7yQ9tLvL3L8tGQG2QK1wJ1q1wJ1q1wJ1q1wJ1q1wJ1q1wJ1"
})
Get the status of an atomic transaction.