The client to use. AvalancheCoreClient
The parameters for the request
The result of the validation. ValidatesReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { validates } from '@avalanche-sdk/client/methods/pChain'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const result = await validates(client, {
tx: "0x1234567890abcdef",
})
Validates a transaction.