Vana SDK - v2.2.2
    Preparing search index...

    Function validateGranteeAccess

    • Validates that a grant allows access for the requesting address.

      Parameters

      • grantFile: GrantFile

        The grant file to validate. Obtain from permission operations or server responses.

      • requestingAddress: `0x${string}`

        The address requesting access. Typically the current wallet address.

      Returns void

      If addresses don't match. Ensure using the correct wallet that received the grant.

      validateGranteeAccess(grantFile, walletAddress);
      // Throws if walletAddress doesn't match grantFile.grantee