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

    Interface GrantFile

    Grant file structure containing permission details.

    Grant files contain the complete specification of what an application is permitted to do with user data, including operation parameters and file access rights.

    const grantFile: GrantFile = {
    grantee: '0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6',
    operation: 'llm_inference',
    parameters: {
    prompt: 'Analyze this data: {{data}}',
    model: 'gpt-4',
    maxTokens: 2000,
    temperature: 0.7
    },
    expires: 1736467579
    };
    interface GrantFile {
        grantee: `0x${string}`;
        operation: string;
        parameters: Record<string, unknown>;
        expires?: number;
    }
    Index

    Properties

    grantee: `0x${string}`

    EVM address of the application authorized to use this grant

    operation: string

    Operation the grantee is authorized to perform

    parameters: Record<string, unknown>

    Operation-specific parameters

    expires?: number

    Optional Unix timestamp when grant expires (seconds since epoch per POSIX.1-2008)