Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GlobalInternetComputer

Hierarchy

  • GlobalInternetComputer

Index

Properties

Properties

ic: { HttpAgent: typeof HttpAgent; IDL: __module; agent: Agent; canister: undefined | ActorSubclass<Record<string, ActorMethod<unknown[], unknown>>>; features?: { authentication?: boolean } }

Type declaration

  • HttpAgent: typeof HttpAgent
  • IDL: __module
  • agent: Agent
  • canister: undefined | ActorSubclass<Record<string, ActorMethod<unknown[], unknown>>>

    The Actor for the canister being used for the frontend. Normally should correspond to the canister represented by the canister id in the URL.

    It does not have any functions configured.

    If a canister ID could not be found, no actor were created and this is undefined.

  • Optional features?: { authentication?: boolean }

    Simple advertisement of features in whoever is managing this globalThis.ic. Use Case

    • Scripts that know they need an ic feature can detect using this and, if not present (e.g. old bootstrap version), they can dynamically include their own and continue operating (e.g. polyfill). This is useful when adding features to bootstrap. You can still deploy your canister to an ic with old bootstrap, then just dynamically reload your own new-version bootstrap if needed.
    • Optional authentication?: boolean

      This is falsy if authn isn't supported at all

Generated using TypeDoc