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

    Function isOwner

    • Check if an account is the owner of a smart assembly.

      Compares the assembly's owner address with the provided account address to determine ownership.

      Parameters

      Returns boolean

      True if the account owns the assembly, false otherwise

      const { assembly } = useSmartObject();
      const { currentAccount } = useConnection();

      if (isOwner(assembly, currentAccount?.address)) {
      // Show owner-only actions
      }