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}; Copy
const grantFile: GrantFile = { grantee: '0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6', operation: 'llm_inference', parameters: { prompt: 'Analyze this data: {{data}}', model: 'gpt-4', maxTokens: 2000, temperature: 0.7 }, expires: 1736467579};
EVM address of the application authorized to use this grant
Operation the grantee is authorized to perform
Operation-specific parameters
Optional
Optional Unix timestamp when grant expires (seconds since epoch per POSIX.1-2008)
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.
Example