The client to use. AvalancheCoreClient
The parameters to use. GetAtomicTxParameters
The atomic transaction. GetAtomicTxReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const tx = await getAtomicTx(client, {
txID: "2QouvMUbQ6oy7yQ9tLvL3L8tGQG2QK1wJ1q1wJ1q1wJ1q1wJ1q1wJ1q1wJ1"
})
Get the atomic transaction by its ID.