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

    Interface GrantPermissionParams

    Parameters for granting data access permission to an application.

    This interface defines the required and optional parameters when granting an application permission to access specific files for a particular operation. Used with vana.permissions.grant().

    const params: GrantPermissionParams = {
    grantee: '0x1234...', // Application address
    operation: 'llm_inference',
    files: [1, 2, 3], // File IDs to grant access to
    parameters: {
    model: 'gpt-4',
    maxTokens: 1000,
    prompt: 'Analyze my data'
    }
    };
    interface GrantPermissionParams {
        grantee: `0x${string}`;
        operation: string;
        files: number[];
        parameters: Record<string, unknown>;
        grantUrl?: string;
        nonce?: bigint;
        expiresAt?: number;
    }
    Index

    Properties

    grantee: `0x${string}`

    The on-chain identity of the application

    operation: string

    The class of computation, e.g., "llm_inference"

    files: number[]

    Array of file IDs to grant permission for

    parameters: Record<string, unknown>

    The full, off-chain parameters (e.g., LLM prompt)

    grantUrl?: string

    Optional pre-stored grant URL to avoid duplicate IPFS storage

    nonce?: bigint

    Optional nonce for the permission

    expiresAt?: number

    Optional expiration time for the permission