The client to use. AvalancheCoreClient
The container ID and encoding. IsAcceptedParameters
Whether the container is accepted. IsAcceptedReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { isAccepted } from '@avalanche-sdk/client/methods/index'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const accepted = await isAccepted(client, {
id: "6fXf5hncR8LXvwtM8iezFQBpK5cubV6y1dWgpJCcNyzGB1EzY",
encoding: "hex"
})
Check if a container is accepted.