The client to use. AvalancheCoreClient
The start index, end index, and encoding. GetContainerRangeParameters
The container details. GetContainerRangeReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { getContainerRange } from '@avalanche-sdk/client/methods/index'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const containers = await getContainerRange(client, {
startIndex: 0,
endIndex: 10,
encoding: "hex"
})
Get a range of containers by their indices.