Avalanche SDK Client
    Preparing search index...

    Type Alias IndexAPIActions

    Index

    Properties

    getContainerByID: (args: GetContainerByIDParameters) => Promise<GetContainerByIDReturnType>

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: {
    type: "http",
    },
    })

    const container = await client.indexPChainBlock.getContainerByID({
    id: "6fXf5hncR8LXvwtM8iezFQBpK5cubV6y1dWgpJCcNyzGB1EzY",
    encoding: "hex"
    })
    getContainerByIndex: (args: GetContainerByIndexParameters) => Promise<GetContainerByIndexReturnType>

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: {
    type: "http",
    },
    })

    const container = await client.indexPChainBlock.getContainerByIndex({
    index: 1,
    encoding: "hex"
    })
    getContainerRange: (args: GetContainerRangeParameters) => Promise<GetContainerRangeReturnType>

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: {
    type: "http",
    },
    })

    const containers = await client.indexPChainBlock.getContainerRange({
    startIndex: 0,
    endIndex: 10,
    encoding: "hex"
    })
    getIndex: (args: GetIndexParameters) => Promise<GetIndexReturnType>

    Get the index of a container by its ID.

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: {
    type: "http",
    },
    })

    const index = await client.indexPChainBlock.getIndex({
    id: "6fXf5hncR8LXvwtM8iezFQBpK5cubV6y1dWgpJCcNyzGB1EzY",
    encoding: "hex"
    })
    getLastAccepted: (args: GetLastAcceptedParameters) => Promise<GetLastAcceptedReturnType>

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: {
    type: "http",
    },
    })

    const lastAccepted = await client.indexPChainBlock.getLastAccepted({
    encoding: "hex"
    })
    isAccepted: (args: IsAcceptedParameters) => Promise<IsAcceptedReturnType>

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: {
    type: "http",
    },
    })

    const isAccepted = await client.indexPChainBlock.isAccepted({
    id: "6fXf5hncR8LXvwtM8iezFQBpK5cubV6y1dWgpJCcNyzGB1EzY",
    encoding: "hex"
    })