Avalanche SDK Client
    Preparing search index...

    Function isAccepted

    • Type Parameters

      • chain extends undefined | Chain

      Parameters

      Returns Promise<IsAcceptedReturnType>

      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"
      })