{
  "openrpc": "1.3.2",
  "info": {
    "title": "LayerX public JSON-RPC",
    "version": "0.1.0",
    "description": "The merged Paxeer network is one execution domain in paxd, with EVM chain ID 125 (0x7d) and BFT block commitment as finality. Public node JSON-RPC is served at the root path of https://api-mainnet-beta.paxeer.network/ and https://api1.mainnet-beta.paxeer.network/ through https://api14.mainnet-beta.paxeer.network/. This OpenRPC document declares the hosted px_* methods and pax_sequencerReceipt; node-only eth_*, net_* and web3_* methods are refused by the hosted dispatcher and use the node origin instead; obtain hosted gateway coordinates and credentials from its operator. Hosted JSON-RPC uses JSON-RPC 2.0 POST / with Content-Type: application/json; discovery is GET /openrpc.json; authenticated route discovery uses GET /v1/routes at that gateway. Public node availability does not establish hosted px_* API deployment at public node URLs. The unified /rpc interface and its subtree are retired; there is no separate LayerX interface or execution router. Use native signed transactions and chain reads for network execution. The px_* methods provide registration, configured faucet access, account, balance, asset, history, consensus, receipt-key and capability reads, and authenticated route discovery, subject to each method's authentication and backend requirements. pax_sequencerReceipt relays the node receipt and commitment rung unchanged; submitted and receipted do not establish finality, which requires committed block evidence. Missing backend configuration or unavailable evidence produces an explicit refusal; balances, metadata, fees and finality are never fabricated. A method targeting an unavailable surface is refused with -32003 surface_unavailable. This refusal applies while px_getCapabilities reports that surface false for exchange (0x0000000000000000000000000000000000001015), bridge (0x0000000000000000000000000000000000001016), launchpad (0x0000000000000000000000000000000000001017), ledger (0x000000000000000000000000000000000000101a), pay (0x000000000000000000000000000000000000101b), auth (0x000000000000000000000000000000000000101c) and programs (0x000000000000000000000000000000000000101d)."
  },
  "methods": [
    {
      "name": "px_openSession",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "signer_public_key",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        {
          "name": "proof_time",
          "required": true,
          "description": "Unix time in canonical decimal seconds; it must be within 120 seconds of the gateway clock.",
          "schema": {
            "type": "string",
            "pattern": "^(0|[1-9][0-9]*)$"
          }
        },
        {
          "name": "session_signature",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9a-f]{128}$"
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "tenant",
            "sub",
            "token",
            "csrf_token",
            "expires_at"
          ],
          "additionalProperties": false,
          "properties": {
            "tenant": {
              "type": "string"
            },
            "sub": {
              "type": "string"
            },
            "token": {
              "type": "string"
            },
            "csrf_token": {
              "type": "string"
            },
            "expires_at": {
              "type": "integer"
            }
          }
        }
      },
      "description": "Opens a developer identity session from a fresh Ed25519 proof by a registered signer. The proof signs the SHA-256 length-prefixed digest of \"layerx-session-open-v1\", the configured tenant, the 32-byte signer public key and proof_time in canonical decimal seconds. Proofs are accepted at both 120-second edges, each signer and time pair is accepted once while it remains in the bounded replay set, and identity mints the session with its configured lifetime. The result contains only tenant, sub, token, csrf_token and expires_at from identity.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32002,
          "message": "Session refused"
        },
        {
          "code": -32001,
          "message": "Session unavailable"
        },
        {
          "code": -32005,
          "message": "Session unavailable"
        },
        {
          "code": -32603,
          "message": "Invalid upstream session response"
        },
        {
          "code": -32010,
          "message": "Kernel unavailable",
          "data": {
            "type": "object",
            "required": [
              "code",
              "backend",
              "reason"
            ],
            "properties": {
              "code": {
                "const": "kernel_unavailable"
              },
              "backend": {
                "enum": [
                  "core_agent_boundary",
                  "public_core",
                  "independent_receipt_authority",
                  "identity",
                  "program_registry"
                ]
              },
              "reason": {
                "enum": [
                  "not_configured",
                  "unreachable"
                ]
              }
            }
          }
        }
      ]
    },
    {
      "name": "px_register",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "signer_public_key",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        {
          "name": "registration_signature",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9a-f]{128}$"
          }
        },
        {
          "name": "email_or_verification_token",
          "required": false,
          "description": "An email address to begin signup, or the vfy_ token followed by 64 lowercase hexadecimal digits to verify signup. Omit for direct principal registration.",
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object"
        }
      },
      "description": "Creates one self-service identity principal in the registration tenant. The operator configures the trusted tenant with LAYERX_GATEWAY_TENANT when enabling registration; no positional argument or request header selects a tenant. Signatures and derived subjects are bound to that configured tenant, and identity responses must confirm it. The first two arguments are lowercase hexadecimal: a 32-byte Ed25519 signer public key and its 64-byte signature over SHA-256(len-prefixed \"layerx-register-binding-v1\", tenant, signer_public_key). The subject is derived as <tenant>.<first 16 bytes of SHA-256(len-prefixed \"layerx-register-subject-v1\", tenant, signer_public_key)>, so registration is idempotent and cannot name another key holder's principal. Without the optional third argument the result is the identity principal record: tenant, sub, allowed_signer_public_keys, account and audiences. An email address starts signup and returns a pending result; a verification token completes signup and returns the identity session. Malformed arguments are -32602; a signature that does not prove possession of the named key is -32002; the per-minute self-registration budget is -32005; an unconfigured or unavailable identity service is -32001 with a machine-readable data.code.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32002,
          "message": "Registration refused"
        },
        {
          "code": -32001,
          "message": "Registration unavailable"
        },
        {
          "code": -32005,
          "message": "Registration unavailable"
        },
        {
          "code": -32010,
          "message": "Kernel unavailable",
          "data": {
            "type": "object",
            "required": [
              "code",
              "backend",
              "reason"
            ],
            "properties": {
              "code": {
                "const": "kernel_unavailable"
              },
              "backend": {
                "description": "Compatibility diagnostic for an optional hosted backend. Native receipt verification uses governed keys at the receipt height and committed-block evidence for finality.",
                "enum": [
                  "core_agent_boundary",
                  "public_core",
                  "independent_receipt_authority",
                  "identity",
                  "program_registry"
                ]
              },
              "reason": {
                "enum": [
                  "not_configured",
                  "unreachable"
                ]
              }
            }
          }
        }
      ]
    },
    {
      "name": "px_getCommit",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "height",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9]*[1-9][0-9]*$",
            "description": "Positive decimal u64 block height."
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "height",
            "signedHeader"
          ],
          "properties": {
            "height": {
              "type": "string",
              "pattern": "^[0-9]*[1-9][0-9]*$",
              "description": "Positive decimal u64 block height."
            },
            "signedHeader": {
              "type": "object",
              "required": [
                "header",
                "commit"
              ],
              "properties": {
                "header": {
                  "type": "object",
                  "required": [
                    "height"
                  ],
                  "properties": {
                    "height": {
                      "type": "string",
                      "pattern": "^[0-9]*[1-9][0-9]*$",
                      "description": "Positive decimal u64 block height."
                    }
                  }
                },
                "commit": {
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "description": "Reads the consensus commit at a positive decimal u64 height. Returns the decimal height and the consensus signed_header unchanged as signedHeader, including its header and commit. An unconfigured, unreachable or invalid consensus response is -32003 with data.code consensus_unavailable.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32003,
          "message": "Chain read unavailable",
          "data": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "const": "consensus_unavailable"
              }
            }
          }
        },
        {
          "code": -32005,
          "message": "Read unavailable",
          "data": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "const": "public_read_rate_limit"
              }
            }
          }
        }
      ]
    },
    {
      "name": "px_getValidators",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "height",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9]*[1-9][0-9]*$",
            "description": "Positive decimal u64 block height."
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "height",
            "validators",
            "total"
          ],
          "properties": {
            "height": {
              "type": "string",
              "pattern": "^[0-9]*[1-9][0-9]*$",
              "description": "Positive decimal u64 block height."
            },
            "validators": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "address",
                  "pubKey",
                  "votingPower"
                ],
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "pubKey": {
                    "type": "object",
                    "required": [
                      "type",
                      "value"
                    ],
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    }
                  },
                  "votingPower": {
                    "type": "string",
                    "pattern": "^[0-9]+$"
                  }
                }
              }
            },
            "total": {
              "type": "string",
              "pattern": "^[0-9]+$"
            }
          }
        }
      },
      "description": "Reads the full validator set at a positive decimal u64 height, collecting all consensus pages. Returns decimal-string height, total and votingPower; pubKey preserves the consensus pub_key object. An unconfigured, unreachable or inconsistent consensus response is -32003 with data.code consensus_unavailable.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32003,
          "message": "Chain read unavailable",
          "data": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "const": "consensus_unavailable"
              }
            }
          }
        },
        {
          "code": -32005,
          "message": "Read unavailable",
          "data": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "const": "public_read_rate_limit"
              }
            }
          }
        }
      ]
    },
    {
      "name": "px_getReceiptKeys",
      "paramStructure": "by-position",
      "params": [],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "keys"
          ],
          "properties": {
            "keys": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "keyId",
                  "publicKey",
                  "firstHeight",
                  "lastHeight"
                ],
                "properties": {
                  "keyId": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{64}$"
                  },
                  "publicKey": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{64}$"
                  },
                  "firstHeight": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 18446744073709551615
                  },
                  "lastHeight": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 18446744073709551615
                  }
                }
              }
            }
          }
        }
      },
      "description": "Publishes the configured pinned receipt signing keys and their inclusive height ranges. keyId and publicKey are 0x-prefixed 32-byte hexadecimal strings; firstHeight and lastHeight are JSON integers. Requires an explicit empty positional params array. An unconfigured list is -32003 with data.code receipt_keys_unavailable.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32003,
          "message": "Chain read unavailable",
          "data": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "const": "receipt_keys_unavailable"
              }
            }
          }
        },
        {
          "code": -32005,
          "message": "Read unavailable",
          "data": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "const": "public_read_rate_limit"
              }
            }
          }
        }
      ]
    },
    {
      "name": "px_getSequenceBatch",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "height",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9]*[1-9][0-9]*$",
            "description": "Positive decimal u64 block height."
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "height",
            "tx",
            "proof",
            "activityIds"
          ],
          "properties": {
            "height": {
              "type": "string",
              "pattern": "^[0-9]*[1-9][0-9]*$",
              "description": "Positive decimal u64 block height."
            },
            "tx": {
              "type": "string",
              "pattern": "^0x([0-9a-fA-F]{2})*$"
            },
            "activityIds": {
              "type": "array",
              "description": "Complete consensus activity IDs for every transaction after tx 0, in original order: signed EVM transaction hashes, or SHA-256 of raw bytes for associate, non-EVM and undecodable transactions. Independent of Ethereum visibility and domain filtering; validated against the batch range, activity root and sequence state.",
              "items": {
                "type": "string",
                "pattern": "^0x[0-9a-fA-F]{64}$"
              }
            },
            "proof": {
              "type": "object",
              "required": [
                "total",
                "index",
                "leafHash",
                "aunts"
              ],
              "properties": {
                "total": {
                  "type": "integer",
                  "minimum": 1
                },
                "index": {
                  "type": "integer",
                  "const": 0
                },
                "leafHash": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{64}$"
                },
                "aunts": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{64}$"
                  }
                }
              }
            }
          }
        }
      },
      "description": "Reads transaction 0 of the consensus block at a positive decimal u64 height. tx is the 0x-hex encoded MsgSequenceBatch transaction; proof contains total, index, leafHash and aunts for its Merkle inclusion under header.data_hash. The proof is verified before a result is served. A block without a MsgSequenceBatch at transaction 0 is -32602 with data.code no_sequence_batch; a proof mismatch is -32003 with data.code invalid_consensus_response.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32602,
          "message": "Invalid params",
          "data": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "const": "no_sequence_batch"
              }
            }
          }
        },
        {
          "code": -32003,
          "message": "Chain read unavailable",
          "data": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "const": "consensus_unavailable"
              }
            }
          }
        },
        {
          "code": -32003,
          "message": "Chain read unavailable",
          "data": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "const": "invalid_consensus_response"
              }
            }
          }
        },
        {
          "code": -32005,
          "message": "Read unavailable",
          "data": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "const": "public_read_rate_limit"
              }
            }
          }
        }
      ]
    },
    {
      "name": "px_requestFunds",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "did",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^did:[0-9A-Za-z._:-]+$",
            "maxLength": 512
          }
        },
        {
          "name": "signer_public_key",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        }
      ],
      "result": {
        "name": "claim",
        "schema": {
          "type": "object",
          "required": [
            "funded",
            "funding_id",
            "transaction_id",
            "amount",
            "network",
            "starter_credit"
          ],
          "properties": {
            "funded": {
              "type": "boolean",
              "const": true
            },
            "funding_id": {
              "type": "string",
              "pattern": "^[0-9a-fA-F]+$",
              "maxLength": 128
            },
            "transaction_id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "amount": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "maxLength": 39
            },
            "network": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "starter_credit": {
              "type": "object"
            }
          }
        }
      },
      "description": "Claims the authenticated identity principal's starter credit through the faucet claim path. Params are a DID and its bound, nonzero 32-byte lowercase hexadecimal Ed25519 signer public key without a 0x prefix. The bearer session must authorise the signer. The result includes funded, funding_id, transaction_id, decimal-string amount, network and the settled starter_credit record. Idempotency is bound to the principal and starter-credit grant, so retries reuse the grant. Incomplete funding evidence or an amount mismatch is -32603; pending claims are -32001 with data.code faucet_claim_pending. An unavailable identity backend is -32010 Kernel unavailable.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32002,
          "message": "Faucet claim refused"
        },
        {
          "code": -32001,
          "message": "Faucet claim unavailable"
        },
        {
          "code": -32005,
          "message": "Faucet claim unavailable"
        },
        {
          "code": -32010,
          "message": "Kernel unavailable",
          "data": {
            "type": "object",
            "required": [
              "code",
              "backend",
              "reason"
            ],
            "properties": {
              "code": {
                "const": "kernel_unavailable"
              },
              "backend": {
                "description": "Compatibility diagnostic for an optional hosted backend. Native receipt verification uses governed keys at the receipt height and committed-block evidence for finality.",
                "enum": [
                  "core_agent_boundary",
                  "public_core",
                  "independent_receipt_authority",
                  "identity",
                  "program_registry"
                ]
              },
              "reason": {
                "enum": [
                  "not_configured",
                  "unreachable"
                ]
              }
            }
          }
        },
        {
          "code": -32603,
          "message": "Faucet claim evidence incomplete"
        }
      ]
    },
    {
      "name": "pax_sequencerReceipt",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "txHash",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^0x[0-9a-fA-F]{64}$"
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "required": [
                "rung",
                "txHash",
                "nonce"
              ],
              "properties": {
                "rung": {
                  "enum": [
                    "submitted",
                    "receipted",
                    "committed"
                  ]
                },
                "txHash": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{64}$"
                },
                "nonce": {
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                },
                "seq": {
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                },
                "height": {
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                },
                "index": {
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                },
                "timestamp": {
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "0x0",
                    "0x1"
                  ]
                },
                "returnData": {
                  "type": "string",
                  "pattern": "^0x([0-9a-fA-F]{2})*$"
                },
                "logs": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "address",
                      "topics",
                      "data",
                      "logIndex"
                    ],
                    "properties": {
                      "address": {
                        "type": "string",
                        "pattern": "^0x[0-9a-fA-F]{40}$"
                      },
                      "topics": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{64}$"
                        },
                        "maxItems": 4
                      },
                      "data": {
                        "type": "string",
                        "pattern": "^0x([0-9a-fA-F]{2})*$"
                      },
                      "logIndex": {
                        "type": "string",
                        "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                      }
                    }
                  }
                },
                "gasUsed": {
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                },
                "cumulativeGasUsed": {
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                },
                "effectiveGasPrice": {
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                },
                "feeDenom": {
                  "type": "string"
                },
                "feeAmount": {
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                },
                "sponsor": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{40}$"
                },
                "from": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{40}$"
                },
                "to": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{40}$"
                },
                "contractAddress": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{40}$"
                },
                "vmError": {
                  "type": "string"
                },
                "keyId": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{64}$"
                },
                "signingKey": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{64}$"
                },
                "receipt": {
                  "type": "string",
                  "pattern": "^0x([0-9a-fA-F]{2})*$"
                },
                "blockNumber": {
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
                },
                "blockHash": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{64}$"
                }
              },
              "oneOf": [
                {
                  "properties": {
                    "rung": {
                      "const": "submitted"
                    }
                  },
                  "not": {
                    "anyOf": [
                      {
                        "required": [
                          "seq"
                        ]
                      },
                      {
                        "required": [
                          "height"
                        ]
                      },
                      {
                        "required": [
                          "index"
                        ]
                      },
                      {
                        "required": [
                          "timestamp"
                        ]
                      },
                      {
                        "required": [
                          "status"
                        ]
                      },
                      {
                        "required": [
                          "returnData"
                        ]
                      },
                      {
                        "required": [
                          "logs"
                        ]
                      },
                      {
                        "required": [
                          "gasUsed"
                        ]
                      },
                      {
                        "required": [
                          "cumulativeGasUsed"
                        ]
                      },
                      {
                        "required": [
                          "effectiveGasPrice"
                        ]
                      },
                      {
                        "required": [
                          "feeDenom"
                        ]
                      },
                      {
                        "required": [
                          "feeAmount"
                        ]
                      },
                      {
                        "required": [
                          "sponsor"
                        ]
                      },
                      {
                        "required": [
                          "from"
                        ]
                      },
                      {
                        "required": [
                          "to"
                        ]
                      },
                      {
                        "required": [
                          "contractAddress"
                        ]
                      },
                      {
                        "required": [
                          "vmError"
                        ]
                      },
                      {
                        "required": [
                          "keyId"
                        ]
                      },
                      {
                        "required": [
                          "signingKey"
                        ]
                      },
                      {
                        "required": [
                          "receipt"
                        ]
                      },
                      {
                        "required": [
                          "blockNumber"
                        ]
                      },
                      {
                        "required": [
                          "blockHash"
                        ]
                      }
                    ]
                  }
                },
                {
                  "properties": {
                    "rung": {
                      "const": "receipted"
                    }
                  },
                  "required": [
                    "rung",
                    "txHash",
                    "nonce",
                    "seq",
                    "height",
                    "index",
                    "timestamp",
                    "status",
                    "returnData",
                    "logs",
                    "gasUsed",
                    "cumulativeGasUsed",
                    "effectiveGasPrice",
                    "feeDenom",
                    "feeAmount",
                    "sponsor",
                    "from",
                    "to",
                    "contractAddress",
                    "vmError",
                    "keyId",
                    "signingKey",
                    "receipt"
                  ],
                  "not": {
                    "anyOf": [
                      {
                        "required": [
                          "blockNumber"
                        ]
                      },
                      {
                        "required": [
                          "blockHash"
                        ]
                      }
                    ]
                  }
                },
                {
                  "properties": {
                    "rung": {
                      "const": "committed"
                    }
                  },
                  "required": [
                    "rung",
                    "txHash",
                    "nonce",
                    "seq",
                    "height",
                    "index",
                    "timestamp",
                    "status",
                    "returnData",
                    "logs",
                    "gasUsed",
                    "cumulativeGasUsed",
                    "effectiveGasPrice",
                    "feeDenom",
                    "feeAmount",
                    "sponsor",
                    "from",
                    "to",
                    "contractAddress",
                    "vmError",
                    "keyId",
                    "signingKey",
                    "receipt",
                    "blockNumber",
                    "blockHash"
                  ]
                }
              ]
            }
          ]
        }
      },
      "description": "Relays the node response unchanged for one 0x-prefixed 32-byte transaction hash. Unknown hashes return null. submitted carries rung, txHash and nonce; receipted adds the decoded signed receipt, signing key and execution outputs; committed also includes blockNumber and blockHash for the covering MsgSequenceBatch. Quantities are 0x-prefixed hexadecimal strings. Receipt consistency and signature checks do not establish signing authority without pinned receipt keys. The node may refuse with -32000 when the method is served only by a sequencer.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32000,
          "message": "pax_sequencerReceipt served by sequencer"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        }
      ]
    },
    {
      "name": "px_resolveAccount",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "account",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^(0x[0-9a-fA-F]{40}|did:layerx:[0-9a-fA-F]{64})$"
          },
          "description": "EVM or explicit DID lookup selector retained from the original lookup; layerx_account is a separate native reference and cannot be used for reverse resolution."
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object"
        }
      },
      "description": "Resolves EVM address and LayerX DID aliases for one account on the merged Paxeer network (chain 125). These lookup selectors do not identify separate running execution networks. The argument is either a 0x-prefixed 20-byte EVM address or an explicit LayerX DID (did:layerx:<64 hex>). The result is {evm_address, pax_address, layerx_did, layerx_account, bound}: every field comes from the addr precompile's getUnifiedAccount/getEvmAddrByLayerX, the halves that are not bound are null, and bound is false when the EVM address carries no LayerX DID. A bare 64-hex native account identifier is refused with -32001 and data.code=native_account_reverse_resolution_unsupported; it is never reinterpreted as a DID public key. Retain the original EVM/DID lookup selector for repeated account, balance and history reads; layerx_account is a separate native reference. Conflicting forward/reverse joins refuse with data.code=conflicting_identity_binding. An unconfigured Paxeer endpoint is -32001 with data.code=paxeer_rpc_not_configured.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        },
        {
          "code": -32005,
          "message": "Read unavailable"
        }
      ]
    },
    {
      "name": "px_getAccount",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "account",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^(0x[0-9a-fA-F]{40}|did:layerx:[0-9a-fA-F]{64})$"
          },
          "description": "EVM or explicit DID lookup selector retained from the original lookup; layerx_account is a separate native reference and cannot be used for reverse resolution."
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "account",
            "paxeer"
          ],
          "properties": {
            "account": {
              "type": "object",
              "required": [
                "evm_address",
                "pax_address",
                "layerx_did",
                "layerx_account",
                "bound"
              ],
              "properties": {
                "evm_address": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pax_address": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "layerx_did": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "layerx_account": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "bound": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "paxeer": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "required": [
                    "address",
                    "balance",
                    "nonce",
                    "height"
                  ],
                  "properties": {
                    "address": {
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]{40}$"
                    },
                    "balance": {
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]+$"
                    },
                    "nonce": {
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]+$"
                    },
                    "height": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "additionalProperties": false
        }
      },
      "description": "Reads account resolution, EVM balance and nonce from chain state at one height returned by eth_blockNumber. The result is {account, paxeer:{address, balance, nonce, height}}; paxeer is null for an account without an EVM binding. No kernel backend is required.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        },
        {
          "code": -32005,
          "message": "Read unavailable"
        }
      ]
    },
    {
      "name": "px_getBalances",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "account",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^(0x[0-9a-fA-F]{40}|did:layerx:[0-9a-fA-F]{64})$"
          },
          "description": "EVM or explicit DID lookup selector retained from the original lookup; layerx_account is a separate native reference and cannot be used for reverse resolution."
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "account",
            "height",
            "balances"
          ],
          "properties": {
            "account": {
              "type": "object",
              "required": [
                "evm_address",
                "pax_address",
                "layerx_did",
                "layerx_account",
                "bound"
              ],
              "properties": {
                "evm_address": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pax_address": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "layerx_did": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "layerx_account": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "bound": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "height": {
              "type": "integer",
              "minimum": 0
            },
            "balances": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "denom",
                  "amount"
                ],
                "properties": {
                  "denom": {
                    "type": "string"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^[0-9]+$"
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "additionalProperties": false
        }
      },
      "description": "Reads the bound EVM address coin list from bank all_balances(address), with account resolution and every eth_call pinned to one height returned by eth_blockNumber. The result is {account, height, balances:[{denom, amount}]}; amounts are exact decimal strings of on-chain 256-bit values. No kernel backend is required.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        },
        {
          "code": -32005,
          "message": "Read unavailable"
        }
      ]
    },
    {
      "name": "px_listAssets",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "cursor",
          "required": false,
          "schema": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "description": "The next_cursor from the preceding page; a positive signed 64-bit registration row ID."
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "height",
            "assets",
            "joined_limit",
            "next_cursor",
            "order"
          ],
          "additionalProperties": false,
          "properties": {
            "height": {
              "type": "integer",
              "minimum": 0
            },
            "assets": {
              "type": "array",
              "maxItems": 16,
              "items": {
                "type": "object",
                "required": [
                  "asset_id",
                  "denom",
                  "kind",
                  "name",
                  "symbol",
                  "decimals",
                  "supply"
                ],
                "additionalProperties": false,
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "denom": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "kind": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "symbol": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "decimals": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 255
                  },
                  "supply": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "pattern": "^(0|[1-9][0-9]*)$"
                  },
                  "paused": {
                    "type": "boolean"
                  },
                  "verification": {
                    "type": "string",
                    "enum": [
                      "authenticated_committed_snapshot"
                    ]
                  }
                }
              }
            },
            "joined_limit": {
              "type": "integer",
              "const": 16
            },
            "next_cursor": {
              "type": [
                "string",
                "null"
              ],
              "pattern": "^[1-9][0-9]*$"
            },
            "order": {
              "const": "registration"
            }
          }
        }
      },
      "description": "Lists one indexer keyset page in stable registration order, selecting at most 16 assets before metadata retrieval. next_cursor continues after this page; null marks the end. Each request fetches one indexer page and has a ten-second aggregate deadline checked before and after chain exchanges, in addition to transport deadlines. Bank denoms read name, symbol, decimals and supply from bank 0x1001; ledger assets read getAsset at 0x101A. Successful ledger reads also include paused (boolean) and verification (authenticated_committed_snapshot). All chain reads use the returned height. A failed or unsupported asset read leaves name, symbol, decimals and supply null and omits paused and verification. Supply is an integer in base units rendered as a decimal string. An optional decimal cursor continues a prior page; omitted or empty params starts at the beginning.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        },
        {
          "code": -32005,
          "message": "Read unavailable"
        },
        {
          "code": -32010,
          "message": "Kernel unavailable",
          "data": {
            "type": "object",
            "required": [
              "code",
              "backend",
              "reason"
            ],
            "properties": {
              "code": {
                "const": "kernel_unavailable"
              },
              "backend": {
                "description": "Compatibility diagnostic for an optional hosted backend. Native receipt verification uses governed keys at the receipt height and committed-block evidence for finality.",
                "enum": [
                  "core_agent_boundary",
                  "public_core",
                  "independent_receipt_authority",
                  "identity",
                  "program_registry"
                ]
              },
              "reason": {
                "enum": [
                  "not_configured",
                  "unreachable"
                ]
              }
            }
          }
        }
      ]
    },
    {
      "name": "px_getNetwork",
      "paramStructure": "by-position",
      "params": [],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "network_id",
            "paxeer",
            "consensus"
          ],
          "additionalProperties": false,
          "properties": {
            "network_id": {
              "type": "string"
            },
            "paxeer": {
              "type": "object",
              "required": [
                "chain_id",
                "latest_block"
              ],
              "additionalProperties": false,
              "properties": {
                "chain_id": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]+$"
                },
                "latest_block": {
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]+$"
                }
              }
            },
            "consensus": {
              "type": [
                "object",
                "null"
              ],
              "required": [
                "latest_height",
                "latest_block_hash",
                "latest_app_hash",
                "catching_up"
              ],
              "additionalProperties": false,
              "properties": {
                "latest_height": {
                  "type": "string",
                  "pattern": "^[0-9]+$"
                },
                "latest_block_hash": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{2})*$"
                },
                "latest_app_hash": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{2})*$"
                },
                "catching_up": {
                  "type": "boolean"
                }
              }
            },
            "reason": {
              "type": "string",
              "enum": [
                "consensus_unavailable"
              ]
            }
          },
          "oneOf": [
            {
              "properties": {
                "consensus": {
                  "type": "object"
                }
              },
              "not": {
                "required": [
                  "reason"
                ]
              }
            },
            {
              "required": [
                "reason"
              ],
              "properties": {
                "consensus": {
                  "type": "null"
                }
              }
            }
          ]
        }
      },
      "description": "Network head: network_id and paxeer {chain_id, latest_block} from eth_chainId and eth_blockNumber, beside consensus {latest_height, latest_block_hash, latest_app_hash, catching_up} from the consensus status method. latest_height is a decimal string; hashes retain the consensus hexadecimal encoding. When the consensus endpoint is unset, unreachable, or returns an invalid response, consensus is null and reason is consensus_unavailable; the Paxeer chain ID and latest block still answer. Takes no arguments.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        },
        {
          "code": -32005,
          "message": "Read unavailable"
        }
      ]
    },
    {
      "name": "px_getHistory",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "account",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^(0x[0-9a-fA-F]{40}|did:layerx:[0-9a-fA-F]{64})$"
          },
          "description": "A Paxeer EVM address, or an explicit DID resolved to its bound EVM address through addr 0x0000000000000000000000000000000000001004; an unbound DID is refused with -32602."
        },
        {
          "name": "cursor",
          "required": false,
          "schema": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9a-f]{32}$"
          },
          "description": "The next_cursor of the previous page: the indexer's 32-lowercase-hex (blockHeight, txIndex, logIndex) position cursor, passed through unchanged; null or absent for the first page. Any other form, including the 112-hex form, is refused with -32602."
        },
        {
          "name": "limit",
          "required": false,
          "schema": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 100,
            "default": 50
          },
          "description": "Rows per page."
        },
        {
          "name": "kind",
          "required": false,
          "schema": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[a-z0-9_]{1,64}$"
          },
          "description": "Only rows of this indexer kind, for example native_transfer, erc20_transfer, pointer_transfer or bank_transfer."
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "account",
            "items",
            "next_cursor",
            "indexedHeight",
            "chainHeight",
            "freshness"
          ],
          "additionalProperties": false,
          "properties": {
            "account": {
              "type": "string",
              "pattern": "^0x[0-9a-f]{40}$"
            },
            "items": {
              "type": "array",
              "maxItems": 100,
              "items": {
                "type": "object",
                "required": [
                  "id",
                  "height_or_seq",
                  "chain",
                  "kind",
                  "direction",
                  "account",
                  "counterparty",
                  "asset",
                  "amount",
                  "tx_id",
                  "tx_hash",
                  "ordinal",
                  "final",
                  "final_basis",
                  "stability",
                  "settlement",
                  "decoded",
                  "asset_metadata",
                  "blockHeight",
                  "txIndex",
                  "logIndex"
                ],
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^([1-9][0-9]*|explorer:[1-9][0-9]*)$",
                    "description": "The indexer row id; rows are ordered by (blockHeight, txIndex, logIndex)."
                  },
                  "height_or_seq": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "description": "The LayerX sequence or Paxeer block height of the row."
                  },
                  "chain": {
                    "type": "string",
                    "enum": [
                      "layerx",
                      "paxeer"
                    ],
                    "description": "The chain that recorded the row."
                  },
                  "kind": {
                    "type": "string",
                    "pattern": "^[a-z0-9_]{1,64}$"
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "in",
                      "out"
                    ]
                  },
                  "account": {
                    "type": "string"
                  },
                  "counterparty": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "asset": {
                    "type": "string"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "description": "Exact decimal amount in the asset's base units."
                  },
                  "tx_id": {
                    "type": "string"
                  },
                  "ordinal": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$"
                  },
                  "final": {
                    "type": "boolean",
                    "description": "True once the row is below its chain's finalized boundary."
                  },
                  "final_basis": {
                    "type": "string",
                    "enum": [
                      "block_commit",
                      "explorer_api"
                    ],
                    "description": "Provenance of the indexer stability classification; this does not imply verified settlement."
                  },
                  "stability": {
                    "type": "object",
                    "required": [
                      "level",
                      "source",
                      "finalized_boundary"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "level": {
                        "type": "string",
                        "enum": [
                          "depth_stable",
                          "reversible",
                          "explorer_recorded"
                        ]
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "block_commit",
                          "explorer_api"
                        ]
                      },
                      "finalized_boundary": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "pattern": "^(0|[1-9][0-9]*)$"
                      }
                    }
                  },
                  "settlement": {
                    "type": "object",
                    "required": [
                      "level",
                      "source",
                      "reason"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "level": {
                        "type": "string",
                        "enum": [
                          "unverified"
                        ]
                      },
                      "source": {
                        "type": "null"
                      },
                      "reason": {
                        "type": "string",
                        "enum": [
                          "no_verified_checkpoint_evidence"
                        ]
                      }
                    },
                    "description": "The indexer has no verified checkpoint evidence for this row. Stability alone is not settlement."
                  },
                  "decoded": {
                    "description": "The indexer's decoded payload for the row."
                  },
                  "asset_metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "The row's asset joined from the indexer's /v1/assets record and the LayerX asset registry, or null when the indexer has no record of the asset.",
                    "required": [
                      "asset",
                      "chain",
                      "kind",
                      "address",
                      "denom",
                      "symbol",
                      "decimals",
                      "native_id",
                      "pointer",
                      "metadata"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "asset": {
                        "type": "string",
                        "description": "The indexer asset label: 64-hex LayerX asset id, evm:native, evm:<address> or denom:<denom>."
                      },
                      "chain": {
                        "type": "string",
                        "enum": [
                          "layerx",
                          "paxeer"
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "description": "The indexer asset kind: layerx, native, erc20, pointer, bank or tokenfactory."
                      },
                      "address": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The EVM contract address for erc20 and pointer assets."
                      },
                      "denom": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The Cosmos denom for bank, tokenfactory and pointer assets."
                      },
                      "symbol": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The indexer metadata symbol, else the LayerX registry symbol of the asset (by asset id) or of its denom; null when neither declares one."
                      },
                      "decimals": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 0,
                        "description": "The indexer metadata decimals, else the LayerX registry decimals, else 18 for the EVM native coin; null when nothing declares them."
                      },
                      "native_id": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "pattern": "^[0-9a-f]{64}$",
                        "description": "The LayerX asset id this asset is, or that the registry maps its denom to."
                      },
                      "pointer": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "pattern": "^0x[0-9a-f]{40}$",
                        "description": "The EVM pointer contract address when the asset is a pointer."
                      },
                      "metadata": {
                        "description": "The indexer's own metadata document for the asset."
                      }
                    }
                  },
                  "blockHeight": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "The block height of the row's position."
                  },
                  "txIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "The transaction index of the row's position."
                  },
                  "logIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "The log index of the row's position."
                  },
                  "tx_index": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$"
                  },
                  "log_index": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$"
                  },
                  "tx_hash": {
                    "type": "string",
                    "pattern": "^0x[0-9a-f]{64}$",
                    "description": "Transaction hash, exactly equal to tx_id."
                  }
                }
              }
            },
            "next_cursor": {
              "type": [
                "string",
                "null"
              ],
              "description": "The indexer's position cursor for the next page, or null when this page is the last."
            },
            "indexedHeight": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "The Paxeer height the indexer has indexed (indexer freshness); null before the first indexed block."
            },
            "chainHeight": {
              "type": "integer",
              "minimum": 0,
              "description": "The Paxeer head height eth_blockNumber answers."
            },
            "freshness": {
              "type": "object",
              "description": "The indexer readiness document."
            }
          }
        }
      },
      "description": "The indexed transfer history of one Paxeer EVM address, oldest first in the indexer's (blockHeight, txIndex, logIndex) position order, from the layerx-indexer read API: native, ERC-20, pointer, bank, tokenfactory and custody rows, each joined with asset_metadata. An explicit DID selects its bound EVM address. Cursors are the indexer's, passed through unchanged. An address the indexer has never seen answers an empty page. Every row includes tx_hash exactly equal to tx_id.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "History unavailable"
        },
        {
          "code": -32005,
          "message": "Read unavailable"
        }
      ]
    },
    {
      "name": "px_getUnifiedHistory",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "account",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^(0x[0-9a-fA-F]{40}|did:layerx:[0-9a-fA-F]{64})$"
          },
          "description": "An EVM address or explicit DID; a DID resolves to its bound EVM address through addr 0x0000000000000000000000000000000000001004 and history is read for that EVM address only. An unbound DID is refused with -32602."
        },
        {
          "name": "cursor",
          "required": false,
          "schema": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9a-f]{32}$"
          },
          "description": "The next_cursor of the previous page: the indexer's 32-lowercase-hex (blockHeight, txIndex, logIndex) position cursor, passed through unchanged; null or absent for the first page. Any other form, including the 112-hex form, is refused with -32602."
        },
        {
          "name": "limit",
          "required": false,
          "schema": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 100,
            "default": 50
          },
          "description": "Rows per page."
        },
        {
          "name": "kind",
          "required": false,
          "schema": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[a-z0-9_]{1,64}$"
          },
          "description": "Only rows of this indexer kind, for example native_transfer, erc20_transfer, pointer_transfer or bank_transfer."
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "account",
            "accounts",
            "items",
            "next_cursor",
            "indexedHeight",
            "chainHeight",
            "freshness"
          ],
          "additionalProperties": false,
          "properties": {
            "account": {
              "type": "object",
              "required": [
                "evm_address",
                "pax_address",
                "layerx_did",
                "layerx_account",
                "bound"
              ],
              "properties": {
                "evm_address": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pax_address": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "layerx_did": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "layerx_account": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "bound": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false,
              "description": "The px_resolveAccount document retained for the selected EVM address."
            },
            "accounts": {
              "type": "array",
              "maxItems": 16,
              "items": {
                "type": "object",
                "required": [
                  "side",
                  "account"
                ],
                "additionalProperties": false,
                "properties": {
                  "side": {
                    "type": "string",
                    "enum": [
                      "paxeer",
                      "layerx"
                    ],
                    "description": "The side the row comes from: paxeer or layerx."
                  },
                  "account": {
                    "type": "string"
                  }
                },
                "oneOf": [
                  {
                    "properties": {
                      "side": {
                        "const": "paxeer"
                      },
                      "account": {
                        "pattern": "^0x[0-9a-f]{40}$"
                      }
                    }
                  },
                  {
                    "properties": {
                      "side": {
                        "const": "layerx"
                      },
                      "account": {
                        "pattern": "^[0-9a-f]{64}$"
                      }
                    }
                  }
                ]
              },
              "description": "The EVM account of the resolved identity with side paxeer, followed by the canonical main account and the owned native accounts with side layerx, in the order composed by rpc/px_history.go.",
              "minItems": 1
            },
            "items": {
              "type": "array",
              "maxItems": 100,
              "items": {
                "type": "object",
                "required": [
                  "id",
                  "height_or_seq",
                  "chain",
                  "kind",
                  "direction",
                  "account",
                  "counterparty",
                  "asset",
                  "amount",
                  "tx_id",
                  "tx_hash",
                  "ordinal",
                  "final",
                  "final_basis",
                  "stability",
                  "settlement",
                  "decoded",
                  "asset_metadata",
                  "side",
                  "blockHeight",
                  "txIndex",
                  "logIndex"
                ],
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^([1-9][0-9]*|explorer:[1-9][0-9]*)$",
                    "description": "The indexer row id; rows are ordered by (blockHeight, txIndex, logIndex)."
                  },
                  "height_or_seq": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "description": "The LayerX sequence or Paxeer block height of the row."
                  },
                  "chain": {
                    "type": "string",
                    "enum": [
                      "layerx",
                      "paxeer"
                    ],
                    "description": "The chain that recorded the row."
                  },
                  "kind": {
                    "type": "string",
                    "pattern": "^[a-z0-9_]{1,64}$"
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "in",
                      "out"
                    ]
                  },
                  "account": {
                    "type": "string"
                  },
                  "counterparty": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "asset": {
                    "type": "string"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "description": "Exact decimal amount in the asset's base units."
                  },
                  "tx_id": {
                    "type": "string"
                  },
                  "ordinal": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$"
                  },
                  "final": {
                    "type": "boolean",
                    "description": "True once the row is below its chain's finalized boundary."
                  },
                  "final_basis": {
                    "type": "string",
                    "enum": [
                      "block_commit",
                      "explorer_api"
                    ],
                    "description": "Provenance of the indexer stability classification; this does not imply verified settlement."
                  },
                  "stability": {
                    "type": "object",
                    "required": [
                      "level",
                      "source",
                      "finalized_boundary"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "level": {
                        "type": "string",
                        "enum": [
                          "depth_stable",
                          "reversible",
                          "explorer_recorded"
                        ]
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "block_commit",
                          "explorer_api"
                        ]
                      },
                      "finalized_boundary": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "pattern": "^(0|[1-9][0-9]*)$"
                      }
                    }
                  },
                  "settlement": {
                    "type": "object",
                    "required": [
                      "level",
                      "source",
                      "reason"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "level": {
                        "type": "string",
                        "enum": [
                          "unverified"
                        ]
                      },
                      "source": {
                        "type": "null"
                      },
                      "reason": {
                        "type": "string",
                        "enum": [
                          "no_verified_checkpoint_evidence"
                        ]
                      }
                    },
                    "description": "The indexer has no verified checkpoint evidence for this row. Stability alone is not settlement."
                  },
                  "decoded": {
                    "description": "The indexer's decoded payload for the row."
                  },
                  "asset_metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "The row's asset joined from the indexer's /v1/assets record and the LayerX asset registry, or null when the indexer has no record of the asset.",
                    "required": [
                      "asset",
                      "chain",
                      "kind",
                      "address",
                      "denom",
                      "symbol",
                      "decimals",
                      "native_id",
                      "pointer",
                      "metadata"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "asset": {
                        "type": "string",
                        "description": "The indexer asset label: 64-hex LayerX asset id, evm:native, evm:<address> or denom:<denom>."
                      },
                      "chain": {
                        "type": "string",
                        "enum": [
                          "layerx",
                          "paxeer"
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "description": "The indexer asset kind: layerx, native, erc20, pointer, bank or tokenfactory."
                      },
                      "address": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The EVM contract address for erc20 and pointer assets."
                      },
                      "denom": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The Cosmos denom for bank, tokenfactory and pointer assets."
                      },
                      "symbol": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The indexer metadata symbol, else the LayerX registry symbol of the asset (by asset id) or of its denom; null when neither declares one."
                      },
                      "decimals": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 0,
                        "description": "The indexer metadata decimals, else the LayerX registry decimals, else 18 for the EVM native coin; null when nothing declares them."
                      },
                      "native_id": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "pattern": "^[0-9a-f]{64}$",
                        "description": "The LayerX asset id this asset is, or that the registry maps its denom to."
                      },
                      "pointer": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "pattern": "^0x[0-9a-f]{40}$",
                        "description": "The EVM pointer contract address when the asset is a pointer."
                      },
                      "metadata": {
                        "description": "The indexer's own metadata document for the asset."
                      }
                    }
                  },
                  "side": {
                    "type": "string",
                    "enum": [
                      "paxeer",
                      "layerx"
                    ],
                    "description": "The side the row comes from: paxeer or layerx."
                  },
                  "blockHeight": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "The block height of the row's position."
                  },
                  "txIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "The transaction index of the row's position."
                  },
                  "logIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "The log index of the row's position."
                  },
                  "tx_index": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$"
                  },
                  "log_index": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$"
                  },
                  "tx_hash": {
                    "type": "string",
                    "pattern": "^0x[0-9a-f]{64}$",
                    "description": "Transaction hash, exactly equal to tx_id."
                  }
                }
              }
            },
            "next_cursor": {
              "type": [
                "string",
                "null"
              ],
              "description": "The indexer's position cursor for the next page, or null when this page is the last."
            },
            "indexedHeight": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "The Paxeer height the indexer has indexed (indexer freshness); null before the first indexed block."
            },
            "chainHeight": {
              "type": "integer",
              "minimum": 0,
              "description": "The Paxeer head height eth_blockNumber answers."
            },
            "freshness": {
              "type": "object",
              "description": "The indexer readiness document."
            }
          }
        }
      },
      "description": "Resolves the account as px_resolveAccount does, then reads only its EVM address from the layerx-indexer read API, oldest first in (blockHeight, txIndex, logIndex) position order. The account field retains the resolution document; accounts contains exactly one entry with side paxeer and the selected EVM address, and every row has side paxeer and asset_metadata. LayerX account identifiers are resolution metadata, not additional history sources; no public core account listing is queried. An unbound DID is refused with -32602. The indexer's position cursor is passed through unchanged. Every row includes tx_hash exactly equal to tx_id.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        },
        {
          "code": -32001,
          "message": "History unavailable"
        },
        {
          "code": -32005,
          "message": "Read unavailable"
        }
      ]
    },
    {
      "name": "px_listHolderRecords",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "address",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^0x[0-9A-Fa-f]{40}$"
          },
          "description": "The holder's Paxeer EVM address."
        },
        {
          "name": "kind",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "budget",
              "grant"
            ]
          },
          "description": "The record kind: layerxpay budgets or ledger and grant precompile grants."
        },
        {
          "name": "cursor",
          "required": false,
          "schema": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9a-f]{32}$"
          },
          "description": "The next_cursor of the previous page: the indexer's 32-lowercase-hex (blockHeight, txIndex, logIndex) position cursor, passed through unchanged; null or absent for the first page. Any other form, including the 112-hex form, is refused with -32602."
        },
        {
          "name": "limit",
          "required": false,
          "schema": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 100,
            "default": 50
          },
          "description": "Records per page; above 100 is refused with -32602."
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "items",
            "next_cursor",
            "indexedHeight",
            "chainHeight"
          ],
          "additionalProperties": false,
          "properties": {
            "items": {
              "type": "array",
              "maxItems": 100,
              "items": {
                "type": "object",
                "description": "One indexer holder record of the requested kind held by the address."
              }
            },
            "next_cursor": {
              "type": [
                "string",
                "null"
              ],
              "pattern": "^[0-9a-f]{32}$"
            },
            "indexedHeight": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "The Paxeer height the indexer has indexed (indexer freshness); null before the first indexed block."
            },
            "chainHeight": {
              "type": "integer",
              "minimum": 0,
              "description": "The Paxeer head height eth_blockNumber answers."
            }
          }
        }
      },
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "History unavailable"
        },
        {
          "code": -32005,
          "message": "Read unavailable"
        }
      ]
    },
    {
      "name": "px_getCapabilities",
      "paramStructure": "by-position",
      "params": [],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "exchange",
            "bridge",
            "launchpad",
            "ledger",
            "pay",
            "auth",
            "programs",
            "addresses",
            "probed_at",
            "rpc_height"
          ],
          "properties": {
            "exchange": {
              "type": "boolean",
              "description": "True when eth_call of totalMarkets() at the exchange precompile 0x0000000000000000000000000000000000001015 decodes as the view's uint256 return value; false when the call reverts or answers a malformed value."
            },
            "bridge": {
              "type": "boolean",
              "description": "True when eth_call of isPaused() at the bridge precompile 0x0000000000000000000000000000000000001016 decodes as the view's bool return value; false when the call reverts or answers a malformed value."
            },
            "launchpad": {
              "type": "boolean",
              "description": "True when eth_call of getPoolCount() at the launchpad precompile 0x0000000000000000000000000000000000001017 decodes as the view's uint256 return value; false when the call reverts or answers a malformed value."
            },
            "ledger": {
              "type": "boolean",
              "description": "True when eth_call of accountId(bytes32,bytes32) at the ledger precompile 0x000000000000000000000000000000000000101a using two zero bytes32 arguments decodes as the view's bytes32 return value; false when the call reverts or answers a malformed value."
            },
            "pay": {
              "type": "boolean",
              "description": "True when eth_call of budgetRemaining(bytes32) at the pay precompile 0x000000000000000000000000000000000000101b using a zero bytes32 argument decodes as the view's uint128 return value; false when the call reverts or answers a malformed value."
            },
            "auth": {
              "type": "boolean",
              "description": "True when eth_call of isLive(bytes32,uint64,uint64) at the auth precompile 0x000000000000000000000000000000000000101c using a zero bytes32 and two zero uint64 arguments decodes as the view's bool and string return values; false when the call reverts or answers a malformed value."
            },
            "programs": {
              "type": "boolean",
              "description": "True when eth_call of getCurrentFeeSchedule() at the programs precompile 0x000000000000000000000000000000000000101d decodes as the view's uint32, uint64[7] and bytes32 return values; false when the call reverts or answers a malformed value."
            },
            "addresses": {
              "type": "object",
              "required": [
                "exchange",
                "bridge",
                "launchpad",
                "ledger",
                "pay",
                "auth",
                "programs"
              ],
              "properties": {
                "exchange": {
                  "type": "string"
                },
                "bridge": {
                  "type": "string"
                },
                "launchpad": {
                  "type": "string"
                },
                "ledger": {
                  "type": "string"
                },
                "pay": {
                  "type": "string"
                },
                "auth": {
                  "type": "string"
                },
                "programs": {
                  "type": "string"
                }
              }
            },
            "probed_at": {
              "type": "integer",
              "minimum": 0,
              "description": "Unix seconds at which the gateway took the probe."
            },
            "rpc_height": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$",
              "description": "The Paxeer block height, as a decimal string, at which every probe call was made."
            }
          }
        }
      },
      "description": "Which Paxeer X fork surfaces the chain answers for. The gateway reads eth_blockNumber and then uses eth_call at that height to probe each precompile's view: exchange at 0x0000000000000000000000000000000000001015 with totalMarkets(), bridge at 0x0000000000000000000000000000000000001016 with isPaused(), launchpad at 0x0000000000000000000000000000000000001017 with getPoolCount(), ledger at 0x000000000000000000000000000000000000101a with accountId(bytes32,bytes32) using two zero bytes32 arguments, pay at 0x000000000000000000000000000000000000101b with budgetRemaining(bytes32) using a zero bytes32 argument, auth at 0x000000000000000000000000000000000000101c with isLive(bytes32,uint64,uint64) using a zero bytes32 and two zero uint64 arguments, and programs at 0x000000000000000000000000000000000000101d with getCurrentFeeSchedule(). A surface is true when the answer decodes as its view's return value, and false when the call reverts or answers a malformed value, including an empty answer. The answer is cached for LAYERX_GATEWAY_CAPABILITIES_TTL_SECONDS (default 15). While a surface is false, eth_sendRawTransaction and eth_sendRawTransactionSync addressed to its precompile are refused with -32003 Surface unavailable and data {code: surface_unavailable, surface, address}; reads and history are never gated. Takes no arguments.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        },
        {
          "code": -32001,
          "message": "Paxeer endpoint not configured"
        }
      ]
    },
    {
      "name": "px_getRouteCatalogue",
      "paramStructure": "by-position",
      "summary": "Authenticated product route catalogue and dependency readiness.",
      "params": [],
      "result": {
        "name": "catalogue",
        "schema": {
          "type": "object",
          "required": [
            "schema",
            "chain_id",
            "services",
            "routes",
            "readiness",
            "canonical_origin",
            "rpc_paths",
            "node_rpc",
            "hosted_gateway"
          ],
          "properties": {
            "schema": {
              "const": "paxeer-x.routes.v1"
            },
            "chain_id": {
              "const": 125
            },
            "services": {
              "type": "array",
              "items": {
                "type": "object"
              }
            },
            "routes": {
              "type": "array",
              "items": {
                "type": "object"
              }
            },
            "readiness": {
              "type": "object"
            },
            "canonical_origin": {
              "const": "https://api-mainnet-beta.paxeer.network",
              "description": "Public root-node origin; this does not locate the hosted gateway."
            },
            "rpc_paths": {
              "type": "array",
              "const": [
                "/"
              ],
              "items": {
                "type": "string",
                "const": "/"
              }
            },
            "node_rpc": {
              "type": "object",
              "const": {
                "origin": "https://api-mainnet-beta.paxeer.network",
                "rpc_path": "/",
                "chain_id": 125
              },
              "description": "Chain 125 node JSON-RPC is served at this origin and root path."
            },
            "hosted_gateway": {
              "type": "object",
              "const": {
                "location_source": "operator-provided",
                "rpc_path": "/",
                "catalogue_path": "/v1/routes"
              },
              "description": "Obtain hosted gateway coordinates and credentials from its operator. These paths are relative to that gateway, not node_rpc.origin; px_* availability at public node URLs is not implied."
            }
          }
        }
      },
      "description": "Returns the authenticated route catalogue for the merged Paxeer network (chain 125), with separate node_rpc and hosted_gateway locations. Public node JSON-RPC uses the root path; hosted px_* JSON-RPC uses POST / at operator-provided gateway coordinates, and authenticated HTTP discovery uses GET /v1/routes there. The unified /rpc interface and its subtree are retired and omitted from discovery. Readiness reports dependency health and identity checks; route entries describe request contracts and do not establish successful end-to-end feature execution or hosted API deployment at public node URLs."
    },
    {
      "name": "px_getInferenceRooms",
      "paramStructure": "by-position",
      "params": [],
      "result": {
        "name": "result",
        "schema": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "room_id",
              "host_key",
              "model_digest",
              "runtime_digest",
              "profile",
              "state",
              "opened_at_epoch",
              "open_asks",
              "open_bids",
              "ask_streams"
            ],
            "additionalProperties": false,
            "properties": {
              "room_id": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "host_key": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "model_digest": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "runtime_digest": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "profile": {
                "type": "object",
                "required": [
                  "minimum_bond",
                  "lap_size_tokens",
                  "challenge_window_blocks",
                  "canary_ratio_bps",
                  "slash_fraction_bps",
                  "host_share_bps",
                  "protocol_share_bps",
                  "settlement_account"
                ],
                "additionalProperties": false,
                "properties": {
                  "minimum_bond": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$"
                  },
                  "lap_size_tokens": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$"
                  },
                  "challenge_window_blocks": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$"
                  },
                  "canary_ratio_bps": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "slash_fraction_bps": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "host_share_bps": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "protocol_share_bps": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "settlement_account": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  }
                }
              },
              "state": {
                "enum": [
                  0,
                  1
                ]
              },
              "opened_at_epoch": {
                "type": "string",
                "pattern": "^(0|[1-9][0-9]*)$"
              },
              "open_asks": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "maxItems": 64
              },
              "open_bids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "maxItems": 128
              },
              "ask_streams": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "ask_id",
                    "stream_id",
                    "stream"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "ask_id": {
                      "type": "string",
                      "pattern": "^[0-9a-f]{64}$"
                    },
                    "stream_id": {
                      "type": "string",
                      "pattern": "^[0-9a-f]{64}$"
                    },
                    "stream": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "object",
                          "required": [
                            "payer",
                            "stream_account",
                            "recipient",
                            "asset_id",
                            "mode",
                            "rate",
                            "rate_unit",
                            "start_ms",
                            "last_accrual_ms",
                            "end_ms",
                            "total_cap",
                            "accrued_total",
                            "settled_total",
                            "remainder_carry",
                            "cumulative_meter",
                            "meter_authorities",
                            "underfunded",
                            "paused",
                            "closed"
                          ],
                          "additionalProperties": false,
                          "properties": {
                            "payer": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$"
                            },
                            "stream_account": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$"
                            },
                            "recipient": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$"
                            },
                            "asset_id": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$"
                            },
                            "mode": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "rate": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "rate_unit": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "start_ms": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "last_accrual_ms": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "end_ms": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "total_cap": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "accrued_total": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "settled_total": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "remainder_carry": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "cumulative_meter": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "meter_authorities": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[0-9a-f]{64}$"
                              },
                              "maxItems": 8
                            },
                            "underfunded": {
                              "type": "boolean"
                            },
                            "paused": {
                              "type": "boolean"
                            },
                            "closed": {
                              "type": "boolean"
                            }
                          }
                        }
                      ]
                    }
                  }
                },
                "maxItems": 64
              }
            }
          },
          "maxItems": 16
        }
      },
      "description": "Node root read of the deployed ai-market F11 program at one committed height. IDs are 32-byte lowercase hexadecimal without a prefix. The node must configure WithPxInferenceProgram with the deployed program and a bound read identity. Integers wider than 32 bits are decimal strings. Extra parameters are refused. Room answers include open ask streams read from 0x101B. An unavailable program, stream or binding is an explicit -32001 refusal. Hosted operators must route these reads to the configured node root.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        }
      ]
    },
    {
      "name": "px_getInferenceRoom",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "roomId",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "room_id",
            "host_key",
            "model_digest",
            "runtime_digest",
            "profile",
            "state",
            "opened_at_epoch",
            "open_asks",
            "open_bids",
            "ask_streams"
          ],
          "additionalProperties": false,
          "properties": {
            "room_id": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "host_key": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "model_digest": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "runtime_digest": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "profile": {
              "type": "object",
              "required": [
                "minimum_bond",
                "lap_size_tokens",
                "challenge_window_blocks",
                "canary_ratio_bps",
                "slash_fraction_bps",
                "host_share_bps",
                "protocol_share_bps",
                "settlement_account"
              ],
              "additionalProperties": false,
              "properties": {
                "minimum_bond": {
                  "type": "string",
                  "pattern": "^(0|[1-9][0-9]*)$"
                },
                "lap_size_tokens": {
                  "type": "string",
                  "pattern": "^(0|[1-9][0-9]*)$"
                },
                "challenge_window_blocks": {
                  "type": "string",
                  "pattern": "^(0|[1-9][0-9]*)$"
                },
                "canary_ratio_bps": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000
                },
                "slash_fraction_bps": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000
                },
                "host_share_bps": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000
                },
                "protocol_share_bps": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000
                },
                "settlement_account": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                }
              }
            },
            "state": {
              "enum": [
                0,
                1
              ]
            },
            "opened_at_epoch": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$"
            },
            "open_asks": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "maxItems": 64
            },
            "open_bids": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "maxItems": 128
            },
            "ask_streams": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "ask_id",
                  "stream_id",
                  "stream"
                ],
                "additionalProperties": false,
                "properties": {
                  "ask_id": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "stream_id": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "stream": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "required": [
                          "payer",
                          "stream_account",
                          "recipient",
                          "asset_id",
                          "mode",
                          "rate",
                          "rate_unit",
                          "start_ms",
                          "last_accrual_ms",
                          "end_ms",
                          "total_cap",
                          "accrued_total",
                          "settled_total",
                          "remainder_carry",
                          "cumulative_meter",
                          "meter_authorities",
                          "underfunded",
                          "paused",
                          "closed"
                        ],
                        "additionalProperties": false,
                        "properties": {
                          "payer": {
                            "type": "string",
                            "pattern": "^[0-9a-f]{64}$"
                          },
                          "stream_account": {
                            "type": "string",
                            "pattern": "^[0-9a-f]{64}$"
                          },
                          "recipient": {
                            "type": "string",
                            "pattern": "^[0-9a-f]{64}$"
                          },
                          "asset_id": {
                            "type": "string",
                            "pattern": "^[0-9a-f]{64}$"
                          },
                          "mode": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "rate": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "rate_unit": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "start_ms": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "last_accrual_ms": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "end_ms": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "total_cap": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "accrued_total": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "settled_total": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "remainder_carry": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "cumulative_meter": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "meter_authorities": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$"
                            },
                            "maxItems": 8
                          },
                          "underfunded": {
                            "type": "boolean"
                          },
                          "paused": {
                            "type": "boolean"
                          },
                          "closed": {
                            "type": "boolean"
                          }
                        }
                      }
                    ]
                  }
                }
              },
              "maxItems": 64
            }
          }
        }
      },
      "description": "Node root read of the deployed ai-market F11 program at one committed height. IDs are 32-byte lowercase hexadecimal without a prefix. The node must configure WithPxInferenceProgram with the deployed program and a bound read identity. Integers wider than 32 bits are decimal strings. Extra parameters are refused. Room answers include open ask streams read from 0x101B. An unavailable program, stream or binding is an explicit -32001 refusal. Hosted operators must route these reads to the configured node root.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        }
      ]
    },
    {
      "name": "px_getInferenceDeal",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "dealId",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "room_id",
            "deal_id",
            "ask_id",
            "roster_digest",
            "agreed_price_per_thousand_tokens",
            "state",
            "layers",
            "settled_tokens",
            "settled_amount_owed"
          ],
          "additionalProperties": false,
          "properties": {
            "room_id": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "deal_id": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "ask_id": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "roster_digest": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "agreed_price_per_thousand_tokens": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$"
            },
            "state": {
              "enum": [
                0,
                1
              ]
            },
            "layers": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "bid_id",
                  "first_layer",
                  "end_layer"
                ],
                "additionalProperties": false,
                "properties": {
                  "bid_id": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "first_layer": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "end_layer": {
                    "type": "integer",
                    "minimum": 0
                  }
                }
              },
              "maxItems": 32
            },
            "settled_tokens": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$"
            },
            "settled_amount_owed": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$"
            }
          }
        }
      },
      "description": "Node root read of the deployed ai-market F11 program at one committed height. IDs are 32-byte lowercase hexadecimal without a prefix. The node must configure WithPxInferenceProgram with the deployed program and a bound read identity. Integers wider than 32 bits are decimal strings. Extra parameters are refused. An unavailable program, stream or binding is an explicit -32001 refusal. Hosted operators must route these reads to the configured node root.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        }
      ]
    },
    {
      "name": "px_getInferencePeer",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "peerKey",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "object",
          "required": [
            "peer_key",
            "worker",
            "delegate",
            "metadata",
            "generation",
            "key_version",
            "metadata_revision",
            "valid_from",
            "expiry",
            "state",
            "enrolled",
            "capabilities_status",
            "capabilities",
            "bond_status",
            "fault_count",
            "attestation_binding"
          ],
          "additionalProperties": false,
          "properties": {
            "peer_key": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "worker": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "delegate": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "metadata": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "generation": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$"
            },
            "key_version": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$"
            },
            "metadata_revision": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$"
            },
            "valid_from": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$"
            },
            "expiry": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$"
            },
            "state": {
              "enum": [
                1,
                2,
                3,
                4,
                5,
                6
              ]
            },
            "enrolled": {
              "type": "boolean"
            },
            "capabilities_status": {
              "enum": [
                1,
                4
              ]
            },
            "capabilities": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "required": [
                    "accelerator_memory_mib",
                    "system_memory_mib",
                    "bandwidth_class",
                    "attestation_family",
                    "runtime_kind",
                    "region_code"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "accelerator_memory_mib": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "system_memory_mib": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "bandwidth_class": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "attestation_family": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "runtime_kind": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "region_code": {
                      "type": "string",
                      "pattern": "^[A-Za-z]{2}$"
                    }
                  }
                }
              ]
            },
            "bond_status": {
              "const": 2
            },
            "fault_count": {
              "type": "integer",
              "minimum": 0
            },
            "attestation_binding": {
              "type": "object",
              "required": [
                "family",
                "model_digest",
                "runtime_digest",
                "block_height"
              ],
              "additionalProperties": false,
              "properties": {
                "family": {
                  "type": "integer",
                  "minimum": 0
                },
                "model_digest": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "runtime_digest": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "block_height": {
                  "type": "string",
                  "pattern": "^(0|[1-9][0-9]*)$"
                }
              }
            }
          }
        }
      },
      "description": "Node root read of the deployed ai-market F11 program at one committed height. IDs are 32-byte lowercase hexadecimal without a prefix. The node must configure WithPxInferenceProgram with the deployed program and a bound read identity. Integers wider than 32 bits are decimal strings. Extra parameters are refused. Peer answers include the binding read from 0x0907; zero fields mean no binding. An unavailable program, stream or binding is an explicit -32001 refusal. Hosted operators must route these reads to the configured node root.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        }
      ]
    },
    {
      "name": "px_getInferenceReceipts",
      "paramStructure": "by-position",
      "params": [
        {
          "name": "dealId",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        }
      ],
      "result": {
        "name": "result",
        "schema": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "deal_id",
              "first_lap_index",
              "last_lap_index",
              "cumulative_tokens",
              "batch_digest",
              "countersign_quorum"
            ],
            "additionalProperties": false,
            "properties": {
              "deal_id": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "first_lap_index": {
                "type": "string",
                "pattern": "^(0|[1-9][0-9]*)$"
              },
              "last_lap_index": {
                "type": "string",
                "pattern": "^(0|[1-9][0-9]*)$"
              },
              "cumulative_tokens": {
                "type": "string",
                "pattern": "^(0|[1-9][0-9]*)$"
              },
              "batch_digest": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "countersign_quorum": {
                "type": "integer",
                "minimum": 0
              }
            }
          },
          "maxItems": 16
        }
      },
      "description": "Node root read of the deployed ai-market F11 program at one committed height. IDs are 32-byte lowercase hexadecimal without a prefix. The node must configure WithPxInferenceProgram with the deployed program and a bound read identity. Integers wider than 32 bits are decimal strings. Extra parameters are refused. The producer retains the current receipt batch per deal; this returns that batch, or an empty list before settlement. An unavailable program, stream or binding is an explicit -32001 refusal. Hosted operators must route these reads to the configured node root.",
      "errors": [
        {
          "code": -32602,
          "message": "Invalid params"
        },
        {
          "code": -32001,
          "message": "Paxeer read unavailable"
        }
      ]
    }
  ]
}
