Lit Protocol · Schema

LitActionRequest

API key via header. Provide either `code` (inline JS) or `ipfs_id` (IPFS CID of a previously-cached action). When `code` is provided it is cached by its IPFS hash so subsequent calls can use `ipfs_id`.

Web3Key ManagementMPCProgrammable KeysLit Actions

Properties

Name Type Description
code string Inline JS source. Optional when `ipfs_id` is supplied.
ipfs_id string IPFS CID of a previously-submitted action. Looked up in the in-memory cache.
js_params object
View JSON Schema on GitHub

JSON Schema

lit-protocol-litactionrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LitActionRequest",
  "title": "LitActionRequest",
  "description": "API key via header.\n\nProvide either `code` (inline JS) or `ipfs_id` (IPFS CID of a previously-cached action). When `code` is provided it is cached by its IPFS hash so subsequent calls can use `ipfs_id`.",
  "type": "object",
  "properties": {
    "code": {
      "description": "Inline JS source. Optional when `ipfs_id` is supplied.",
      "default": null,
      "type": "string",
      "nullable": true
    },
    "ipfs_id": {
      "description": "IPFS CID of a previously-submitted action. Looked up in the in-memory cache.",
      "default": null,
      "type": "string",
      "nullable": true
    },
    "js_params": {
      "nullable": true
    }
  }
}