Lit Protocol · Schema

ConvertToChainSecuredAccountRequest

Body for `convert_to_chain_secured_account`. The caller is authenticated by their existing API key (header). The supplied wallet becomes the on-chain admin and the account flips from managed to ChainSecured. The conversion is irreversible.

Web3Key ManagementMPCProgrammable KeysLit Actions

Properties

Name Type Description
new_admin_wallet_address string Hex-encoded EVM address (with or without 0x prefix). Must be the wallet the user controls; verified by an EIP-712 typed-data signature.
typed_data object EIP-712 typed-data object the wallet signed. Must use `primaryType: "ConvertAccount"` and the canonical schema (see `core::eip712`).
signature string 65-byte 0x-prefixed signature (r||s||v) over the EIP-712 digest of `typed_data`.
View JSON Schema on GitHub

JSON Schema

lit-protocol-converttochainsecuredaccountrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ConvertToChainSecuredAccountRequest",
  "title": "ConvertToChainSecuredAccountRequest",
  "description": "Body for `convert_to_chain_secured_account`. The caller is authenticated by their existing API key (header). The supplied wallet becomes the on-chain admin and the account flips from managed to ChainSecured. The conversion is irreversible.",
  "type": "object",
  "required": [
    "new_admin_wallet_address",
    "signature",
    "typed_data"
  ],
  "properties": {
    "new_admin_wallet_address": {
      "description": "Hex-encoded EVM address (with or without 0x prefix). Must be the wallet the user controls; verified by an EIP-712 typed-data signature.",
      "type": "string"
    },
    "typed_data": {
      "description": "EIP-712 typed-data object the wallet signed. Must use `primaryType: \"ConvertAccount\"` and the canonical schema (see `core::eip712`)."
    },
    "signature": {
      "description": "65-byte 0x-prefixed signature (r||s||v) over the EIP-712 digest of `typed_data`.",
      "type": "string"
    }
  }
}