@evefrontier/dapp-kit - v0.0.1
    Preparing search index...

    Function getSingletonObjectByType

    • Get a singleton object by its Move type.

      Useful for global/singleton objects where there's only one instance of a particular type on-chain.

      Parameters

      • objectType: string

        The full Move type string

      Returns Promise<GraphQLResponse<GetSingletonObjectByTypeResponse>>

      Promise resolving to the singleton object address

      const result = await getSingletonObjectByType("0xpkg::config::GlobalConfig");
      const address = result.data?.objects?.nodes[0]?.address;