Vana SDK - v0.1.0
    Preparing search index...

    Function checkGrantAccess

    • Checks if a grant allows access for a specific request

      Parameters

      • grantUrl: string

        The IPFS URL of the grant file to check

      • requestingAddress: `0x${string}`

        The address making the access request

      • operation: string

        The operation being requested

      • fileIds: number[]

        Array of file IDs being accessed (currently unused but part of interface)

      • OptionalrelayerUrl: string

        Optional URL of the relayer service

      Returns Promise<{ allowed: boolean; reason?: string; grantFile?: GrantFile }>

      Promise resolving to access result with allowed status, reason, and grant file