From 11f779c6f54d03c4d16d7cde05963d72796a6256 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Mon, 17 Feb 2025 16:38:44 +0100 Subject: [PATCH 1/6] Docs, v22: Introduce [version-22] release page --- docs/index.rst | 1 + docs/introduction/tezos.rst | 4 +- docs/releases/version-22.rst | 82 ++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 docs/releases/version-22.rst diff --git a/docs/index.rst b/docs/index.rst index 60138529fc7e..562c206b0d6f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -213,6 +213,7 @@ You may also access this whole documentation as a single `text file ` is available. For installing instructions, see :doc:`./howtoget`. diff --git a/docs/releases/version-22.rst b/docs/releases/version-22.rst new file mode 100644 index 000000000000..133673a9e5a9 --- /dev/null +++ b/docs/releases/version-22.rst @@ -0,0 +1,82 @@ +Version 22.0~rc1 +================ + +Changes +------- + +Summary +~~~~~~~ + +Version 22 introduces the following changes or new features: + (1) Support of the **Rio Protocol proposal** (See :ref:`the protocol support section `) + (2) Source code is compiled with **OCaml 5 compiler** (See :ref:`the compiler version section `) + (3) The baker requires an endpoint of a running DAL node or the ``--without-dal`` option to start. (See :ref:`the DAL node section `) + (4) The default :doc:`history mode <../user/history_modes>` is now ``Rolling`` instead of ``Full``. + (5) **New experimental agnostic baker executable**. (See :ref:`the experimental agnostic baker section `) + (6) Release of the new Debian and RPM packages. (See :ref:`the packages section `) + +.. _protocol_support_v22: + +Protocol Support +~~~~~~~~~~~~~~~~ + +Version 22 contains a new version (V14) of the protocol environment. +As a result, Octez version 22 is the first version compatible with all protocols that require this environment, such as `the Rio protocol proposal `__. + +.. _compiler_version_v22: + +Compiler Version +~~~~~~~~~~~~~~~~ + +Starting from Octez version 22, the source code can be compiled with version 5 of the OCaml compiler. The distribution of Octez, starting from this version, will be compiled with OCaml version ``5.2.1`` instead of ``4.14.2``. + +.. _dal_node_v22: + +DAL Node +~~~~~~~~ + +The baker option ``--without-dal``, introduced in :doc:`Octez-v21.3 `, is now **mandatory** if not providing an endpoint of a DAL node. + +See :doc:`the DAL node documentation <../shell/dal_node>` for futher details. + +.. _agnostic_baker_v22: + +Experimental Agnostic Baker +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Octez v22 introduces a **protocol-agnostic baker as experimental**, named ``octez-experimental-agnostic-baker``. + +The Agnostic Baker is a protocol-independent binary that dynamically determines and executes the appropriate baking binary based on the active protocol. + +It continuously monitors the blockchain state and automatically transitions to the correct binary whenever +a new protocol is detected by the node, such as during migrations or at startup. + +The v22 agnostic is **EXPERIMENTAL ONLY** and should **NOT** be used on ``mainnet``. +You can use the agnostic baker on test networks and give feedback. + +You can find more information on the agnostic baker in the corresponding :src:`README ` file. + +Update Instructions +------------------- + +To update from sources:: + + git fetch + git checkout octez-v22.0-rc1 + make clean + opam switch remove . # To be used if the next step fails + make build-deps + eval $(opam env) + make + +If you are using Docker instead, use the ``octez-v22.0-rc1`` Docker images of Octez. + + +.. _packages_v22: + +Packages +~~~~~~~~ + +In Octez v22, the new set of packages, that was introduced in the previous version of Octez, **replaces** the old one in the APT repository. Check :ref:`the documentation ` for more details. + +Futhermore, RPM packages are now available in a **dnf repository**. Installation instructions are detailed in :ref:`the documentation `. -- GitLab From bd51fdfbc8313627cb78ea99dc4fb1a7270656ab Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Thu, 20 Feb 2025 11:11:23 +0100 Subject: [PATCH 2/6] Docs, v22: Hardware specifications --- docs/releases/version-22.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/releases/version-22.rst b/docs/releases/version-22.rst index 133673a9e5a9..58a5f96c85b4 100644 --- a/docs/releases/version-22.rst +++ b/docs/releases/version-22.rst @@ -56,6 +56,23 @@ You can use the agnostic baker on test networks and give feedback. You can find more information on the agnostic baker in the corresponding :src:`README ` file. +Minimal hardware specifications +------------------------------- + +Our benchmarks suggest the following *minimal* specs for Octez node and baker operators: + +- 3 CPU cores: 2 needed by the node and 1 needed by the baker (arm64 or amd64/x86-64) +- 8GB of RAM + 8GB of swap (or 16GB of RAM) +- 100GB SSD storage (or similar I/O performance) +- A low-latency reliable internet connection + +This configuration has been tested for running an Octez node in :doc:`rolling history mode <../user/history_modes>`. +Other more specific uses may need adequate configurations. +For instance: + +- running a node in full or archive mode requires extra storage space; +- bakers participating to the DAL should consult `this article `__. + Update Instructions ------------------- -- GitLab From d2bf43ebe82400f27bf1ef9618ef49e00b20ce46 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Thu, 20 Feb 2025 11:37:31 +0100 Subject: [PATCH 3/6] Docs, OpenApi: Specifications for Rio --- docs/api/openapi.rst | 17 +- docs/api/rio-mempool-openapi.json | 3504 +++ docs/api/rio-openapi.json | 25566 ++++++++++++++++++ docs/api/rio-smart-rollup-node-openapi.json | 1 + 4 files changed, 29086 insertions(+), 2 deletions(-) create mode 100644 docs/api/rio-mempool-openapi.json create mode 100644 docs/api/rio-openapi.json create mode 100644 docs/api/rio-smart-rollup-node-openapi.json diff --git a/docs/api/openapi.rst b/docs/api/openapi.rst index b70529ece9fe..489db349362a 100644 --- a/docs/api/openapi.rst +++ b/docs/api/openapi.rst @@ -61,15 +61,28 @@ Quebec RPCs ----------- The OpenAPI specifications for RPCs which are specific to the Quebec (``PtQuebec``) -protocol proposal can be found at: +protocol can be found at: - :src:`docs/api/quebec-openapi.json` (version 21.4) The OpenAPI specifications for RPCs which are related to the mempool -and specific to the Quebec protocol proposal can be found at: +and specific to the Quebec protocol can be found at: - :src:`docs/api/quebec-mempool-openapi.json` (version 21.4) +Rio RPCs +-------- + +The OpenAPI specifications for RPCs which are specific to the Rio (``PsRiotum``) +protocol proposal can be found at: + +- :src:`docs/api/rio-openapi.json` (version 22.0~rc1) + +The OpenAPI specifications for RPCs which are related to the mempool +and specific to the Rio protocol proposal can be found at: + +- :src:`docs/api/rio-mempool-openapi.json` (version 22.0~rc1) + Alpha RPCs ---------- diff --git a/docs/api/rio-mempool-openapi.json b/docs/api/rio-mempool-openapi.json new file mode 100644 index 000000000000..4a88644ea873 --- /dev/null +++ b/docs/api/rio-mempool-openapi.json @@ -0,0 +1,3504 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez Mempool RPC", + "description": "The RPC API for the mempool served by the Octez node.", + "version": "Octez 22.0~rc1 (TBD)" + }, + "paths": { + "/ban_operation": { + "post": { + "description": "Remove an operation from the mempool if present. Also add it to the set of banned operations to prevent it from being fetched/processed/injected in the future. Note: If the baker has already received the operation, then it's necessary to restart it to flush the operation from it.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/filter": { + "get": { + "description": "Get the configuration of the mempool's filter and bounds. Values of the form [ \"21\", \"20\" ] are rational numbers given as a numerator and a denominator, e.g. 21/20 = 1.05. The minimal_fees (in mutez), minimal_nanotez_per_gas_unit, and minimal_nanotez_per_byte are requirements that a manager operation must meet to be considered by the mempool. replace_by_fee_factor is how much better a manager operation must be to replace a previous valid operation **from the same manager** (both its fee and its fee/gas ratio must exceed the old operation's by at least this factor). max_operations and max_total_bytes are the bounds on respectively the number of valid operations in the mempool and the sum of their sizes in bytes.", + "parameters": [ + { + "name": "include_default", + "in": "query", + "description": "Show fields equal to their default value (set by default)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + }, + "post": { + "description": "Set the configuration of the mempool's filter and bounds. **If any of the fields is absent from the input JSON, then it is set to the default value for this field (i.e. its value in the default configuration), even if it previously had a different value.** If the input JSON does not describe a valid configuration, then the configuration is left unchanged. This RPC also returns the new configuration of the mempool (which may differ from the input if the latter omits fields or is invalid). You may call [octez-client rpc get '/chains/main/mempool/filter?include_default=true'] to see an example of JSON describing a valid configuration. See the description of that RPC for details on each configurable value.", + "requestBody": { + "content": { + "application/json": { + "schema": {} + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/monitor_operations": { + "get": { + "description": "Monitor the mempool operations.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "validated", + "in": "query", + "description": "Include validated operations (set by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "refused", + "in": "query", + "description": "Include refused operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "outdated", + "in": "query", + "description": "Include outdated operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_refused", + "in": "query", + "description": "Include branch refused operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_delayed", + "in": "query", + "description": "Include branch delayed operations (set by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "validation_pass", + "in": "query", + "description": "Include operations filtered by validation pass (all by default)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "sources", + "in": "query", + "description": "Include operations filtered by sources (all by default)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error_opt" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/pending_operations": { + "get": { + "description": "List the prevalidated operations.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"2\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "validated", + "in": "query", + "description": "Include validated operations (true by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "refused", + "in": "query", + "description": "Include refused operations (true by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "outdated", + "in": "query", + "description": "Include outdated operations (true by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_refused", + "in": "query", + "description": "Include branch refused operations (true by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_delayed", + "in": "query", + "description": "Include branch delayed operations (true by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "validation_pass", + "in": "query", + "description": "Include operations filtered by validation pass (all by default)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "source", + "in": "query", + "description": "Include operations filtered by source (all by default)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "operation_hash", + "in": "query", + "description": "Include operations filtered by hash (all by default)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "validated": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "branch", + "contents" + ] + } + }, + "refused": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "outdated": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "branch_refused": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "branch_delayed": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "unprocessed": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + } + }, + "required": [ + "validated", + "refused", + "outdated", + "branch_refused", + "branch_delayed", + "unprocessed" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/request_operations": { + "post": { + "description": "Request the operations of our peers or a specific peer if specified via a query parameter.", + "parameters": [ + { + "name": "peer_id", + "in": "query", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/unban_all_operations": { + "post": { + "description": "Clear the set of banned operations.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/unban_operation": { + "post": { + "description": "Remove an operation from the set of banned operations (nothing happens if it was not banned).", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "022-PsRiotum.adaptive_issuance_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + }, + "022-PsRiotum.block_header.alpha.full_header": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "payload_round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proof_of_work_nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "seed_nonce_hash": { + "$ref": "#/components/schemas/cycle_nonce" + }, + "liquidity_baking_toggle_vote": { + "$ref": "#/components/schemas/022-PsRiotum.liquidity_baking_vote" + }, + "adaptive_issuance_vote": { + "$ref": "#/components/schemas/022-PsRiotum.adaptive_issuance_vote" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "payload_hash", + "payload_round", + "proof_of_work_nonce", + "liquidity_baking_toggle_vote", + "adaptive_issuance_vote", + "signature" + ] + }, + "022-PsRiotum.contract_id": { + "title": "A contract handle", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash or a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "022-PsRiotum.contract_id.originated": { + "title": "A contract handle -- originated account", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "022-PsRiotum.entrypoint": { + "title": "entrypoint", + "description": "Named entrypoint to a Michelson smart contract", + "oneOf": [ + { + "title": "default", + "type": "string", + "enum": [ + "default" + ] + }, + { + "title": "root", + "type": "string", + "enum": [ + "root" + ] + }, + { + "title": "do", + "type": "string", + "enum": [ + "do" + ] + }, + { + "title": "set_delegate", + "type": "string", + "enum": [ + "set_delegate" + ] + }, + { + "title": "remove_delegate", + "type": "string", + "enum": [ + "remove_delegate" + ] + }, + { + "title": "deposit", + "type": "string", + "enum": [ + "deposit" + ] + }, + { + "title": "stake", + "type": "string", + "enum": [ + "stake" + ] + }, + { + "title": "unstake", + "type": "string", + "enum": [ + "unstake" + ] + }, + { + "title": "finalize_unstake", + "type": "string", + "enum": [ + "finalize_unstake" + ] + }, + { + "title": "set_delegate_parameters", + "type": "string", + "enum": [ + "set_delegate_parameters" + ] + }, + { + "title": "named", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + ] + }, + "022-PsRiotum.inlined.attestation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation_mempool.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "022-PsRiotum.inlined.attestation_mempool.contents": { + "oneOf": [ + { + "title": "Attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestation_with_dal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation_with_dal" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "dal_attestation": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "dal_attestation" + ] + } + ] + }, + "022-PsRiotum.inlined.preattestation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.preattestation.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "022-PsRiotum.inlined.preattestation.contents": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preattestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + "022-PsRiotum.liquidity_baking_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + }, + "022-PsRiotum.michelson.v1.primitives": { + "type": "string", + "enum": [ + "SHA256", + "GT", + "RIGHT", + "SAPLING_EMPTY_STATE", + "False", + "RENAME", + "CAST", + "tx_rollup_l2_address", + "PACK", + "BYTES", + "timestamp", + "bls12_381_g2", + "Pair", + "IF_LEFT", + "contract", + "mutez", + "storage", + "PAIR", + "view", + "UNPACK", + "ADD", + "DROP", + "big_map", + "MUL", + "NAT", + "SELF", + "CONTRACT", + "CDR", + "SAPLING_VERIFY_UPDATE", + "pair", + "LSL", + "int", + "operation", + "SHA512", + "CREATE_ACCOUNT", + "BLAKE2B", + "SPLIT_TICKET", + "LEFT", + "never", + "unit", + "address", + "signature", + "CHAIN_ID", + "constant", + "SLICE", + "SENDER", + "IMPLICIT_ACCOUNT", + "key_hash", + "AMOUNT", + "CHECK_SIGNATURE", + "sapling_state", + "LT", + "EXEC", + "Elt", + "EMIT", + "NONE", + "CREATE_CONTRACT", + "LSR", + "SET_DELEGATE", + "OPEN_CHEST", + "TRANSFER_TOKENS", + "Some", + "parameter", + "set", + "bls12_381_fr", + "EDIV", + "None", + "STEPS_TO_QUOTA", + "key", + "ABS", + "list", + "NEVER", + "map", + "CAR", + "IF", + "GET_AND_UPDATE", + "CONCAT", + "LOOP", + "DIG", + "KECCAK", + "Lambda_rec", + "SOME", + "option", + "SUB", + "INT", + "PUSH", + "CONS", + "Unit", + "ISNAT", + "NEG", + "XOR", + "APPLY", + "UNPAIR", + "JOIN_TICKETS", + "SIZE", + "lambda", + "AND", + "NEQ", + "or", + "BALANCE", + "UNIT", + "VOTING_POWER", + "OR", + "LAMBDA", + "chest", + "LOOP_LEFT", + "True", + "Right", + "Ticket", + "HASH_KEY", + "DUG", + "sapling_transaction", + "SUB_MUTEZ", + "EMPTY_BIG_MAP", + "MEM", + "IF_NONE", + "nat", + "TOTAL_VOTING_POWER", + "LE", + "Left", + "chest_key", + "READ_TICKET", + "ticket", + "bls12_381_g1", + "LEVEL", + "VIEW", + "string", + "PAIRING_CHECK", + "LAMBDA_REC", + "NOW", + "SHA3", + "bool", + "MIN_BLOCK_TIME", + "GET", + "bytes", + "sapling_transaction_deprecated", + "NIL", + "IF_CONS", + "GE", + "NOT", + "SWAP", + "ITER", + "ADDRESS", + "TICKET", + "DUP", + "EMPTY_MAP", + "UPDATE", + "chain_id", + "TICKET_DEPRECATED", + "EMPTY_SET", + "FAILWITH", + "MAP", + "SOURCE", + "DIP", + "COMPARE", + "EQ", + "SELF_ADDRESS", + "code" + ] + }, + "022-PsRiotum.mutez": { + "$ref": "#/components/schemas/positive_bignum" + }, + "022-PsRiotum.operation.alpha.contents": { + "oneOf": [ + { + "title": "Preattestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preattestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestations_aggregate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestations_aggregate" + ] + }, + "consensus_content": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "level", + "round", + "block_payload_hash" + ] + }, + "committee": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + } + }, + "required": [ + "kind", + "consensus_content", + "committee" + ] + }, + { + "title": "Attestation_with_dal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation_with_dal" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "dal_attestation": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "dal_attestation" + ] + }, + { + "title": "Double_preattestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_preattestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.preattestation" + }, + "op2": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.preattestation" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Double_attestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_attestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation" + }, + "op2": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "level", + "nonce" + ] + }, + { + "title": "Vdf_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "vdf_revelation" + ] + }, + "solution": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + ] + } + } + }, + "required": [ + "kind", + "solution" + ] + }, + { + "title": "Double_baking_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_baking_evidence" + ] + }, + "bh1": { + "$ref": "#/components/schemas/022-PsRiotum.block_header.alpha.full_header" + }, + "bh2": { + "$ref": "#/components/schemas/022-PsRiotum.block_header.alpha.full_header" + } + }, + "required": [ + "kind", + "bh1", + "bh2" + ] + }, + { + "title": "Dal_entrapment_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_entrapment_evidence" + ] + }, + "attestation": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation" + }, + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "shard_with_proof": { + "type": "object", + "properties": { + "shard": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + ] + } + }, + "proof": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "shard", + "proof" + ] + } + }, + "required": [ + "kind", + "attestation", + "slot_index", + "shard_with_proof" + ] + }, + { + "title": "Activate_account", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "activate_account" + ] + }, + "pkh": { + "$ref": "#/components/schemas/Ed25519.Public_key_hash" + }, + "secret": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "pkh", + "secret" + ] + }, + { + "title": "Proposals", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "proposals" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + } + }, + "required": [ + "kind", + "source", + "period", + "proposals" + ] + }, + { + "title": "Ballot", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "ballot" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposal": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + } + }, + "required": [ + "kind", + "source", + "period", + "proposal", + "ballot" + ] + }, + { + "title": "Reveal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "reveal" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_key": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_key" + ] + }, + { + "title": "Transaction", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transaction" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "destination": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/022-PsRiotum.entrypoint" + }, + "value": {} + }, + "required": [ + "entrypoint", + "value" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination" + ] + }, + { + "title": "Origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/022-PsRiotum.scripted.contracts" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "balance", + "script" + ] + }, + { + "title": "Delegation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "delegation" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit" + ] + }, + { + "title": "Set_deposits_limit", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "set_deposits_limit" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "limit": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit" + ] + }, + { + "title": "Increase_paid_storage", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "increase_paid_storage" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + }, + "destination": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination" + ] + }, + { + "title": "Update_consensus_key", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "update_consensus_key" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + }, + "proof": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pk" + ] + }, + { + "title": "Drain_delegate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "drain_delegate" + ] + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "destination": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "consensus_key", + "delegate", + "destination" + ] + }, + { + "title": "Failing_noop", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "failing_noop" + ] + }, + "arbitrary": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "arbitrary" + ] + }, + { + "title": "Register_global_constant", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "register_global_constant" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "value": {} + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "value" + ] + }, + { + "title": "Transfer_ticket", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transfer_ticket" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_contents": {}, + "ticket_ty": {}, + "ticket_ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "ticket_amount": { + "$ref": "#/components/schemas/positive_bignum" + }, + "destination": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "ticket_contents", + "ticket_ty", + "ticket_ticketer", + "ticket_amount", + "destination", + "entrypoint" + ] + }, + { + "title": "Dal_publish_commitment", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_publish_commitment" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "slot_header": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + }, + "commitment_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "slot_index", + "commitment", + "commitment_proof" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "slot_header" + ] + }, + { + "title": "Smart_rollup_originate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_originate" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pvm_kind": { + "type": "string", + "enum": [ + "wasm_2_0_0", + "arith", + "riscv" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {}, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pvm_kind", + "kernel", + "parameters_ty" + ] + }, + { + "title": "Smart_rollup_add_messages", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_add_messages" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "message": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "message" + ] + }, + { + "title": "Smart_rollup_cement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_cement" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup" + ] + }, + { + "title": "Smart_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "commitment": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "commitment" + ] + }, + { + "title": "Smart_rollup_refute", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_refute" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "opponent": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "refutation": { + "oneOf": [ + { + "title": "Start", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "start" + ] + }, + "player_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "opponent_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "refutation_kind", + "player_commitment_hash", + "opponent_commitment_hash" + ] + }, + { + "title": "Move", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "move" + ] + }, + "choice": { + "$ref": "#/components/schemas/positive_bignum" + }, + "step": { + "oneOf": [ + { + "title": "Dissection", + "type": "array", + "items": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + } + }, + { + "title": "Proof", + "type": "object", + "properties": { + "pvm_step": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "input_proof": { + "oneOf": [ + { + "title": "inbox proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "inbox_proof" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "message_counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "serialized_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "input_proof_kind", + "level", + "message_counter", + "serialized_proof" + ] + }, + { + "title": "reveal proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "reveal_proof" + ] + }, + "reveal_proof": { + "oneOf": [ + { + "title": "raw data proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "raw_data_proof" + ] + }, + "raw_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "raw_data" + ] + }, + { + "title": "metadata proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "metadata_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + }, + { + "title": "dal page proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_page_proof" + ] + }, + "dal_page_id": { + "type": "object", + "properties": { + "published_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_index": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "published_level", + "slot_index", + "page_index" + ] + }, + "dal_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "dal_page_id", + "dal_proof" + ] + }, + { + "title": "dal parameters proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_parameters_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + } + ] + } + }, + "required": [ + "input_proof_kind", + "reveal_proof" + ] + }, + { + "title": "first input", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "first_input" + ] + } + }, + "required": [ + "input_proof_kind" + ] + } + ] + } + }, + "required": [ + "pvm_step" + ] + } + ] + } + }, + "required": [ + "refutation_kind", + "choice", + "step" + ] + } + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "opponent", + "refutation" + ] + }, + { + "title": "Smart_rollup_timeout", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_timeout" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "stakers": { + "type": "object", + "properties": { + "alice": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "bob": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "alice", + "bob" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "stakers" + ] + }, + { + "title": "Smart_rollup_execute_outbox_message", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_execute_outbox_message" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "cemented_commitment": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "output_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "cemented_commitment", + "output_proof" + ] + }, + { + "title": "Smart_rollup_recover_bond", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_recover_bond" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "staker": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "staker" + ] + }, + { + "title": "Zk_rollup_origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "circuits_info": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "oneOf": [ + { + "title": "Public", + "type": "object", + "properties": { + "public": {} + }, + "required": [ + "public" + ] + }, + { + "title": "Private", + "type": "object", + "properties": { + "private": {} + }, + "required": [ + "private" + ] + }, + { + "title": "Fee", + "type": "object", + "properties": { + "fee": {} + }, + "required": [ + "fee" + ] + } + ] + } + ] + } + } + }, + "init_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "nb_ops": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_parameters", + "circuits_info", + "init_state", + "nb_ops" + ] + }, + { + "title": "Zk_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "op": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "properties": { + "op_code": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "price": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/script_expr" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "id", + "amount" + ] + }, + "l1_dst": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "rollup_id": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "payload": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "op_code", + "price", + "l1_dst", + "rollup_id", + "payload" + ] + }, + { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "contents": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "ty": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + } + }, + "required": [ + "contents", + "ty", + "ticketer" + ] + } + ] + } + ] + } + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "op" + ] + }, + { + "title": "Zk_rollup_update", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_update" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "update": { + "type": "object", + "properties": { + "pending_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "exit_validity": { + "type": "boolean" + } + }, + "required": [ + "new_state", + "fee", + "exit_validity" + ] + } + ] + } + } + }, + "private_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "new_state", + "fee" + ] + } + ] + } + } + }, + "fee_pi": { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "new_state" + ] + }, + "proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "pending_pis", + "private_pis", + "fee_pi", + "proof" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "update" + ] + } + ] + }, + "022-PsRiotum.scripted.contracts": { + "type": "object", + "properties": { + "code": {}, + "storage": {} + }, + "required": [ + "code", + "storage" + ] + }, + "Context_hash": { + "title": "A hash of context (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "DAL_commitment": { + "title": "Commitment representation for the DAL (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Ed25519.Public_key_hash": { + "title": "An Ed25519 public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_hash": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_list_list_hash": { + "title": "A list of list of operations (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Protocol_hash": { + "title": "A Tezos protocol ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.Public_key": { + "title": "A Ed25519, Secp256k1, or P256 public key (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.Public_key_hash": { + "title": "A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.V1": { + "title": "A Ed25519, Secp256k1, P256 or BLS signature (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Zk_rollup_hash": { + "title": "A zk rollup address (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "bignum": { + "title": "Big number", + "description": "Decimal representation of a big number", + "type": "string" + }, + "block_hash": { + "title": "A block identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "cycle_nonce": { + "title": "A nonce hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "error": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + }, + "error_opt": { + "description": "An optional error-trace (None indicates no error). The full list of errors is available with the global RPC `GET errors`" + }, + "fitness": { + "title": "Block fitness", + "description": "The fitness, or score, of a block, that allow the Tezos to decide which chain is the best. A fitness value is a list of byte sequences. They are compared as follows: shortest lists are smaller; lists of the same length are compared according to the lexicographical order.", + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "int64": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + }, + "micheline.022-PsRiotum.michelson_v1.expression": { + "oneOf": [ + { + "title": "Int", + "type": "object", + "properties": { + "int": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "int" + ] + }, + { + "title": "String", + "type": "object", + "properties": { + "string": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "string" + ] + }, + { + "title": "Bytes", + "type": "object", + "properties": { + "bytes": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "bytes" + ] + }, + { + "title": "Sequence", + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + { + "title": "Prim__generic", + "description": "Generic primitive (any number of args with or without annotations)", + "type": "object", + "properties": { + "prim": { + "$ref": "#/components/schemas/022-PsRiotum.michelson.v1.primitives" + }, + "args": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "annots": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + }, + "required": [ + "prim" + ] + } + ] + }, + "positive_bignum": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + }, + "script_expr": { + "title": "A script expression ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_address": { + "title": "A smart rollup address (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_commitment_hash": { + "title": "The hash of a commitment of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_state_hash": { + "title": "The hash of the VM state of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "timestamp.protocol": { + "description": "A timestamp as seen by the protocol: second-level precision, epoch based.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "unistring": { + "title": "Universal string representation", + "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "invalid_utf8_string": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + }, + "required": [ + "invalid_utf8_string" + ] + } + ] + }, + "value_hash": { + "title": "Hash of a consensus value (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } +} diff --git a/docs/api/rio-openapi.json b/docs/api/rio-openapi.json new file mode 100644 index 000000000000..a7875869551f --- /dev/null +++ b/docs/api/rio-openapi.json @@ -0,0 +1,25566 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez Protocol rio RPC", + "description": "The RPC API for protocol rio served by the Octez node.", + "version": "Octez 22.0~rc1 (TBD)" + }, + "paths": { + "/": { + "get": { + "description": "All the information about a block. The associated metadata may not be present depending on the history mode and block's distance from the head.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "force_metadata", + "in": "query", + "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "metadata", + "in": "query", + "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/block_hash" + }, + "header": { + "$ref": "#/components/schemas/raw_block_header" + }, + "metadata": { + "$ref": "#/components/schemas/block_header_metadata" + }, + "operations": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + } + } + }, + "required": [ + "protocol", + "chain_id", + "hash", + "header", + "operations" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/adaptive_issuance_launch_cycle": { + "get": { + "description": "Returns the cycle at which the launch of the Adaptive Issuance feature is set to happen. A result of None means that the feature is not yet set to launch.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/big_maps/{big_map_id}": { + "get": { + "description": "Get the (optionally paginated) list of values in a big map. Order of values is unspecified, but is guaranteed to be consistent.", + "parameters": [ + { + "name": "big_map_id", + "in": "path", + "description": "A big map identifier", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "A non-negative integer (greater than or equal to 0). Skip the first [offset] values. Useful in combination with [length] for pagination.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "length", + "in": "query", + "description": "A non-negative integer (greater than or equal to 0). Only retrieve [length] values. Useful in combination with [offset] for pagination.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/big_maps/{big_map_id}/{script_expr}": { + "get": { + "description": "Access the value associated with a key in a big map.", + "parameters": [ + { + "name": "big_map_id", + "in": "path", + "description": "A big map identifier", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "script_expr", + "in": "path", + "description": "script_expr (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/big_maps/{big_map_id}/{script_expr}/normalized": { + "post": { + "description": "Access the value associated with a key in a big map, normalize the output using the requested unparsing mode.", + "parameters": [ + { + "name": "big_map_id", + "in": "path", + "description": "A big map identifier", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "script_expr", + "in": "path", + "description": "script_expr (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + } + }, + "required": [ + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/cache/contracts/all": { + "get": { + "description": "Return the list of cached contracts", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Contract_hash" + }, + { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + ] + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/cache/contracts/rank": { + "post": { + "description": "Return the number of cached contracts older than the provided contract", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "A contract handle -- originated account", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/cache/contracts/size": { + "get": { + "description": "Return the size of the contract cache", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/cache/contracts/size_limit": { + "get": { + "description": "Return the size limit of the contract cache", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/constants": { + "get": { + "description": "All constants", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "proof_of_work_nonce_size": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "nonce_length": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max_anon_ops_per_block": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max_operation_data_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_proposals_per_delegate": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max_micheline_node_count": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_micheline_bytes_limit": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_allowed_global_constants_depth": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "cache_layout_size": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "michelson_maximum_type_size": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "denunciation_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "slashing_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "smart_rollup_max_wrapped_proof_binary_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_message_size_limit": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_number_of_messages_per_level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "consensus_rights_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "blocks_preservation_cycles": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "delegate_parameters_activation_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "tolerated_inactivity_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "blocks_per_cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "blocks_per_commitment": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "nonce_revelation_threshold": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycles_per_voting_period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "hard_gas_limit_per_operation": { + "$ref": "#/components/schemas/bignum" + }, + "hard_gas_limit_per_block": { + "$ref": "#/components/schemas/bignum" + }, + "proof_of_work_threshold": { + "$ref": "#/components/schemas/int64" + }, + "minimal_stake": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "minimal_frozen_stake": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "vdf_difficulty": { + "$ref": "#/components/schemas/int64" + }, + "origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "issuance_weights": { + "type": "object", + "properties": { + "base_total_issued_per_minute": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "baking_reward_fixed_portion_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "baking_reward_bonus_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "attesting_reward_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "seed_nonce_revelation_tip_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "vdf_revelation_tip_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "dal_rewards_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "base_total_issued_per_minute", + "baking_reward_fixed_portion_weight", + "baking_reward_bonus_weight", + "attesting_reward_weight", + "seed_nonce_revelation_tip_weight", + "vdf_revelation_tip_weight", + "dal_rewards_weight" + ] + }, + "cost_per_byte": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "hard_storage_limit_per_operation": { + "$ref": "#/components/schemas/bignum" + }, + "quorum_min": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "quorum_max": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "min_proposal_quorum": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "liquidity_baking_subsidy": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "liquidity_baking_toggle_ema_threshold": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "max_operations_time_to_live": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + }, + "minimal_block_delay": { + "$ref": "#/components/schemas/int64" + }, + "delay_increment_per_round": { + "$ref": "#/components/schemas/int64" + }, + "consensus_committee_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "consensus_threshold_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "minimal_participation_ratio": { + "type": "object", + "properties": { + "numerator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "denominator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "limit_of_delegation_over_baking": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "percentage_of_frozen_deposits_slashed_per_double_baking": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "max_slashing_per_block": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "max_slashing_threshold": { + "type": "object", + "properties": { + "numerator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "denominator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "testnet_dictator": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "initial_seed": { + "$ref": "#/components/schemas/random" + }, + "cache_script_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "cache_stake_distribution_cycles": { + "type": "integer", + "minimum": -128, + "maximum": 127 + }, + "cache_sampler_state_cycles": { + "type": "integer", + "minimum": -128, + "maximum": 127 + }, + "dal_parametric": { + "type": "object", + "properties": { + "feature_enable": { + "type": "boolean" + }, + "incentives_enable": { + "type": "boolean" + }, + "number_of_slots": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "attestation_lag": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "attestation_threshold": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "minimal_participation_ratio": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "rewards_ratio": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "traps_fraction": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "redundancy_factor": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_size": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "slot_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "number_of_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "feature_enable", + "incentives_enable", + "number_of_slots", + "attestation_lag", + "attestation_threshold", + "minimal_participation_ratio", + "rewards_ratio", + "traps_fraction", + "redundancy_factor", + "page_size", + "slot_size", + "number_of_shards" + ] + }, + "smart_rollup_arith_pvm_enable": { + "type": "boolean" + }, + "smart_rollup_origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_challenge_window_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_stake_amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "smart_rollup_commitment_period_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_lookahead_in_blocks": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "smart_rollup_max_active_outbox_levels": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "smart_rollup_max_outbox_messages_per_level": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_number_of_sections_in_dissection": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "smart_rollup_timeout_period_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_number_of_cemented_commitments": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_number_of_parallel_games": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_reveal_activation_level": { + "type": "object", + "properties": { + "raw_data": { + "type": "object", + "properties": { + "Blake2B": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "Blake2B" + ] + }, + "metadata": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_page": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_parameters": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_attested_slots_validity_lag": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "raw_data", + "metadata", + "dal_page", + "dal_parameters", + "dal_attested_slots_validity_lag" + ] + }, + "smart_rollup_private_enable": { + "type": "boolean" + }, + "smart_rollup_riscv_pvm_enable": { + "type": "boolean" + }, + "zk_rollup_enable": { + "type": "boolean" + }, + "zk_rollup_origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "zk_rollup_min_pending_to_process": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "zk_rollup_max_ticket_payload_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "global_limit_of_staking_over_baking": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "edge_of_staking_over_delegation": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "adaptive_rewards_params": { + "type": "object", + "properties": { + "issuance_ratio_final_min": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_final_max": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_initial_min": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_initial_max": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "initial_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "transition_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max_bonus": { + "$ref": "#/components/schemas/int64" + }, + "growth_rate": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "center_dz": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "radius_dz": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + } + }, + "required": [ + "issuance_ratio_final_min", + "issuance_ratio_final_max", + "issuance_ratio_initial_min", + "issuance_ratio_initial_max", + "initial_period", + "transition_period", + "max_bonus", + "growth_rate", + "center_dz", + "radius_dz" + ] + }, + "direct_ticket_spending_enable": { + "type": "boolean" + }, + "aggregate_attestation": { + "type": "boolean" + }, + "allow_tz4_delegate_enable": { + "type": "boolean" + }, + "all_bakers_attest_activation_level": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + ] + }, + "issuance_modification_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "consensus_key_activation_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "unstake_finalization_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "proof_of_work_nonce_size", + "nonce_length", + "max_anon_ops_per_block", + "max_operation_data_length", + "max_proposals_per_delegate", + "max_micheline_node_count", + "max_micheline_bytes_limit", + "max_allowed_global_constants_depth", + "cache_layout_size", + "michelson_maximum_type_size", + "denunciation_period", + "slashing_delay", + "smart_rollup_max_wrapped_proof_binary_size", + "smart_rollup_message_size_limit", + "smart_rollup_max_number_of_messages_per_level", + "consensus_rights_delay", + "blocks_preservation_cycles", + "delegate_parameters_activation_delay", + "tolerated_inactivity_period", + "blocks_per_cycle", + "blocks_per_commitment", + "nonce_revelation_threshold", + "cycles_per_voting_period", + "hard_gas_limit_per_operation", + "hard_gas_limit_per_block", + "proof_of_work_threshold", + "minimal_stake", + "minimal_frozen_stake", + "vdf_difficulty", + "origination_size", + "issuance_weights", + "cost_per_byte", + "hard_storage_limit_per_operation", + "quorum_min", + "quorum_max", + "min_proposal_quorum", + "liquidity_baking_subsidy", + "liquidity_baking_toggle_ema_threshold", + "max_operations_time_to_live", + "minimal_block_delay", + "delay_increment_per_round", + "consensus_committee_size", + "consensus_threshold_size", + "minimal_participation_ratio", + "limit_of_delegation_over_baking", + "percentage_of_frozen_deposits_slashed_per_double_baking", + "max_slashing_per_block", + "max_slashing_threshold", + "cache_script_size", + "cache_stake_distribution_cycles", + "cache_sampler_state_cycles", + "dal_parametric", + "smart_rollup_arith_pvm_enable", + "smart_rollup_origination_size", + "smart_rollup_challenge_window_in_blocks", + "smart_rollup_stake_amount", + "smart_rollup_commitment_period_in_blocks", + "smart_rollup_max_lookahead_in_blocks", + "smart_rollup_max_active_outbox_levels", + "smart_rollup_max_outbox_messages_per_level", + "smart_rollup_number_of_sections_in_dissection", + "smart_rollup_timeout_period_in_blocks", + "smart_rollup_max_number_of_cemented_commitments", + "smart_rollup_max_number_of_parallel_games", + "smart_rollup_reveal_activation_level", + "smart_rollup_private_enable", + "smart_rollup_riscv_pvm_enable", + "zk_rollup_enable", + "zk_rollup_origination_size", + "zk_rollup_min_pending_to_process", + "zk_rollup_max_ticket_payload_size", + "global_limit_of_staking_over_baking", + "edge_of_staking_over_delegation", + "adaptive_rewards_params", + "direct_ticket_spending_enable", + "aggregate_attestation", + "allow_tz4_delegate_enable", + "all_bakers_attest_activation_level", + "issuance_modification_delay", + "consensus_key_activation_delay", + "unstake_finalization_delay" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/constants/errors": { + "get": { + "description": "Schema for all the RPC errors from this protocol version", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/constants/parametric": { + "get": { + "description": "Parametric constants", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "consensus_rights_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "blocks_preservation_cycles": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "delegate_parameters_activation_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "tolerated_inactivity_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "blocks_per_cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "blocks_per_commitment": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "nonce_revelation_threshold": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycles_per_voting_period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "hard_gas_limit_per_operation": { + "$ref": "#/components/schemas/bignum" + }, + "hard_gas_limit_per_block": { + "$ref": "#/components/schemas/bignum" + }, + "proof_of_work_threshold": { + "$ref": "#/components/schemas/int64" + }, + "minimal_stake": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "minimal_frozen_stake": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "vdf_difficulty": { + "$ref": "#/components/schemas/int64" + }, + "origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "issuance_weights": { + "type": "object", + "properties": { + "base_total_issued_per_minute": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "baking_reward_fixed_portion_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "baking_reward_bonus_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "attesting_reward_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "seed_nonce_revelation_tip_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "vdf_revelation_tip_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "dal_rewards_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "base_total_issued_per_minute", + "baking_reward_fixed_portion_weight", + "baking_reward_bonus_weight", + "attesting_reward_weight", + "seed_nonce_revelation_tip_weight", + "vdf_revelation_tip_weight", + "dal_rewards_weight" + ] + }, + "cost_per_byte": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "hard_storage_limit_per_operation": { + "$ref": "#/components/schemas/bignum" + }, + "quorum_min": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "quorum_max": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "min_proposal_quorum": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "liquidity_baking_subsidy": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "liquidity_baking_toggle_ema_threshold": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "max_operations_time_to_live": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + }, + "minimal_block_delay": { + "$ref": "#/components/schemas/int64" + }, + "delay_increment_per_round": { + "$ref": "#/components/schemas/int64" + }, + "consensus_committee_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "consensus_threshold_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "minimal_participation_ratio": { + "type": "object", + "properties": { + "numerator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "denominator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "limit_of_delegation_over_baking": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "percentage_of_frozen_deposits_slashed_per_double_baking": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "max_slashing_per_block": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "max_slashing_threshold": { + "type": "object", + "properties": { + "numerator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "denominator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "testnet_dictator": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "initial_seed": { + "$ref": "#/components/schemas/random" + }, + "cache_script_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "cache_stake_distribution_cycles": { + "type": "integer", + "minimum": -128, + "maximum": 127 + }, + "cache_sampler_state_cycles": { + "type": "integer", + "minimum": -128, + "maximum": 127 + }, + "dal_parametric": { + "type": "object", + "properties": { + "feature_enable": { + "type": "boolean" + }, + "incentives_enable": { + "type": "boolean" + }, + "number_of_slots": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "attestation_lag": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "attestation_threshold": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "minimal_participation_ratio": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "rewards_ratio": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "traps_fraction": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "redundancy_factor": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_size": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "slot_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "number_of_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "feature_enable", + "incentives_enable", + "number_of_slots", + "attestation_lag", + "attestation_threshold", + "minimal_participation_ratio", + "rewards_ratio", + "traps_fraction", + "redundancy_factor", + "page_size", + "slot_size", + "number_of_shards" + ] + }, + "smart_rollup_arith_pvm_enable": { + "type": "boolean" + }, + "smart_rollup_origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_challenge_window_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_stake_amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "smart_rollup_commitment_period_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_lookahead_in_blocks": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "smart_rollup_max_active_outbox_levels": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "smart_rollup_max_outbox_messages_per_level": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_number_of_sections_in_dissection": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "smart_rollup_timeout_period_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_number_of_cemented_commitments": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_number_of_parallel_games": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_reveal_activation_level": { + "type": "object", + "properties": { + "raw_data": { + "type": "object", + "properties": { + "Blake2B": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "Blake2B" + ] + }, + "metadata": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_page": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_parameters": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_attested_slots_validity_lag": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "raw_data", + "metadata", + "dal_page", + "dal_parameters", + "dal_attested_slots_validity_lag" + ] + }, + "smart_rollup_private_enable": { + "type": "boolean" + }, + "smart_rollup_riscv_pvm_enable": { + "type": "boolean" + }, + "zk_rollup_enable": { + "type": "boolean" + }, + "zk_rollup_origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "zk_rollup_min_pending_to_process": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "zk_rollup_max_ticket_payload_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "global_limit_of_staking_over_baking": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "edge_of_staking_over_delegation": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "adaptive_rewards_params": { + "type": "object", + "properties": { + "issuance_ratio_final_min": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_final_max": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_initial_min": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_initial_max": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "initial_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "transition_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max_bonus": { + "$ref": "#/components/schemas/int64" + }, + "growth_rate": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "center_dz": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "radius_dz": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + } + }, + "required": [ + "issuance_ratio_final_min", + "issuance_ratio_final_max", + "issuance_ratio_initial_min", + "issuance_ratio_initial_max", + "initial_period", + "transition_period", + "max_bonus", + "growth_rate", + "center_dz", + "radius_dz" + ] + }, + "direct_ticket_spending_enable": { + "type": "boolean" + }, + "aggregate_attestation": { + "type": "boolean" + }, + "allow_tz4_delegate_enable": { + "type": "boolean" + }, + "all_bakers_attest_activation_level": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + ] + } + }, + "required": [ + "consensus_rights_delay", + "blocks_preservation_cycles", + "delegate_parameters_activation_delay", + "tolerated_inactivity_period", + "blocks_per_cycle", + "blocks_per_commitment", + "nonce_revelation_threshold", + "cycles_per_voting_period", + "hard_gas_limit_per_operation", + "hard_gas_limit_per_block", + "proof_of_work_threshold", + "minimal_stake", + "minimal_frozen_stake", + "vdf_difficulty", + "origination_size", + "issuance_weights", + "cost_per_byte", + "hard_storage_limit_per_operation", + "quorum_min", + "quorum_max", + "min_proposal_quorum", + "liquidity_baking_subsidy", + "liquidity_baking_toggle_ema_threshold", + "max_operations_time_to_live", + "minimal_block_delay", + "delay_increment_per_round", + "consensus_committee_size", + "consensus_threshold_size", + "minimal_participation_ratio", + "limit_of_delegation_over_baking", + "percentage_of_frozen_deposits_slashed_per_double_baking", + "max_slashing_per_block", + "max_slashing_threshold", + "cache_script_size", + "cache_stake_distribution_cycles", + "cache_sampler_state_cycles", + "dal_parametric", + "smart_rollup_arith_pvm_enable", + "smart_rollup_origination_size", + "smart_rollup_challenge_window_in_blocks", + "smart_rollup_stake_amount", + "smart_rollup_commitment_period_in_blocks", + "smart_rollup_max_lookahead_in_blocks", + "smart_rollup_max_active_outbox_levels", + "smart_rollup_max_outbox_messages_per_level", + "smart_rollup_number_of_sections_in_dissection", + "smart_rollup_timeout_period_in_blocks", + "smart_rollup_max_number_of_cemented_commitments", + "smart_rollup_max_number_of_parallel_games", + "smart_rollup_reveal_activation_level", + "smart_rollup_private_enable", + "smart_rollup_riscv_pvm_enable", + "zk_rollup_enable", + "zk_rollup_origination_size", + "zk_rollup_min_pending_to_process", + "zk_rollup_max_ticket_payload_size", + "global_limit_of_staking_over_baking", + "edge_of_staking_over_delegation", + "adaptive_rewards_params", + "direct_ticket_spending_enable", + "aggregate_attestation", + "allow_tz4_delegate_enable", + "all_bakers_attest_activation_level" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts": { + "get": { + "description": "All existing contracts (excluding empty implicit contracts).", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}": { + "get": { + "description": "Access the complete status of a contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "normalize_types", + "in": "query", + "description": "Whether types should be normalized (annotations removed, combs flattened) or kept as they appeared in the original script.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "balance": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/022-PsRiotum.scripted.contracts" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "balance" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/all_ticket_balances": { + "get": { + "description": "Access the complete list of tickets owned by the given contract by scanning the contract's storage.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "amount": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "ticketer", + "content_type", + "content", + "amount" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/balance": { + "get": { + "description": "The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'spendable' RPC.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/balance_and_frozen_bonds": { + "get": { + "description": "The sum (in mutez) of the spendable balance and frozen bonds of a contract. Corresponds to the contract's full balance from which staked funds and unstake requests have been excluded. Identical to the 'spendable_and_frozen_bonds' RPC.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/big_map_get": { + "post": { + "description": "Access the value associated with a key in a big map of the contract (deprecated).", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "key", + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/counter": { + "get": { + "description": "Access the counter of a contract, if any.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/delegate": { + "get": { + "description": "Access the delegate of a contract, if any.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/entrypoints": { + "get": { + "description": "Return the list of entrypoints of the contract", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "normalize_types", + "in": "query", + "description": "Whether types should be normalized (annotations removed, combs flattened) or kept as they appeared in the original script.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "unreachable": { + "type": "array", + "items": { + "type": "object", + "properties": { + "path": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.michelson.v1.primitives" + } + } + }, + "required": [ + "path" + ] + } + }, + "entrypoints": { + "type": "object", + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + } + }, + "required": [ + "entrypoints" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/entrypoints/{entrypoint}": { + "get": { + "description": "Return the type of the given entrypoint of the contract", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "entrypoint", + "in": "path", + "description": "A Michelson entrypoint (string of length < 32)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "normalize_types", + "in": "query", + "description": "Whether types should be normalized (annotations removed, combs flattened) or kept as they appeared in the original script.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/estimated_own_pending_slashed_amount": { + "get": { + "description": "Returns the estimated own pending slashed amount (in mutez) of a given contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/frozen_bonds": { + "get": { + "description": "Access the frozen bonds of a contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/full_balance": { + "get": { + "description": "The full balance (in mutez) of the contract. Includes its spendable balance, staked tez, unstake requests, and frozen bonds. Even if the contract is a delegate, it does not include any staked or delegated tez owned by external delegators.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/manager_key": { + "get": { + "description": "Access the manager of an implicit contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/Signature.Public_key" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/script": { + "get": { + "description": "Access the code and data of the contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": {}, + "storage": {} + }, + "required": [ + "code", + "storage" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/script/normalized": { + "post": { + "description": "Access the script of the contract and normalize it using the requested unparsing mode.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "normalize_types": { + "type": "boolean" + } + }, + "required": [ + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/022-PsRiotum.scripted.contracts" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/single_sapling_get_diff": { + "get": { + "description": "Returns the root and a diff of a state starting from an optional offset which is zero by default.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "offset_commitment", + "in": "query", + "description": "Commitments and ciphertexts are returned from the specified offset up to the most recent.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset_nullifier", + "in": "query", + "description": "Nullifiers are returned from the specified offset up to the most recent.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "root": { + "$ref": "#/components/schemas/sapling.transaction.commitment_hash" + }, + "commitments_and_ciphertexts": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/sapling.transaction.commitment" + }, + { + "$ref": "#/components/schemas/sapling.transaction.ciphertext" + } + ] + } + } + }, + "nullifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sapling.transaction.nullifier" + } + } + }, + "required": [ + "root", + "commitments_and_ciphertexts", + "nullifiers" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/spendable": { + "get": { + "description": "The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'balance' RPC.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/spendable_and_frozen_bonds": { + "get": { + "description": "The sum (in mutez) of the spendable balance and frozen bonds of a contract. Corresponds to the contract's full balance from which staked funds and unstake requests have been excluded. Identical to the 'balance_and_frozen_bonds' RPC.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/staked_balance": { + "get": { + "description": "Access the staked balance of a contract (in mutez). Returns None if the contract is originated, or neither delegated nor a delegate.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/staking_numerator": { + "get": { + "description": "Returns an abstract representation of the contract's total_delegated_stake.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/storage": { + "get": { + "description": "Access the data of the contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/storage/normalized": { + "post": { + "description": "Access the data of the contract and normalize it using the requested unparsing mode.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + } + }, + "required": [ + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/storage/paid_space": { + "get": { + "description": "Access the paid storage space of the contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/storage/used_space": { + "get": { + "description": "Access the used storage space of the contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/ticket_balance": { + "post": { + "description": "Access the contract's balance of ticket with specified ticketer, content type, and content.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/unstake_requests": { + "get": { + "description": "Access the unstake requests of the contract. The requests that appear in the finalizable field can be finalized, which means that the contract can transfer these (no longer frozen) funds to their spendable balance with a [finalize_unstake] operation call. Returns None if there is no unstake request pending.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "finalizable": { + "type": "array", + "items": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "delegate", + "cycle", + "amount" + ] + } + }, + "unfinalizable": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "requests": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "cycle", + "amount" + ] + } + } + }, + "required": [ + "delegate", + "requests" + ] + } + }, + "required": [ + "finalizable", + "unfinalizable" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/unstaked_finalizable_balance": { + "get": { + "description": "Access the balance of a contract that was requested for an unstake operation, and is no longer frozen, which means it will appear in the spendable balance of the contract after any stake/unstake/finalize_unstake operation. Returns None if the contract is originated.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/unstaked_frozen_balance": { + "get": { + "description": "Access the balance of a contract that was requested for an unstake operation, but is still frozen for the duration of the slashing period. Returns None if the contract is originated.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/dal/commitments_history": { + "get": { + "description": "Returns the (currently last) DAL skip list cell if DAL is enabled, or [None] otherwise.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "title": "dal_skip_list_legacy", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_skip_list_legacy" + ] + }, + "skip_list": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "skip_list" + ] + }, + { + "title": "dal_skip_list", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_skip_list" + ] + }, + "skip_list": { + "type": "object", + "properties": { + "index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "content": { + "oneOf": [ + { + "title": "unattested", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "unattested" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "kind", + "level", + "index" + ] + }, + { + "title": "attested", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attested" + ] + }, + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "kind", + "version", + "level", + "index", + "commitment" + ] + }, + { + "title": "unpublished", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "unpublished" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "kind", + "level", + "index" + ] + }, + { + "title": "published", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "published" + ] + }, + "publisher": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "is_proto_attested": { + "type": "boolean" + }, + "attested_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "total_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "kind", + "publisher", + "is_proto_attested", + "attested_shards", + "total_shards", + "version", + "level", + "index", + "commitment" + ] + } + ] + }, + "back_pointers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/dal_skip_list_pointer" + } + } + }, + "required": [ + "index", + "content", + "back_pointers" + ] + } + }, + "required": [ + "kind", + "skip_list" + ] + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/dal/published_slot_headers": { + "get": { + "description": "Get the published slots headers for the given level", + "parameters": [ + { + "name": "level", + "in": "query", + "description": "A level integer", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "version", + "level", + "index", + "commitment" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/dal/shards": { + "get": { + "description": "Get the shards assignment for a given level (the default is the current level) and given delegates (the default is all delegates)", + "parameters": [ + { + "name": "level", + "in": "query", + "description": "A level integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "delegates", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "indexes": { + "type": "array", + "items": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + } + }, + "required": [ + "delegate", + "indexes" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/dal/skip_list_cells_of_level": { + "get": { + "description": "Returns the cells of the DAL skip list constructed during this targeted block and stored in the context. The cells ordering in the list is not specified (not relevant). The list is expected to be empty if the entry is not initialized in the context (yet), or to have a size that coincides with the number of DAL slots otherwise.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/dal_skip_list_pointer" + }, + { + "oneOf": [ + { + "title": "dal_skip_list_legacy", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_skip_list_legacy" + ] + }, + "skip_list": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "skip_list" + ] + }, + { + "title": "dal_skip_list", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_skip_list" + ] + }, + "skip_list": { + "type": "object", + "properties": { + "index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "content": { + "oneOf": [ + { + "title": "unattested", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "unattested" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "kind", + "level", + "index" + ] + }, + { + "title": "attested", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attested" + ] + }, + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "kind", + "version", + "level", + "index", + "commitment" + ] + }, + { + "title": "unpublished", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "unpublished" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "kind", + "level", + "index" + ] + }, + { + "title": "published", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "published" + ] + }, + "publisher": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "is_proto_attested": { + "type": "boolean" + }, + "attested_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "total_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "kind", + "publisher", + "is_proto_attested", + "attested_shards", + "total_shards", + "version", + "level", + "index", + "commitment" + ] + } + ] + }, + "back_pointers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/dal_skip_list_pointer" + } + } + }, + "required": [ + "index", + "content", + "back_pointers" + ] + } + }, + "required": [ + "kind", + "skip_list" + ] + } + ] + } + ] + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates": { + "get": { + "description": "Lists all registered delegates by default. The arguments `active`, `inactive`, `with_minimal_stake`, and `without_minimal_stake` allow to enumerate only the delegates that are active, inactive, have at least a minimal stake to participate in consensus and in governance, or do not have such a minimal stake, respectively. Note, setting these arguments to false has no effect.", + "parameters": [ + { + "name": "active", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "inactive", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "with_minimal_stake", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "without_minimal_stake", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}": { + "get": { + "description": "Everything about a delegate. Gathers the outputs of all RPCs with the ../delegates/ prefix.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "deactivated": { + "type": "boolean" + }, + "is_forbidden": { + "type": "boolean" + }, + "participation": { + "type": "object", + "properties": { + "expected_cycle_activity": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "minimal_cycle_activity": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "missed_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "missed_levels": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "remaining_allowed_missed_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "expected_attesting_rewards": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "expected_cycle_activity", + "minimal_cycle_activity", + "missed_slots", + "missed_levels", + "remaining_allowed_missed_slots", + "expected_attesting_rewards" + ] + }, + "dal_participation": { + "type": "object", + "properties": { + "expected_assigned_shards_per_slot": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "delegate_attested_dal_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "delegate_attestable_dal_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "expected_dal_rewards": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "sufficient_dal_participation": { + "type": "boolean" + }, + "denounced": { + "type": "boolean" + } + }, + "required": [ + "expected_assigned_shards_per_slot", + "delegate_attested_dal_slots", + "delegate_attestable_dal_slots", + "expected_dal_rewards", + "sufficient_dal_participation", + "denounced" + ] + }, + "grace_period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "active_staking_parameters": { + "type": "object", + "properties": { + "limit_of_staking_over_baking_millionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "edge_of_baking_over_staking_billionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "limit_of_staking_over_baking_millionth", + "edge_of_baking_over_staking_billionth" + ] + }, + "pending_staking_parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "parameters": { + "type": "object", + "properties": { + "limit_of_staking_over_baking_millionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "edge_of_baking_over_staking_billionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "limit_of_staking_over_baking_millionth", + "edge_of_baking_over_staking_billionth" + ] + } + }, + "required": [ + "cycle", + "parameters" + ] + } + }, + "baking_power": { + "$ref": "#/components/schemas/int64" + }, + "total_staked": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "total_delegated": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "min_delegated_in_current_cycle": { + "type": "object", + "properties": { + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "level": { + "type": "object", + "properties": { + "level": { + "description": "The level of the block relative to genesis. This is also the Shell's notion of level.", + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "level_position": { + "description": "The level of the block relative to the successor of the genesis block. More precisely, it is the position of the block relative to the block that starts the \"Alpha family\" of protocols, which includes all protocols except Genesis (that is, from 001 onwards).", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle": { + "description": "The current cycle's number. Note that cycles are a protocol-specific notion. As a result, the cycle number starts at 0 with the first block of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle_position": { + "description": "The current level of the block relative to the first block of the current cycle.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "expected_commitment": { + "description": "Tells whether the baker of this block has to commit a seed nonce hash.", + "type": "boolean" + } + }, + "required": [ + "level", + "level_position", + "cycle", + "cycle_position", + "expected_commitment" + ] + } + }, + "required": [ + "amount" + ] + }, + "own_full_balance": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "own_staked": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "own_delegated": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "external_staked": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "external_delegated": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "total_unstaked_per_cycle": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "deposit": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "cycle", + "deposit" + ] + } + }, + "denunciations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "operation_hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "rewarded": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "misbehaviour": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "kind": { + "type": "string", + "enum": [ + "attestation", + "block", + "preattestation" + ] + } + }, + "required": [ + "level", + "round", + "kind" + ] + } + }, + "required": [ + "operation_hash", + "rewarded", + "misbehaviour" + ] + } + }, + "estimated_shared_pending_slashed_amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "staking_denominator": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "current_voting_power": { + "$ref": "#/components/schemas/int64" + }, + "voting_power": { + "$ref": "#/components/schemas/int64" + }, + "voting_info": { + "type": "object", + "properties": { + "voting_power": { + "$ref": "#/components/schemas/int64" + }, + "current_ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + }, + "current_proposals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "remaining_proposals": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + }, + "consensus_key": { + "type": "object", + "properties": { + "active": { + "type": "object", + "properties": { + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "pkh", + "pk" + ] + }, + "pendings": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "cycle", + "pkh", + "pk" + ] + } + } + }, + "required": [ + "active" + ] + }, + "stakers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "staker": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.implicit" + }, + "frozen_deposits": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "staker", + "frozen_deposits" + ] + } + }, + "delegators": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + } + } + }, + "required": [ + "deactivated", + "is_forbidden", + "participation", + "grace_period", + "active_staking_parameters", + "pending_staking_parameters", + "baking_power", + "total_staked", + "total_delegated", + "min_delegated_in_current_cycle", + "own_full_balance", + "own_staked", + "own_delegated", + "external_staked", + "external_delegated", + "total_unstaked_per_cycle", + "denunciations", + "estimated_shared_pending_slashed_amount", + "staking_denominator", + "current_voting_power", + "voting_power", + "voting_info", + "consensus_key", + "stakers", + "delegators" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/active_staking_parameters": { + "get": { + "description": "Returns the currently active staking parameters for the given delegate.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "limit_of_staking_over_baking_millionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "edge_of_baking_over_staking_billionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "limit_of_staking_over_baking_millionth", + "edge_of_baking_over_staking_billionth" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/baking_power": { + "get": { + "description": "The current baking power of a delegate, using the current staked and delegated balances of the baker and its delegators. In other words, the baking rights that the baker would get for a future cycle if the current cycle ended right at the current block.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/consensus_key": { + "get": { + "description": "The active consensus key for a given delegate and the pending consensus keys.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "active": { + "type": "object", + "properties": { + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "pkh", + "pk" + ] + }, + "pendings": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "cycle", + "pkh", + "pk" + ] + } + } + }, + "required": [ + "active" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/current_baking_power": { + "get": { + "description": "DEPRECATED; use baking_power instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/current_frozen_deposits": { + "get": { + "description": "DEPRECATED; use total_staked instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/current_voting_power": { + "get": { + "description": "The voting power of a given delegate, as computed from its current stake.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/dal_participation": { + "get": { + "description": "Returns information about the delegate's participation in the attestation of slots published into the Data Availability Layer (DAL) during the current cycle. The field 'expected_assigned_shards_per_slot' indicates the expected number of shards assigned to the delegate in the cycle per DAL slot. The field 'delegate_attested_dal_slots' represents the number of attested DAL slots which are also attested by the delegate, while 'delegate_attestable_dal_slots' provides the total number of DAL slots attested during the cycle for which the delegate had shards assigned. The 'expected_dal_rewards' field specifies the expected amount of rewards for the delegate based on DAL participation, provided the delegate meets the required participation. Whether this threshold is currently met is determined by the 'sufficient_dal_participation' flag, which is true if currently the delegate has sufficiently participated in attesting DAL slots declared to be attested by the protocol. Note that this flag may evolve during the cycle. Also note, in particular, that if no DAL no DAL slots have been globally attested during the cycle (i.e., when 'delegate_attestable_dal_slots' is zero), the flag is true. The 'denounced' field specifies whether the delegate was denounced for not detecting traps during the current cycle.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "expected_assigned_shards_per_slot": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "delegate_attested_dal_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "delegate_attestable_dal_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "expected_dal_rewards": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "sufficient_dal_participation": { + "type": "boolean" + }, + "denounced": { + "type": "boolean" + } + }, + "required": [ + "expected_assigned_shards_per_slot", + "delegate_attested_dal_slots", + "delegate_attestable_dal_slots", + "expected_dal_rewards", + "sufficient_dal_participation", + "denounced" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/deactivated": { + "get": { + "description": "Tells whether the delegate is currently tagged as deactivated or not.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/delegated_balance": { + "get": { + "description": "DEPRECATED; to get this value, you can call RPCs external_staked and external_delegated, and add their outputs together.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/delegated_contracts": { + "get": { + "description": "DEPRECATED; use delegators instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/delegators": { + "get": { + "description": "The list of all contracts that are currently delegating to the delegate. Includes both user accounts and smart contracts. Includes the delegate itself.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/denunciations": { + "get": { + "description": "Returns the pending denunciations for the given delegate.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "operation_hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "rewarded": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "misbehaviour": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "kind": { + "type": "string", + "enum": [ + "attestation", + "block", + "preattestation" + ] + } + }, + "required": [ + "level", + "round", + "kind" + ] + } + }, + "required": [ + "operation_hash", + "rewarded", + "misbehaviour" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/estimated_shared_pending_slashed_amount": { + "get": { + "description": "Returns the estimated shared pending slashed amount (in mutez) of a given delegate.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/external_delegated": { + "get": { + "description": "The sum (in mutez) of non-staked tokens that currently count as delegated to the baker, excluding those owned by the baker iself. Does not take limits such as overstaking or overdelegation into account. This includes the spendable balances and frozen bonds of all the baker's external delegators. It also includes unstake requests of contracts other than the baker, on the condition that the contract was delegating to the baker at the time of the unstake operation. So this includes most but not all unstake requests from current delegators, and might include some unstake requests from old delegators. Limits such as overstaking and overdelegation have not been applied yet.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/external_staked": { + "get": { + "description": "The sum (in mutez) of all tokens currently staked by the baker's external delegators. This excludes the baker's own staked tokens.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/frozen_deposits": { + "get": { + "description": "DEPRECATED; call RPC total_staked on the last block of (current_cycle - 3) instead. Returns the total amount (in mutez) that was staked for the baker by all stakers (including the baker itself) at the time the staking rights for the current cycle were computed.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/frozen_deposits_limit": { + "get": { + "description": "DEPRECATED; the frozen deposits limit has no effects since the activation of Adaptive Issuance and Staking during the Paris protocol.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/full_balance": { + "get": { + "description": "DEPRECATED; use own_full_balance instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/grace_period": { + "get": { + "description": "Returns the cycle by the end of which the delegate might be deactivated if she fails to execute any delegate action. A deactivated delegate might be reactivated (without loosing any stake) by simply re-registering as a delegate. For deactivated delegates, this value contains the cycle at which they were deactivated.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/is_forbidden": { + "get": { + "description": "Returns true if the delegate is forbidden to participate in consensus.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/min_delegated_in_current_cycle": { + "get": { + "description": "Returns the minimum of delegated tez (in mutez) during the current cycle and the block level at the end of which the minimum was reached. This only takes into account the value of `total_delegated` at the end of each block, not in the middle of applying operations. This is the delegated amount that would be used to compute the delegate's future baking rights if the cycle ended at the current block. If the minimum was reached multiple times, the returned level is the earliest level of the current cycle that reached this minimum. For instance, if `total_delegated` hasn't changed at all since the beginning of the current cycle, returns the first level of the current cycle. (If the contract is not registered as a delegate, returns 0 mutez and omits the level.)", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "level": { + "type": "object", + "properties": { + "level": { + "description": "The level of the block relative to genesis. This is also the Shell's notion of level.", + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "level_position": { + "description": "The level of the block relative to the successor of the genesis block. More precisely, it is the position of the block relative to the block that starts the \"Alpha family\" of protocols, which includes all protocols except Genesis (that is, from 001 onwards).", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle": { + "description": "The current cycle's number. Note that cycles are a protocol-specific notion. As a result, the cycle number starts at 0 with the first block of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle_position": { + "description": "The current level of the block relative to the first block of the current cycle.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "expected_commitment": { + "description": "Tells whether the baker of this block has to commit a seed nonce hash.", + "type": "boolean" + } + }, + "required": [ + "level", + "level_position", + "cycle", + "cycle_position", + "expected_commitment" + ] + } + }, + "required": [ + "amount" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/own_delegated": { + "get": { + "description": "The amount (in mutez) currently owned by the baker itself and counting as delegated for the purpose of baking rights. This corresponds to all non-staked tokens owned by the baker: spendable balance, frozen bonds, and unstake requests. (Note: There is one exception: if the baker still has unstake requests created at a time when it was delegating to a different delegate, then these unstake requests still count as delegated to the former delegate. Any such unstake requests are excluded from the amount returned by the present RPC, despite being non-staked tokens owned by the baker.)", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/own_full_balance": { + "get": { + "description": "The full balance (in mutez) of tokens owned by the delegate itself. Includes its spendable balance, staked tez, unstake requests, and frozen bonds. Does not include any tokens owned by external delegators. This RPC fails when the pkh is not a delegate. When it is a delegate, this RPC outputs the same amount as ..//context/contracts//full_balance.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/own_staked": { + "get": { + "description": "The amount (in mutez) currently owned and staked by the baker itself. Returns the same value as ..//context/contracts//staked_balance (except for the fact that the present RPC fails if the public_key_hash in the path is not a delegate).", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/participation": { + "get": { + "description": "Returns cycle and level participation information. In particular this indicates, in the field 'expected_cycle_activity', the number of slots the delegate is expected to have in the cycle based on its active stake. The field 'minimal_cycle_activity' indicates the minimal attesting slots in the cycle required to get attesting rewards. It is computed based on 'expected_cycle_activity. The fields 'missed_slots' and 'missed_levels' indicate the number of missed attesting slots and missed levels (for attesting) in the cycle so far. 'missed_slots' indicates the number of missed attesting slots in the cycle so far. The field 'remaining_allowed_missed_slots' indicates the remaining amount of attesting slots that can be missed in the cycle before forfeiting the rewards. Finally, 'expected_attesting_rewards' indicates the attesting rewards that will be distributed at the end of the cycle if activity at that point will be greater than the minimal required; if the activity is already known to be below the required minimum, then the rewards are zero.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "expected_cycle_activity": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "minimal_cycle_activity": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "missed_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "missed_levels": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "remaining_allowed_missed_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "expected_attesting_rewards": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "expected_cycle_activity", + "minimal_cycle_activity", + "missed_slots", + "missed_levels", + "remaining_allowed_missed_slots", + "expected_attesting_rewards" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/pending_staking_parameters": { + "get": { + "description": "Returns the pending values for the given delegate's staking parameters.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "parameters": { + "type": "object", + "properties": { + "limit_of_staking_over_baking_millionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "edge_of_baking_over_staking_billionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "limit_of_staking_over_baking_millionth", + "edge_of_baking_over_staking_billionth" + ] + } + }, + "required": [ + "cycle", + "parameters" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/stakers": { + "get": { + "description": "Returns the list of accounts that stake to a given delegate together with their share of the frozen deposits.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "staker": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.implicit" + }, + "frozen_deposits": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "staker", + "frozen_deposits" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/staking_balance": { + "get": { + "description": "DEPRECATED; to get this value, you can call RPCs total_staked and total_delegated, and add their outputs together.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/staking_denominator": { + "get": { + "description": "Returns an abstract representation of the total delegated stake.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/total_delegated": { + "get": { + "description": "All tokens (in mutez) that currently count as delegated for the purpose of computing the baker's rights; they weigh half as much as staked tez in the rights. Limits such as overstaking and overdelegation have not been applied yet. This corresponds to all non-staked tez owned by the baker's delegators (including the baker itself): spendable balances, frozen bonds, and unstaked requests, except for any unstake requests that have been created before the delegator changed its delegate to the current baker (because they still count as delegated for the old delegate instead).", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/total_delegated_stake": { + "get": { + "description": "DEPRECATED; use external_staked instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/total_staked": { + "get": { + "description": "The total amount (in mutez) currently staked for the baker, both by the baker itself and by external stakers. This is the staked amount before applying the baker's 'limit_of_staking_over_baking'; in other words, it includes overstaked tez if there are any.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/total_unstaked_per_cycle": { + "get": { + "description": "For each cycle, returns the total amount (in mutez) contained in all unstake requests created during this cycle by all delegators, including the baker itself. Note that these tokens count as delegated to the baker for the purpose of computing baking rights, and are included in the amount returned by the total_delegated RPC.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "deposit": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "cycle", + "deposit" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/unstaked_frozen_deposits": { + "get": { + "description": "DEPRECATED; use total_unstaked_per_cycle instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "deposit": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "cycle", + "deposit" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/voting_info": { + "get": { + "description": "Returns the delegate info (e.g. voting power) found in the listings of the current voting period.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "voting_power": { + "$ref": "#/components/schemas/int64" + }, + "current_ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + }, + "current_proposals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "remaining_proposals": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/voting_power": { + "get": { + "description": "The voting power in the vote listings for a given delegate.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/denunciations": { + "get": { + "description": "Returns the denunciations for misbehavior in the current cycle.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "slashed_delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "operation_hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "rewarded": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "misbehaviour": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "kind": { + "type": "string", + "enum": [ + "attestation", + "block", + "preattestation" + ] + } + }, + "required": [ + "level", + "round", + "kind" + ] + } + }, + "required": [ + "slashed_delegate", + "operation_hash", + "rewarded", + "misbehaviour" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/issuance/current_yearly_rate": { + "get": { + "description": "Returns the current expected maximum yearly issuance rate (in %). The value only includes participation rewards (and does not include liquidity baking)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Universal string representation", + "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "invalid_utf8_string": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + }, + "required": [ + "invalid_utf8_string" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/issuance/current_yearly_rate_details": { + "get": { + "description": "Returns the static and dynamic parts of the current expected maximum yearly issuance rate (in %). The value only includes participation rewards (and does not include liquidity baking)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "static": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/positive_bignum" + }, + "denominator": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "dynamic": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/positive_bignum" + }, + "denominator": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + } + }, + "required": [ + "static", + "dynamic" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/issuance/current_yearly_rate_exact": { + "get": { + "description": "Returns the current expected maximum yearly issuance rate (exact quotient) (in %). The value only includes participation rewards (and does not include liquidity baking)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/positive_bignum" + }, + "denominator": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/issuance/expected_issuance": { + "get": { + "description": "Returns the expected issued tez for the provided block and the next 'consensus_rights_delay' cycles (in mutez)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "baking_reward_fixed_portion": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "baking_reward_bonus_per_slot": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "attesting_reward_per_slot": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "seed_nonce_revelation_tip": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "vdf_revelation_tip": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "dal_attesting_reward_per_shard": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "cycle", + "baking_reward_fixed_portion", + "baking_reward_bonus_per_slot", + "attesting_reward_per_slot", + "seed_nonce_revelation_tip", + "vdf_revelation_tip", + "dal_attesting_reward_per_shard" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/issuance/issuance_per_minute": { + "get": { + "description": "Returns the current expected maximum issuance per minute (in mutez). The value only includes participation rewards (and does not include liquidity baking)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/liquidity_baking/cpmm_address": { + "get": { + "description": "Liquidity baking CPMM address", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A contract handle -- originated account", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/merkle_tree": { + "get": { + "description": "Returns the merkle tree of a piece of context.", + "parameters": [ + { + "name": "holey", + "in": "query", + "description": "Send only hashes, omit data of key", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/merkle_tree" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/merkle_tree_v2": { + "get": { + "description": "Returns the Irmin merkle tree of a piece of context.", + "parameters": [ + { + "name": "holey", + "in": "query", + "description": "Send only hashes, omit data of key", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "version": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + }, + "before": { + "oneOf": [ + { + "title": "Value", + "type": "object", + "properties": { + "value": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "value" + ] + }, + { + "title": "Node", + "type": "object", + "properties": { + "node": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "node" + ] + } + ] + }, + "after": { + "oneOf": [ + { + "title": "Value", + "type": "object", + "properties": { + "value": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "value" + ] + }, + { + "title": "Node", + "type": "object", + "properties": { + "node": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "node" + ] + } + ] + }, + "state": { + "$ref": "#/components/schemas/tree_encoding" + } + }, + "required": [ + "version", + "before", + "after", + "state" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/nonces/{block_level}": { + "get": { + "description": "Info about the nonce of a previous block.", + "parameters": [ + { + "name": "block_level", + "in": "path", + "description": "A level integer", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Revealed", + "type": "object", + "properties": { + "nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "nonce" + ] + }, + { + "title": "Missing", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/cycle_nonce" + } + }, + "required": [ + "hash" + ] + }, + { + "title": "Forgotten", + "type": "object", + "properties": {} + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/protocol/first_level": { + "get": { + "description": "Returns the level at which the current protocol was activated.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/raw/bytes": { + "get": { + "description": "Returns the raw context.", + "parameters": [ + { + "name": "depth", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/raw_context" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/sapling/{sapling_state_id}/get_diff": { + "get": { + "description": "Returns the root and a diff of a state starting from an optional offset which is zero by default.", + "parameters": [ + { + "name": "sapling_state_id", + "in": "path", + "description": "A sapling state identifier", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "offset_commitment", + "in": "query", + "description": "Commitments and ciphertexts are returned from the specified offset up to the most recent.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset_nullifier", + "in": "query", + "description": "Nullifiers are returned from the specified offset up to the most recent.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "root": { + "$ref": "#/components/schemas/sapling.transaction.commitment_hash" + }, + "commitments_and_ciphertexts": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/sapling.transaction.commitment" + }, + { + "$ref": "#/components/schemas/sapling.transaction.ciphertext" + } + ] + } + } + }, + "nullifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sapling.transaction.nullifier" + } + } + }, + "required": [ + "root", + "commitments_and_ciphertexts", + "nullifiers" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/seed": { + "post": { + "description": "Seed of the cycle to which the block belongs.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/seed_computation": { + "get": { + "description": "Seed computation status", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Nonce revelation stage", + "type": "object", + "properties": { + "nonce_revelation_stage": {} + }, + "required": [ + "nonce_revelation_stage" + ] + }, + { + "title": "VDF revelation stage", + "type": "object", + "properties": { + "seed_discriminant": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "seed_challenge": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "seed_discriminant", + "seed_challenge" + ] + }, + { + "title": "Computation finished", + "type": "object", + "properties": { + "computation_finished": {} + }, + "required": [ + "computation_finished" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/all": { + "get": { + "description": "List of all originated smart rollups", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/smart_rollup_address" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/all/inbox": { + "get": { + "description": "Inbox for the smart rollups", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "old_levels_messages": { + "type": "object", + "properties": { + "index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "content": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/smart_rollup_merkelized_payload_hashes_hash" + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "hash", + "level" + ] + }, + "back_pointers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/smart_rollup_inbox_hash" + } + } + }, + "required": [ + "index", + "content", + "back_pointers" + ] + } + }, + "required": [ + "level", + "old_levels_messages" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/commitment/{smart_rollup_commitment_hash}": { + "get": { + "description": "Commitment for a smart rollup from its hash", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "smart_rollup_commitment_hash", + "in": "path", + "description": "smart_rollup_commitment_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/commitment/{smart_rollup_commitment_hash}/can_be_cemented": { + "get": { + "description": "Returns true if and only if the provided commitment can be cemented.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "smart_rollup_commitment_hash", + "in": "path", + "description": "smart_rollup_commitment_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/commitment/{smart_rollup_commitment_hash}/stakers_indexes": { + "get": { + "description": "List of stakers indexes staking on a given commitment", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "smart_rollup_commitment_hash", + "in": "path", + "description": "smart_rollup_commitment_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/consumed_outputs/{block_level}": { + "get": { + "description": "Return the known consumed outputs of a smart rollup.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "block_level", + "in": "path", + "description": "A level integer", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/genesis_info": { + "get": { + "description": "Genesis information (level and commitment hash) for a smart rollup", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "level", + "commitment_hash" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/inbox_level/{block_level}/commitments": { + "get": { + "description": "List of commitments associated to a rollup for a given inbox level", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "block_level", + "in": "path", + "description": "A level integer", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "array", + "items": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/kind": { + "get": { + "description": "Kind of smart rollup", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "enum": [ + "wasm_2_0_0", + "arith", + "riscv" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/last_cemented_commitment_hash_with_level": { + "get": { + "description": "Level and hash of the last cemented commitment for a smart rollup", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "hash", + "level" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/last_whitelist_update": { + "get": { + "description": "Last whitelist update for private smart rollups. If the output is None then the rollup is public.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "message_index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "outbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "message_index", + "outbox_level" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/conflicts": { + "get": { + "description": "List of stakers in conflict with the given staker", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "other": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "their_commitment": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + }, + "our_commitment": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + }, + "parent_commitment": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "other", + "their_commitment", + "our_commitment", + "parent_commitment" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/games": { + "get": { + "description": "Ongoing refutation games for a given staker", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "game": { + "type": "object", + "properties": { + "turn": { + "oneOf": [ + { + "title": "Alice", + "type": "string", + "enum": [ + "alice" + ] + }, + { + "title": "Bob", + "type": "string", + "enum": [ + "bob" + ] + } + ] + }, + "inbox_snapshot": { + "type": "object", + "properties": { + "index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "content": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/smart_rollup_merkelized_payload_hashes_hash" + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "hash", + "level" + ] + }, + "back_pointers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/smart_rollup_inbox_hash" + } + } + }, + "required": [ + "index", + "content", + "back_pointers" + ] + }, + "dal_snapshot": { + "oneOf": [ + { + "title": "dal_skip_list_legacy", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_skip_list_legacy" + ] + }, + "skip_list": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "skip_list" + ] + }, + { + "title": "dal_skip_list", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_skip_list" + ] + }, + "skip_list": { + "type": "object", + "properties": { + "index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "content": { + "oneOf": [ + { + "title": "unattested", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "unattested" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "kind", + "level", + "index" + ] + }, + { + "title": "attested", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attested" + ] + }, + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "kind", + "version", + "level", + "index", + "commitment" + ] + }, + { + "title": "unpublished", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "unpublished" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "kind", + "level", + "index" + ] + }, + { + "title": "published", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "published" + ] + }, + "publisher": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "is_proto_attested": { + "type": "boolean" + }, + "attested_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "total_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "kind", + "publisher", + "is_proto_attested", + "attested_shards", + "total_shards", + "version", + "level", + "index", + "commitment" + ] + } + ] + }, + "back_pointers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/dal_skip_list_pointer" + } + } + }, + "required": [ + "index", + "content", + "back_pointers" + ] + } + }, + "required": [ + "kind", + "skip_list" + ] + } + ] + }, + "start_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "game_state": { + "oneOf": [ + { + "title": "Dissecting", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "Dissecting" + ] + }, + "dissection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + } + }, + "default_number_of_sections": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "kind", + "dissection", + "default_number_of_sections" + ] + }, + { + "title": "Final_move", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "Final_move" + ] + }, + "agreed_start_chunk": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + }, + "refuted_stop_chunk": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + } + }, + "required": [ + "kind", + "agreed_start_chunk", + "refuted_stop_chunk" + ] + } + ] + } + }, + "required": [ + "turn", + "inbox_snapshot", + "dal_snapshot", + "start_level", + "inbox_level", + "game_state" + ] + }, + "alice": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "bob": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "game", + "alice", + "bob" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/index": { + "get": { + "description": "Staker index associated to a public key hash for a given rollup", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/staked_on_commitment": { + "get": { + "description": "The newest commitment on which the operator has staked on for a smart rollup. Note that is can return a commitment that is before the last cemented one.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "hash", + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker1/{staker1_pkh}/staker2/{staker2_pkh}/timeout": { + "get": { + "description": "Returns the timeout of players.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "staker1_pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "staker2_pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "alice": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "bob": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "last_turn_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "alice", + "bob", + "last_turn_level" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker1/{staker1_pkh}/staker2/{staker2_pkh}/timeout_reached": { + "get": { + "description": "Returns whether the timeout creates a result for the game.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "staker1_pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "staker2_pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "title": "Loser", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "loser" + ] + }, + "reason": { + "oneOf": [ + { + "title": "Conflict_resolved", + "type": "string", + "enum": [ + "conflict_resolved" + ] + }, + { + "title": "Timeout", + "type": "string", + "enum": [ + "timeout" + ] + } + ] + }, + "player": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "reason", + "player" + ] + }, + { + "title": "Draw", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "draw" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/stakers": { + "get": { + "description": "List of active stakers' public key hashes of a rollup", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/ticket_balance": { + "post": { + "description": "Access the smart rollup's balance of ticket with specified ticketer, content type, and content.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/whitelist": { + "get": { + "description": "Whitelist for private smart rollups. If the output is None then the rollup is public.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/total_currently_staked": { + "get": { + "description": "Returns the amount of staked tez by delegates, delegators or overstaked.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "delegates": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "delegators": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "overstaked": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "delegates", + "delegators", + "overstaked" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/total_frozen_stake": { + "get": { + "description": "Returns the total stake (in mutez) frozen on the chain", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/total_supply": { + "get": { + "description": "Returns the total supply (in mutez) available on the chain", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/hash": { + "get": { + "description": "The block's hash, its unique identifier.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A block identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/header": { + "get": { + "description": "The whole block header.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "content": { + "oneOf": [ + { + "title": "Activate", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters" + ] + }, + { + "title": "Activate_testchain", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate_testchain" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "validity_time": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters", + "validity_time" + ] + } + ] + }, + "signature": { + "$ref": "#/components/schemas/Signature.V0" + } + }, + "required": [ + "protocol", + "chain_id", + "hash", + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "content", + "signature" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/header/protocol_data": { + "get": { + "description": "The version-specific fragment of the block header.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "content": { + "oneOf": [ + { + "title": "Activate", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters" + ] + }, + { + "title": "Activate_testchain", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate_testchain" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "validity_time": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters", + "validity_time" + ] + } + ] + }, + "signature": { + "$ref": "#/components/schemas/Signature.V0" + } + }, + "required": [ + "protocol", + "content", + "signature" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/header/protocol_data/raw": { + "get": { + "description": "The version-specific fragment of the block header (unparsed).", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/header/raw": { + "get": { + "description": "The whole block header (unparsed).", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/header/shell": { + "get": { + "description": "The shell-specific fragment of the block header.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/attestation_rights": { + "get": { + "description": "Retrieves the delegates allowed to attest a block.\nBy default, it gives the attestation power for delegates that have at least one attestation slot for the next block.\nParameters `level` and `cycle` can be used to specify the (valid) level(s) in the past or future at which the attestation rights have to be returned. Parameter `delegate` can be used to restrict the results to the given delegates.\nParameter `consensus_key` can be used to restrict the results to the given consensus_keys. \nReturns the smallest attestation slots and the attestation power. Also returns the minimal timestamp that corresponds to attestation at the given level. The timestamps are omitted for levels in the past, and are only estimates for levels higher that the next block's, based on the hypothesis that all predecessor blocks were baked at the first round.", + "parameters": [ + { + "name": "level", + "in": "query", + "description": "A level integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "cycle", + "in": "query", + "description": "A cycle integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "delegate", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "consensus_key", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "delegates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "first_slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "attestation_power": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate", + "first_slot", + "attestation_power", + "consensus_key" + ] + } + }, + "estimated_time": { + "$ref": "#/components/schemas/timestamp.protocol" + } + }, + "required": [ + "level", + "delegates" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/baking_rights": { + "get": { + "description": "Retrieves the list of delegates allowed to bake a block.\nBy default, it gives the best baking opportunities (in terms of rounds) for bakers that have at least one opportunity below the 64th round for the next block.\nParameters `level` and `cycle` can be used to specify the (valid) level(s) in the past or future at which the baking rights have to be returned.\nParameter `delegate` can be used to restrict the results to the given delegates. Parameter `consensus_key` can be used to restrict the results to the given consensus_keys. If parameter `all` is set, all the baking opportunities for each baker at each level are returned, instead of just the first one.\nReturns the list of baking opportunities up to round 64. Also returns the minimal timestamps that correspond to these opportunities. The timestamps are omitted for levels in the past, and are only estimates for levels higher that the next block's, based on the hypothesis that all predecessor blocks were baked at the first round.", + "parameters": [ + { + "name": "level", + "in": "query", + "description": "A level integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "cycle", + "in": "query", + "description": "A cycle integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "delegate", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "consensus_key", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "max_round", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "all", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "estimated_time": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "level", + "delegate", + "round", + "consensus_key" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/complete/{prefix}": { + "get": { + "description": "Try to complete a prefix of a Base58Check-encoded data. This RPC is actually able to complete hashes of block, operations, public_keys and contracts.", + "parameters": [ + { + "name": "prefix", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/consecutive_round_zero": { + "get": { + "description": "Returns the number of blocks consecutively baked at round zero.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/current_level": { + "get": { + "description": "Returns the level of the interrogated block, or the one of a block located `offset` blocks after it in the chain. For instance, the next block if `offset` is 1. The offset cannot be negative.", + "parameters": [ + { + "name": "offset", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "level": { + "description": "The level of the block relative to genesis. This is also the Shell's notion of level.", + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "level_position": { + "description": "The level of the block relative to the successor of the genesis block. More precisely, it is the position of the block relative to the block that starts the \"Alpha family\" of protocols, which includes all protocols except Genesis (that is, from 001 onwards).", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle": { + "description": "The current cycle's number. Note that cycles are a protocol-specific notion. As a result, the cycle number starts at 0 with the first block of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle_position": { + "description": "The current level of the block relative to the first block of the current cycle.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "expected_commitment": { + "description": "Tells whether the baker of this block has to commit a seed nonce hash.", + "type": "boolean" + } + }, + "required": [ + "level", + "level_position", + "cycle", + "cycle_position", + "expected_commitment" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge/operations": { + "post": { + "description": "Forge an operation", + "requestBody": { + "content": { + "application/json": { + "schema": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + } + }, + "required": [ + "branch", + "contents" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge/protocol_data": { + "post": { + "description": "Forge the protocol-specific part of a block header", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "payload_round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "nonce_hash": { + "$ref": "#/components/schemas/cycle_nonce" + }, + "proof_of_work_nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "per_block_votes": { + "$ref": "#/components/schemas/022-PsRiotum.per_block_votes" + } + }, + "required": [ + "payload_hash", + "payload_round" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "protocol_data" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge_block_header": { + "post": { + "description": "Forge a block header", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "Block header", + "description": "Block header. It contains both shell and protocol specific data.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "protocol_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "protocol_data" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "block": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "block" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/levels_in_current_cycle": { + "get": { + "description": "Levels of a cycle", + "parameters": [ + { + "name": "offset", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "first": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "last": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "first", + "last" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/parse/block": { + "post": { + "description": "Parse a block", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "Block header", + "description": "Block header. It contains both shell and protocol specific data.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "protocol_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "protocol_data" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "payload_round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proof_of_work_nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "seed_nonce_hash": { + "$ref": "#/components/schemas/cycle_nonce" + }, + "liquidity_baking_toggle_vote": { + "$ref": "#/components/schemas/022-PsRiotum.liquidity_baking_vote" + }, + "adaptive_issuance_vote": { + "$ref": "#/components/schemas/022-PsRiotum.adaptive_issuance_vote" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "payload_hash", + "payload_round", + "proof_of_work_nonce", + "liquidity_baking_toggle_vote", + "adaptive_issuance_vote", + "signature" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/parse/operations": { + "post": { + "description": "Parse operations", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC version is version '1'", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + }, + "check_signature": { + "type": "boolean" + } + }, + "required": [ + "operations" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "contents" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/preapply/block": { + "post": { + "description": "Simulate the validation of a block that would contain the given operations and return the resulting fitness and context hash.", + "parameters": [ + { + "name": "sort", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "timestamp", + "in": "query", + "description": "A date in seconds from epoch", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol_data": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7" + ] + }, + "payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "payload_round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proof_of_work_nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "seed_nonce_hash": { + "$ref": "#/components/schemas/cycle_nonce" + }, + "liquidity_baking_toggle_vote": { + "$ref": "#/components/schemas/022-PsRiotum.liquidity_baking_vote" + }, + "adaptive_issuance_vote": { + "$ref": "#/components/schemas/022-PsRiotum.adaptive_issuance_vote" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "protocol", + "payload_hash", + "payload_round", + "proof_of_work_nonce", + "liquidity_baking_toggle_vote", + "adaptive_issuance_vote", + "signature" + ] + }, + "operations": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/next_operation" + } + } + } + }, + "required": [ + "protocol_data", + "operations" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "shell_header": { + "$ref": "#/components/schemas/block_header.shell" + }, + "operations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "applied": { + "type": "array", + "items": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "hash", + "branch", + "data" + ] + } + }, + "refused": { + "type": "array", + "items": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "branch", + "data", + "error" + ] + } + }, + "outdated": { + "type": "array", + "items": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "branch", + "data", + "error" + ] + } + }, + "branch_refused": { + "type": "array", + "items": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "branch", + "data", + "error" + ] + } + }, + "branch_delayed": { + "type": "array", + "items": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "branch", + "data", + "error" + ] + } + } + }, + "required": [ + "applied", + "refused", + "outdated", + "branch_refused", + "branch_delayed" + ] + } + } + }, + "required": [ + "shell_header", + "operations" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/preapply/operations": { + "post": { + "description": "Simulate the application of the operations with the context of the given block and return the result of each operation application.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/next_operation" + } + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_with_metadata" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/round": { + "get": { + "description": "Returns the round of the interrogated block, or the one of a block located `offset` blocks after in the chain (or before when negative). For instance, the next block if `offset` is 1.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/entrypoint": { + "post": { + "description": "Return the type of the given entrypoint", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "script" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entrypoint_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "entrypoint_type" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/entrypoints": { + "post": { + "description": "Return the list of entrypoints of the given script", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "script" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "unreachable": { + "type": "array", + "items": { + "type": "object", + "properties": { + "path": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.michelson.v1.primitives" + } + } + }, + "required": [ + "path" + ] + } + }, + "entrypoints": { + "type": "object", + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + } + }, + "required": [ + "entrypoints" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/normalize_data": { + "post": { + "description": "Normalizes some data expression using the requested unparsing mode", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "legacy": { + "type": "boolean" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/022-PsRiotum.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "data", + "type", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "normalized": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "normalized" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/normalize_script": { + "post": { + "description": "Normalizes a Michelson script using the requested unparsing mode", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + } + }, + "required": [ + "script", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "normalized": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "normalized" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/normalize_stack": { + "post": { + "description": "Normalize a Michelson stack using the requested unparsing mode", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "input": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "type", + "val" + ] + } + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "legacy": { + "type": "boolean" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/022-PsRiotum.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "input", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "output": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "type", + "val" + ] + } + } + }, + "required": [ + "output" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/normalize_type": { + "post": { + "description": "Normalizes some Michelson type by expanding `pair a b c` as `pair a (pair b c)", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "normalized": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "normalized" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/pack_data": { + "post": { + "description": "Computes the serialized version of some data expression using the same algorithm as script instruction PACK", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "data", + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "packed": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "gas": { + "oneOf": [ + { + "title": "Limited", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + { + "title": "Unaccounted", + "type": "string", + "enum": [ + "unaccounted" + ] + } + ] + } + }, + "required": [ + "packed", + "gas" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/run_code": { + "post": { + "description": "Run a Michelson script in the current context", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "storage": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "input": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "balance": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.implicit" + }, + "self": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "now": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/022-PsRiotum.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "script", + "storage", + "input", + "amount", + "chain_id" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "storage": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/022-PsRiotum.lazy_storage_diff" + } + }, + "required": [ + "storage", + "operations" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/run_instruction": { + "post": { + "description": "Run a single Michelson instruction", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "input": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "type", + "val" + ] + } + }, + "code": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "now": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "sender": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.implicit" + }, + "self": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + }, + "parameter": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "balance": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/022-PsRiotum.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "legacy": { + "type": "boolean" + } + }, + "required": [ + "input", + "code", + "chain_id", + "amount" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "output": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "type", + "val" + ] + } + }, + "gas": { + "oneOf": [ + { + "title": "Limited", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + { + "title": "Unaccounted", + "type": "string", + "enum": [ + "unaccounted" + ] + } + ] + } + }, + "required": [ + "output", + "gas" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/run_operation": { + "post": { + "description": "Run an operation with the context of the given block and without signature checks. Return the operation application result, including the consumed gas. This RPC does not support consensus operations.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC version is version '1'", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "contents" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + } + }, + "required": [ + "operation", + "chain_id" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Operation_with_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_contents_and_result" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + }, + { + "title": "Operation_without_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/run_script_view": { + "post": { + "description": "Simulate a call to a michelson view", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "contract": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + }, + "view": { + "$ref": "#/components/schemas/unistring" + }, + "input": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "unlimited_gas": { + "type": "boolean" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.implicit" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "now": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/022-PsRiotum.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "contract", + "view", + "input", + "chain_id", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "data" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/run_view": { + "post": { + "description": "Simulate a call to a view following the TZIP-4 standard. See https://gitlab.com/tezos/tzip/-/blob/master/proposals/tzip-4/tzip-4.md#view-entrypoints.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "contract": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + }, + "input": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.implicit" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "now": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/022-PsRiotum.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "contract", + "entrypoint", + "input", + "chain_id", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "data" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/script_size": { + "post": { + "description": "Compute the size of a script in the current context", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "program": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "storage": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "legacy": { + "type": "boolean" + } + }, + "required": [ + "program", + "storage" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "script_size" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/simulate_operation": { + "post": { + "description": "Simulate running an operation at some future moment (based on the number of blocks given in the `latency` argument), and return the operation application result. The result is the same as run_operation except for the consumed gas, which depends on the contents of the cache at that future moment. This RPC estimates future gas consumption by trying to predict the state of the cache using some heuristics.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC version is version '1'", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "successor_level", + "in": "query", + "description": "If true, the simulation is done on the successor level of the current context.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "blocks_before_activation": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "operation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "contents" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "latency": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "operation", + "chain_id" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Operation_with_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_contents_and_result" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + }, + { + "title": "Operation_without_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/trace_code": { + "post": { + "description": "Run a Michelson script in the current context, keeping a trace", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "storage": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "input": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "balance": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.implicit" + }, + "self": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "now": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/022-PsRiotum.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "script", + "storage", + "input", + "amount", + "chain_id" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "storage": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + }, + "trace": { + "$ref": "#/components/schemas/022-PsRiotum.scripted.trace" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/022-PsRiotum.lazy_storage_diff" + } + }, + "required": [ + "storage", + "operations", + "trace" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/typecheck_code": { + "post": { + "description": "Typecheck a piece of code in the current context", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "program": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "legacy": { + "type": "boolean" + }, + "show_types": { + "type": "boolean" + } + }, + "required": [ + "program" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "type_map": { + "type": "array", + "items": { + "type": "object", + "properties": { + "location": { + "$ref": "#/components/schemas/micheline.location" + }, + "stack_before": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "stack_after": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + } + }, + "required": [ + "location", + "stack_before", + "stack_after" + ] + } + }, + "gas": { + "oneOf": [ + { + "title": "Limited", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + { + "title": "Unaccounted", + "type": "string", + "enum": [ + "unaccounted" + ] + } + ] + } + }, + "required": [ + "type_map", + "gas" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/typecheck_data": { + "post": { + "description": "Check that some data expression is well formed and of a given type in the current context", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "legacy": { + "type": "boolean" + } + }, + "required": [ + "data", + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "gas": { + "oneOf": [ + { + "title": "Limited", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + { + "title": "Unaccounted", + "type": "string", + "enum": [ + "unaccounted" + ] + } + ] + } + }, + "required": [ + "gas" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/validators": { + "get": { + "description": "Retrieves the level, the attestation slots and the public key hash of each delegate allowed to attest a block.\nBy default, it provides this information for the next level.\nParameter `level` can be used to specify the (valid) level(s) in the past or future at which the attestation rights have to be returned. Parameter `delegate` can be used to restrict the results results to the given delegates. Parameter `consensus_key` can be used to restrict the results to the given consensus_keys.\n", + "parameters": [ + { + "name": "level", + "in": "query", + "description": "A level integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "delegate", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "consensus_key", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "slots": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "level", + "delegate", + "slots", + "consensus_key" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/live_blocks": { + "get": { + "description": "List the ancestors of the given block which, if referred to as the branch in an operation header, are recent enough for that operation to be included in the current block.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/block_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/metadata": { + "get": { + "description": "All the metadata associated to the block.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/block_header_metadata" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/metadata_hash": { + "get": { + "description": "Hash of the metadata associated to the block. This is only set on blocks starting from environment V1.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Tezos block metadata ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_hashes": { + "get": { + "description": "The hashes of all the operations included in the block.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Operation_hash" + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_hashes/{list_offset}": { + "get": { + "description": "All the operations included in `n-th` validation pass of the block.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Operation_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_hashes/{list_offset}/{operation_offset}": { + "get": { + "description": "The hash of then `m-th` operation in the `n-th` validation pass of the block.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "operation_offset", + "in": "path", + "description": "Index `m` of the requested operation in its validation pass.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_metadata_hashes": { + "get": { + "description": "The hashes of all the operation metadata included in the block. This is only set on blocks starting from environment V1.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Operation_metadata_hash" + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_metadata_hashes/{list_offset}": { + "get": { + "description": "All the operation metadata included in `n-th` validation pass of the block. This is only set on blocks starting from environment V1.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Operation_metadata_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_metadata_hashes/{list_offset}/{operation_offset}": { + "get": { + "description": "The hash of then `m-th` operation metadata in the `n-th` validation pass of the block. This is only set on blocks starting from environment V1.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "operation_offset", + "in": "path", + "description": "Index `m` of the requested operation in its validation pass.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation metadata ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operations": { + "get": { + "description": "All the operations included in the block.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "force_metadata", + "in": "query", + "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "metadata", + "in": "query", + "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operations/{list_offset}": { + "get": { + "description": "All the operations included in `n-th` validation pass of the block.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "force_metadata", + "in": "query", + "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "metadata", + "in": "query", + "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operations/{list_offset}/{operation_offset}": { + "get": { + "description": "The `m-th` operation in the `n-th` validation pass of the block.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "operation_offset", + "in": "path", + "description": "Index `m` of the requested operation in its validation pass.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "force_metadata", + "in": "query", + "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "metadata", + "in": "query", + "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/operation" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operations_metadata_hash": { + "get": { + "description": "The root hash of the operations metadata from the block. This is only set on blocks starting from environment V1.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A list of list of operation metadata (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/protocols": { + "get": { + "description": "Current and next protocol.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "next_protocol": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "required": [ + "protocol", + "next_protocol" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/resulting_context_hash": { + "get": { + "description": "Context hash resulting of the block application.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A hash of context (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/ballot_list": { + "get": { + "description": "Ballots casted so far during a voting period.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + } + }, + "required": [ + "pkh", + "ballot" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/ballots": { + "get": { + "description": "Sum of ballots casted so far during a voting period.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "yay": { + "$ref": "#/components/schemas/int64" + }, + "nay": { + "$ref": "#/components/schemas/int64" + }, + "pass": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "yay", + "nay", + "pass" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/current_period": { + "get": { + "description": "Returns the voting period (index, kind, starting position) and related information (position, remaining) of the interrogated block.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "voting_period": { + "description": "The voting period to which the block belongs.", + "type": "object", + "properties": { + "index": { + "description": "The voting period's index. Starts at 0 with the first block of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "kind": { + "description": "One of the several kinds of periods in the voting procedure.", + "oneOf": [ + { + "title": "Proposal", + "type": "string", + "enum": [ + "proposal" + ] + }, + { + "title": "exploration", + "type": "string", + "enum": [ + "exploration" + ] + }, + { + "title": "Cooldown", + "type": "string", + "enum": [ + "cooldown" + ] + }, + { + "title": "Promotion", + "type": "string", + "enum": [ + "promotion" + ] + }, + { + "title": "Adoption", + "type": "string", + "enum": [ + "adoption" + ] + } + ] + }, + "start_position": { + "description": "The relative position of the first level of the period with respect to the first level of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "index", + "kind", + "start_position" + ] + }, + "position": { + "description": "The position of the block within the voting period.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "remaining": { + "description": "The number of blocks remaining till the end of the voting period.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "voting_period", + "position", + "remaining" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/current_proposal": { + "get": { + "description": "Current proposal under evaluation.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/Protocol_hash" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/current_quorum": { + "get": { + "description": "Current expected quorum.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/listings": { + "get": { + "description": "List of delegates with their voting power.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "voting_power": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "pkh", + "voting_power" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/proposal_count/{pkh}": { + "get": { + "description": "Number of votes casted during the current period.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/proposals": { + "get": { + "description": "List of proposals with number of supporters.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Protocol_hash" + }, + { + "$ref": "#/components/schemas/int64" + } + ] + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/successor_period": { + "get": { + "description": "Returns the voting period (index, kind, starting position) and related information (position, remaining) of the next block.Useful to craft operations that will be valid in the next block.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "voting_period": { + "description": "The voting period to which the block belongs.", + "type": "object", + "properties": { + "index": { + "description": "The voting period's index. Starts at 0 with the first block of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "kind": { + "description": "One of the several kinds of periods in the voting procedure.", + "oneOf": [ + { + "title": "Proposal", + "type": "string", + "enum": [ + "proposal" + ] + }, + { + "title": "exploration", + "type": "string", + "enum": [ + "exploration" + ] + }, + { + "title": "Cooldown", + "type": "string", + "enum": [ + "cooldown" + ] + }, + { + "title": "Promotion", + "type": "string", + "enum": [ + "promotion" + ] + }, + { + "title": "Adoption", + "type": "string", + "enum": [ + "adoption" + ] + } + ] + }, + "start_position": { + "description": "The relative position of the first level of the period with respect to the first level of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "index", + "kind", + "start_position" + ] + }, + "position": { + "description": "The position of the block within the voting period.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "remaining": { + "description": "The number of blocks remaining till the end of the voting period.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "voting_period", + "position", + "remaining" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/total_voting_power": { + "get": { + "description": "Total voting power in the voting listings.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "022-PsRiotum.adaptive_issuance_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + }, + "022-PsRiotum.apply_internal_results.alpha.operation_result": { + "oneOf": [ + { + "title": "transaction", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transaction" + ] + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "destination": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/022-PsRiotum.entrypoint" + }, + "value": {} + }, + "required": [ + "entrypoint", + "value" + ] + }, + "result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.internal_operation_result.transaction" + } + }, + "required": [ + "kind", + "source", + "nonce", + "amount", + "destination", + "result" + ] + }, + { + "title": "origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "origination" + ] + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "balance": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/022-PsRiotum.scripted.contracts" + }, + "result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.internal_operation_result.origination" + } + }, + "required": [ + "kind", + "source", + "nonce", + "balance", + "script", + "result" + ] + }, + { + "title": "delegation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "delegation" + ] + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.internal_operation_result.delegation" + } + }, + "required": [ + "kind", + "source", + "nonce", + "result" + ] + }, + { + "title": "event", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "event" + ] + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "tag": { + "$ref": "#/components/schemas/022-PsRiotum.entrypoint" + }, + "payload": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.internal_operation_result.event" + } + }, + "required": [ + "kind", + "source", + "nonce", + "type", + "result" + ] + } + ] + }, + "022-PsRiotum.big_map_id": { + "title": "Big map identifier", + "description": "A big map identifier", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + "022-PsRiotum.block_header.alpha.full_header": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "payload_round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proof_of_work_nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "seed_nonce_hash": { + "$ref": "#/components/schemas/cycle_nonce" + }, + "liquidity_baking_toggle_vote": { + "$ref": "#/components/schemas/022-PsRiotum.liquidity_baking_vote" + }, + "adaptive_issuance_vote": { + "$ref": "#/components/schemas/022-PsRiotum.adaptive_issuance_vote" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "payload_hash", + "payload_round", + "proof_of_work_nonce", + "liquidity_baking_toggle_vote", + "adaptive_issuance_vote", + "signature" + ] + }, + "022-PsRiotum.bond_id": { + "type": "object", + "properties": { + "smart_rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + } + }, + "required": [ + "smart_rollup" + ] + }, + "022-PsRiotum.contract_id": { + "title": "A contract handle", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash or a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "022-PsRiotum.contract_id.implicit": { + "title": "A contract handle -- implicit account", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "022-PsRiotum.contract_id.originated": { + "title": "A contract handle -- originated account", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "022-PsRiotum.entrypoint": { + "title": "entrypoint", + "description": "Named entrypoint to a Michelson smart contract", + "oneOf": [ + { + "title": "default", + "type": "string", + "enum": [ + "default" + ] + }, + { + "title": "root", + "type": "string", + "enum": [ + "root" + ] + }, + { + "title": "do", + "type": "string", + "enum": [ + "do" + ] + }, + { + "title": "set_delegate", + "type": "string", + "enum": [ + "set_delegate" + ] + }, + { + "title": "remove_delegate", + "type": "string", + "enum": [ + "remove_delegate" + ] + }, + { + "title": "deposit", + "type": "string", + "enum": [ + "deposit" + ] + }, + { + "title": "stake", + "type": "string", + "enum": [ + "stake" + ] + }, + { + "title": "unstake", + "type": "string", + "enum": [ + "unstake" + ] + }, + { + "title": "finalize_unstake", + "type": "string", + "enum": [ + "finalize_unstake" + ] + }, + { + "title": "set_delegate_parameters", + "type": "string", + "enum": [ + "set_delegate_parameters" + ] + }, + { + "title": "named", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + ] + }, + "022-PsRiotum.error": { + "description": "The full list of RPC errors would be too long to include.\nIt is available at RPC `/errors` (GET).\nErrors specific to protocol Alpha have an id that starts with `proto.alpha`." + }, + "022-PsRiotum.frozen_staker": { + "title": "frozen_staker", + "description": "Abstract notion of staker used in operation receipts for frozen deposits, either a single staker or all the stakers delegating to some delegate.", + "oneOf": [ + { + "title": "Single", + "type": "object", + "properties": { + "contract": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "contract", + "delegate" + ] + }, + { + "title": "Shared", + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate" + ] + }, + { + "title": "Baker", + "type": "object", + "properties": { + "baker_own_stake": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "baker_own_stake" + ] + }, + { + "title": "Baker_edge", + "type": "object", + "properties": { + "baker_edge": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "baker_edge" + ] + } + ] + }, + "022-PsRiotum.inlined.attestation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation_mempool.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "022-PsRiotum.inlined.attestation_mempool.contents": { + "oneOf": [ + { + "title": "Attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestation_with_dal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation_with_dal" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "dal_attestation": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "dal_attestation" + ] + } + ] + }, + "022-PsRiotum.inlined.preattestation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.preattestation.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "022-PsRiotum.inlined.preattestation.contents": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preattestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + "022-PsRiotum.lazy_storage_diff": { + "type": "array", + "items": { + "oneOf": [ + { + "title": "big_map", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "big_map" + ] + }, + "id": { + "$ref": "#/components/schemas/022-PsRiotum.big_map_id" + }, + "diff": { + "oneOf": [ + { + "title": "update", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "update" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "key": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "value": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "key_hash", + "key" + ] + } + } + }, + "required": [ + "action", + "updates" + ] + }, + { + "title": "remove", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "remove" + ] + } + }, + "required": [ + "action" + ] + }, + { + "title": "copy", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "copy" + ] + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.big_map_id" + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "key": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "value": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "key_hash", + "key" + ] + } + } + }, + "required": [ + "action", + "source", + "updates" + ] + }, + { + "title": "alloc", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "alloc" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "key": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "value": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "key_hash", + "key" + ] + } + }, + "key_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "value_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "action", + "updates", + "key_type", + "value_type" + ] + } + ] + } + }, + "required": [ + "kind", + "id", + "diff" + ] + }, + { + "title": "sapling_state", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "sapling_state" + ] + }, + "id": { + "$ref": "#/components/schemas/022-PsRiotum.sapling_state_id" + }, + "diff": { + "oneOf": [ + { + "title": "update", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "update" + ] + }, + "updates": { + "type": "object", + "properties": { + "commitments_and_ciphertexts": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/sapling.transaction.commitment" + }, + { + "$ref": "#/components/schemas/sapling.transaction.ciphertext" + } + ] + } + } + }, + "nullifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sapling.transaction.nullifier" + } + } + }, + "required": [ + "commitments_and_ciphertexts", + "nullifiers" + ] + } + }, + "required": [ + "action", + "updates" + ] + }, + { + "title": "remove", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "remove" + ] + } + }, + "required": [ + "action" + ] + }, + { + "title": "copy", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "copy" + ] + }, + "source": { + "$ref": "#/components/schemas/022-PsRiotum.sapling_state_id" + }, + "updates": { + "type": "object", + "properties": { + "commitments_and_ciphertexts": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/sapling.transaction.commitment" + }, + { + "$ref": "#/components/schemas/sapling.transaction.ciphertext" + } + ] + } + } + }, + "nullifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sapling.transaction.nullifier" + } + } + }, + "required": [ + "commitments_and_ciphertexts", + "nullifiers" + ] + } + }, + "required": [ + "action", + "source", + "updates" + ] + }, + { + "title": "alloc", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "alloc" + ] + }, + "updates": { + "type": "object", + "properties": { + "commitments_and_ciphertexts": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/sapling.transaction.commitment" + }, + { + "$ref": "#/components/schemas/sapling.transaction.ciphertext" + } + ] + } + } + }, + "nullifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sapling.transaction.nullifier" + } + } + }, + "required": [ + "commitments_and_ciphertexts", + "nullifiers" + ] + }, + "memo_size": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "action", + "updates", + "memo_size" + ] + } + ] + } + }, + "required": [ + "kind", + "id", + "diff" + ] + } + ] + } + }, + "022-PsRiotum.liquidity_baking_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + }, + "022-PsRiotum.michelson.v1.primitives": { + "type": "string", + "enum": [ + "SHA256", + "GT", + "RIGHT", + "SAPLING_EMPTY_STATE", + "False", + "RENAME", + "CAST", + "tx_rollup_l2_address", + "PACK", + "BYTES", + "timestamp", + "bls12_381_g2", + "Pair", + "IF_LEFT", + "contract", + "mutez", + "storage", + "PAIR", + "view", + "UNPACK", + "ADD", + "DROP", + "big_map", + "MUL", + "NAT", + "SELF", + "CONTRACT", + "CDR", + "SAPLING_VERIFY_UPDATE", + "pair", + "LSL", + "int", + "operation", + "SHA512", + "CREATE_ACCOUNT", + "BLAKE2B", + "SPLIT_TICKET", + "LEFT", + "never", + "unit", + "address", + "signature", + "CHAIN_ID", + "constant", + "SLICE", + "SENDER", + "IMPLICIT_ACCOUNT", + "key_hash", + "AMOUNT", + "CHECK_SIGNATURE", + "sapling_state", + "LT", + "EXEC", + "Elt", + "EMIT", + "NONE", + "CREATE_CONTRACT", + "LSR", + "SET_DELEGATE", + "OPEN_CHEST", + "TRANSFER_TOKENS", + "Some", + "parameter", + "set", + "bls12_381_fr", + "EDIV", + "None", + "STEPS_TO_QUOTA", + "key", + "ABS", + "list", + "NEVER", + "map", + "CAR", + "IF", + "GET_AND_UPDATE", + "CONCAT", + "LOOP", + "DIG", + "KECCAK", + "Lambda_rec", + "SOME", + "option", + "SUB", + "INT", + "PUSH", + "CONS", + "Unit", + "ISNAT", + "NEG", + "XOR", + "APPLY", + "UNPAIR", + "JOIN_TICKETS", + "SIZE", + "lambda", + "AND", + "NEQ", + "or", + "BALANCE", + "UNIT", + "VOTING_POWER", + "OR", + "LAMBDA", + "chest", + "LOOP_LEFT", + "True", + "Right", + "Ticket", + "HASH_KEY", + "DUG", + "sapling_transaction", + "SUB_MUTEZ", + "EMPTY_BIG_MAP", + "MEM", + "IF_NONE", + "nat", + "TOTAL_VOTING_POWER", + "LE", + "Left", + "chest_key", + "READ_TICKET", + "ticket", + "bls12_381_g1", + "LEVEL", + "VIEW", + "string", + "PAIRING_CHECK", + "LAMBDA_REC", + "NOW", + "SHA3", + "bool", + "MIN_BLOCK_TIME", + "GET", + "bytes", + "sapling_transaction_deprecated", + "NIL", + "IF_CONS", + "GE", + "NOT", + "SWAP", + "ITER", + "ADDRESS", + "TICKET", + "DUP", + "EMPTY_MAP", + "UPDATE", + "chain_id", + "TICKET_DEPRECATED", + "EMPTY_SET", + "FAILWITH", + "MAP", + "SOURCE", + "DIP", + "COMPARE", + "EQ", + "SELF_ADDRESS", + "code" + ] + }, + "022-PsRiotum.mutez": { + "$ref": "#/components/schemas/positive_bignum" + }, + "022-PsRiotum.operation.alpha.contents": { + "oneOf": [ + { + "title": "Preattestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preattestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestations_aggregate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestations_aggregate" + ] + }, + "consensus_content": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "level", + "round", + "block_payload_hash" + ] + }, + "committee": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + } + }, + "required": [ + "kind", + "consensus_content", + "committee" + ] + }, + { + "title": "Attestation_with_dal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation_with_dal" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "dal_attestation": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "dal_attestation" + ] + }, + { + "title": "Double_preattestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_preattestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.preattestation" + }, + "op2": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.preattestation" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Double_attestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_attestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation" + }, + "op2": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "level", + "nonce" + ] + }, + { + "title": "Vdf_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "vdf_revelation" + ] + }, + "solution": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + ] + } + } + }, + "required": [ + "kind", + "solution" + ] + }, + { + "title": "Double_baking_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_baking_evidence" + ] + }, + "bh1": { + "$ref": "#/components/schemas/022-PsRiotum.block_header.alpha.full_header" + }, + "bh2": { + "$ref": "#/components/schemas/022-PsRiotum.block_header.alpha.full_header" + } + }, + "required": [ + "kind", + "bh1", + "bh2" + ] + }, + { + "title": "Dal_entrapment_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_entrapment_evidence" + ] + }, + "attestation": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation" + }, + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "shard_with_proof": { + "type": "object", + "properties": { + "shard": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + ] + } + }, + "proof": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "shard", + "proof" + ] + } + }, + "required": [ + "kind", + "attestation", + "slot_index", + "shard_with_proof" + ] + }, + { + "title": "Activate_account", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "activate_account" + ] + }, + "pkh": { + "$ref": "#/components/schemas/Ed25519.Public_key_hash" + }, + "secret": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "pkh", + "secret" + ] + }, + { + "title": "Proposals", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "proposals" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + } + }, + "required": [ + "kind", + "source", + "period", + "proposals" + ] + }, + { + "title": "Ballot", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "ballot" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposal": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + } + }, + "required": [ + "kind", + "source", + "period", + "proposal", + "ballot" + ] + }, + { + "title": "Reveal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "reveal" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_key": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_key" + ] + }, + { + "title": "Transaction", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transaction" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "destination": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/022-PsRiotum.entrypoint" + }, + "value": {} + }, + "required": [ + "entrypoint", + "value" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination" + ] + }, + { + "title": "Origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/022-PsRiotum.scripted.contracts" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "balance", + "script" + ] + }, + { + "title": "Delegation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "delegation" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit" + ] + }, + { + "title": "Set_deposits_limit", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "set_deposits_limit" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "limit": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit" + ] + }, + { + "title": "Increase_paid_storage", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "increase_paid_storage" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + }, + "destination": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination" + ] + }, + { + "title": "Update_consensus_key", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "update_consensus_key" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + }, + "proof": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pk" + ] + }, + { + "title": "Drain_delegate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "drain_delegate" + ] + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "destination": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "consensus_key", + "delegate", + "destination" + ] + }, + { + "title": "Failing_noop", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "failing_noop" + ] + }, + "arbitrary": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "arbitrary" + ] + }, + { + "title": "Register_global_constant", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "register_global_constant" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "value": {} + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "value" + ] + }, + { + "title": "Transfer_ticket", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transfer_ticket" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_contents": {}, + "ticket_ty": {}, + "ticket_ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "ticket_amount": { + "$ref": "#/components/schemas/positive_bignum" + }, + "destination": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "ticket_contents", + "ticket_ty", + "ticket_ticketer", + "ticket_amount", + "destination", + "entrypoint" + ] + }, + { + "title": "Dal_publish_commitment", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_publish_commitment" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "slot_header": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + }, + "commitment_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "slot_index", + "commitment", + "commitment_proof" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "slot_header" + ] + }, + { + "title": "Smart_rollup_originate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_originate" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pvm_kind": { + "type": "string", + "enum": [ + "wasm_2_0_0", + "arith", + "riscv" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {}, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pvm_kind", + "kernel", + "parameters_ty" + ] + }, + { + "title": "Smart_rollup_add_messages", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_add_messages" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "message": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "message" + ] + }, + { + "title": "Smart_rollup_cement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_cement" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup" + ] + }, + { + "title": "Smart_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "commitment": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "commitment" + ] + }, + { + "title": "Smart_rollup_refute", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_refute" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "opponent": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "refutation": { + "oneOf": [ + { + "title": "Start", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "start" + ] + }, + "player_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "opponent_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "refutation_kind", + "player_commitment_hash", + "opponent_commitment_hash" + ] + }, + { + "title": "Move", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "move" + ] + }, + "choice": { + "$ref": "#/components/schemas/positive_bignum" + }, + "step": { + "oneOf": [ + { + "title": "Dissection", + "type": "array", + "items": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + } + }, + { + "title": "Proof", + "type": "object", + "properties": { + "pvm_step": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "input_proof": { + "oneOf": [ + { + "title": "inbox proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "inbox_proof" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "message_counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "serialized_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "input_proof_kind", + "level", + "message_counter", + "serialized_proof" + ] + }, + { + "title": "reveal proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "reveal_proof" + ] + }, + "reveal_proof": { + "oneOf": [ + { + "title": "raw data proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "raw_data_proof" + ] + }, + "raw_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "raw_data" + ] + }, + { + "title": "metadata proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "metadata_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + }, + { + "title": "dal page proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_page_proof" + ] + }, + "dal_page_id": { + "type": "object", + "properties": { + "published_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_index": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "published_level", + "slot_index", + "page_index" + ] + }, + "dal_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "dal_page_id", + "dal_proof" + ] + }, + { + "title": "dal parameters proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_parameters_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + } + ] + } + }, + "required": [ + "input_proof_kind", + "reveal_proof" + ] + }, + { + "title": "first input", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "first_input" + ] + } + }, + "required": [ + "input_proof_kind" + ] + } + ] + } + }, + "required": [ + "pvm_step" + ] + } + ] + } + }, + "required": [ + "refutation_kind", + "choice", + "step" + ] + } + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "opponent", + "refutation" + ] + }, + { + "title": "Smart_rollup_timeout", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_timeout" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "stakers": { + "type": "object", + "properties": { + "alice": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "bob": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "alice", + "bob" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "stakers" + ] + }, + { + "title": "Smart_rollup_execute_outbox_message", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_execute_outbox_message" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "cemented_commitment": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "output_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "cemented_commitment", + "output_proof" + ] + }, + { + "title": "Smart_rollup_recover_bond", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_recover_bond" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "staker": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "staker" + ] + }, + { + "title": "Zk_rollup_origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "circuits_info": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "oneOf": [ + { + "title": "Public", + "type": "object", + "properties": { + "public": {} + }, + "required": [ + "public" + ] + }, + { + "title": "Private", + "type": "object", + "properties": { + "private": {} + }, + "required": [ + "private" + ] + }, + { + "title": "Fee", + "type": "object", + "properties": { + "fee": {} + }, + "required": [ + "fee" + ] + } + ] + } + ] + } + } + }, + "init_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "nb_ops": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_parameters", + "circuits_info", + "init_state", + "nb_ops" + ] + }, + { + "title": "Zk_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "op": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "properties": { + "op_code": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "price": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/script_expr" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "id", + "amount" + ] + }, + "l1_dst": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "rollup_id": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "payload": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "op_code", + "price", + "l1_dst", + "rollup_id", + "payload" + ] + }, + { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "contents": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "ty": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + } + }, + "required": [ + "contents", + "ty", + "ticketer" + ] + } + ] + } + ] + } + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "op" + ] + }, + { + "title": "Zk_rollup_update", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_update" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "update": { + "type": "object", + "properties": { + "pending_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "exit_validity": { + "type": "boolean" + } + }, + "required": [ + "new_state", + "fee", + "exit_validity" + ] + } + ] + } + } + }, + "private_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "new_state", + "fee" + ] + } + ] + } + } + }, + "fee_pi": { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "new_state" + ] + }, + "proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "pending_pis", + "private_pis", + "fee_pi", + "proof" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "update" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.internal_operation_result.delegation": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.internal_operation_result.event": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.internal_operation_result.origination": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/022-PsRiotum.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/022-PsRiotum.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.internal_operation_result.transaction": { + "oneOf": [ + { + "title": "Applied", + "oneOf": [ + { + "title": "To_contract", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "storage": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "ticket_receipt": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "allocated_destination_contract": { + "type": "boolean" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/022-PsRiotum.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_smart_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_receipt": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + } + }, + "required": [ + "status", + "ticket_receipt" + ] + } + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "oneOf": [ + { + "title": "To_contract", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "storage": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "ticket_receipt": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "allocated_destination_contract": { + "type": "boolean" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/022-PsRiotum.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_smart_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_receipt": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + } + }, + "required": [ + "status", + "ticket_receipt" + ] + } + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_contents_and_result": { + "oneOf": [ + { + "title": "Attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "consensus_power": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate", + "consensus_power", + "consensus_key" + ] + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "metadata" + ] + }, + { + "title": "Attestation_with_dal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation_with_dal" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "dal_attestation": { + "$ref": "#/components/schemas/bignum" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "consensus_power": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate", + "consensus_power", + "consensus_key" + ] + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "dal_attestation", + "metadata" + ] + }, + { + "title": "Preattestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preattestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "consensus_power": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate", + "consensus_power", + "consensus_key" + ] + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "metadata" + ] + }, + { + "title": "Attestations_aggregate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestations_aggregate" + ] + }, + "consensus_content": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "level", + "round", + "block_payload_hash" + ] + }, + "committee": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "committee": { + "type": "array", + "items": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "consensus_pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate", + "consensus_pkh" + ] + } + }, + "consensus_power": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "committee", + "consensus_power" + ] + } + }, + "required": [ + "kind", + "consensus_content", + "committee", + "metadata" + ] + }, + { + "title": "Double_attestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_attestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation" + }, + "op2": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation" + }, + "metadata": { + "type": "object", + "properties": { + "forbidden_delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "op1", + "op2", + "metadata" + ] + }, + { + "title": "Double_preattestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_preattestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.preattestation" + }, + "op2": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.preattestation" + }, + "metadata": { + "type": "object", + "properties": { + "forbidden_delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "op1", + "op2", + "metadata" + ] + }, + { + "title": "Dal_entrapment_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_entrapment_evidence" + ] + }, + "attestation": { + "$ref": "#/components/schemas/022-PsRiotum.inlined.attestation" + }, + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "shard_with_proof": { + "type": "object", + "properties": { + "shard": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + ] + } + }, + "proof": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "shard", + "proof" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "attestation", + "slot_index", + "shard_with_proof", + "metadata" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "level", + "nonce", + "metadata" + ] + }, + { + "title": "Vdf_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "vdf_revelation" + ] + }, + "solution": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + ] + } + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "solution", + "metadata" + ] + }, + { + "title": "Double_baking_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_baking_evidence" + ] + }, + "bh1": { + "$ref": "#/components/schemas/022-PsRiotum.block_header.alpha.full_header" + }, + "bh2": { + "$ref": "#/components/schemas/022-PsRiotum.block_header.alpha.full_header" + }, + "metadata": { + "type": "object", + "properties": { + "forbidden_delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "bh1", + "bh2", + "metadata" + ] + }, + { + "title": "Activate_account", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "activate_account" + ] + }, + "pkh": { + "$ref": "#/components/schemas/Ed25519.Public_key_hash" + }, + "secret": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "pkh", + "secret", + "metadata" + ] + }, + { + "title": "Proposals", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "proposals" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "metadata": { + "type": "object", + "properties": {} + } + }, + "required": [ + "kind", + "source", + "period", + "proposals", + "metadata" + ] + }, + { + "title": "Ballot", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "ballot" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposal": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + }, + "metadata": { + "type": "object", + "properties": {} + } + }, + "required": [ + "kind", + "source", + "period", + "proposal", + "ballot", + "metadata" + ] + }, + { + "title": "Drain_delegate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "drain_delegate" + ] + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "destination": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "allocated_destination_contract": { + "type": "boolean" + } + } + } + }, + "required": [ + "kind", + "consensus_key", + "delegate", + "destination", + "metadata" + ] + }, + { + "title": "Reveal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "reveal" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_key": { + "$ref": "#/components/schemas/Signature.Public_key" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.reveal" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_key", + "metadata" + ] + }, + { + "title": "Transaction", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transaction" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "destination": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/022-PsRiotum.entrypoint" + }, + "value": {} + }, + "required": [ + "entrypoint", + "value" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.transaction" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination", + "metadata" + ] + }, + { + "title": "Origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/022-PsRiotum.scripted.contracts" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.origination" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "balance", + "script", + "metadata" + ] + }, + { + "title": "Delegation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "delegation" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.delegation" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "metadata" + ] + }, + { + "title": "Register_global_constant", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "register_global_constant" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "value": {}, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.register_global_constant" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "value", + "metadata" + ] + }, + { + "title": "Set_deposits_limit", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "set_deposits_limit" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "limit": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.set_deposits_limit" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "metadata" + ] + }, + { + "title": "Increase_paid_storage", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "increase_paid_storage" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + }, + "destination": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.increase_paid_storage" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination", + "metadata" + ] + }, + { + "title": "Update_consensus_key", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "update_consensus_key" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + }, + "proof": { + "$ref": "#/components/schemas/Signature.V1" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.update_consensus_key" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pk", + "metadata" + ] + }, + { + "title": "Transfer_ticket", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transfer_ticket" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_contents": {}, + "ticket_ty": {}, + "ticket_ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "ticket_amount": { + "$ref": "#/components/schemas/positive_bignum" + }, + "destination": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.transfer_ticket" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "ticket_contents", + "ticket_ty", + "ticket_ticketer", + "ticket_amount", + "destination", + "entrypoint", + "metadata" + ] + }, + { + "title": "Dal_publish_commitment", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_publish_commitment" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "slot_header": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + }, + "commitment_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "slot_index", + "commitment", + "commitment_proof" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.dal_publish_commitment" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "slot_header", + "metadata" + ] + }, + { + "title": "Smart_rollup_originate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_originate" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pvm_kind": { + "type": "string", + "enum": [ + "wasm_2_0_0", + "arith", + "riscv" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {}, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.smart_rollup_originate" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pvm_kind", + "kernel", + "parameters_ty", + "metadata" + ] + }, + { + "title": "Smart_rollup_add_messages", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_add_messages" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "message": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.smart_rollup_add_messages" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "message", + "metadata" + ] + }, + { + "title": "Smart_rollup_cement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_cement" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.smart_rollup_cement" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "metadata" + ] + }, + { + "title": "Smart_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "commitment": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.smart_rollup_publish" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "commitment", + "metadata" + ] + }, + { + "title": "Smart_rollup_refute", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_refute" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "opponent": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "refutation": { + "oneOf": [ + { + "title": "Start", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "start" + ] + }, + "player_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "opponent_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "refutation_kind", + "player_commitment_hash", + "opponent_commitment_hash" + ] + }, + { + "title": "Move", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "move" + ] + }, + "choice": { + "$ref": "#/components/schemas/positive_bignum" + }, + "step": { + "oneOf": [ + { + "title": "Dissection", + "type": "array", + "items": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + } + }, + { + "title": "Proof", + "type": "object", + "properties": { + "pvm_step": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "input_proof": { + "oneOf": [ + { + "title": "inbox proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "inbox_proof" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "message_counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "serialized_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "input_proof_kind", + "level", + "message_counter", + "serialized_proof" + ] + }, + { + "title": "reveal proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "reveal_proof" + ] + }, + "reveal_proof": { + "oneOf": [ + { + "title": "raw data proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "raw_data_proof" + ] + }, + "raw_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "raw_data" + ] + }, + { + "title": "metadata proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "metadata_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + }, + { + "title": "dal page proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_page_proof" + ] + }, + "dal_page_id": { + "type": "object", + "properties": { + "published_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_index": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "published_level", + "slot_index", + "page_index" + ] + }, + "dal_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "dal_page_id", + "dal_proof" + ] + }, + { + "title": "dal parameters proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_parameters_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + } + ] + } + }, + "required": [ + "input_proof_kind", + "reveal_proof" + ] + }, + { + "title": "first input", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "first_input" + ] + } + }, + "required": [ + "input_proof_kind" + ] + } + ] + } + }, + "required": [ + "pvm_step" + ] + } + ] + } + }, + "required": [ + "refutation_kind", + "choice", + "step" + ] + } + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.smart_rollup_refute" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "opponent", + "refutation", + "metadata" + ] + }, + { + "title": "Smart_rollup_timeout", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_timeout" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "stakers": { + "type": "object", + "properties": { + "alice": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "bob": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "alice", + "bob" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.smart_rollup_timeout" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "stakers", + "metadata" + ] + }, + { + "title": "Smart_rollup_execute_outbox_message", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_execute_outbox_message" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "cemented_commitment": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "output_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.smart_rollup_execute_outbox_message" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "cemented_commitment", + "output_proof", + "metadata" + ] + }, + { + "title": "Smart_rollup_recover_bond", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_recover_bond" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "staker": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.smart_rollup_recover_bond" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "staker", + "metadata" + ] + }, + { + "title": "Zk_rollup_origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "circuits_info": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "oneOf": [ + { + "title": "Public", + "type": "object", + "properties": { + "public": {} + }, + "required": [ + "public" + ] + }, + { + "title": "Private", + "type": "object", + "properties": { + "private": {} + }, + "required": [ + "private" + ] + }, + { + "title": "Fee", + "type": "object", + "properties": { + "fee": {} + }, + "required": [ + "fee" + ] + } + ] + } + ] + } + } + }, + "init_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "nb_ops": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.zk_rollup_origination" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_parameters", + "circuits_info", + "init_state", + "nb_ops", + "metadata" + ] + }, + { + "title": "Zk_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "op": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "properties": { + "op_code": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "price": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/script_expr" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "id", + "amount" + ] + }, + "l1_dst": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "rollup_id": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "payload": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "op_code", + "price", + "l1_dst", + "rollup_id", + "payload" + ] + }, + { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "contents": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "ty": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + } + }, + "required": [ + "contents", + "ty", + "ticketer" + ] + } + ] + } + ] + } + } + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.zk_rollup_publish" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "op", + "metadata" + ] + }, + { + "title": "Zk_rollup_update", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_update" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/022-PsRiotum.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "update": { + "type": "object", + "properties": { + "pending_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "exit_validity": { + "type": "boolean" + } + }, + "required": [ + "new_state", + "fee", + "exit_validity" + ] + } + ] + } + } + }, + "private_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "new_state", + "fee" + ] + } + ] + } + } + }, + "fee_pi": { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "new_state" + ] + }, + "proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "pending_pis", + "private_pis", + "fee_pi", + "proof" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_result.zk_rollup_update" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "update", + "metadata" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.dal_publish_commitment": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "slot_header": { + "type": "object", + "properties": { + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "version", + "level", + "index", + "commitment" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "slot_header" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "slot_header": { + "type": "object", + "properties": { + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "version", + "level", + "index", + "commitment" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "slot_header" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.delegation": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.increase_paid_storage": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.origination": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/022-PsRiotum.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/022-PsRiotum.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.register_global_constant": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "global_address": { + "$ref": "#/components/schemas/script_expr" + } + }, + "required": [ + "status", + "global_address" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "global_address": { + "$ref": "#/components/schemas/script_expr" + } + }, + "required": [ + "status", + "global_address" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.reveal": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.set_deposits_limit": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.smart_rollup_add_messages": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.smart_rollup_cement": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "status", + "inbox_level", + "commitment_hash" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "status", + "inbox_level", + "commitment_hash" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.smart_rollup_execute_outbox_message": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "whitelist_update": { + "oneOf": [ + { + "title": "Public", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "public" + ] + } + }, + "required": [ + "kind" + ] + }, + { + "title": "Private", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "update" + ] + }, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + }, + "required": [ + "kind", + "whitelist" + ] + } + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "ticket_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "whitelist_update": { + "oneOf": [ + { + "title": "Public", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "public" + ] + } + }, + "required": [ + "kind" + ] + }, + { + "title": "Private", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "update" + ] + }, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + }, + "required": [ + "kind", + "whitelist" + ] + } + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "ticket_updates" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.smart_rollup_originate": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "address": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "genesis_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "address", + "genesis_commitment_hash", + "size" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "address": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "genesis_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "address", + "genesis_commitment_hash", + "size" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.smart_rollup_publish": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "staked_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "published_at_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "staked_hash", + "published_at_level", + "balance_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "staked_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "published_at_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "staked_hash", + "published_at_level", + "balance_updates" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.smart_rollup_recover_bond": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "balance_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "balance_updates" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.smart_rollup_refute": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "game_status": { + "oneOf": [ + { + "title": "Ongoing", + "type": "string", + "enum": [ + "ongoing" + ] + }, + { + "title": "Ended", + "type": "object", + "properties": { + "result": { + "oneOf": [ + { + "title": "Loser", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "loser" + ] + }, + "reason": { + "oneOf": [ + { + "title": "Conflict_resolved", + "type": "string", + "enum": [ + "conflict_resolved" + ] + }, + { + "title": "Timeout", + "type": "string", + "enum": [ + "timeout" + ] + } + ] + }, + "player": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "reason", + "player" + ] + }, + { + "title": "Draw", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "draw" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + }, + "required": [ + "result" + ] + } + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "game_status", + "balance_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "game_status": { + "oneOf": [ + { + "title": "Ongoing", + "type": "string", + "enum": [ + "ongoing" + ] + }, + { + "title": "Ended", + "type": "object", + "properties": { + "result": { + "oneOf": [ + { + "title": "Loser", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "loser" + ] + }, + "reason": { + "oneOf": [ + { + "title": "Conflict_resolved", + "type": "string", + "enum": [ + "conflict_resolved" + ] + }, + { + "title": "Timeout", + "type": "string", + "enum": [ + "timeout" + ] + } + ] + }, + "player": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "reason", + "player" + ] + }, + { + "title": "Draw", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "draw" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + }, + "required": [ + "result" + ] + } + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "game_status", + "balance_updates" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.smart_rollup_timeout": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "game_status": { + "oneOf": [ + { + "title": "Ongoing", + "type": "string", + "enum": [ + "ongoing" + ] + }, + { + "title": "Ended", + "type": "object", + "properties": { + "result": { + "oneOf": [ + { + "title": "Loser", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "loser" + ] + }, + "reason": { + "oneOf": [ + { + "title": "Conflict_resolved", + "type": "string", + "enum": [ + "conflict_resolved" + ] + }, + { + "title": "Timeout", + "type": "string", + "enum": [ + "timeout" + ] + } + ] + }, + "player": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "reason", + "player" + ] + }, + { + "title": "Draw", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "draw" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + }, + "required": [ + "result" + ] + } + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "game_status", + "balance_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "game_status": { + "oneOf": [ + { + "title": "Ongoing", + "type": "string", + "enum": [ + "ongoing" + ] + }, + { + "title": "Ended", + "type": "object", + "properties": { + "result": { + "oneOf": [ + { + "title": "Loser", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "loser" + ] + }, + "reason": { + "oneOf": [ + { + "title": "Conflict_resolved", + "type": "string", + "enum": [ + "conflict_resolved" + ] + }, + { + "title": "Timeout", + "type": "string", + "enum": [ + "timeout" + ] + } + ] + }, + "player": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "reason", + "player" + ] + }, + { + "title": "Draw", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "draw" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + }, + "required": [ + "result" + ] + } + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "game_status", + "balance_updates" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.transaction": { + "oneOf": [ + { + "title": "Applied", + "oneOf": [ + { + "title": "To_contract", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "storage": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "allocated_destination_contract": { + "type": "boolean" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/022-PsRiotum.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_smart_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + } + }, + "required": [ + "status", + "ticket_updates" + ] + } + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "oneOf": [ + { + "title": "To_contract", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "storage": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "allocated_destination_contract": { + "type": "boolean" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/022-PsRiotum.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_smart_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + } + }, + "required": [ + "status", + "ticket_updates" + ] + } + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.transfer_ticket": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "ticket_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/022-PsRiotum.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "ticket_updates" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.update_consensus_key": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.zk_rollup_origination": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "originated_zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "originated_zk_rollup", + "size" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "originated_zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "originated_zk_rollup", + "size" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.zk_rollup_publish": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "size" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "size" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_result.zk_rollup_update": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/022-PsRiotum.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates" + ] + } + ] + }, + "022-PsRiotum.operation.alpha.operation_with_metadata": { + "oneOf": [ + { + "title": "Operation_with_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.operation_contents_and_result" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + }, + { + "title": "Operation_without_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + } + ] + }, + "022-PsRiotum.operation_metadata.alpha.balance_updates": { + "type": "array", + "items": { + "oneOf": [ + { + "title": "Contract", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "contract" + ] + }, + "contract": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "contract", + "change", + "origin" + ] + }, + { + "title": "Block_fees", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "accumulator" + ] + }, + "category": { + "type": "string", + "enum": [ + "block fees" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Deposits", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "freezer" + ] + }, + "category": { + "type": "string", + "enum": [ + "deposits" + ] + }, + "staker": { + "$ref": "#/components/schemas/022-PsRiotum.frozen_staker" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "staker", + "change", + "origin" + ] + }, + { + "title": "Nonce_revelation_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "nonce revelation rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Attesting_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "attesting rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Baking_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "baking rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Baking_bonuses", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "baking bonuses" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Storage_fees", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "storage fees" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Double_signing_punishments", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "punishments" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Lost_attesting_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "lost attesting rewards" + ] + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "participation": { + "type": "boolean" + }, + "revelation": { + "type": "boolean" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "delegate", + "participation", + "revelation", + "change", + "origin" + ] + }, + { + "title": "Liquidity_baking_subsidies", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "subsidy" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Burned", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "burned" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Commitments", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "commitment" + ] + }, + "category": { + "type": "string", + "enum": [ + "commitment" + ] + }, + "committer": { + "$ref": "#/components/schemas/Blinded public key hash" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "committer", + "change", + "origin" + ] + }, + { + "title": "Bootstrap", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "bootstrap" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Invoice", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "invoice" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Initial_commitments", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "commitment" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Minted", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "minted" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Frozen_bonds", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "freezer" + ] + }, + "category": { + "type": "string", + "enum": [ + "bonds" + ] + }, + "contract": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "bond_id": { + "$ref": "#/components/schemas/022-PsRiotum.bond_id" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "contract", + "bond_id", + "change", + "origin" + ] + }, + { + "title": "Smart_rollup_refutation_punishments", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "smart_rollup_refutation_punishments" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Smart_rollup_refutation_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "smart_rollup_refutation_rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Unstaked_deposits", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "freezer" + ] + }, + "category": { + "type": "string", + "enum": [ + "unstaked_deposits" + ] + }, + "staker": { + "$ref": "#/components/schemas/022-PsRiotum.staker" + }, + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "staker", + "cycle", + "change", + "origin" + ] + }, + { + "title": "Staking_delegator_numerator", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "staking" + ] + }, + "category": { + "type": "string", + "enum": [ + "delegator_numerator" + ] + }, + "delegator": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "delegator", + "change", + "origin" + ] + }, + { + "title": "Staking_delegate_denominator", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "staking" + ] + }, + "category": { + "type": "string", + "enum": [ + "delegate_denominator" + ] + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "delegate", + "change", + "origin" + ] + }, + { + "title": "DAL_attesting_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "DAL attesting rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Lost_DAL_attesting_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "lost DAL attesting rewards" + ] + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "delegate", + "change", + "origin" + ] + } + ] + } + }, + "022-PsRiotum.per_block_votes": { + "type": "object", + "properties": { + "liquidity_baking_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + }, + "adaptive_issuance_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + } + }, + "required": [ + "liquidity_baking_vote", + "adaptive_issuance_vote" + ] + }, + "022-PsRiotum.sapling_state_id": { + "title": "Sapling state identifier", + "description": "A sapling state identifier", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + "022-PsRiotum.scripted.contracts": { + "type": "object", + "properties": { + "code": {}, + "storage": {} + }, + "required": [ + "code", + "storage" + ] + }, + "022-PsRiotum.scripted.trace": { + "type": "array", + "items": { + "type": "object", + "properties": { + "location": { + "$ref": "#/components/schemas/micheline.location" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "stack": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + } + }, + "required": [ + "location", + "gas", + "stack" + ] + } + }, + "022-PsRiotum.staker": { + "title": "unstaked_frozen_staker", + "description": "Abstract notion of staker used in operation receipts for unstaked frozen deposits, either a single staker or all the stakers delegating to some delegate.", + "oneOf": [ + { + "title": "Single", + "type": "object", + "properties": { + "contract": { + "$ref": "#/components/schemas/022-PsRiotum.contract_id" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "contract", + "delegate" + ] + }, + { + "title": "Shared", + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate" + ] + } + ] + }, + "022-PsRiotum.transaction_destination": { + "title": "A destination of a transaction", + "description": "A destination notation compatible with the contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash, a base58 originated contract hash, a base58 originated transaction rollup, or a base58 originated smart rollup.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Blinded public key hash": { + "title": "A blinded public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Chain_id": { + "title": "Network identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Context_hash": { + "title": "A hash of context (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Contract_hash": { + "title": "A contract ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "DAL_commitment": { + "title": "Commitment representation for the DAL (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Ed25519.Public_key_hash": { + "title": "An Ed25519 public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_hash": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_list_list_hash": { + "title": "A list of list of operations (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_metadata_hash": { + "title": "A Tezos operation metadata ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Protocol_hash": { + "title": "A Tezos protocol ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.Public_key": { + "title": "A Ed25519, Secp256k1, or P256 public key (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.Public_key_hash": { + "title": "A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.V0": { + "title": "A Ed25519, Secp256k1 or P256 signature (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.V1": { + "title": "A Ed25519, Secp256k1, P256 or BLS signature (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Zk_rollup_hash": { + "title": "A zk rollup address (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "bignum": { + "title": "Big number", + "description": "Decimal representation of a big number", + "type": "string" + }, + "block_hash": { + "title": "A block identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "block_header.shell": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context" + ] + }, + "block_header_metadata": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "next_protocol": { + "type": "string", + "enum": [ + "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7" + ] + }, + "test_chain_status": { + "$ref": "#/components/schemas/test_chain_status" + }, + "max_operations_ttl": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_operation_data_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_block_header_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_operation_list_length": { + "type": "array", + "items": { + "type": "object", + "properties": { + "max_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_op": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "max_size" + ] + } + } + }, + "required": [ + "protocol", + "next_protocol", + "test_chain_status", + "max_operations_ttl", + "max_operation_data_length", + "max_block_header_length", + "max_operation_list_length" + ], + "additionalProperties": {} + }, + "cycle_nonce": { + "title": "A nonce hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "dal_skip_list_pointer": { + "title": "A hash that represents the skip list pointers (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "error": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + }, + "fitness": { + "title": "Block fitness", + "description": "The fitness, or score, of a block, that allow the Tezos to decide which chain is the best. A fitness value is a list of byte sequences. They are compared as follows: shortest lists are smaller; lists of the same length are compared according to the lexicographical order.", + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "inode_tree": { + "oneOf": [ + { + "title": "Inode_tree", + "type": "object", + "properties": { + "inode_tree": { + "type": "object", + "properties": { + "length": { + "$ref": "#/components/schemas/int64" + }, + "proofs": { + "oneOf": [ + { + "title": "sparse_proof", + "type": "object", + "properties": { + "sparse_proof": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + { + "$ref": "#/components/schemas/inode_tree" + } + ] + } + } + } + }, + "required": [ + "sparse_proof" + ] + }, + { + "title": "dense_proof", + "type": "object", + "properties": { + "dense_proof": { + "type": "array", + "items": { + "$ref": "#/components/schemas/inode_tree" + } + } + }, + "required": [ + "dense_proof" + ] + } + ] + } + }, + "required": [ + "length", + "proofs" + ] + } + }, + "required": [ + "inode_tree" + ] + }, + { + "title": "other_inode_trees", + "type": "object", + "properties": { + "other_inode_trees": { + "oneOf": [ + { + "title": "Inode_values", + "type": "object", + "properties": { + "inode_values": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "$ref": "#/components/schemas/tree_encoding" + } + ] + } + } + } + }, + "required": [ + "inode_values" + ] + }, + { + "title": "other_inode_trees", + "type": "object", + "properties": { + "other_inode_trees": { + "oneOf": [ + { + "title": "Blinded_inode", + "type": "object", + "properties": { + "blinded_inode": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "blinded_inode" + ] + }, + { + "title": "Inode_extender", + "type": "object", + "properties": { + "inode_extender": { + "type": "object", + "properties": { + "length": { + "$ref": "#/components/schemas/int64" + }, + "segment": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "proof": { + "$ref": "#/components/schemas/inode_tree" + } + }, + "required": [ + "length", + "segment", + "proof" + ] + } + }, + "required": [ + "inode_extender" + ] + }, + { + "title": "None", + "type": "object", + "properties": { + "none": {} + }, + "required": [ + "none" + ] + } + ] + } + }, + "required": [ + "other_inode_trees" + ] + } + ] + } + }, + "required": [ + "other_inode_trees" + ] + } + ] + }, + "int64": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + }, + "merkle_tree": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "oneOf": [ + { + "title": "Hash", + "type": "array", + "items": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/components/schemas/unistring" + } + ] + } + }, + { + "title": "Data", + "oneOf": [ + { + "$ref": "#/components/schemas/raw_context" + } + ] + }, + { + "title": "Continue", + "oneOf": [ + { + "$ref": "#/components/schemas/merkle_tree" + } + ] + } + ] + } + ] + } + } + }, + "micheline.022-PsRiotum.michelson_v1.expression": { + "oneOf": [ + { + "title": "Int", + "type": "object", + "properties": { + "int": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "int" + ] + }, + { + "title": "String", + "type": "object", + "properties": { + "string": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "string" + ] + }, + { + "title": "Bytes", + "type": "object", + "properties": { + "bytes": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "bytes" + ] + }, + { + "title": "Sequence", + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + { + "title": "Prim__generic", + "description": "Generic primitive (any number of args with or without annotations)", + "type": "object", + "properties": { + "prim": { + "$ref": "#/components/schemas/022-PsRiotum.michelson.v1.primitives" + }, + "args": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression" + } + }, + "annots": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + }, + "required": [ + "prim" + ] + } + ] + }, + "micheline.location": { + "title": "Canonical location in a Micheline expression", + "description": "The location of a node in a Micheline expression tree in prefix order, with zero being the root and adding one for every basic node, sequence and primitive application.", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "next_operation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/022-PsRiotum.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "protocol", + "branch", + "contents" + ] + }, + "operation": { + "oneOf": [ + { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "metadata": { + "type": "string", + "enum": [ + "too large" + ] + } + }, + "required": [ + "protocol", + "chain_id", + "hash", + "branch", + "metadata" + ], + "additionalProperties": {} + }, + { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + } + }, + "required": [ + "protocol", + "chain_id", + "hash", + "branch" + ], + "additionalProperties": {} + }, + { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + } + }, + "required": [ + "protocol", + "chain_id", + "hash", + "branch" + ], + "additionalProperties": {} + } + ] + }, + "positive_bignum": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + }, + "random": { + "title": "A random generation state (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "raw_block_header": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "content": { + "oneOf": [ + { + "title": "Activate", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters" + ] + }, + { + "title": "Activate_testchain", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate_testchain" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "validity_time": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters", + "validity_time" + ] + } + ] + }, + "signature": { + "$ref": "#/components/schemas/Signature.V0" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "content", + "signature" + ] + }, + "raw_context": { + "nullable": true, + "oneOf": [ + { + "title": "Key", + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "title": "Dir", + "type": "object", + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/raw_context" + } + } + ] + }, + "sapling.DH.epk": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "sapling.transaction.ciphertext": { + "type": "object", + "properties": { + "cv": { + "$ref": "#/components/schemas/sapling.transaction.commitment_value" + }, + "epk": { + "$ref": "#/components/schemas/sapling.DH.epk" + }, + "payload_enc": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "nonce_enc": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "payload_out": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "nonce_out": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "cv", + "epk", + "payload_enc", + "nonce_enc", + "payload_out", + "nonce_out" + ] + }, + "sapling.transaction.commitment": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "sapling.transaction.commitment_hash": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "sapling.transaction.commitment_value": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "sapling.transaction.nullifier": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "script_expr": { + "title": "A script expression ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_address": { + "title": "A smart rollup address (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_commitment_hash": { + "title": "The hash of a commitment of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_inbox_hash": { + "title": "The hash of an inbox of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_merkelized_payload_hashes_hash": { + "title": "The hash of the Merkelized payload hashes of a smart rollup inbox (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_state_hash": { + "title": "The hash of the VM state of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "test_chain_status": { + "description": "The status of the test chain: not_running (there is no test chain at the moment), forking (the test chain is being setup), running (the test chain is running).", + "oneOf": [ + { + "title": "Not_running", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "not_running" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Forking", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "forking" + ] + }, + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "expiration": { + "$ref": "#/components/schemas/timestamp.protocol" + } + }, + "required": [ + "status", + "protocol", + "expiration" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "running" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "genesis": { + "$ref": "#/components/schemas/block_hash" + }, + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "expiration": { + "$ref": "#/components/schemas/timestamp.protocol" + } + }, + "required": [ + "status", + "chain_id", + "genesis", + "protocol", + "expiration" + ] + } + ] + }, + "timestamp.protocol": { + "description": "A timestamp as seen by the protocol: second-level precision, epoch based.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "tree_encoding": { + "oneOf": [ + { + "title": "Inode", + "type": "object", + "properties": { + "inode": { + "type": "object", + "properties": { + "length": { + "$ref": "#/components/schemas/int64" + }, + "proofs": { + "oneOf": [ + { + "title": "sparse_proof", + "type": "object", + "properties": { + "sparse_proof": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + { + "$ref": "#/components/schemas/inode_tree" + } + ] + } + } + } + }, + "required": [ + "sparse_proof" + ] + }, + { + "title": "dense_proof", + "type": "object", + "properties": { + "dense_proof": { + "type": "array", + "items": { + "$ref": "#/components/schemas/inode_tree" + } + } + }, + "required": [ + "dense_proof" + ] + } + ] + } + }, + "required": [ + "length", + "proofs" + ] + } + }, + "required": [ + "inode" + ] + }, + { + "title": "other_trees", + "type": "object", + "properties": { + "other_trees": { + "oneOf": [ + { + "title": "Node", + "type": "object", + "properties": { + "node": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "$ref": "#/components/schemas/tree_encoding" + } + ] + } + } + } + }, + "required": [ + "node" + ] + }, + { + "title": "other_trees", + "type": "object", + "properties": { + "other_trees": { + "oneOf": [ + { + "title": "Value", + "type": "object", + "properties": { + "value": { + "oneOf": [ + { + "title": "short_bytes", + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "title": "medium_bytes", + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "title": "long_bytes", + "description": "This case is void. No data is accepted." + }, + { + "title": "unlimited_bytes", + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + ] + } + }, + "required": [ + "value" + ] + }, + { + "title": "Blinded_value", + "type": "object", + "properties": { + "blinded_value": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "blinded_value" + ] + }, + { + "title": "Blinded_node", + "type": "object", + "properties": { + "blinded_node": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "blinded_node" + ] + }, + { + "title": "Extender", + "type": "object", + "properties": { + "extender": { + "type": "object", + "properties": { + "length": { + "$ref": "#/components/schemas/int64" + }, + "segment": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "proof": { + "$ref": "#/components/schemas/inode_tree" + } + }, + "required": [ + "length", + "segment", + "proof" + ] + } + }, + "required": [ + "extender" + ] + }, + { + "title": "None", + "type": "object", + "properties": { + "none": {} + }, + "required": [ + "none" + ] + } + ] + } + }, + "required": [ + "other_trees" + ] + } + ] + } + }, + "required": [ + "other_trees" + ] + } + ] + }, + "unistring": { + "title": "Universal string representation", + "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "invalid_utf8_string": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + }, + "required": [ + "invalid_utf8_string" + ] + } + ] + }, + "value_hash": { + "title": "Hash of a consensus value (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } +} diff --git a/docs/api/rio-smart-rollup-node-openapi.json b/docs/api/rio-smart-rollup-node-openapi.json new file mode 100644 index 000000000000..597759e90212 --- /dev/null +++ b/docs/api/rio-smart-rollup-node-openapi.json @@ -0,0 +1 @@ +{"openapi":"3.0.0","info":{"title":"Smart Rollup Node RPCs","description":"Smart Rollup Node RPC API for protocol PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7","version":"Octez 22.0~rc1 (TBD)"},"paths":{"/admin/batcher/queue":{"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"order_below","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_no_order","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/cancel_gc":{"get":{"description":"Cancel any ongoing GC","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"boolean"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues":{"get":{"description":"Get operation queues of injectors","parameters":[{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue":{"type":"array","items":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","slot_index","commitment","commitment_proof"]}]}}},"required":["tags","queue"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}},"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"order_below","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}},{"name":"drop_no_order","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues/total":{"get":{"description":"Get total operations queued in injectors","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"injectors":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["tags","queue_size"]}},"total":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["injectors","total"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/config":{"get":{"description":"Returns the rollup node configuration","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"smart-rollup-address":{"description":"Smart rollup address","oneOf":[{"$ref":"#/components/schemas/smart_rollup_address"}]},"boot-sector":{"description":"Boot sector","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart-rollup-node-operator":{"description":"Operators that sign operations of the smart rollup, by purpose","type":"object","properties":{"operating":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"batching":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"cementing":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"recovering":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"executing_outbox":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}}},"rpc-addr":{"description":"RPC address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"rpc-port":{"description":"RPC port","type":"integer","minimum":0,"maximum":65535},"acl":{"description":"Access control list","type":"array","items":{"oneOf":[{"title":"Whitelist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","whitelist"]},{"title":"Blacklist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","blacklist"]}]}},"metrics-addr":{"description":"Metrics address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"performance-metrics":{"type":"boolean"},"reconnection_delay":{"description":"The reconnection (to the tezos node) delay in seconds","type":"number"},"fee-parameters":{"description":"The fee parameters for each purpose used when injecting operations in L1","type":"object","properties":{"publish":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"add_messages":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"cement":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"timeout":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"refute":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"recover":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"execute_outbox_message":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"publish_dal_commitment":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}}}},"mode":{"description":"The mode for this rollup node","oneOf":[{"$ref":"#/components/schemas/sc_rollup_node_mode"}]},"loser-mode":{"description":"If enabled, the rollup node will issue wrong commitments (for test only!)","type":"array","items":{"type":"object","properties":{"level":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_tick":{"$ref":"#/components/schemas/int64"}},"required":["level","message_index","message_tick"]}},"unsafe-pvm-patches":{"description":"Unsafe patches to apply to the PVM. For tests only, don't set this value in production.","type":"array","items":{"oneOf":[{"title":"increase_max_nb_tick","type":"object","properties":{"increase_max_nb_tick":{"$ref":"#/components/schemas/int64"}},"required":["increase_max_nb_tick"]},{"title":"patch_durable_storage","type":"object","properties":{"patch_durable_storage":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}},"required":["patch_durable_storage"]}]}},"execute-outbox-messages-filter":{"description":"A filter to select which outbox messages the rollup will execute automatically (must be in maintenance or operator mode).","type":"array","items":{"type":"object","properties":{"transaction":{"type":"object","properties":{"destination":{"oneOf":[{"title":"any_destination","description":"Accept any destination.","type":"string","enum":["any"]},{"title":"destination_among","description":"Accept destination that matches the given list (in base58-check).","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]},"entrypoint":{"oneOf":[{"title":"any_entrypoint","description":"Accept any entrypoint.","type":"string","enum":["any"]},{"title":"entrypoint_among","description":"Accept entrypoint of the given list.","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]}},"required":["destination","entrypoint"]}},"required":["transaction"]}},"DAL node endpoint":{"$ref":"#/components/schemas/unistring"},"pre-images-endpoint":{"$ref":"#/components/schemas/unistring"},"batcher":{"type":"object","properties":{"min_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"min_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"injector":{"type":"object","properties":{"retention_period":{"type":"integer","minimum":0,"maximum":65535},"attempts":{"type":"integer","minimum":0,"maximum":65535},"injection_ttl":{"type":"integer","minimum":0,"maximum":65535}}},"l1_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l2_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"prefetch_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l1_rpc_timeout":{"type":"number"},"loop_retry_delay":{"type":"number"},"index_buffer_size":{"description":"Deprecated","type":"integer","minimum":-1073741824,"maximum":1073741823},"irmin_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"log-kernel-debug":{"type":"boolean"},"unsafe-disable-wasm-kernel-checks":{"type":"boolean"},"no-degraded":{"type":"boolean"},"gc-parameters":{"type":"object","properties":{"frequency":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"context_splitting_period":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"history-mode":{"type":"string","enum":["full","archive"]},"cors":{"type":"object","properties":{"allowed_headers":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}},"allowed_origins":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["allowed_headers","allowed_origins"]},"bail-on-disagree":{"type":"boolean"}},"required":["smart-rollup-address","smart-rollup-node-operator","rpc-addr","rpc-port","acl","performance-metrics","reconnection_delay","fee-parameters","mode","loser-mode","unsafe-pvm-patches","execute-outbox-messages-filter","batcher","injector","l1_blocks_cache_size","l2_blocks_cache_size","l1_rpc_timeout","loop_retry_delay","log-kernel-debug","unsafe-disable-wasm-kernel-checks","no-degraded","gc-parameters","cors","bail-on-disagree"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/describe":{"get":{"description":"RPCs documentation and input/output schema","parameters":[{"name":"recurse","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service_tree"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}":{"get":{"description":"Layer-2 block of the layer-2 chain with respect to a Layer 1 block identifier","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"inbox":{"description":"Inbox for this block.","type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]},"messages":{"description":"Messages added to the inbox in this block.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"commitment":{"description":"Commitment, if any is computed for this block.","type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"outbox":{"description":"Outbox messages produced by PVM execution of inbox","type":"array","items":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["message_index","whitelist_update"]},{"title":"transactions","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["message_index","transactions"]}]}},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","inbox","messages","initial_tick","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/committed_status":{"get":{"description":"Commitment status of the rollup state which will include content of this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"uncommitted","description":"L2 Block content is not yet committed on L1","type":"object","properties":{"uncommitted":{"type":"object","properties":{"commitment_level":{"description":"Level at which the following commitment will be produced.","type":"integer","minimum":-2147483648,"maximum":2147483647},"estimated_commitment_time":{"description":"Estimated time at which the commitment will be published.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_level","estimated_commitment_time","estimated_cementation_time"]}},"required":["uncommitted"]},{"title":"committed","description":"L2 Block content is already committed on L1 but not yet cemented","type":"object","properties":{"committed":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_hash","commitment_level","first_published_level","published_level","estimated_cementation_time"]}},"required":["committed"]},{"title":"cemented","description":"L2 Block content is already cemented","type":"object","properties":{"cemented":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"blocks_since_cemented":{"description":"Number of blocks since commitment was cemented.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment_hash","commitment_level","first_published_level","published_level","blocks_since_cemented"]}},"required":["cemented"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/processed_slots":{"get":{"description":"Data availability processed slots and their statuses","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"status":{"type":"string","enum":["unconfirmed","confirmed"]}},"required":["index","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/slot_headers":{"get":{"description":"Availability slots for a given block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","enum":["0"]},"level":{"type":"integer","minimum":0,"maximum":2147483647},"index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"}},"required":["version","level","index","commitment"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/length":{"get":{"description":"Retrieve number of bytes in raw representation of value by key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/int64"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/subkeys":{"get":{"description":"Retrieve subkeys of the specified key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/value":{"get":{"description":"Retrieve value by key from PVM durable storage. PVM state is taken with respect to the specified block level. Value returned in hex format.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/values":{"get":{"description":"Retrieve values directly under a given key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/hash":{"get":{"description":"Tezos block hash of block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/helpers/proofs/outbox/{level}/messages":{"get":{"description":"Generate serialized output proof for some outbox message at level and index","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}},{"name":"index","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["commitment","proof"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/inbox":{"get":{"description":"Rollup inbox for block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/level":{"get":{"description":"Level of Tezos block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"integer","minimum":-2147483648,"maximum":2147483647}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/num_messages":{"get":{"description":"Number of messages for specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox_level","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox/{level}/messages":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/simulate":{"post":{"description":"Simulate messages evaluation by the PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"description":"Serialized messages for simulation.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"reveal_pages":{"description":"Pages (at most 4kB) to be used for revelation ticks","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"insight_requests":{"description":"Paths in the PVM to inspect after the simulation","type":"array","items":{"oneOf":[{"title":"pvm_state","description":"Path in the PVM state","type":"object","properties":{"kind":{"type":"string","enum":["pvm_state"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]},{"title":"durable_storage","description":"Path in the PVM durable storage","type":"object","properties":{"kind":{"type":"string","enum":["durable_storage"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]}]}},"log_kernel_debug_file":{"description":"File in which to emit kernel logs. This file will be created in /simulation_kernel_logs/, where is the data directory of the rollup node.","oneOf":[{"$ref":"#/components/schemas/unistring"}]}},"required":["messages"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"state_hash":{"description":"Hash of the state after execution of the PVM on the input messages","oneOf":[{"$ref":"#/components/schemas/smart_rollup_state_hash"}]},"status":{"description":"Status of the PVM after evaluation","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"output":{"description":"Output produced by evaluation of the messages","type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}},"inbox_level":{"description":"Level of the inbox that would contain these messages","type":"integer","minimum":-2147483648,"maximum":2147483647},"num_ticks":{"description":"Ticks taken by the PVM for evaluating the messages","oneOf":[{"$ref":"#/components/schemas/bignum"}]},"insights":{"description":"PVM state values requested after the simulation","type":"array","items":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}},"required":["state_hash","status","output","inbox_level","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state":{"get":{"description":"Retrieve value from key is PVM state of specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_current_level":{"get":{"description":"Retrieve the current level of a PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":0,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_hash":{"get":{"description":"State hash for this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/status":{"get":{"description":"PVM status at block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/ticks":{"get":{"description":"Number of ticks for specified level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/total_ticks":{"get":{"description":"Total number of ticks at specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/last_stored_commitment":{"get":{"description":"Last commitment computed by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/monitor_blocks":{"get":{"description":"Monitor and streaming the L2 blocks","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","initial_tick","num_ticks"],"additionalProperties":{}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/smart_rollup_address":{"get":{"description":"Smart rollup address","responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_head":{"get":{"description":"Tezos head known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/block_hash"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_level":{"get":{"description":"Tezos level known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/health":{"get":{"description":"Returns health status information for the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"healthy":{"type":"boolean"},"degraded":{"type":"boolean"},"l1":{"type":"object","properties":{"connection":{"type":"string","enum":["connected","reconnecting","disconnected"]},"blocks_late":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"last_seen_head":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"timestamp":{"$ref":"#/components/schemas/timestamp.protocol"}},"required":["hash","level","timestamp"]}},"required":["connection","blocks_late"]},"active_workers":{"type":"array","items":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/unistring"},{"oneOf":[{"title":"running","type":"string","enum":["running"]},{"title":"crashed","type":"object","properties":{"crashed":{"$ref":"#/components/schemas/exception"}},"required":["crashed"]}]}]}}}},"required":["healthy","degraded","l1","active_workers"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/injection":{"post":{"description":"Inject messages in the batcher's queue","parameters":[{"name":"order","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_duplicate","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/sc_l2_message"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"description":"Ids of injected L2 messages","type":"array","items":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue":{"get":{"description":"List messages present in the batcher's queue","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/positive_bignum"},"id":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"},"message":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/sc_l2_message"},"counter":{"$ref":"#/components/schemas/positive_bignum"}},"required":["content","counter"]}},"required":["id","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue/{l2_message_id}":{"get":{"description":"Retrieve an L2 message and its status","parameters":[{"name":"l2_message_id","in":"path","description":"A L2 message id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/commitments/{commitment_hash}":{"get":{"description":"Commitment computed and published by the node","parameters":[{"name":"commitment_hash","in":"path","description":"A commitment hash.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/batcher/injection":{"post":{"description":"Inject the given messages in the DAL queue, even in case of duplicates","requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injected/operations/statuses":{"get":{"description":"Retrieve the statuses of all known operations injected via DAL.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/injector_operation_hash"},"status":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}},"required":["id","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injection/{injector_operation_hash}/forget":{"post":{"description":"Forget information about the injection whose id is given","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/slot/indices":{"post":{"description":"Provide the (new) list of slot indices to use to the rollup node's DAL injector","requestBody":{"content":{"application/json":{"schema":{"description":"Slot indices to set","type":"object","properties":{"indices":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["indices"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/gc_info":{"get":{"description":"Information about garbage collection","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"first_available_level":{"description":"First level where data is guaranteed to be available in the rollup node.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_gc_level":{"description":"The level at which the last GC was triggered.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_context_split_level":{"description":"The level at which the context was split for the last time. Commits before this level are in other chunks.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_successful_gc_target":{"description":"The level which was the target of the last successful GC.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["first_available_level"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/injector/operation/{injector_operation_hash}/status":{"get":{"description":"Retrieve the status of the injected operation using its injector ID.","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/last_published_commitment":{"get":{"description":"Last commitment published by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/executable":{"get":{"description":"Pending outbox messages which can be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/unexecutable":{"get":{"description":"Pending outbox messages which cannot yet be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/synchronized":{"get":{"description":"Wait for the node to have synchronized its L2 chain with the L1 chain, streaming its progress.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"synchronized","type":"string","enum":["synchronized"]},{"title":"synchronizing","type":"object","properties":{"synchronizing":{"type":"object","properties":{"processed_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"l1_head_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"percentage_done":{"type":"number"}},"required":["processed_level","l1_head_level","percentage_done"]}},"required":["synchronizing"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/openapi":{"get":{"description":"OpenAPI specification of RPCs for rollup node","parameters":[{"name":"protocol","in":"query","description":"Protocol_hash (Base58Check-encoded)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/ping":{"get":{"description":"Returns an empty response if the rollup node can answer requests","responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/memory":{"get":{"description":"Gets memory usage stats","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"Linux_proc_statm","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"$ref":"#/components/schemas/int64"},"resident":{"$ref":"#/components/schemas/int64"},"shared":{"$ref":"#/components/schemas/int64"},"text":{"$ref":"#/components/schemas/int64"},"lib":{"$ref":"#/components/schemas/int64"},"data":{"$ref":"#/components/schemas/int64"},"dt":{"$ref":"#/components/schemas/int64"}},"required":["page_size","size","resident","shared","text","lib","data","dt"]},{"title":"Darwin_ps","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"mem":{"type":"number"},"resident":{"$ref":"#/components/schemas/int64"}},"required":["page_size","mem","resident"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/ocaml_gc":{"get":{"description":"Gets stats from the OCaml Garbage Collector","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"minor_words":{"type":"number"},"promoted_words":{"type":"number"},"major_words":{"type":"number"},"minor_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"forced_major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_chunks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"largest_free":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fragments":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"compactions":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"top_heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"stack_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["minor_words","promoted_words","major_words","minor_collections","major_collections","forced_major_collections","heap_words","heap_chunks","live_words","live_blocks","free_words","free_blocks","largest_free","fragments","compactions","top_heap_words","stack_size"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/version":{"get":{"description":"Returns the version information of the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/unistring"},"store_version":{"$ref":"#/components/schemas/unistring"},"context_version":{"$ref":"#/components/schemas/unistring"}},"required":["version","store_version","context_version"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}}},"components":{"schemas":{"022-PsRiotum.contract_id.originated":{"title":"A contract handle -- originated account","description":"A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"022-PsRiotum.michelson.v1.primitives":{"type":"string","enum":["SHA256","GT","RIGHT","SAPLING_EMPTY_STATE","False","RENAME","CAST","tx_rollup_l2_address","PACK","BYTES","timestamp","bls12_381_g2","Pair","IF_LEFT","contract","mutez","storage","PAIR","view","UNPACK","ADD","DROP","big_map","MUL","NAT","SELF","CONTRACT","CDR","SAPLING_VERIFY_UPDATE","pair","LSL","int","operation","SHA512","CREATE_ACCOUNT","BLAKE2B","SPLIT_TICKET","LEFT","never","unit","address","signature","CHAIN_ID","constant","SLICE","SENDER","IMPLICIT_ACCOUNT","key_hash","AMOUNT","CHECK_SIGNATURE","sapling_state","LT","EXEC","Elt","EMIT","NONE","CREATE_CONTRACT","LSR","SET_DELEGATE","OPEN_CHEST","TRANSFER_TOKENS","Some","parameter","set","bls12_381_fr","EDIV","None","STEPS_TO_QUOTA","key","ABS","list","NEVER","map","CAR","IF","GET_AND_UPDATE","CONCAT","LOOP","DIG","KECCAK","Lambda_rec","SOME","option","SUB","INT","PUSH","CONS","Unit","ISNAT","NEG","XOR","APPLY","UNPAIR","JOIN_TICKETS","SIZE","lambda","AND","NEQ","or","BALANCE","UNIT","VOTING_POWER","OR","LAMBDA","chest","LOOP_LEFT","True","Right","Ticket","HASH_KEY","DUG","sapling_transaction","SUB_MUTEZ","EMPTY_BIG_MAP","MEM","IF_NONE","nat","TOTAL_VOTING_POWER","LE","Left","chest_key","READ_TICKET","ticket","bls12_381_g1","LEVEL","VIEW","string","PAIRING_CHECK","LAMBDA_REC","NOW","SHA3","bool","MIN_BLOCK_TIME","GET","bytes","sapling_transaction_deprecated","NIL","IF_CONS","GE","NOT","SWAP","ITER","ADDRESS","TICKET","DUP","EMPTY_MAP","UPDATE","chain_id","TICKET_DEPRECATED","EMPTY_SET","FAILWITH","MAP","SOURCE","DIP","COMPARE","EQ","SELF_ADDRESS","code"]},"DAL_commitment":{"title":"Commitment representation for the DAL (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Operation_hash":{"title":"A Tezos operation ID (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Signature.Public_key_hash":{"title":"A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Smart_rollup_context_hash":{"title":"A base58-check encoded hash of a Smart rollup node context (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"bignum":{"title":"Big number","description":"Decimal representation of a big number","type":"string"},"block_hash":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"error":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"},"exception":{"description":"Exception","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"injector_operation_hash":{"title":"An identifier (hash) for an operation in the injector (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"int64":{"title":"64 bit integers","description":"Decimal representation of 64 bit integers","type":"string"},"layout":{"oneOf":[{"title":"Zero_width","type":"object","properties":{"kind":{"type":"string","enum":["Zero_width"]}},"required":["kind"]},{"title":"Int","type":"object","properties":{"size":{"type":"string","enum":["Int32","Int16","Uint16","Int64","Int8","Uint8"]},"endianness":{"type":"string","enum":["Little","Big"]},"kind":{"type":"string","enum":["Int"]}},"required":["size","kind"]},{"title":"Bool","type":"object","properties":{"kind":{"type":"string","enum":["Bool"]}},"required":["kind"]},{"title":"RangedInt","type":"object","properties":{"min":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"endianness":{"type":"string","enum":["Little","Big"]},"max":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["RangedInt"]}},"required":["min","max","kind"]},{"title":"RangedFloat","type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"kind":{"type":"string","enum":["RangedFloat"]}},"required":["min","max","kind"]},{"title":"Float","type":"object","properties":{"kind":{"type":"string","enum":["Float"]}},"required":["kind"]},{"title":"Bytes","type":"object","properties":{"kind":{"type":"string","enum":["Bytes"]}},"required":["kind"]},{"title":"String","type":"object","properties":{"kind":{"type":"string","enum":["String"]}},"required":["kind"]},{"title":"Enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"reference":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Enum"]}},"required":["size","reference","kind"]},{"title":"Seq","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["Seq"]},"length_limit":{"oneOf":[{"title":"No_limit","type":"object","properties":{"kind":{"type":"string","enum":["no-limit"]}},"required":["kind"]},{"title":"At_most","type":"object","properties":{"kind":{"type":"string","enum":["at-most"]},"at_most":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","at_most"]},{"title":"Exactly","type":"object","properties":{"kind":{"type":"string","enum":["exactly"]},"exactly":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","exactly"]}]}},"required":["layout","kind"]},{"title":"Ref","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Ref"]}},"required":["name","kind"]},{"title":"Padding","type":"object","properties":{"kind":{"type":"string","enum":["Padding"]}},"required":["kind"]}]},"micheline.022-PsRiotum.michelson_v1.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/022-PsRiotum.michelson.v1.primitives"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters_type.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"mutez":{"title":"A millionth of a tez","description":"One million mutez make a tez (1 tez = 1e6 mutez)","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"nanotez":{"title":"A thousandth of a mutez","description":"One thousand nanotez make a mutez (1 tez = 1e9 nanotez)","type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/bignum"}]}},"positive_bignum":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"},"sc_l2_message":{"description":"A hex encoded smart rollup message","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"sc_rollup_l2_message_id":{"title":"A smart rollup layer 2 message identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"sc_rollup_node_l1_operation":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","slot_index","commitment","commitment_proof"]}]},"sc_rollup_node_mode":{"oneOf":[{"title":"custom","type":"object","properties":{"custom":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}}},"required":["custom"]},{"title":"observer","type":"string","enum":["observer"]},{"title":"accuser","type":"string","enum":["accuser"]},{"title":"bailout","type":"string","enum":["bailout"]},{"title":"batcher","type":"string","enum":["batcher"]},{"title":"maintenance","type":"string","enum":["maintenance"]},{"title":"operator","type":"string","enum":["operator"]}]},"schema.field":{"oneOf":[{"title":"Named_field","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"layout":{"$ref":"#/components/schemas/layout"},"data_kind":{"$ref":"#/components/schemas/schema.kind"},"kind":{"type":"string","enum":["named"]}},"required":["name","layout","data_kind","kind"]},{"title":"Anonymous_field","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["anon"]},"data_kind":{"$ref":"#/components/schemas/schema.kind"}},"required":["layout","kind","data_kind"]},{"title":"Dynamic_field","type":"object","properties":{"kind":{"type":"string","enum":["dyn"]},"name":{"$ref":"#/components/schemas/unistring"},"num_fields":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"type":"string","enum":["N","Uint30","Uint16","Uint8"]}},"required":["kind","num_fields","size"]},{"title":"Optional_field","type":"object","properties":{"kind":{"type":"string","enum":["option_indicator"]},"name":{"$ref":"#/components/schemas/unistring"}},"required":["kind","name"]}]},"schema.kind":{"oneOf":[{"title":"Fixed","type":"object","properties":{"size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["Fixed"]}},"required":["size","kind"]},{"title":"Dynamic","type":"object","properties":{"kind":{"type":"string","enum":["Dynamic"]}},"required":["kind"]},{"title":"Variable","type":"object","properties":{"kind":{"type":"string","enum":["Variable"]}},"required":["kind"]}]},"service_tree":{"oneOf":[{"title":"Static","type":"object","properties":{"static":{"type":"object","properties":{"get_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"post_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"delete_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"put_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"patch_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"subdirs":{"oneOf":[{"title":"Suffixes","type":"object","properties":{"suffixes":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["name","tree"]}}},"required":["suffixes"]},{"title":"Arg","type":"object","properties":{"dynamic_dispatch":{"type":"object","properties":{"arg":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["arg","tree"]}},"required":["dynamic_dispatch"]}]}}}},"required":["static"]},{"title":"Dynamic","type":"object","properties":{"dynamic":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/unistring"}]}]}},"required":["dynamic"]},{"title":"Empty","type":"string","enum":["empty"]}]},"smart_rollup_address":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_commitment_hash":{"title":"The hash of a commitment of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_inbox_hash":{"title":"The hash of an inbox of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_merkelized_payload_hashes_hash":{"title":"The hash of the Merkelized payload hashes of a smart rollup inbox (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_state_hash":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.protocol":{"description":"A timestamp as seen by the protocol: second-level precision, epoch based.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.rfc":{"title":"RFC 3339 formatted timestamp","description":"A date in RFC 3339 notation.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.system":{"description":"A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.","oneOf":[{"title":"RFC encoding","oneOf":[{"$ref":"#/components/schemas/timestamp.rfc"}]},{"title":"Second since epoch","oneOf":[{"$ref":"#/components/schemas/int64"}]}]},"union case":{"type":"object","properties":{"tag":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}},"name":{"$ref":"#/components/schemas/unistring"}},"required":["tag","fields"]},"unistring":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}} -- GitLab From f5683b42f5b8906ab24533ae8cdebd92d50304d8 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Thu, 20 Feb 2025 11:54:52 +0100 Subject: [PATCH 4/6] Docs, Openapi: Specifications for v22.0~rc1 --- docs/api/dal-node-openapi-rc.json | 3105 ++ docs/api/dal-node-openapi.json | 261 +- docs/api/openapi.rst | 5 + docs/api/quebec-mempool-openapi-rc.json | 3396 +++ docs/api/quebec-mempool-openapi.json | 2 +- docs/api/quebec-openapi-rc.json | 24488 ++++++++++++++++ docs/api/quebec-openapi.json | 2 +- .../quebec-smart-rollup-node-openapi-rc.json | 1 + .../api/quebec-smart-rollup-node-openapi.json | 2 +- docs/api/rio-mempool-openapi.json | 2 +- docs/api/rio-openapi.json | 2 +- docs/api/rio-smart-rollup-node-openapi.json | 2 +- docs/api/rpc-openapi-rc.json | 12086 ++++++++ docs/api/rpc-openapi.json | 1665 +- 14 files changed, 44904 insertions(+), 115 deletions(-) create mode 100644 docs/api/dal-node-openapi-rc.json create mode 100644 docs/api/quebec-mempool-openapi-rc.json create mode 100644 docs/api/quebec-openapi-rc.json create mode 100644 docs/api/quebec-smart-rollup-node-openapi-rc.json create mode 100644 docs/api/rpc-openapi-rc.json diff --git a/docs/api/dal-node-openapi-rc.json b/docs/api/dal-node-openapi-rc.json new file mode 100644 index 000000000000..cc5519f52546 --- /dev/null +++ b/docs/api/dal-node-openapi-rc.json @@ -0,0 +1,3105 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez DAL Node RPC", + "description": "The RPC API for the Octez DAL node.", + "version": "Octez 22.0~rc1 (f1704a05)" + }, + "paths": { + "/health": { + "get": { + "description": "Performs health checks on the DAL node, evaluating key components of the DAL node. Returns a health status indicating whether the DAL node is 'Up', 'Down', or 'Degraded' based on the results of these checks.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "degraded", + "up", + "ko", + "no", + "ok", + "down" + ] + }, + "checks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "$ref": "#/components/schemas/unistring" + }, + "status": { + "type": "string", + "enum": [ + "degraded", + "up", + "ko", + "no", + "ok", + "down" + ] + } + }, + "required": [ + "name", + "status" + ] + } + } + }, + "required": [ + "status", + "checks" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/last_processed_level": { + "get": { + "description": "Returns the last (finalized) L1 level which was processed by the DAL node.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/levels/{int32}/slots/{int}/commitment": { + "get": { + "description": "Return the accepted commitment associated to the given slot index and published at the given level.", + "parameters": [ + { + "name": "int32", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "int", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Commitment representation for the DAL (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/levels/{int32}/slots/{int}/content": { + "get": { + "description": "Retrieve the content of the slot whose id is given.", + "parameters": [ + { + "name": "int32", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "int", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/levels/{int32}/slots/{int}/pages": { + "get": { + "description": "Fetch slot as list of pages", + "parameters": [ + { + "name": "int32", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "int", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/levels/{int32}/slots/{int}/pages/{int}/proof": { + "get": { + "description": "Compute the proof associated with a page of a given slot.", + "parameters": [ + { + "name": "int32", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "int", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Commitment representation for the DAL (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/levels/{int32}/slots/{int}/shards/{int}/content": { + "get": { + "description": "Fetch shard as bytes", + "parameters": [ + { + "name": "int32", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "int", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/levels/{int32}/slots/{int}/status": { + "get": { + "description": "Return the status for the given slot.", + "parameters": [ + { + "name": "int32", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "int", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "waiting_attestation", + "type": "string", + "enum": [ + "waiting_attestation" + ] + }, + { + "title": "attested", + "type": "string", + "enum": [ + "attested" + ] + }, + { + "title": "unattested", + "type": "string", + "enum": [ + "unattested" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/connect": { + "post": { + "description": "Connect to a new peer.", + "parameters": [ + { + "name": "timeout", + "in": "query", + "description": "A span of time in seconds", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "description": "Identifier for a peer point", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/backoffs": { + "get": { + "description": "Get the backoffs of the peers with a backoff, per topic.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "topic": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "slot_index", + "pkh" + ] + }, + "backoffs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "maybe_reachable_point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "peer_id", + "maybe_reachable_point" + ] + }, + "backoff": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "peer", + "backoff" + ] + } + } + }, + "required": [ + "topic", + "backoffs" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/connections": { + "get": { + "description": "Get this node's currently active connections.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "maybe_reachable_point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "peer_id", + "maybe_reachable_point" + ] + }, + "connection": { + "type": "object", + "properties": { + "topics": { + "type": "array", + "items": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "slot_index", + "pkh" + ] + } + }, + "direct": { + "type": "boolean" + }, + "outbound": { + "type": "boolean" + }, + "bootstrap": { + "type": "boolean" + } + }, + "required": [ + "topics", + "direct", + "outbound", + "bootstrap" + ] + } + }, + "required": [ + "peer", + "connection" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/fanout": { + "get": { + "description": "Returns the fanout peers per topic alongside the last publication time on the topic.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "topic": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "slot_index", + "pkh" + ] + }, + "peers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "maybe_reachable_point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "peer_id", + "maybe_reachable_point" + ] + } + }, + "last_publication_time": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "topic", + "peers", + "last_publication_time" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/mesh": { + "get": { + "description": "Get the mesh of the peer. Concretely, the RPC returns a list of topics, where each topic is associated to the remote peers with which the current node shares a full connection (on that topic).", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "topic": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "slot_index", + "pkh" + ] + }, + "peers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "maybe_reachable_point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "peer_id", + "maybe_reachable_point" + ] + } + } + }, + "required": [ + "topic", + "peers" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/message_cache": { + "get": { + "description": "Get the number of message ids in the message cache, grouped by heartbeat tick and topic.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "tick": { + "$ref": "#/components/schemas/int64" + }, + "per_topic_cache_size": { + "type": "array", + "items": { + "type": "object", + "properties": { + "topic": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "slot_index", + "pkh" + ] + }, + "num_ids": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "topic", + "num_ids" + ] + } + } + }, + "required": [ + "tick", + "per_topic_cache_size" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/pkhs/peers": { + "get": { + "description": "When the 'all' flag is given, get an association list between each topic subscribed to by the connected peers and the remote peers subscribed to that topic. If the 'all' flag is not given, then restrict the output to the topics this peer is subscribed to.", + "parameters": [ + { + "name": "all", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "peers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "maybe_reachable_point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "peer_id", + "maybe_reachable_point" + ] + } + } + }, + "required": [ + "pkh", + "peers" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/reconnection_delays": { + "get": { + "description": "For each unreachable point, retrieve the time remaining until the next reconnection attempt.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "point": { + "$ref": "#/components/schemas/p2p_point.id" + }, + "delay": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "point", + "delay" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/scores": { + "get": { + "description": "Get the scores of the peers with a known score.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "maybe_reachable_point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "peer_id", + "maybe_reachable_point" + ] + }, + "score": { + "type": "number" + } + }, + "required": [ + "peer", + "score" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/slot_indexes/peers": { + "get": { + "description": "When the 'all' flag is given, get an association list between each public key hash part of a topic subscribed to by the connected peers and the remote peers subscribed to such topics. If the 'all' flag is not given, then restrict the output to the topics this peer is subscribed to.", + "parameters": [ + { + "name": "all", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "peers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "maybe_reachable_point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "peer_id", + "maybe_reachable_point" + ] + } + } + }, + "required": [ + "slot_index", + "peers" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/topics": { + "get": { + "description": "Get the topics this node is currently subscribed to.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "slot_index", + "pkh" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/gossipsub/topics/peers": { + "get": { + "description": "When the 'all' flag is given, get an association list between each topic subscribed to by the connected peers and the remote peers subscribed to that topic. If the 'all' flag is not given, then restrict the output to the topics this peer is subscribed to.", + "parameters": [ + { + "name": "all", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "topic": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "slot_index", + "pkh" + ] + }, + "peers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "maybe_reachable_point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "peer_id", + "maybe_reachable_point" + ] + } + } + }, + "required": [ + "topic", + "peers" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/peers": { + "get": { + "description": "By default, get the list of known peers. When the 'connected' flag is given, then only get the connected peers.", + "parameters": [ + { + "name": "connected", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "peer" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/peers/by-id/{peer_id}": { + "get": { + "description": "Get info of the requested peer", + "parameters": [ + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "info": { + "type": "object", + "properties": { + "score": { + "type": "number" + }, + "trusted": { + "type": "boolean" + }, + "conn_metadata": { + "type": "object", + "properties": { + "advertised_net_addr": { + "$ref": "#/components/schemas/p2p_address" + }, + "advertised_net_port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "is_bootstrap_peer": { + "type": "boolean" + } + }, + "required": [ + "is_bootstrap_peer" + ] + }, + "peer_metadata": {}, + "state": { + "$ref": "#/components/schemas/p2p_peer.state" + }, + "reachable_at": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "stat": { + "$ref": "#/components/schemas/p2p_stat" + }, + "last_failed_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + } + }, + "required": [ + "score", + "trusted", + "peer_metadata", + "state", + "stat" + ] + } + }, + "required": [ + "info" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + }, + "patch": { + "description": "Change the permissions of a given peer. With `{acl: ban}`: blacklist the given peer and remove it from the whitelist if present. With `{acl: open}`: removes the peer from the blacklist and whitelist. With `{acl: trust}`: trust the given peer permanently and remove it from the blacklist if present. The peer cannot be blocked (but its host IP still can). In all cases, the updated information for the peer is returned. If input is omitted, this is equivalent to using the `GET` version of this RPC.", + "parameters": [ + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "acl": { + "type": "string", + "enum": [ + "open", + "trust", + "ban" + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "info": { + "type": "object", + "properties": { + "score": { + "type": "number" + }, + "trusted": { + "type": "boolean" + }, + "conn_metadata": { + "type": "object", + "properties": { + "advertised_net_addr": { + "$ref": "#/components/schemas/p2p_address" + }, + "advertised_net_port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "is_bootstrap_peer": { + "type": "boolean" + } + }, + "required": [ + "is_bootstrap_peer" + ] + }, + "peer_metadata": {}, + "state": { + "$ref": "#/components/schemas/p2p_peer.state" + }, + "reachable_at": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "stat": { + "$ref": "#/components/schemas/p2p_stat" + }, + "last_failed_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + } + }, + "required": [ + "score", + "trusted", + "peer_metadata", + "state", + "stat" + ] + } + }, + "required": [ + "info" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/peers/disconnect/{peer_id}": { + "delete": { + "description": "Disconnect from a peer.", + "parameters": [ + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "wait", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/peers/info": { + "get": { + "description": "Get list of known peers and their corresponding info.", + "parameters": [ + { + "name": "connected", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "info": { + "type": "object", + "properties": { + "score": { + "type": "number" + }, + "trusted": { + "type": "boolean" + }, + "conn_metadata": { + "type": "object", + "properties": { + "advertised_net_addr": { + "$ref": "#/components/schemas/p2p_address" + }, + "advertised_net_port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "is_bootstrap_peer": { + "type": "boolean" + } + }, + "required": [ + "is_bootstrap_peer" + ] + }, + "peer_metadata": {}, + "state": { + "$ref": "#/components/schemas/p2p_peer.state" + }, + "reachable_at": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "stat": { + "$ref": "#/components/schemas/p2p_stat" + }, + "last_failed_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + } + }, + "required": [ + "score", + "trusted", + "peer_metadata", + "state", + "stat" + ] + } + }, + "required": [ + "peer", + "info" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/points": { + "get": { + "description": "By default, get the list of known points. When the 'connected' flag is given, only get the connected points.", + "parameters": [ + { + "name": "connected", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "point" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/points/by-id/{point}": { + "get": { + "description": "Get info of the requested point", + "parameters": [ + { + "name": "point", + "in": "path", + "description": "A network point (ipv4:port or [ipv6]:port).", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "info": { + "$ref": "#/components/schemas/p2p_point.info" + } + }, + "required": [ + "info" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/points/disconnect/{point}": { + "delete": { + "description": "Disconnect from a point.", + "parameters": [ + { + "name": "point", + "in": "path", + "description": "A network point (ipv4:port or [ipv6]:port).", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "wait", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/p2p/points/info": { + "get": { + "description": "By default, get the list of known points and their corresponding info. When the 'connected' flag is given, then only get the connected points.", + "parameters": [ + { + "name": "connected", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "point": { + "$ref": "#/components/schemas/p2p_point.id" + }, + "info": { + "$ref": "#/components/schemas/p2p_point.info" + } + }, + "required": [ + "point", + "info" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/profiles": { + "get": { + "description": "Return the list of current profiles tracked by the DAL node.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Boostrap node", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "bootstrap" + ] + } + }, + "required": [ + "kind" + ] + }, + { + "title": "Controller", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "controller" + ] + }, + "controller_profiles": { + "oneOf": [ + { + "title": "profile_encoding", + "type": "object", + "properties": { + "operators": { + "type": "array", + "items": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "observers": { + "type": "array", + "items": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "attesters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + } + }, + { + "title": "legacy_profile_encoding", + "type": "array", + "items": { + "oneOf": [ + { + "title": "Attester with pkh", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attester" + ] + }, + "public_key_hash": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "public_key_hash" + ] + }, + { + "title": "Slot producer", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "producer" + ] + }, + "slot_index": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "kind", + "slot_index" + ] + }, + { + "title": "observer", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "observer" + ] + }, + "slot_index": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "kind", + "slot_index" + ] + } + ] + } + } + ] + } + }, + "required": [ + "kind", + "controller_profiles" + ] + }, + { + "title": "Random_observer", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "random_observer" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + }, + "patch": { + "description": "Update the list of profiles tracked by the DAL node. Note that it does not take the bootstrap profile as it is incompatible with other profiles.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "profile_encoding", + "type": "object", + "properties": { + "operators": { + "type": "array", + "items": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "observers": { + "type": "array", + "items": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "attesters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + } + }, + { + "title": "legacy_profile_encoding", + "type": "array", + "items": { + "oneOf": [ + { + "title": "Attester with pkh", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attester" + ] + }, + "public_key_hash": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "public_key_hash" + ] + }, + { + "title": "Slot producer", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "producer" + ] + }, + "slot_index": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "kind", + "slot_index" + ] + }, + { + "title": "observer", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "observer" + ] + }, + "slot_index": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "kind", + "slot_index" + ] + } + ] + } + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/profiles/{pkh}/attested_levels/{int32}/assigned_shard_indices": { + "get": { + "description": "Return the shard indexes assigned to the given public key hash at the given level.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "int32", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/profiles/{pkh}/attested_levels/{int32}/attestable_slots": { + "get": { + "description": "Return the currently attestable slots at the given attested level by the given public key hash. A slot is attestable at level [l] if it is published at level [l - attestation_lag] and *all* the shards assigned at level [l] to the given public key hash are available in the DAL node's store.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "int32", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "attestable_slots_set", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestable_slots_set" + ] + }, + "attestable_slots_set": { + "type": "array", + "items": { + "type": "boolean" + } + }, + "published_level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "kind", + "attestable_slots_set", + "published_level" + ] + }, + { + "title": "not_in_committee", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "not_in_committee" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/protocol_parameters": { + "get": { + "description": "Returns the protocol parameters as known by the DAL node. An optional 'level' argument can specify for which level to retrieve them.", + "parameters": [ + { + "name": "level", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "feature_enable": { + "type": "boolean" + }, + "incentives_enable": { + "type": "boolean" + }, + "number_of_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "attestation_lag": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "attestation_threshold": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "traps_fraction": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "cryptobox_parameters": { + "type": "object", + "properties": { + "redundancy_factor": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_size": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "slot_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "number_of_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "redundancy_factor", + "page_size", + "slot_size", + "number_of_shards" + ] + }, + "sc_rollup_challenge_window_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "commitment_period_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "dal_attested_slots_validity_lag": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "blocks_per_cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "feature_enable", + "incentives_enable", + "number_of_slots", + "attestation_lag", + "attestation_threshold", + "traps_fraction", + "cryptobox_parameters", + "sc_rollup_challenge_window_in_blocks", + "commitment_period_in_blocks", + "dal_attested_slots_validity_lag", + "blocks_per_cycle" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/slots": { + "post": { + "description": "Post a slot to the DAL node, computes its commitment and commitment proof, then computes the correspoding shards with their proof. The result of this RPC can be directly used to publish a slot header. If the sent data is smaller than the size of a DAL slot, it is padded with the character provided as padding query parameter (defaults to \\000). If the slot_index query parameter is provided, the DAL node checks that its profile allows to publish data on the given slot index.", + "parameters": [ + { + "name": "padding", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "slot_index", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "Universal string representation", + "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "invalid_utf8_string": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + }, + "required": [ + "invalid_utf8_string" + ] + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + }, + "commitment_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "commitment", + "commitment_proof" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/version": { + "get": { + "description": "version", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "network_version": { + "type": "object", + "properties": { + "chain_name": { + "$ref": "#/components/schemas/distributed_db_version.name" + }, + "gossipsub": { + "$ref": "#/components/schemas/distributed_db_version" + }, + "p2p_version": { + "$ref": "#/components/schemas/p2p_version" + } + }, + "required": [ + "chain_name", + "gossipsub", + "p2p_version" + ] + } + }, + "required": [ + "network_version" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Crypto_box.Public_key_hash": { + "title": "A Cryptobox public key ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "DAL_commitment": { + "title": "Commitment representation for the DAL (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.Public_key_hash": { + "title": "A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "bignum": { + "title": "Big number", + "description": "Decimal representation of a big number", + "type": "string" + }, + "distributed_db_version": { + "description": "A version number for the distributed DB protocol", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "distributed_db_version.name": { + "description": "A name for the distributed DB protocol", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "int64": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + }, + "p2p_address": { + "description": "An address for locating peers.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "p2p_connection.id": { + "description": "The identifier for a p2p connection. It includes an address and a port number.", + "type": "object", + "properties": { + "addr": { + "$ref": "#/components/schemas/p2p_address" + }, + "port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "addr" + ] + }, + "p2p_peer.state": { + "description": "The state a peer connection can be in: accepted (when the connection is being established), running (when the connection is already established), disconnected (otherwise).", + "type": "string", + "enum": [ + "running", + "accepted", + "disconnected" + ] + }, + "p2p_point.id": { + "description": "Identifier for a peer point", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "p2p_point.info": { + "description": "Information about a peer point. Includes flags, state, and records about past events.", + "type": "object", + "properties": { + "trusted": { + "type": "boolean" + }, + "greylisted_until": { + "$ref": "#/components/schemas/timestamp.system" + }, + "state": { + "$ref": "#/components/schemas/p2p_point.state" + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "last_failed_connection": { + "$ref": "#/components/schemas/timestamp.system" + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "$ref": "#/components/schemas/timestamp.system" + }, + "expected_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "trusted", + "state" + ] + }, + "p2p_point.state": { + "description": "The state a connection to a peer point can be in: requested (connection open from here), accepted (handshake), running (connection already established), disconnected (no connection).", + "oneOf": [ + { + "title": "Requested", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "requested" + ] + } + }, + "required": [ + "event_kind" + ] + }, + { + "title": "Accepted", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "accepted" + ] + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event_kind", + "p2p_peer_id" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "running" + ] + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event_kind", + "p2p_peer_id" + ] + }, + { + "title": "Disconnected", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "disconnected" + ] + } + }, + "required": [ + "event_kind" + ] + } + ] + }, + "p2p_stat": { + "description": "Statistics about the p2p network.", + "type": "object", + "properties": { + "total_sent": { + "$ref": "#/components/schemas/int64" + }, + "total_recv": { + "$ref": "#/components/schemas/int64" + }, + "current_inflow": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "current_outflow": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "total_sent", + "total_recv", + "current_inflow", + "current_outflow" + ] + }, + "p2p_version": { + "description": "A version number for the p2p layer.", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "timestamp.rfc": { + "title": "RFC 3339 formatted timestamp", + "description": "A date in RFC 3339 notation.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "timestamp.system": { + "description": "A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.", + "oneOf": [ + { + "title": "RFC encoding", + "oneOf": [ + { + "$ref": "#/components/schemas/timestamp.rfc" + } + ] + }, + { + "title": "Second since epoch", + "oneOf": [ + { + "$ref": "#/components/schemas/int64" + } + ] + } + ] + }, + "unistring": { + "title": "Universal string representation", + "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "invalid_utf8_string": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + }, + "required": [ + "invalid_utf8_string" + ] + } + ] + } + } + } +} diff --git a/docs/api/dal-node-openapi.json b/docs/api/dal-node-openapi.json index 454abeeefc6f..cc5519f52546 100644 --- a/docs/api/dal-node-openapi.json +++ b/docs/api/dal-node-openapi.json @@ -3,34 +3,91 @@ "info": { "title": "Octez DAL Node RPC", "description": "The RPC API for the Octez DAL node.", - "version": "Octez 21.4 (b8278e10)" + "version": "Octez 22.0~rc1 (f1704a05)" }, "paths": { - "/commitments": { - "post": { - "description": "Add a slot in the node's context if not already present. The corresponding commitment is returned.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "string", - "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + "/health": { + "get": { + "description": "Performs health checks on the DAL node, evaluating key components of the DAL node. Returns a health status indicating whether the DAL node is 'Up', 'Down', or 'Degraded' based on the results of these checks.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "degraded", + "up", + "ko", + "no", + "ok", + "down" + ] + }, + "checks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "$ref": "#/components/schemas/unistring" + }, + "status": { + "type": "string", + "enum": [ + "degraded", + "up", + "ko", + "no", + "ok", + "down" + ] + } + }, + "required": [ + "name", + "status" + ] + } + } + }, + "required": [ + "status", + "checks" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } } } } - }, + } + } + }, + "/last_processed_level": { + "get": { + "description": "Returns the last (finalized) L1 level which was processed by the DAL node.", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { - "title": "Commitment representation for the DAL (Base58Check-encoded)", - "oneOf": [ - { - "$ref": "#/components/schemas/unistring" - } - ] + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 } } } @@ -816,10 +873,10 @@ }, "/p2p/gossipsub/pkhs/peers": { "get": { - "description": "Get an association list between each topic subscribed to by the connected peers and the remote peers subscribed to that topic. If the 'subscribed' flag is given, then restrict the output to the topics this peer is subscribed to.", + "description": "When the 'all' flag is given, get an association list between each topic subscribed to by the connected peers and the remote peers subscribed to that topic. If the 'all' flag is not given, then restrict the output to the topics this peer is subscribed to.", "parameters": [ { - "name": "subscribed", + "name": "all", "in": "query", "required": false, "schema": { @@ -979,10 +1036,10 @@ }, "/p2p/gossipsub/slot_indexes/peers": { "get": { - "description": "Get an association list between each public key hash part of a topic subscribed to by the connected peers and the remote peers subscribed to such topics. If the 'subscribed' flag is given, then restrict the output to the topics this peer is subscribed to.", + "description": "When the 'all' flag is given, get an association list between each public key hash part of a topic subscribed to by the connected peers and the remote peers subscribed to such topics. If the 'all' flag is not given, then restrict the output to the topics this peer is subscribed to.", "parameters": [ { - "name": "subscribed", + "name": "all", "in": "query", "required": false, "schema": { @@ -1092,10 +1149,10 @@ }, "/p2p/gossipsub/topics/peers": { "get": { - "description": "Get an association list between each topic subscribed to by the connected peers and the remote peers subscribed to that topic. If the 'subscribed' flag is given, then restrict the output to the topics this peer is subscribed to.", + "description": "When the 'all' flag is given, get an association list between each topic subscribed to by the connected peers and the remote peers subscribed to that topic. If the 'all' flag is not given, then restrict the output to the topics this peer is subscribed to.", "parameters": [ { - "name": "subscribed", + "name": "all", "in": "query", "required": false, "schema": { @@ -2043,12 +2100,7 @@ "$ref": "#/components/schemas/Signature.Public_key_hash" } } - }, - "required": [ - "operators", - "observers", - "attesters" - ] + } }, { "title": "legacy_profile_encoding", @@ -2192,12 +2244,7 @@ "$ref": "#/components/schemas/Signature.Public_key_hash" } } - }, - "required": [ - "operators", - "observers", - "attesters" - ] + } }, { "title": "legacy_profile_encoding", @@ -2436,6 +2483,145 @@ } } }, + "/protocol_parameters": { + "get": { + "description": "Returns the protocol parameters as known by the DAL node. An optional 'level' argument can specify for which level to retrieve them.", + "parameters": [ + { + "name": "level", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "feature_enable": { + "type": "boolean" + }, + "incentives_enable": { + "type": "boolean" + }, + "number_of_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "attestation_lag": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "attestation_threshold": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "traps_fraction": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "cryptobox_parameters": { + "type": "object", + "properties": { + "redundancy_factor": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_size": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "slot_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "number_of_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "redundancy_factor", + "page_size", + "slot_size", + "number_of_shards" + ] + }, + "sc_rollup_challenge_window_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "commitment_period_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "dal_attested_slots_validity_lag": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "blocks_per_cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "feature_enable", + "incentives_enable", + "number_of_slots", + "attestation_lag", + "attestation_threshold", + "traps_fraction", + "cryptobox_parameters", + "sc_rollup_challenge_window_in_blocks", + "commitment_period_in_blocks", + "dal_attested_slots_validity_lag", + "blocks_per_cycle" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, "/slots": { "post": { "description": "Post a slot to the DAL node, computes its commitment and commitment proof, then computes the correspoding shards with their proof. The result of this RPC can be directly used to publish a slot header. If the sent data is smaller than the size of a DAL slot, it is padded with the character provided as padding query parameter (defaults to \\000). If the slot_index query parameter is provided, the DAL node checks that its profile allows to publish data on the given slot index.", @@ -2603,6 +2789,11 @@ } ] }, + "bignum": { + "title": "Big number", + "description": "Decimal representation of a big number", + "type": "string" + }, "distributed_db_version": { "description": "A version number for the distributed DB protocol", "type": "integer", diff --git a/docs/api/openapi.rst b/docs/api/openapi.rst index 489db349362a..35ed40257d09 100644 --- a/docs/api/openapi.rst +++ b/docs/api/openapi.rst @@ -53,6 +53,7 @@ The node provides some RPCs which are independent of the protocol. Their OpenAPI specification can be found at: - :src:`docs/api/rpc-openapi.json` (version 21.4) +- :src:`docs/api/rpc-openapi-rc.json` (version 22.0~rc1) - :src:`docs/api/rpc-openapi-dev.json` (version master) .. TODO tezos/tezos#2170: add/remove section(s) @@ -64,11 +65,13 @@ The OpenAPI specifications for RPCs which are specific to the Quebec (``PtQuebec protocol can be found at: - :src:`docs/api/quebec-openapi.json` (version 21.4) +- :src:`docs/api/quebec-openapi-rc.json` (version 22.0~rc1) The OpenAPI specifications for RPCs which are related to the mempool and specific to the Quebec protocol can be found at: - :src:`docs/api/quebec-mempool-openapi.json` (version 21.4) +- :src:`docs/api/quebec-mempool-openapi-rc.json` (version 22.0~rc1) Rio RPCs -------- @@ -113,6 +116,7 @@ The OpenAPI specifications for the RPCs of the smart rollup node for the Quebec (``PtQuebec``) protocol proposal can be found at: - :src:`docs/api/quebec-smart-rollup-node-openapi.json` (version 21.4) +- :src:`docs/api/quebec-smart-rollup-node-openapi-rc.json` (version 22.0~rc1) Alpha RPCs ---------- @@ -129,6 +133,7 @@ The DAL node also provides RPCs. Their OpenAPI specification can be found at: - :src:`docs/api/dal-node-openapi.json` (version 21.4) +- :src:`docs/api/dal-node-openapi-rc.json` (version 22.0~rc1) - :src:`docs/api/dal-node-openapi-dev.json` (version master) .. _openapi_generate: diff --git a/docs/api/quebec-mempool-openapi-rc.json b/docs/api/quebec-mempool-openapi-rc.json new file mode 100644 index 000000000000..690990d925cb --- /dev/null +++ b/docs/api/quebec-mempool-openapi-rc.json @@ -0,0 +1,3396 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez Mempool RPC", + "description": "The RPC API for the mempool served by the Octez node.", + "version": "Octez 21.0~rc3+dev (b950d9ce)" + }, + "paths": { + "/ban_operation": { + "post": { + "description": "Remove an operation from the mempool if present. Also add it to the set of banned operations to prevent it from being fetched/processed/injected in the future. Note: If the baker has already received the operation, then it's necessary to restart it to flush the operation from it.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/filter": { + "get": { + "description": "Get the configuration of the mempool's filter and bounds. Values of the form [ \"21\", \"20\" ] are rational numbers given as a numerator and a denominator, e.g. 21/20 = 1.05. The minimal_fees (in mutez), minimal_nanotez_per_gas_unit, and minimal_nanotez_per_byte are requirements that a manager operation must meet to be considered by the mempool. replace_by_fee_factor is how much better a manager operation must be to replace a previous valid operation **from the same manager** (both its fee and its fee/gas ratio must exceed the old operation's by at least this factor). max_operations and max_total_bytes are the bounds on respectively the number of valid operations in the mempool and the sum of their sizes in bytes.", + "parameters": [ + { + "name": "include_default", + "in": "query", + "description": "Show fields equal to their default value (set by default)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + }, + "post": { + "description": "Set the configuration of the mempool's filter and bounds. **If any of the fields is absent from the input JSON, then it is set to the default value for this field (i.e. its value in the default configuration), even if it previously had a different value.** If the input JSON does not describe a valid configuration, then the configuration is left unchanged. This RPC also returns the new configuration of the mempool (which may differ from the input if the latter omits fields or is invalid). You may call [octez-client rpc get '/chains/main/mempool/filter?include_default=true'] to see an example of JSON describing a valid configuration. See the description of that RPC for details on each configurable value.", + "requestBody": { + "content": { + "application/json": { + "schema": {} + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/monitor_operations": { + "get": { + "description": "Monitor the mempool operations.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "validated", + "in": "query", + "description": "Include validated operations (set by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "refused", + "in": "query", + "description": "Include refused operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "outdated", + "in": "query", + "description": "Include outdated operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_refused", + "in": "query", + "description": "Include branch refused operations", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_delayed", + "in": "query", + "description": "Include branch delayed operations (set by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "validation_pass", + "in": "query", + "description": "Include operations filtered by validation pass (all by default)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "sources", + "in": "query", + "description": "Include operations filtered by sources (all by default)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error_opt" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/pending_operations": { + "get": { + "description": "List the prevalidated operations.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"2\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "validated", + "in": "query", + "description": "Include validated operations (true by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "refused", + "in": "query", + "description": "Include refused operations (true by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "outdated", + "in": "query", + "description": "Include outdated operations (true by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_refused", + "in": "query", + "description": "Include branch refused operations (true by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "branch_delayed", + "in": "query", + "description": "Include branch delayed operations (true by default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "validation_pass", + "in": "query", + "description": "Include operations filtered by validation pass (all by default)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "source", + "in": "query", + "description": "Include operations filtered by source (all by default)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "operation_hash", + "in": "query", + "description": "Include operations filtered by hash (all by default)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "validated": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "branch", + "contents" + ] + } + }, + "refused": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "outdated": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "branch_refused": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "branch_delayed": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents", + "error" + ] + } + }, + "unprocessed": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "protocol": { + "type": "string", + "enum": [ + "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "hash", + "protocol", + "branch", + "contents" + ] + } + } + }, + "required": [ + "validated", + "refused", + "outdated", + "branch_refused", + "branch_delayed", + "unprocessed" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/request_operations": { + "post": { + "description": "Request the operations of our peers or a specific peer if specified via a query parameter.", + "parameters": [ + { + "name": "peer_id", + "in": "query", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/unban_all_operations": { + "post": { + "description": "Clear the set of banned operations.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/unban_operation": { + "post": { + "description": "Remove an operation from the set of banned operations (nothing happens if it was not banned).", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "021-PsQuebec.adaptive_issuance_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + }, + "021-PsQuebec.block_header.alpha.full_header": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "payload_round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proof_of_work_nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "seed_nonce_hash": { + "$ref": "#/components/schemas/cycle_nonce" + }, + "liquidity_baking_toggle_vote": { + "$ref": "#/components/schemas/021-PsQuebec.liquidity_baking_vote" + }, + "adaptive_issuance_vote": { + "$ref": "#/components/schemas/021-PsQuebec.adaptive_issuance_vote" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "payload_hash", + "payload_round", + "proof_of_work_nonce", + "liquidity_baking_toggle_vote", + "adaptive_issuance_vote", + "signature" + ] + }, + "021-PsQuebec.contract_id": { + "title": "A contract handle", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash or a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "021-PsQuebec.contract_id.originated": { + "title": "A contract handle -- originated account", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "021-PsQuebec.entrypoint": { + "title": "entrypoint", + "description": "Named entrypoint to a Michelson smart contract", + "oneOf": [ + { + "title": "default", + "type": "string", + "enum": [ + "default" + ] + }, + { + "title": "root", + "type": "string", + "enum": [ + "root" + ] + }, + { + "title": "do", + "type": "string", + "enum": [ + "do" + ] + }, + { + "title": "set_delegate", + "type": "string", + "enum": [ + "set_delegate" + ] + }, + { + "title": "remove_delegate", + "type": "string", + "enum": [ + "remove_delegate" + ] + }, + { + "title": "deposit", + "type": "string", + "enum": [ + "deposit" + ] + }, + { + "title": "stake", + "type": "string", + "enum": [ + "stake" + ] + }, + { + "title": "unstake", + "type": "string", + "enum": [ + "unstake" + ] + }, + { + "title": "finalize_unstake", + "type": "string", + "enum": [ + "finalize_unstake" + ] + }, + { + "title": "set_delegate_parameters", + "type": "string", + "enum": [ + "set_delegate_parameters" + ] + }, + { + "title": "named", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + ] + }, + "021-PsQuebec.inlined.attestation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.attestation_mempool.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "021-PsQuebec.inlined.attestation_mempool.contents": { + "oneOf": [ + { + "title": "Attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestation_with_dal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation_with_dal" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "dal_attestation": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "dal_attestation" + ] + } + ] + }, + "021-PsQuebec.inlined.preattestation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.preattestation.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "021-PsQuebec.inlined.preattestation.contents": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preattestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + "021-PsQuebec.liquidity_baking_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + }, + "021-PsQuebec.michelson.v1.primitives": { + "type": "string", + "enum": [ + "SHA256", + "GT", + "RIGHT", + "SAPLING_EMPTY_STATE", + "False", + "RENAME", + "CAST", + "tx_rollup_l2_address", + "PACK", + "BYTES", + "timestamp", + "bls12_381_g2", + "Pair", + "IF_LEFT", + "contract", + "mutez", + "storage", + "PAIR", + "view", + "UNPACK", + "ADD", + "DROP", + "big_map", + "MUL", + "NAT", + "SELF", + "CONTRACT", + "CDR", + "SAPLING_VERIFY_UPDATE", + "pair", + "LSL", + "int", + "operation", + "SHA512", + "CREATE_ACCOUNT", + "BLAKE2B", + "SPLIT_TICKET", + "LEFT", + "never", + "unit", + "address", + "signature", + "CHAIN_ID", + "constant", + "SLICE", + "SENDER", + "IMPLICIT_ACCOUNT", + "key_hash", + "AMOUNT", + "CHECK_SIGNATURE", + "sapling_state", + "LT", + "EXEC", + "Elt", + "EMIT", + "NONE", + "CREATE_CONTRACT", + "LSR", + "SET_DELEGATE", + "OPEN_CHEST", + "TRANSFER_TOKENS", + "Some", + "parameter", + "set", + "bls12_381_fr", + "EDIV", + "None", + "STEPS_TO_QUOTA", + "key", + "ABS", + "list", + "NEVER", + "map", + "CAR", + "IF", + "GET_AND_UPDATE", + "CONCAT", + "LOOP", + "DIG", + "KECCAK", + "Lambda_rec", + "SOME", + "option", + "SUB", + "INT", + "PUSH", + "CONS", + "Unit", + "ISNAT", + "NEG", + "XOR", + "APPLY", + "UNPAIR", + "JOIN_TICKETS", + "SIZE", + "lambda", + "AND", + "NEQ", + "or", + "BALANCE", + "UNIT", + "VOTING_POWER", + "OR", + "LAMBDA", + "chest", + "LOOP_LEFT", + "True", + "Right", + "Ticket", + "HASH_KEY", + "DUG", + "sapling_transaction", + "SUB_MUTEZ", + "EMPTY_BIG_MAP", + "MEM", + "IF_NONE", + "nat", + "TOTAL_VOTING_POWER", + "LE", + "Left", + "chest_key", + "READ_TICKET", + "ticket", + "bls12_381_g1", + "LEVEL", + "VIEW", + "string", + "PAIRING_CHECK", + "LAMBDA_REC", + "NOW", + "SHA3", + "bool", + "MIN_BLOCK_TIME", + "GET", + "bytes", + "sapling_transaction_deprecated", + "NIL", + "IF_CONS", + "GE", + "NOT", + "SWAP", + "ITER", + "ADDRESS", + "TICKET", + "DUP", + "EMPTY_MAP", + "UPDATE", + "chain_id", + "TICKET_DEPRECATED", + "EMPTY_SET", + "FAILWITH", + "MAP", + "SOURCE", + "DIP", + "COMPARE", + "EQ", + "SELF_ADDRESS", + "code" + ] + }, + "021-PsQuebec.mutez": { + "$ref": "#/components/schemas/positive_bignum" + }, + "021-PsQuebec.operation.alpha.contents": { + "oneOf": [ + { + "title": "Preattestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preattestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestation_with_dal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation_with_dal" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "dal_attestation": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "dal_attestation" + ] + }, + { + "title": "Double_preattestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_preattestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.preattestation" + }, + "op2": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.preattestation" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Double_attestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_attestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.attestation" + }, + "op2": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.attestation" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "level", + "nonce" + ] + }, + { + "title": "Vdf_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "vdf_revelation" + ] + }, + "solution": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + ] + } + } + }, + "required": [ + "kind", + "solution" + ] + }, + { + "title": "Double_baking_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_baking_evidence" + ] + }, + "bh1": { + "$ref": "#/components/schemas/021-PsQuebec.block_header.alpha.full_header" + }, + "bh2": { + "$ref": "#/components/schemas/021-PsQuebec.block_header.alpha.full_header" + } + }, + "required": [ + "kind", + "bh1", + "bh2" + ] + }, + { + "title": "Activate_account", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "activate_account" + ] + }, + "pkh": { + "$ref": "#/components/schemas/Ed25519.Public_key_hash" + }, + "secret": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "pkh", + "secret" + ] + }, + { + "title": "Proposals", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "proposals" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + } + }, + "required": [ + "kind", + "source", + "period", + "proposals" + ] + }, + { + "title": "Ballot", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "ballot" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposal": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + } + }, + "required": [ + "kind", + "source", + "period", + "proposal", + "ballot" + ] + }, + { + "title": "Reveal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "reveal" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_key": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_key" + ] + }, + { + "title": "Transaction", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transaction" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "destination": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/021-PsQuebec.entrypoint" + }, + "value": {} + }, + "required": [ + "entrypoint", + "value" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination" + ] + }, + { + "title": "Origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/021-PsQuebec.scripted.contracts" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "balance", + "script" + ] + }, + { + "title": "Delegation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "delegation" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit" + ] + }, + { + "title": "Set_deposits_limit", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "set_deposits_limit" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "limit": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit" + ] + }, + { + "title": "Increase_paid_storage", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "increase_paid_storage" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + }, + "destination": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination" + ] + }, + { + "title": "Update_consensus_key", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "update_consensus_key" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pk" + ] + }, + { + "title": "Drain_delegate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "drain_delegate" + ] + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "destination": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "consensus_key", + "delegate", + "destination" + ] + }, + { + "title": "Failing_noop", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "failing_noop" + ] + }, + "arbitrary": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "arbitrary" + ] + }, + { + "title": "Register_global_constant", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "register_global_constant" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "value": {} + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "value" + ] + }, + { + "title": "Transfer_ticket", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transfer_ticket" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_contents": {}, + "ticket_ty": {}, + "ticket_ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "ticket_amount": { + "$ref": "#/components/schemas/positive_bignum" + }, + "destination": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "ticket_contents", + "ticket_ty", + "ticket_ticketer", + "ticket_amount", + "destination", + "entrypoint" + ] + }, + { + "title": "Dal_publish_commitment", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_publish_commitment" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "slot_header": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + }, + "commitment_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "slot_index", + "commitment", + "commitment_proof" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "slot_header" + ] + }, + { + "title": "Smart_rollup_originate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_originate" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pvm_kind": { + "type": "string", + "enum": [ + "wasm_2_0_0", + "arith", + "riscv" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {}, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pvm_kind", + "kernel", + "parameters_ty" + ] + }, + { + "title": "Smart_rollup_add_messages", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_add_messages" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "message": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "message" + ] + }, + { + "title": "Smart_rollup_cement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_cement" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup" + ] + }, + { + "title": "Smart_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "commitment": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "commitment" + ] + }, + { + "title": "Smart_rollup_refute", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_refute" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "opponent": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "refutation": { + "oneOf": [ + { + "title": "Start", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "start" + ] + }, + "player_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "opponent_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "refutation_kind", + "player_commitment_hash", + "opponent_commitment_hash" + ] + }, + { + "title": "Move", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "move" + ] + }, + "choice": { + "$ref": "#/components/schemas/positive_bignum" + }, + "step": { + "oneOf": [ + { + "title": "Dissection", + "type": "array", + "items": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + } + }, + { + "title": "Proof", + "type": "object", + "properties": { + "pvm_step": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "input_proof": { + "oneOf": [ + { + "title": "inbox proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "inbox_proof" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "message_counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "serialized_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "input_proof_kind", + "level", + "message_counter", + "serialized_proof" + ] + }, + { + "title": "reveal proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "reveal_proof" + ] + }, + "reveal_proof": { + "oneOf": [ + { + "title": "raw data proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "raw_data_proof" + ] + }, + "raw_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "raw_data" + ] + }, + { + "title": "metadata proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "metadata_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + }, + { + "title": "dal page proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_page_proof" + ] + }, + "dal_page_id": { + "type": "object", + "properties": { + "published_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_index": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "published_level", + "slot_index", + "page_index" + ] + }, + "dal_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "dal_page_id", + "dal_proof" + ] + }, + { + "title": "dal parameters proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_parameters_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + } + ] + } + }, + "required": [ + "input_proof_kind", + "reveal_proof" + ] + }, + { + "title": "first input", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "first_input" + ] + } + }, + "required": [ + "input_proof_kind" + ] + } + ] + } + }, + "required": [ + "pvm_step" + ] + } + ] + } + }, + "required": [ + "refutation_kind", + "choice", + "step" + ] + } + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "opponent", + "refutation" + ] + }, + { + "title": "Smart_rollup_timeout", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_timeout" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "stakers": { + "type": "object", + "properties": { + "alice": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "bob": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "alice", + "bob" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "stakers" + ] + }, + { + "title": "Smart_rollup_execute_outbox_message", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_execute_outbox_message" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "cemented_commitment": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "output_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "cemented_commitment", + "output_proof" + ] + }, + { + "title": "Smart_rollup_recover_bond", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_recover_bond" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "staker": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "staker" + ] + }, + { + "title": "Zk_rollup_origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "circuits_info": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "oneOf": [ + { + "title": "Public", + "type": "object", + "properties": { + "public": {} + }, + "required": [ + "public" + ] + }, + { + "title": "Private", + "type": "object", + "properties": { + "private": {} + }, + "required": [ + "private" + ] + }, + { + "title": "Fee", + "type": "object", + "properties": { + "fee": {} + }, + "required": [ + "fee" + ] + } + ] + } + ] + } + } + }, + "init_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "nb_ops": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_parameters", + "circuits_info", + "init_state", + "nb_ops" + ] + }, + { + "title": "Zk_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "op": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "properties": { + "op_code": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "price": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/script_expr" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "id", + "amount" + ] + }, + "l1_dst": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "rollup_id": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "payload": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "op_code", + "price", + "l1_dst", + "rollup_id", + "payload" + ] + }, + { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "contents": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "ty": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + } + }, + "required": [ + "contents", + "ty", + "ticketer" + ] + } + ] + } + ] + } + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "op" + ] + }, + { + "title": "Zk_rollup_update", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_update" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "update": { + "type": "object", + "properties": { + "pending_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "exit_validity": { + "type": "boolean" + } + }, + "required": [ + "new_state", + "fee", + "exit_validity" + ] + } + ] + } + } + }, + "private_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "new_state", + "fee" + ] + } + ] + } + } + }, + "fee_pi": { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "new_state" + ] + }, + "proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "pending_pis", + "private_pis", + "fee_pi", + "proof" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "update" + ] + } + ] + }, + "021-PsQuebec.scripted.contracts": { + "type": "object", + "properties": { + "code": {}, + "storage": {} + }, + "required": [ + "code", + "storage" + ] + }, + "Context_hash": { + "title": "A hash of context (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "DAL_commitment": { + "title": "Commitment representation for the DAL (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Ed25519.Public_key_hash": { + "title": "An Ed25519 public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_hash": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_list_list_hash": { + "title": "A list of list of operations (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Protocol_hash": { + "title": "A Tezos protocol ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.Public_key": { + "title": "A Ed25519, Secp256k1, or P256 public key (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.Public_key_hash": { + "title": "A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.V1": { + "title": "A Ed25519, Secp256k1, P256 or BLS signature (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Zk_rollup_hash": { + "title": "A zk rollup address (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "bignum": { + "title": "Big number", + "description": "Decimal representation of a big number", + "type": "string" + }, + "block_hash": { + "title": "A block identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "cycle_nonce": { + "title": "A nonce hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "error": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + }, + "error_opt": { + "description": "An optional error-trace (None indicates no error). The full list of errors is available with the global RPC `GET errors`" + }, + "fitness": { + "title": "Block fitness", + "description": "The fitness, or score, of a block, that allow the Tezos to decide which chain is the best. A fitness value is a list of byte sequences. They are compared as follows: shortest lists are smaller; lists of the same length are compared according to the lexicographical order.", + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "int64": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + }, + "micheline.021-PsQuebec.michelson_v1.expression": { + "oneOf": [ + { + "title": "Int", + "type": "object", + "properties": { + "int": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "int" + ] + }, + { + "title": "String", + "type": "object", + "properties": { + "string": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "string" + ] + }, + { + "title": "Bytes", + "type": "object", + "properties": { + "bytes": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "bytes" + ] + }, + { + "title": "Sequence", + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + { + "title": "Prim__generic", + "description": "Generic primitive (any number of args with or without annotations)", + "type": "object", + "properties": { + "prim": { + "$ref": "#/components/schemas/021-PsQuebec.michelson.v1.primitives" + }, + "args": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "annots": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + }, + "required": [ + "prim" + ] + } + ] + }, + "positive_bignum": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + }, + "script_expr": { + "title": "A script expression ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_address": { + "title": "A smart rollup address (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_commitment_hash": { + "title": "The hash of a commitment of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_state_hash": { + "title": "The hash of the VM state of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "timestamp.protocol": { + "description": "A timestamp as seen by the protocol: second-level precision, epoch based.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "unistring": { + "title": "Universal string representation", + "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "invalid_utf8_string": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + }, + "required": [ + "invalid_utf8_string" + ] + } + ] + }, + "value_hash": { + "title": "Hash of a consensus value (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } +} diff --git a/docs/api/quebec-mempool-openapi.json b/docs/api/quebec-mempool-openapi.json index 9307b6006fc7..96c018713aba 100644 --- a/docs/api/quebec-mempool-openapi.json +++ b/docs/api/quebec-mempool-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Mempool RPC", "description": "The RPC API for the mempool served by the Octez node.", - "version": "Octez 21.4 (b8278e10)" + "version": "Octez 22.0~rc1 (f1704a05)" }, "paths": { "/ban_operation": { diff --git a/docs/api/quebec-openapi-rc.json b/docs/api/quebec-openapi-rc.json new file mode 100644 index 000000000000..7a41f40ac1bf --- /dev/null +++ b/docs/api/quebec-openapi-rc.json @@ -0,0 +1,24488 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez Protocol quebec RPC", + "description": "The RPC API for protocol quebec served by the Octez node.", + "version": "Octez 21.0~rc3+dev (b950d9ce)" + }, + "paths": { + "/": { + "get": { + "description": "All the information about a block. The associated metadata may not be present depending on the history mode and block's distance from the head.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "force_metadata", + "in": "query", + "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "metadata", + "in": "query", + "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/block_hash" + }, + "header": { + "$ref": "#/components/schemas/raw_block_header" + }, + "metadata": { + "$ref": "#/components/schemas/block_header_metadata" + }, + "operations": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + } + } + }, + "required": [ + "protocol", + "chain_id", + "hash", + "header", + "operations" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/adaptive_issuance_launch_cycle": { + "get": { + "description": "Returns the cycle at which the launch of the Adaptive Issuance feature is set to happen. A result of None means that the feature is not yet set to launch.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/big_maps/{big_map_id}": { + "get": { + "description": "Get the (optionally paginated) list of values in a big map. Order of values is unspecified, but is guaranteed to be consistent.", + "parameters": [ + { + "name": "big_map_id", + "in": "path", + "description": "A big map identifier", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "A non-negative integer (greater than or equal to 0). Skip the first [offset] values. Useful in combination with [length] for pagination.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "length", + "in": "query", + "description": "A non-negative integer (greater than or equal to 0). Only retrieve [length] values. Useful in combination with [offset] for pagination.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/big_maps/{big_map_id}/{script_expr}": { + "get": { + "description": "Access the value associated with a key in a big map.", + "parameters": [ + { + "name": "big_map_id", + "in": "path", + "description": "A big map identifier", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "script_expr", + "in": "path", + "description": "script_expr (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/big_maps/{big_map_id}/{script_expr}/normalized": { + "post": { + "description": "Access the value associated with a key in a big map, normalize the output using the requested unparsing mode.", + "parameters": [ + { + "name": "big_map_id", + "in": "path", + "description": "A big map identifier", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "script_expr", + "in": "path", + "description": "script_expr (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + } + }, + "required": [ + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/cache/contracts/all": { + "get": { + "description": "Return the list of cached contracts", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Contract_hash" + }, + { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + ] + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/cache/contracts/rank": { + "post": { + "description": "Return the number of cached contracts older than the provided contract", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "A contract handle -- originated account", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/cache/contracts/size": { + "get": { + "description": "Return the size of the contract cache", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/cache/contracts/size_limit": { + "get": { + "description": "Return the size limit of the contract cache", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/constants": { + "get": { + "description": "All constants", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "proof_of_work_nonce_size": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "nonce_length": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max_anon_ops_per_block": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max_operation_data_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_proposals_per_delegate": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max_micheline_node_count": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_micheline_bytes_limit": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_allowed_global_constants_depth": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "cache_layout_size": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "michelson_maximum_type_size": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "max_slashing_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "smart_rollup_max_wrapped_proof_binary_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_message_size_limit": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_number_of_messages_per_level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "consensus_rights_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "blocks_preservation_cycles": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "delegate_parameters_activation_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "blocks_per_cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "blocks_per_commitment": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "nonce_revelation_threshold": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycles_per_voting_period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "hard_gas_limit_per_operation": { + "$ref": "#/components/schemas/bignum" + }, + "hard_gas_limit_per_block": { + "$ref": "#/components/schemas/bignum" + }, + "proof_of_work_threshold": { + "$ref": "#/components/schemas/int64" + }, + "minimal_stake": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "minimal_frozen_stake": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "vdf_difficulty": { + "$ref": "#/components/schemas/int64" + }, + "origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "issuance_weights": { + "type": "object", + "properties": { + "base_total_issued_per_minute": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "baking_reward_fixed_portion_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "baking_reward_bonus_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "attesting_reward_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "seed_nonce_revelation_tip_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "vdf_revelation_tip_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "base_total_issued_per_minute", + "baking_reward_fixed_portion_weight", + "baking_reward_bonus_weight", + "attesting_reward_weight", + "seed_nonce_revelation_tip_weight", + "vdf_revelation_tip_weight" + ] + }, + "cost_per_byte": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "hard_storage_limit_per_operation": { + "$ref": "#/components/schemas/bignum" + }, + "quorum_min": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "quorum_max": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "min_proposal_quorum": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "liquidity_baking_subsidy": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "liquidity_baking_toggle_ema_threshold": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "max_operations_time_to_live": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + }, + "minimal_block_delay": { + "$ref": "#/components/schemas/int64" + }, + "delay_increment_per_round": { + "$ref": "#/components/schemas/int64" + }, + "consensus_committee_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "consensus_threshold": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "minimal_participation_ratio": { + "type": "object", + "properties": { + "numerator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "denominator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "limit_of_delegation_over_baking": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "percentage_of_frozen_deposits_slashed_per_double_baking": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "percentage_of_frozen_deposits_slashed_per_double_attestation": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "max_slashing_per_block": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "max_slashing_threshold": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "testnet_dictator": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "initial_seed": { + "$ref": "#/components/schemas/random" + }, + "cache_script_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "cache_stake_distribution_cycles": { + "type": "integer", + "minimum": -128, + "maximum": 127 + }, + "cache_sampler_state_cycles": { + "type": "integer", + "minimum": -128, + "maximum": 127 + }, + "dal_parametric": { + "type": "object", + "properties": { + "feature_enable": { + "type": "boolean" + }, + "incentives_enable": { + "type": "boolean" + }, + "number_of_slots": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "attestation_lag": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "attestation_threshold": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "redundancy_factor": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_size": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "slot_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "number_of_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "feature_enable", + "incentives_enable", + "number_of_slots", + "attestation_lag", + "attestation_threshold", + "redundancy_factor", + "page_size", + "slot_size", + "number_of_shards" + ] + }, + "smart_rollup_arith_pvm_enable": { + "type": "boolean" + }, + "smart_rollup_origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_challenge_window_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_stake_amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "smart_rollup_commitment_period_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_lookahead_in_blocks": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "smart_rollup_max_active_outbox_levels": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "smart_rollup_max_outbox_messages_per_level": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_number_of_sections_in_dissection": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "smart_rollup_timeout_period_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_number_of_cemented_commitments": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_number_of_parallel_games": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_reveal_activation_level": { + "type": "object", + "properties": { + "raw_data": { + "type": "object", + "properties": { + "Blake2B": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "Blake2B" + ] + }, + "metadata": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_page": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_parameters": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_attested_slots_validity_lag": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "raw_data", + "metadata", + "dal_page", + "dal_parameters", + "dal_attested_slots_validity_lag" + ] + }, + "smart_rollup_private_enable": { + "type": "boolean" + }, + "smart_rollup_riscv_pvm_enable": { + "type": "boolean" + }, + "zk_rollup_enable": { + "type": "boolean" + }, + "zk_rollup_origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "zk_rollup_min_pending_to_process": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "zk_rollup_max_ticket_payload_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "global_limit_of_staking_over_baking": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "edge_of_staking_over_delegation": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "adaptive_issuance_launch_ema_threshold": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "adaptive_rewards_params": { + "type": "object", + "properties": { + "issuance_ratio_final_min": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_final_max": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_initial_min": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_initial_max": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "initial_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "transition_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max_bonus": { + "$ref": "#/components/schemas/int64" + }, + "growth_rate": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "center_dz": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "radius_dz": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + } + }, + "required": [ + "issuance_ratio_final_min", + "issuance_ratio_final_max", + "issuance_ratio_initial_min", + "issuance_ratio_initial_max", + "initial_period", + "transition_period", + "max_bonus", + "growth_rate", + "center_dz", + "radius_dz" + ] + }, + "adaptive_issuance_activation_vote_enable": { + "type": "boolean" + }, + "autostaking_enable": { + "type": "boolean" + }, + "adaptive_issuance_force_activation": { + "type": "boolean" + }, + "ns_enable": { + "type": "boolean" + }, + "direct_ticket_spending_enable": { + "type": "boolean" + } + }, + "required": [ + "proof_of_work_nonce_size", + "nonce_length", + "max_anon_ops_per_block", + "max_operation_data_length", + "max_proposals_per_delegate", + "max_micheline_node_count", + "max_micheline_bytes_limit", + "max_allowed_global_constants_depth", + "cache_layout_size", + "michelson_maximum_type_size", + "max_slashing_period", + "smart_rollup_max_wrapped_proof_binary_size", + "smart_rollup_message_size_limit", + "smart_rollup_max_number_of_messages_per_level", + "consensus_rights_delay", + "blocks_preservation_cycles", + "delegate_parameters_activation_delay", + "blocks_per_cycle", + "blocks_per_commitment", + "nonce_revelation_threshold", + "cycles_per_voting_period", + "hard_gas_limit_per_operation", + "hard_gas_limit_per_block", + "proof_of_work_threshold", + "minimal_stake", + "minimal_frozen_stake", + "vdf_difficulty", + "origination_size", + "issuance_weights", + "cost_per_byte", + "hard_storage_limit_per_operation", + "quorum_min", + "quorum_max", + "min_proposal_quorum", + "liquidity_baking_subsidy", + "liquidity_baking_toggle_ema_threshold", + "max_operations_time_to_live", + "minimal_block_delay", + "delay_increment_per_round", + "consensus_committee_size", + "consensus_threshold", + "minimal_participation_ratio", + "limit_of_delegation_over_baking", + "percentage_of_frozen_deposits_slashed_per_double_baking", + "percentage_of_frozen_deposits_slashed_per_double_attestation", + "max_slashing_per_block", + "max_slashing_threshold", + "cache_script_size", + "cache_stake_distribution_cycles", + "cache_sampler_state_cycles", + "dal_parametric", + "smart_rollup_arith_pvm_enable", + "smart_rollup_origination_size", + "smart_rollup_challenge_window_in_blocks", + "smart_rollup_stake_amount", + "smart_rollup_commitment_period_in_blocks", + "smart_rollup_max_lookahead_in_blocks", + "smart_rollup_max_active_outbox_levels", + "smart_rollup_max_outbox_messages_per_level", + "smart_rollup_number_of_sections_in_dissection", + "smart_rollup_timeout_period_in_blocks", + "smart_rollup_max_number_of_cemented_commitments", + "smart_rollup_max_number_of_parallel_games", + "smart_rollup_reveal_activation_level", + "smart_rollup_private_enable", + "smart_rollup_riscv_pvm_enable", + "zk_rollup_enable", + "zk_rollup_origination_size", + "zk_rollup_min_pending_to_process", + "zk_rollup_max_ticket_payload_size", + "global_limit_of_staking_over_baking", + "edge_of_staking_over_delegation", + "adaptive_issuance_launch_ema_threshold", + "adaptive_rewards_params", + "adaptive_issuance_activation_vote_enable", + "autostaking_enable", + "adaptive_issuance_force_activation", + "ns_enable", + "direct_ticket_spending_enable" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/constants/errors": { + "get": { + "description": "Schema for all the RPC errors from this protocol version", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/constants/parametric": { + "get": { + "description": "Parametric constants", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "consensus_rights_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "blocks_preservation_cycles": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "delegate_parameters_activation_delay": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "blocks_per_cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "blocks_per_commitment": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "nonce_revelation_threshold": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycles_per_voting_period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "hard_gas_limit_per_operation": { + "$ref": "#/components/schemas/bignum" + }, + "hard_gas_limit_per_block": { + "$ref": "#/components/schemas/bignum" + }, + "proof_of_work_threshold": { + "$ref": "#/components/schemas/int64" + }, + "minimal_stake": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "minimal_frozen_stake": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "vdf_difficulty": { + "$ref": "#/components/schemas/int64" + }, + "origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "issuance_weights": { + "type": "object", + "properties": { + "base_total_issued_per_minute": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "baking_reward_fixed_portion_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "baking_reward_bonus_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "attesting_reward_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "seed_nonce_revelation_tip_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "vdf_revelation_tip_weight": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "base_total_issued_per_minute", + "baking_reward_fixed_portion_weight", + "baking_reward_bonus_weight", + "attesting_reward_weight", + "seed_nonce_revelation_tip_weight", + "vdf_revelation_tip_weight" + ] + }, + "cost_per_byte": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "hard_storage_limit_per_operation": { + "$ref": "#/components/schemas/bignum" + }, + "quorum_min": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "quorum_max": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "min_proposal_quorum": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "liquidity_baking_subsidy": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "liquidity_baking_toggle_ema_threshold": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "max_operations_time_to_live": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + }, + "minimal_block_delay": { + "$ref": "#/components/schemas/int64" + }, + "delay_increment_per_round": { + "$ref": "#/components/schemas/int64" + }, + "consensus_committee_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "consensus_threshold": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "minimal_participation_ratio": { + "type": "object", + "properties": { + "numerator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "denominator": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "limit_of_delegation_over_baking": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "percentage_of_frozen_deposits_slashed_per_double_baking": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "percentage_of_frozen_deposits_slashed_per_double_attestation": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "max_slashing_per_block": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "max_slashing_threshold": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "testnet_dictator": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "initial_seed": { + "$ref": "#/components/schemas/random" + }, + "cache_script_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "cache_stake_distribution_cycles": { + "type": "integer", + "minimum": -128, + "maximum": 127 + }, + "cache_sampler_state_cycles": { + "type": "integer", + "minimum": -128, + "maximum": 127 + }, + "dal_parametric": { + "type": "object", + "properties": { + "feature_enable": { + "type": "boolean" + }, + "incentives_enable": { + "type": "boolean" + }, + "number_of_slots": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "attestation_lag": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "attestation_threshold": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "redundancy_factor": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_size": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "slot_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "number_of_shards": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "feature_enable", + "incentives_enable", + "number_of_slots", + "attestation_lag", + "attestation_threshold", + "redundancy_factor", + "page_size", + "slot_size", + "number_of_shards" + ] + }, + "smart_rollup_arith_pvm_enable": { + "type": "boolean" + }, + "smart_rollup_origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_challenge_window_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_stake_amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "smart_rollup_commitment_period_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_lookahead_in_blocks": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "smart_rollup_max_active_outbox_levels": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "smart_rollup_max_outbox_messages_per_level": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_number_of_sections_in_dissection": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "smart_rollup_timeout_period_in_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_number_of_cemented_commitments": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_max_number_of_parallel_games": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "smart_rollup_reveal_activation_level": { + "type": "object", + "properties": { + "raw_data": { + "type": "object", + "properties": { + "Blake2B": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "Blake2B" + ] + }, + "metadata": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_page": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_parameters": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "dal_attested_slots_validity_lag": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "raw_data", + "metadata", + "dal_page", + "dal_parameters", + "dal_attested_slots_validity_lag" + ] + }, + "smart_rollup_private_enable": { + "type": "boolean" + }, + "smart_rollup_riscv_pvm_enable": { + "type": "boolean" + }, + "zk_rollup_enable": { + "type": "boolean" + }, + "zk_rollup_origination_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "zk_rollup_min_pending_to_process": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "zk_rollup_max_ticket_payload_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "global_limit_of_staking_over_baking": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "edge_of_staking_over_delegation": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "adaptive_issuance_launch_ema_threshold": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "adaptive_rewards_params": { + "type": "object", + "properties": { + "issuance_ratio_final_min": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_final_max": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_initial_min": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "issuance_ratio_initial_max": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "initial_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "transition_period": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max_bonus": { + "$ref": "#/components/schemas/int64" + }, + "growth_rate": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "center_dz": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "radius_dz": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/bignum" + }, + "denominator": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + } + }, + "required": [ + "issuance_ratio_final_min", + "issuance_ratio_final_max", + "issuance_ratio_initial_min", + "issuance_ratio_initial_max", + "initial_period", + "transition_period", + "max_bonus", + "growth_rate", + "center_dz", + "radius_dz" + ] + }, + "adaptive_issuance_activation_vote_enable": { + "type": "boolean" + }, + "autostaking_enable": { + "type": "boolean" + }, + "adaptive_issuance_force_activation": { + "type": "boolean" + }, + "ns_enable": { + "type": "boolean" + }, + "direct_ticket_spending_enable": { + "type": "boolean" + } + }, + "required": [ + "consensus_rights_delay", + "blocks_preservation_cycles", + "delegate_parameters_activation_delay", + "blocks_per_cycle", + "blocks_per_commitment", + "nonce_revelation_threshold", + "cycles_per_voting_period", + "hard_gas_limit_per_operation", + "hard_gas_limit_per_block", + "proof_of_work_threshold", + "minimal_stake", + "minimal_frozen_stake", + "vdf_difficulty", + "origination_size", + "issuance_weights", + "cost_per_byte", + "hard_storage_limit_per_operation", + "quorum_min", + "quorum_max", + "min_proposal_quorum", + "liquidity_baking_subsidy", + "liquidity_baking_toggle_ema_threshold", + "max_operations_time_to_live", + "minimal_block_delay", + "delay_increment_per_round", + "consensus_committee_size", + "consensus_threshold", + "minimal_participation_ratio", + "limit_of_delegation_over_baking", + "percentage_of_frozen_deposits_slashed_per_double_baking", + "percentage_of_frozen_deposits_slashed_per_double_attestation", + "max_slashing_per_block", + "max_slashing_threshold", + "cache_script_size", + "cache_stake_distribution_cycles", + "cache_sampler_state_cycles", + "dal_parametric", + "smart_rollup_arith_pvm_enable", + "smart_rollup_origination_size", + "smart_rollup_challenge_window_in_blocks", + "smart_rollup_stake_amount", + "smart_rollup_commitment_period_in_blocks", + "smart_rollup_max_lookahead_in_blocks", + "smart_rollup_max_active_outbox_levels", + "smart_rollup_max_outbox_messages_per_level", + "smart_rollup_number_of_sections_in_dissection", + "smart_rollup_timeout_period_in_blocks", + "smart_rollup_max_number_of_cemented_commitments", + "smart_rollup_max_number_of_parallel_games", + "smart_rollup_reveal_activation_level", + "smart_rollup_private_enable", + "smart_rollup_riscv_pvm_enable", + "zk_rollup_enable", + "zk_rollup_origination_size", + "zk_rollup_min_pending_to_process", + "zk_rollup_max_ticket_payload_size", + "global_limit_of_staking_over_baking", + "edge_of_staking_over_delegation", + "adaptive_issuance_launch_ema_threshold", + "adaptive_rewards_params", + "adaptive_issuance_activation_vote_enable", + "autostaking_enable", + "adaptive_issuance_force_activation", + "ns_enable", + "direct_ticket_spending_enable" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts": { + "get": { + "description": "All existing contracts (excluding empty implicit contracts).", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}": { + "get": { + "description": "Access the complete status of a contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "normalize_types", + "in": "query", + "description": "Whether types should be normalized (annotations removed, combs flattened) or kept as they appeared in the original script.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "balance": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/021-PsQuebec.scripted.contracts" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "balance" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/all_ticket_balances": { + "get": { + "description": "Access the complete list of tickets owned by the given contract by scanning the contract's storage.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "amount": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "ticketer", + "content_type", + "content", + "amount" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/balance": { + "get": { + "description": "The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'spendable' RPC.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/balance_and_frozen_bonds": { + "get": { + "description": "The sum (in mutez) of the spendable balance and frozen bonds of a contract. Corresponds to the contract's full balance from which staked funds and unstake requests have been excluded. Identical to the 'spendable_and_frozen_bonds' RPC.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/big_map_get": { + "post": { + "description": "Access the value associated with a key in a big map of the contract (deprecated).", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "key", + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/counter": { + "get": { + "description": "Access the counter of a contract, if any.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/delegate": { + "get": { + "description": "Access the delegate of a contract, if any.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/entrypoints": { + "get": { + "description": "Return the list of entrypoints of the contract", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "normalize_types", + "in": "query", + "description": "Whether types should be normalized (annotations removed, combs flattened) or kept as they appeared in the original script.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "unreachable": { + "type": "array", + "items": { + "type": "object", + "properties": { + "path": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.michelson.v1.primitives" + } + } + }, + "required": [ + "path" + ] + } + }, + "entrypoints": { + "type": "object", + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + } + }, + "required": [ + "entrypoints" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/entrypoints/{entrypoint}": { + "get": { + "description": "Return the type of the given entrypoint of the contract", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "entrypoint", + "in": "path", + "description": "A Michelson entrypoint (string of length < 32)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "normalize_types", + "in": "query", + "description": "Whether types should be normalized (annotations removed, combs flattened) or kept as they appeared in the original script.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/estimated_own_pending_slashed_amount": { + "get": { + "description": "Returns the estimated own pending slashed amount (in mutez) of a given contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/frozen_bonds": { + "get": { + "description": "Access the frozen bonds of a contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/full_balance": { + "get": { + "description": "The full balance (in mutez) of the contract. Includes its spendable balance, staked tez, unstake requests, and frozen bonds. Even if the contract is a delegate, it does not include any staked or delegated tez owned by external delegators.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/manager_key": { + "get": { + "description": "Access the manager of an implicit contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/Signature.Public_key" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/script": { + "get": { + "description": "Access the code and data of the contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": {}, + "storage": {} + }, + "required": [ + "code", + "storage" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/script/normalized": { + "post": { + "description": "Access the script of the contract and normalize it using the requested unparsing mode.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "normalize_types": { + "type": "boolean" + } + }, + "required": [ + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/021-PsQuebec.scripted.contracts" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/single_sapling_get_diff": { + "get": { + "description": "Returns the root and a diff of a state starting from an optional offset which is zero by default.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "offset_commitment", + "in": "query", + "description": "Commitments and ciphertexts are returned from the specified offset up to the most recent.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset_nullifier", + "in": "query", + "description": "Nullifiers are returned from the specified offset up to the most recent.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "root": { + "$ref": "#/components/schemas/sapling.transaction.commitment_hash" + }, + "commitments_and_ciphertexts": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/sapling.transaction.commitment" + }, + { + "$ref": "#/components/schemas/sapling.transaction.ciphertext" + } + ] + } + } + }, + "nullifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sapling.transaction.nullifier" + } + } + }, + "required": [ + "root", + "commitments_and_ciphertexts", + "nullifiers" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/spendable": { + "get": { + "description": "The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'balance' RPC.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/spendable_and_frozen_bonds": { + "get": { + "description": "The sum (in mutez) of the spendable balance and frozen bonds of a contract. Corresponds to the contract's full balance from which staked funds and unstake requests have been excluded. Identical to the 'balance_and_frozen_bonds' RPC.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/staked_balance": { + "get": { + "description": "Access the staked balance of a contract (in mutez). Returns None if the contract is originated, or neither delegated nor a delegate.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/staking_numerator": { + "get": { + "description": "Returns an abstract representation of the contract's total_delegated_stake.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/storage": { + "get": { + "description": "Access the data of the contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/storage/normalized": { + "post": { + "description": "Access the data of the contract and normalize it using the requested unparsing mode.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + } + }, + "required": [ + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/storage/paid_space": { + "get": { + "description": "Access the paid storage space of the contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/storage/used_space": { + "get": { + "description": "Access the used storage space of the contract.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/ticket_balance": { + "post": { + "description": "Access the contract's balance of ticket with specified ticketer, content type, and content.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/unstake_requests": { + "get": { + "description": "Access the unstake requests of the contract. The requests that appear in the finalizable field can be finalized, which means that the contract can transfer these (no longer frozen) funds to their spendable balance with a [finalize_unstake] operation call. Returns None if there is no unstake request pending.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "finalizable": { + "type": "array", + "items": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "delegate", + "cycle", + "amount" + ] + } + }, + "unfinalizable": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "requests": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "cycle", + "amount" + ] + } + } + }, + "required": [ + "delegate", + "requests" + ] + } + }, + "required": [ + "finalizable", + "unfinalizable" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/unstaked_finalizable_balance": { + "get": { + "description": "Access the balance of a contract that was requested for an unstake operation, and is no longer frozen, which means it will appear in the spendable balance of the contract after any stake/unstake/finalize_unstake operation. Returns None if the contract is originated.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/contracts/{contract_id}/unstaked_frozen_balance": { + "get": { + "description": "Access the balance of a contract that was requested for an unstake operation, but is still frozen for the duration of the slashing period. Returns None if the contract is originated.", + "parameters": [ + { + "name": "contract_id", + "in": "path", + "description": "A contract identifier encoded in b58check.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/dal/commitments_history": { + "get": { + "description": "Returns the (currently last) DAL skip list cell if DAL is enabled, or [None] otherwise.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "title": "dal_skip_list_legacy", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_skip_list_legacy" + ] + }, + "skip_list": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "skip_list" + ] + }, + { + "title": "dal_skip_list", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_skip_list" + ] + }, + "skip_list": { + "type": "object", + "properties": { + "index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "content": { + "oneOf": [ + { + "title": "unattested", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "unattested" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "kind", + "level", + "index" + ] + }, + { + "title": "attested", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attested" + ] + }, + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "kind", + "version", + "level", + "index", + "commitment" + ] + } + ] + }, + "back_pointers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/dal_skip_list_pointer" + } + } + }, + "required": [ + "index", + "content", + "back_pointers" + ] + } + }, + "required": [ + "kind", + "skip_list" + ] + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/dal/published_slot_headers": { + "get": { + "description": "Get the published slots headers for the given level", + "parameters": [ + { + "name": "level", + "in": "query", + "description": "A level integer", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "version", + "level", + "index", + "commitment" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/dal/shards": { + "get": { + "description": "Get the shards assignment for a given level (the default is the current level) and given delegates (the default is all delegates)", + "parameters": [ + { + "name": "level", + "in": "query", + "description": "A level integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "delegates", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "indexes": { + "type": "array", + "items": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + } + }, + "required": [ + "delegate", + "indexes" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates": { + "get": { + "description": "Lists all registered delegates by default. The arguments `active`, `inactive`, `with_minimal_stake`, and `without_minimal_stake` allow to enumerate only the delegates that are active, inactive, have at least a minimal stake to participate in consensus and in governance, or do not have such a minimal stake, respectively. Note, setting these arguments to false has no effect.", + "parameters": [ + { + "name": "active", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "inactive", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "with_minimal_stake", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "without_minimal_stake", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}": { + "get": { + "description": "Everything about a delegate. Gathers the outputs of all RPCs with the ../delegates/ prefix.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "deactivated": { + "type": "boolean" + }, + "is_forbidden": { + "type": "boolean" + }, + "participation": { + "type": "object", + "properties": { + "expected_cycle_activity": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "minimal_cycle_activity": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "missed_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "missed_levels": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "remaining_allowed_missed_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "expected_attesting_rewards": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "expected_cycle_activity", + "minimal_cycle_activity", + "missed_slots", + "missed_levels", + "remaining_allowed_missed_slots", + "expected_attesting_rewards" + ] + }, + "grace_period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "active_staking_parameters": { + "type": "object", + "properties": { + "limit_of_staking_over_baking_millionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "edge_of_baking_over_staking_billionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "limit_of_staking_over_baking_millionth", + "edge_of_baking_over_staking_billionth" + ] + }, + "pending_staking_parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "parameters": { + "type": "object", + "properties": { + "limit_of_staking_over_baking_millionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "edge_of_baking_over_staking_billionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "limit_of_staking_over_baking_millionth", + "edge_of_baking_over_staking_billionth" + ] + } + }, + "required": [ + "cycle", + "parameters" + ] + } + }, + "baking_power": { + "$ref": "#/components/schemas/int64" + }, + "total_staked": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "total_delegated": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "min_delegated_in_current_cycle": { + "type": "object", + "properties": { + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "level": { + "type": "object", + "properties": { + "level": { + "description": "The level of the block relative to genesis. This is also the Shell's notion of level.", + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "level_position": { + "description": "The level of the block relative to the successor of the genesis block. More precisely, it is the position of the block relative to the block that starts the \"Alpha family\" of protocols, which includes all protocols except Genesis (that is, from 001 onwards).", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle": { + "description": "The current cycle's number. Note that cycles are a protocol-specific notion. As a result, the cycle number starts at 0 with the first block of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle_position": { + "description": "The current level of the block relative to the first block of the current cycle.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "expected_commitment": { + "description": "Tells whether the baker of this block has to commit a seed nonce hash.", + "type": "boolean" + } + }, + "required": [ + "level", + "level_position", + "cycle", + "cycle_position", + "expected_commitment" + ] + } + }, + "required": [ + "amount" + ] + }, + "own_full_balance": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "own_staked": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "own_delegated": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "external_staked": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "external_delegated": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "total_unstaked_per_cycle": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "deposit": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "cycle", + "deposit" + ] + } + }, + "denunciations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "operation_hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "rewarded": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "misbehaviour": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "kind": { + "type": "string", + "enum": [ + "attestation", + "block", + "preattestation" + ] + } + }, + "required": [ + "level", + "round", + "kind" + ] + } + }, + "required": [ + "operation_hash", + "rewarded", + "misbehaviour" + ] + } + }, + "estimated_shared_pending_slashed_amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "staking_denominator": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "current_voting_power": { + "$ref": "#/components/schemas/int64" + }, + "voting_power": { + "$ref": "#/components/schemas/int64" + }, + "voting_info": { + "type": "object", + "properties": { + "voting_power": { + "$ref": "#/components/schemas/int64" + }, + "current_ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + }, + "current_proposals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "remaining_proposals": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + }, + "consensus_key": { + "type": "object", + "properties": { + "active": { + "type": "object", + "properties": { + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "pkh", + "pk" + ] + }, + "pendings": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "cycle", + "pkh", + "pk" + ] + } + } + }, + "required": [ + "active" + ] + }, + "stakers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "staker": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.implicit" + }, + "frozen_deposits": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "staker", + "frozen_deposits" + ] + } + }, + "delegators": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + } + } + }, + "required": [ + "deactivated", + "is_forbidden", + "participation", + "grace_period", + "active_staking_parameters", + "pending_staking_parameters", + "baking_power", + "total_staked", + "total_delegated", + "min_delegated_in_current_cycle", + "own_full_balance", + "own_staked", + "own_delegated", + "external_staked", + "external_delegated", + "total_unstaked_per_cycle", + "denunciations", + "estimated_shared_pending_slashed_amount", + "staking_denominator", + "current_voting_power", + "voting_power", + "voting_info", + "consensus_key", + "stakers", + "delegators" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/active_staking_parameters": { + "get": { + "description": "Returns the currently active staking parameters for the given delegate.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "limit_of_staking_over_baking_millionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "edge_of_baking_over_staking_billionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "limit_of_staking_over_baking_millionth", + "edge_of_baking_over_staking_billionth" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/baking_power": { + "get": { + "description": "The current baking power of a delegate, using the current staked and delegated balances of the baker and its delegators. In other words, the baking rights that the baker would get for a future cycle if the current cycle ended right at the current block.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/consensus_key": { + "get": { + "description": "The active consensus key for a given delegate and the pending consensus keys.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "active": { + "type": "object", + "properties": { + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "pkh", + "pk" + ] + }, + "pendings": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "cycle", + "pkh", + "pk" + ] + } + } + }, + "required": [ + "active" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/current_baking_power": { + "get": { + "description": "DEPRECATED; use baking_power instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/current_frozen_deposits": { + "get": { + "description": "DEPRECATED; use total_staked instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/current_voting_power": { + "get": { + "description": "The voting power of a given delegate, as computed from its current stake.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/deactivated": { + "get": { + "description": "Tells whether the delegate is currently tagged as deactivated or not.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/delegated_balance": { + "get": { + "description": "DEPRECATED; to get this value, you can call RPCs external_staked and external_delegated, and add their outputs together.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/delegated_contracts": { + "get": { + "description": "DEPRECATED; use delegators instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/delegators": { + "get": { + "description": "The list of all contracts that are currently delegating to the delegate. Includes both user accounts and smart contracts. Includes the delegate itself.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/denunciations": { + "get": { + "description": "Returns the pending denunciations for the given delegate.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "operation_hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "rewarded": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "misbehaviour": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "kind": { + "type": "string", + "enum": [ + "attestation", + "block", + "preattestation" + ] + } + }, + "required": [ + "level", + "round", + "kind" + ] + } + }, + "required": [ + "operation_hash", + "rewarded", + "misbehaviour" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/estimated_shared_pending_slashed_amount": { + "get": { + "description": "Returns the estimated shared pending slashed amount (in mutez) of a given delegate.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/external_delegated": { + "get": { + "description": "The sum (in mutez) of non-staked tokens that currently count as delegated to the baker, excluding those owned by the baker iself. Does not take limits such as overstaking or overdelegation into account. This includes the spendable balances and frozen bonds of all the baker's external delegators. It also includes unstake requests of contracts other than the baker, on the condition that the contract was delegating to the baker at the time of the unstake operation. So this includes most but not all unstake requests from current delegators, and might include some unstake requests from old delegators. Limits such as overstaking and overdelegation have not been applied yet.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/external_staked": { + "get": { + "description": "The sum (in mutez) of all tokens currently staked by the baker's external delegators. This excludes the baker's own staked tokens.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/frozen_deposits": { + "get": { + "description": "DEPRECATED; call RPC total_staked on the last block of (current_cycle - 3) instead. Returns the total amount (in mutez) that was staked for the baker by all stakers (including the baker itself) at the time the staking rights for the current cycle were computed.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/frozen_deposits_limit": { + "get": { + "description": "DEPRECATED; the frozen deposits limit has no effects since the activation of Adaptive Issuance and Staking during the Paris protocol.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/full_balance": { + "get": { + "description": "DEPRECATED; use own_full_balance instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/grace_period": { + "get": { + "description": "Returns the cycle by the end of which the delegate might be deactivated if she fails to execute any delegate action. A deactivated delegate might be reactivated (without loosing any stake) by simply re-registering as a delegate. For deactivated delegates, this value contains the cycle at which they were deactivated.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/is_forbidden": { + "get": { + "description": "Returns true if the delegate is forbidden to participate in consensus.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/min_delegated_in_current_cycle": { + "get": { + "description": "Returns the minimum of delegated tez (in mutez) during the current cycle and the block level at the end of which the minimum was reached. This only takes into account the value of `total_delegated` at the end of each block, not in the middle of applying operations. This is the delegated amount that would be used to compute the delegate's future baking rights if the cycle ended at the current block. If the minimum was reached multiple times, the returned level is the earliest level of the current cycle that reached this minimum. For instance, if `total_delegated` hasn't changed at all since the beginning of the current cycle, returns the first level of the current cycle. (If the contract is not registered as a delegate, returns 0 mutez and omits the level.)", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "level": { + "type": "object", + "properties": { + "level": { + "description": "The level of the block relative to genesis. This is also the Shell's notion of level.", + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "level_position": { + "description": "The level of the block relative to the successor of the genesis block. More precisely, it is the position of the block relative to the block that starts the \"Alpha family\" of protocols, which includes all protocols except Genesis (that is, from 001 onwards).", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle": { + "description": "The current cycle's number. Note that cycles are a protocol-specific notion. As a result, the cycle number starts at 0 with the first block of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle_position": { + "description": "The current level of the block relative to the first block of the current cycle.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "expected_commitment": { + "description": "Tells whether the baker of this block has to commit a seed nonce hash.", + "type": "boolean" + } + }, + "required": [ + "level", + "level_position", + "cycle", + "cycle_position", + "expected_commitment" + ] + } + }, + "required": [ + "amount" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/own_delegated": { + "get": { + "description": "The amount (in mutez) currently owned by the baker itself and counting as delegated for the purpose of baking rights. This corresponds to all non-staked tokens owned by the baker: spendable balance, frozen bonds, and unstake requests. (Note: There is one exception: if the baker still has unstake requests created at a time when it was delegating to a different delegate, then these unstake requests still count as delegated to the former delegate. Any such unstake requests are excluded from the amount returned by the present RPC, despite being non-staked tokens owned by the baker.)", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/own_full_balance": { + "get": { + "description": "The full balance (in mutez) of tokens owned by the delegate itself. Includes its spendable balance, staked tez, unstake requests, and frozen bonds. Does not include any tokens owned by external delegators. This RPC fails when the pkh is not a delegate. When it is a delegate, this RPC outputs the same amount as ..//context/contracts//full_balance.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/own_staked": { + "get": { + "description": "The amount (in mutez) currently owned and staked by the baker itself. Returns the same value as ..//context/contracts//staked_balance (except for the fact that the present RPC fails if the public_key_hash in the path is not a delegate).", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/participation": { + "get": { + "description": "Returns cycle and level participation information. In particular this indicates, in the field 'expected_cycle_activity', the number of slots the delegate is expected to have in the cycle based on its active stake. The field 'minimal_cycle_activity' indicates the minimal attesting slots in the cycle required to get attesting rewards. It is computed based on 'expected_cycle_activity. The fields 'missed_slots' and 'missed_levels' indicate the number of missed attesting slots and missed levels (for attesting) in the cycle so far. 'missed_slots' indicates the number of missed attesting slots in the cycle so far. The field 'remaining_allowed_missed_slots' indicates the remaining amount of attesting slots that can be missed in the cycle before forfeiting the rewards. Finally, 'expected_attesting_rewards' indicates the attesting rewards that will be distributed at the end of the cycle if activity at that point will be greater than the minimal required; if the activity is already known to be below the required minimum, then the rewards are zero.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "expected_cycle_activity": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "minimal_cycle_activity": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "missed_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "missed_levels": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "remaining_allowed_missed_slots": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "expected_attesting_rewards": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "expected_cycle_activity", + "minimal_cycle_activity", + "missed_slots", + "missed_levels", + "remaining_allowed_missed_slots", + "expected_attesting_rewards" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/pending_staking_parameters": { + "get": { + "description": "Returns the pending values for the given delegate's staking parameters.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "parameters": { + "type": "object", + "properties": { + "limit_of_staking_over_baking_millionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "edge_of_baking_over_staking_billionth": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "limit_of_staking_over_baking_millionth", + "edge_of_baking_over_staking_billionth" + ] + } + }, + "required": [ + "cycle", + "parameters" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/stakers": { + "get": { + "description": "Returns the list of accounts that stake to a given delegate together with their share of the frozen deposits.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "staker": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.implicit" + }, + "frozen_deposits": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "staker", + "frozen_deposits" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/staking_balance": { + "get": { + "description": "DEPRECATED; to get this value, you can call RPCs total_staked and total_delegated, and add their outputs together.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/staking_denominator": { + "get": { + "description": "Returns an abstract representation of the total delegated stake.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/total_delegated": { + "get": { + "description": "All tokens (in mutez) that currently count as delegated for the purpose of computing the baker's rights; they weigh half as much as staked tez in the rights. Limits such as overstaking and overdelegation have not been applied yet. This corresponds to all non-staked tez owned by the baker's delegators (including the baker itself): spendable balances, frozen bonds, and unstaked requests, except for any unstake requests that have been created before the delegator changed its delegate to the current baker (because they still count as delegated for the old delegate instead).", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/total_delegated_stake": { + "get": { + "description": "DEPRECATED; use external_staked instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/total_staked": { + "get": { + "description": "The total amount (in mutez) currently staked for the baker, both by the baker itself and by external stakers. This is the staked amount before applying the baker's 'limit_of_staking_over_baking'; in other words, it includes overstaked tez if there are any.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/total_unstaked_per_cycle": { + "get": { + "description": "For each cycle, returns the total amount (in mutez) contained in all unstake requests created during this cycle by all delegators, including the baker itself. Note that these tokens count as delegated to the baker for the purpose of computing baking rights, and are included in the amount returned by the total_delegated RPC.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "deposit": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "cycle", + "deposit" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/unstaked_frozen_deposits": { + "get": { + "description": "DEPRECATED; use total_unstaked_per_cycle instead.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "deposit": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "cycle", + "deposit" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/voting_info": { + "get": { + "description": "Returns the delegate info (e.g. voting power) found in the listings of the current voting period.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "voting_power": { + "$ref": "#/components/schemas/int64" + }, + "current_ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + }, + "current_proposals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "remaining_proposals": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/delegates/{pkh}/voting_power": { + "get": { + "description": "The voting power in the vote listings for a given delegate.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/denunciations": { + "get": { + "description": "Returns the denunciations for misbehavior in the current cycle.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "slashed_delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "operation_hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "rewarded": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "misbehaviour": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "kind": { + "type": "string", + "enum": [ + "attestation", + "block", + "preattestation" + ] + } + }, + "required": [ + "level", + "round", + "kind" + ] + } + }, + "required": [ + "slashed_delegate", + "operation_hash", + "rewarded", + "misbehaviour" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/issuance/current_yearly_rate": { + "get": { + "description": "Returns the current expected maximum yearly issuance rate (in %). The value only includes participation rewards (and does not include liquidity baking)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Universal string representation", + "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "invalid_utf8_string": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + }, + "required": [ + "invalid_utf8_string" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/issuance/current_yearly_rate_details": { + "get": { + "description": "Returns the static and dynamic parts of the current expected maximum yearly issuance rate (in %). The value only includes participation rewards (and does not include liquidity baking)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "static": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/positive_bignum" + }, + "denominator": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + }, + "dynamic": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/positive_bignum" + }, + "denominator": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + } + }, + "required": [ + "static", + "dynamic" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/issuance/current_yearly_rate_exact": { + "get": { + "description": "Returns the current expected maximum yearly issuance rate (exact quotient) (in %). The value only includes participation rewards (and does not include liquidity baking)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "numerator": { + "$ref": "#/components/schemas/positive_bignum" + }, + "denominator": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "numerator", + "denominator" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/issuance/expected_issuance": { + "get": { + "description": "Returns the expected issued tez for the provided block and the next 'consensus_rights_delay' cycles (in mutez)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "baking_reward_fixed_portion": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "baking_reward_bonus_per_slot": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "attesting_reward_per_slot": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "seed_nonce_revelation_tip": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "vdf_revelation_tip": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "cycle", + "baking_reward_fixed_portion", + "baking_reward_bonus_per_slot", + "attesting_reward_per_slot", + "seed_nonce_revelation_tip", + "vdf_revelation_tip" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/issuance/issuance_per_minute": { + "get": { + "description": "Returns the current expected maximum issuance per minute (in mutez). The value only includes participation rewards (and does not include liquidity baking)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/liquidity_baking/cpmm_address": { + "get": { + "description": "Liquidity baking CPMM address", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A contract handle -- originated account", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/merkle_tree": { + "get": { + "description": "Returns the merkle tree of a piece of context.", + "parameters": [ + { + "name": "holey", + "in": "query", + "description": "Send only hashes, omit data of key", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/merkle_tree" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/merkle_tree_v2": { + "get": { + "description": "Returns the Irmin merkle tree of a piece of context.", + "parameters": [ + { + "name": "holey", + "in": "query", + "description": "Send only hashes, omit data of key", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "version": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + }, + "before": { + "oneOf": [ + { + "title": "Value", + "type": "object", + "properties": { + "value": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "value" + ] + }, + { + "title": "Node", + "type": "object", + "properties": { + "node": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "node" + ] + } + ] + }, + "after": { + "oneOf": [ + { + "title": "Value", + "type": "object", + "properties": { + "value": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "value" + ] + }, + { + "title": "Node", + "type": "object", + "properties": { + "node": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "node" + ] + } + ] + }, + "state": { + "$ref": "#/components/schemas/tree_encoding" + } + }, + "required": [ + "version", + "before", + "after", + "state" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/nonces/{block_level}": { + "get": { + "description": "Info about the nonce of a previous block.", + "parameters": [ + { + "name": "block_level", + "in": "path", + "description": "A level integer", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Revealed", + "type": "object", + "properties": { + "nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "nonce" + ] + }, + { + "title": "Missing", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/cycle_nonce" + } + }, + "required": [ + "hash" + ] + }, + { + "title": "Forgotten", + "type": "object", + "properties": {} + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/raw/bytes": { + "get": { + "description": "Returns the raw context.", + "parameters": [ + { + "name": "depth", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/raw_context" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/sapling/{sapling_state_id}/get_diff": { + "get": { + "description": "Returns the root and a diff of a state starting from an optional offset which is zero by default.", + "parameters": [ + { + "name": "sapling_state_id", + "in": "path", + "description": "A sapling state identifier", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "offset_commitment", + "in": "query", + "description": "Commitments and ciphertexts are returned from the specified offset up to the most recent.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "offset_nullifier", + "in": "query", + "description": "Nullifiers are returned from the specified offset up to the most recent.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "root": { + "$ref": "#/components/schemas/sapling.transaction.commitment_hash" + }, + "commitments_and_ciphertexts": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/sapling.transaction.commitment" + }, + { + "$ref": "#/components/schemas/sapling.transaction.ciphertext" + } + ] + } + } + }, + "nullifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sapling.transaction.nullifier" + } + } + }, + "required": [ + "root", + "commitments_and_ciphertexts", + "nullifiers" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/seed": { + "post": { + "description": "Seed of the cycle to which the block belongs.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/seed_computation": { + "get": { + "description": "Seed computation status", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Nonce revelation stage", + "type": "object", + "properties": { + "nonce_revelation_stage": {} + }, + "required": [ + "nonce_revelation_stage" + ] + }, + { + "title": "VDF revelation stage", + "type": "object", + "properties": { + "seed_discriminant": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "seed_challenge": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "seed_discriminant", + "seed_challenge" + ] + }, + { + "title": "Computation finished", + "type": "object", + "properties": { + "computation_finished": {} + }, + "required": [ + "computation_finished" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/all": { + "get": { + "description": "List of all originated smart rollups", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/smart_rollup_address" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/all/inbox": { + "get": { + "description": "Inbox for the smart rollups", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "old_levels_messages": { + "type": "object", + "properties": { + "index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "content": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/smart_rollup_merkelized_payload_hashes_hash" + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "hash", + "level" + ] + }, + "back_pointers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/smart_rollup_inbox_hash" + } + } + }, + "required": [ + "index", + "content", + "back_pointers" + ] + } + }, + "required": [ + "level", + "old_levels_messages" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/commitment/{smart_rollup_commitment_hash}": { + "get": { + "description": "Commitment for a smart rollup from its hash", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "smart_rollup_commitment_hash", + "in": "path", + "description": "smart_rollup_commitment_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/commitment/{smart_rollup_commitment_hash}/can_be_cemented": { + "get": { + "description": "Returns true if and only if the provided commitment can be cemented.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "smart_rollup_commitment_hash", + "in": "path", + "description": "smart_rollup_commitment_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/commitment/{smart_rollup_commitment_hash}/stakers_indexes": { + "get": { + "description": "List of stakers indexes staking on a given commitment", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "smart_rollup_commitment_hash", + "in": "path", + "description": "smart_rollup_commitment_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/consumed_outputs/{block_level}": { + "get": { + "description": "Return the known consumed outputs of a smart rollup.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "block_level", + "in": "path", + "description": "A level integer", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/genesis_info": { + "get": { + "description": "Genesis information (level and commitment hash) for a smart rollup", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "level", + "commitment_hash" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/inbox_level/{block_level}/commitments": { + "get": { + "description": "List of commitments associated to a rollup for a given inbox level", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "block_level", + "in": "path", + "description": "A level integer", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "array", + "items": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/kind": { + "get": { + "description": "Kind of smart rollup", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "enum": [ + "wasm_2_0_0", + "arith", + "riscv" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/last_cemented_commitment_hash_with_level": { + "get": { + "description": "Level and hash of the last cemented commitment for a smart rollup", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "hash", + "level" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/last_whitelist_update": { + "get": { + "description": "Last whitelist update for private smart rollups. If the output is None then the rollup is public.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "message_index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "outbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "message_index", + "outbox_level" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/conflicts": { + "get": { + "description": "List of stakers in conflict with the given staker", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "other": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "their_commitment": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + }, + "our_commitment": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + }, + "parent_commitment": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "other", + "their_commitment", + "our_commitment", + "parent_commitment" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/games": { + "get": { + "description": "Ongoing refutation games for a given staker", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "game": { + "type": "object", + "properties": { + "turn": { + "oneOf": [ + { + "title": "Alice", + "type": "string", + "enum": [ + "alice" + ] + }, + { + "title": "Bob", + "type": "string", + "enum": [ + "bob" + ] + } + ] + }, + "inbox_snapshot": { + "type": "object", + "properties": { + "index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "content": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/smart_rollup_merkelized_payload_hashes_hash" + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "hash", + "level" + ] + }, + "back_pointers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/smart_rollup_inbox_hash" + } + } + }, + "required": [ + "index", + "content", + "back_pointers" + ] + }, + "dal_snapshot": { + "oneOf": [ + { + "title": "dal_skip_list_legacy", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_skip_list_legacy" + ] + }, + "skip_list": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "skip_list" + ] + }, + { + "title": "dal_skip_list", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_skip_list" + ] + }, + "skip_list": { + "type": "object", + "properties": { + "index": { + "$ref": "#/components/schemas/positive_bignum" + }, + "content": { + "oneOf": [ + { + "title": "unattested", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "unattested" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "kind", + "level", + "index" + ] + }, + { + "title": "attested", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attested" + ] + }, + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "kind", + "version", + "level", + "index", + "commitment" + ] + } + ] + }, + "back_pointers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/dal_skip_list_pointer" + } + } + }, + "required": [ + "index", + "content", + "back_pointers" + ] + } + }, + "required": [ + "kind", + "skip_list" + ] + } + ] + }, + "start_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "game_state": { + "oneOf": [ + { + "title": "Dissecting", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "Dissecting" + ] + }, + "dissection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + } + }, + "default_number_of_sections": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "kind", + "dissection", + "default_number_of_sections" + ] + }, + { + "title": "Final_move", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "Final_move" + ] + }, + "agreed_start_chunk": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + }, + "refuted_stop_chunk": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + } + }, + "required": [ + "kind", + "agreed_start_chunk", + "refuted_stop_chunk" + ] + } + ] + } + }, + "required": [ + "turn", + "inbox_snapshot", + "dal_snapshot", + "start_level", + "inbox_level", + "game_state" + ] + }, + "alice": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "bob": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "game", + "alice", + "bob" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/index": { + "get": { + "description": "Staker index associated to a public key hash for a given rollup", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker/{pkh}/staked_on_commitment": { + "get": { + "description": "The newest commitment on which the operator has staked on for a smart rollup. Note that is can return a commitment that is before the last cemented one.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "hash", + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker1/{staker1_pkh}/staker2/{staker2_pkh}/timeout": { + "get": { + "description": "Returns the timeout of players.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "staker1_pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "staker2_pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "alice": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "bob": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "last_turn_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "alice", + "bob", + "last_turn_level" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/staker1/{staker1_pkh}/staker2/{staker2_pkh}/timeout_reached": { + "get": { + "description": "Returns whether the timeout creates a result for the game.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "staker1_pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "staker2_pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "title": "Loser", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "loser" + ] + }, + "reason": { + "oneOf": [ + { + "title": "Conflict_resolved", + "type": "string", + "enum": [ + "conflict_resolved" + ] + }, + { + "title": "Timeout", + "type": "string", + "enum": [ + "timeout" + ] + } + ] + }, + "player": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "reason", + "player" + ] + }, + { + "title": "Draw", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "draw" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/stakers": { + "get": { + "description": "List of active stakers' public key hashes of a rollup", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/ticket_balance": { + "post": { + "description": "Access the smart rollup's balance of ticket with specified ticketer, content type, and content.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/smart_rollups/smart_rollup/{smart_rollup_address}/whitelist": { + "get": { + "description": "Whitelist for private smart rollups. If the output is None then the rollup is public.", + "parameters": [ + { + "name": "smart_rollup_address", + "in": "path", + "description": "smart_rollup_address (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/total_currently_staked": { + "get": { + "description": "Returns the amount of staked tez by delegates, delegators or overstaked.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "delegates": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "delegators": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "overstaked": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "delegates", + "delegators", + "overstaked" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/total_frozen_stake": { + "get": { + "description": "Returns the total stake (in mutez) frozen on the chain", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/context/total_supply": { + "get": { + "description": "Returns the total supply (in mutez) available on the chain", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/positive_bignum" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/hash": { + "get": { + "description": "The block's hash, its unique identifier.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A block identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/header": { + "get": { + "description": "The whole block header.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "content": { + "oneOf": [ + { + "title": "Activate", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters" + ] + }, + { + "title": "Activate_testchain", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate_testchain" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "validity_time": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters", + "validity_time" + ] + } + ] + }, + "signature": { + "$ref": "#/components/schemas/Signature.V0" + } + }, + "required": [ + "protocol", + "chain_id", + "hash", + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "content", + "signature" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/header/protocol_data": { + "get": { + "description": "The version-specific fragment of the block header.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "content": { + "oneOf": [ + { + "title": "Activate", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters" + ] + }, + { + "title": "Activate_testchain", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate_testchain" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "validity_time": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters", + "validity_time" + ] + } + ] + }, + "signature": { + "$ref": "#/components/schemas/Signature.V0" + } + }, + "required": [ + "protocol", + "content", + "signature" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/header/protocol_data/raw": { + "get": { + "description": "The version-specific fragment of the block header (unparsed).", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/header/raw": { + "get": { + "description": "The whole block header (unparsed).", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/header/shell": { + "get": { + "description": "The shell-specific fragment of the block header.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/attestation_rights": { + "get": { + "description": "Retrieves the delegates allowed to attest a block.\nBy default, it gives the attestation power for delegates that have at least one attestation slot for the next block.\nParameters `level` and `cycle` can be used to specify the (valid) level(s) in the past or future at which the attestation rights have to be returned. Parameter `delegate` can be used to restrict the results to the given delegates.\nParameter `consensus_key` can be used to restrict the results to the given consensus_keys. \nReturns the smallest attestation slots and the attestation power. Also returns the minimal timestamp that corresponds to attestation at the given level. The timestamps are omitted for levels in the past, and are only estimates for levels higher that the next block's, based on the hypothesis that all predecessor blocks were baked at the first round.", + "parameters": [ + { + "name": "level", + "in": "query", + "description": "A level integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "cycle", + "in": "query", + "description": "A cycle integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "delegate", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "consensus_key", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "delegates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "first_slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "attestation_power": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate", + "first_slot", + "attestation_power", + "consensus_key" + ] + } + }, + "estimated_time": { + "$ref": "#/components/schemas/timestamp.protocol" + } + }, + "required": [ + "level", + "delegates" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/baking_rights": { + "get": { + "description": "Retrieves the list of delegates allowed to bake a block.\nBy default, it gives the best baking opportunities (in terms of rounds) for bakers that have at least one opportunity below the 64th round for the next block.\nParameters `level` and `cycle` can be used to specify the (valid) level(s) in the past or future at which the baking rights have to be returned.\nParameter `delegate` can be used to restrict the results to the given delegates. Parameter `consensus_key` can be used to restrict the results to the given consensus_keys. If parameter `all` is set, all the baking opportunities for each baker at each level are returned, instead of just the first one.\nReturns the list of baking opportunities up to round 64. Also returns the minimal timestamps that correspond to these opportunities. The timestamps are omitted for levels in the past, and are only estimates for levels higher that the next block's, based on the hypothesis that all predecessor blocks were baked at the first round.", + "parameters": [ + { + "name": "level", + "in": "query", + "description": "A level integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "cycle", + "in": "query", + "description": "A cycle integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "delegate", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "consensus_key", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "max_round", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "all", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "estimated_time": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "level", + "delegate", + "round", + "consensus_key" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/complete/{prefix}": { + "get": { + "description": "Try to complete a prefix of a Base58Check-encoded data. This RPC is actually able to complete hashes of block, operations, public_keys and contracts.", + "parameters": [ + { + "name": "prefix", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/current_level": { + "get": { + "description": "Returns the level of the interrogated block, or the one of a block located `offset` blocks after it in the chain. For instance, the next block if `offset` is 1. The offset cannot be negative.", + "parameters": [ + { + "name": "offset", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "level": { + "description": "The level of the block relative to genesis. This is also the Shell's notion of level.", + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "level_position": { + "description": "The level of the block relative to the successor of the genesis block. More precisely, it is the position of the block relative to the block that starts the \"Alpha family\" of protocols, which includes all protocols except Genesis (that is, from 001 onwards).", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle": { + "description": "The current cycle's number. Note that cycles are a protocol-specific notion. As a result, the cycle number starts at 0 with the first block of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "cycle_position": { + "description": "The current level of the block relative to the first block of the current cycle.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "expected_commitment": { + "description": "Tells whether the baker of this block has to commit a seed nonce hash.", + "type": "boolean" + } + }, + "required": [ + "level", + "level_position", + "cycle", + "cycle_position", + "expected_commitment" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge/operations": { + "post": { + "description": "Forge an operation", + "requestBody": { + "content": { + "application/json": { + "schema": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + } + }, + "required": [ + "branch", + "contents" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge/protocol_data": { + "post": { + "description": "Forge the protocol-specific part of a block header", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "payload_round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "nonce_hash": { + "$ref": "#/components/schemas/cycle_nonce" + }, + "proof_of_work_nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "per_block_votes": { + "$ref": "#/components/schemas/021-PsQuebec.per_block_votes" + } + }, + "required": [ + "payload_hash", + "payload_round" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "protocol_data" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/forge_block_header": { + "post": { + "description": "Forge a block header", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "Block header", + "description": "Block header. It contains both shell and protocol specific data.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "protocol_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "protocol_data" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "block": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "block" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/levels_in_current_cycle": { + "get": { + "description": "Levels of a cycle", + "parameters": [ + { + "name": "offset", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "first": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "last": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + } + }, + "required": [ + "first", + "last" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/parse/block": { + "post": { + "description": "Parse a block", + "requestBody": { + "content": { + "application/json": { + "schema": { + "title": "Block header", + "description": "Block header. It contains both shell and protocol specific data.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "protocol_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "protocol_data" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "payload_round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proof_of_work_nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "seed_nonce_hash": { + "$ref": "#/components/schemas/cycle_nonce" + }, + "liquidity_baking_toggle_vote": { + "$ref": "#/components/schemas/021-PsQuebec.liquidity_baking_vote" + }, + "adaptive_issuance_vote": { + "$ref": "#/components/schemas/021-PsQuebec.adaptive_issuance_vote" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "payload_hash", + "payload_round", + "proof_of_work_nonce", + "liquidity_baking_toggle_vote", + "adaptive_issuance_vote", + "signature" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/parse/operations": { + "post": { + "description": "Parse operations", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC version is version '1'", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + }, + "check_signature": { + "type": "boolean" + } + }, + "required": [ + "operations" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "contents" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/preapply/block": { + "post": { + "description": "Simulate the validation of a block that would contain the given operations and return the resulting fitness and context hash.", + "parameters": [ + { + "name": "sort", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "timestamp", + "in": "query", + "description": "A date in seconds from epoch", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol_data": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg" + ] + }, + "payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "payload_round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proof_of_work_nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "seed_nonce_hash": { + "$ref": "#/components/schemas/cycle_nonce" + }, + "liquidity_baking_toggle_vote": { + "$ref": "#/components/schemas/021-PsQuebec.liquidity_baking_vote" + }, + "adaptive_issuance_vote": { + "$ref": "#/components/schemas/021-PsQuebec.adaptive_issuance_vote" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "protocol", + "payload_hash", + "payload_round", + "proof_of_work_nonce", + "liquidity_baking_toggle_vote", + "adaptive_issuance_vote", + "signature" + ] + }, + "operations": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/next_operation" + } + } + } + }, + "required": [ + "protocol_data", + "operations" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "shell_header": { + "$ref": "#/components/schemas/block_header.shell" + }, + "operations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "applied": { + "type": "array", + "items": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "hash", + "branch", + "data" + ] + } + }, + "refused": { + "type": "array", + "items": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "branch", + "data", + "error" + ] + } + }, + "outdated": { + "type": "array", + "items": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "branch", + "data", + "error" + ] + } + }, + "branch_refused": { + "type": "array", + "items": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "branch", + "data", + "error" + ] + } + }, + "branch_delayed": { + "type": "array", + "items": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "error": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "hash", + "branch", + "data", + "error" + ] + } + } + }, + "required": [ + "applied", + "refused", + "outdated", + "branch_refused", + "branch_delayed" + ] + } + } + }, + "required": [ + "shell_header", + "operations" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/preapply/operations": { + "post": { + "description": "Simulate the application of the operations with the context of the given block and return the result of each operation application.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/next_operation" + } + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_with_metadata" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/round": { + "get": { + "description": "Returns the round of the interrogated block, or the one of a block located `offset` blocks after in the chain (or before when negative). For instance, the next block if `offset` is 1.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/entrypoint": { + "post": { + "description": "Return the type of the given entrypoint", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "script" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entrypoint_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "entrypoint_type" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/entrypoints": { + "post": { + "description": "Return the list of entrypoints of the given script", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "script" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "unreachable": { + "type": "array", + "items": { + "type": "object", + "properties": { + "path": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.michelson.v1.primitives" + } + } + }, + "required": [ + "path" + ] + } + }, + "entrypoints": { + "type": "object", + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + } + }, + "required": [ + "entrypoints" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/normalize_data": { + "post": { + "description": "Normalizes some data expression using the requested unparsing mode", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "legacy": { + "type": "boolean" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/021-PsQuebec.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "data", + "type", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "normalized": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "normalized" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/normalize_script": { + "post": { + "description": "Normalizes a Michelson script using the requested unparsing mode", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + } + }, + "required": [ + "script", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "normalized": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "normalized" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/normalize_stack": { + "post": { + "description": "Normalize a Michelson stack using the requested unparsing mode", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "input": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "type", + "val" + ] + } + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "legacy": { + "type": "boolean" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/021-PsQuebec.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "input", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "output": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "type", + "val" + ] + } + } + }, + "required": [ + "output" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/normalize_type": { + "post": { + "description": "Normalizes some Michelson type by expanding `pair a b c` as `pair a (pair b c)", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "normalized": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "normalized" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/pack_data": { + "post": { + "description": "Computes the serialized version of some data expression using the same algorithm as script instruction PACK", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "data", + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "packed": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "gas": { + "oneOf": [ + { + "title": "Limited", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + { + "title": "Unaccounted", + "type": "string", + "enum": [ + "unaccounted" + ] + } + ] + } + }, + "required": [ + "packed", + "gas" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/run_code": { + "post": { + "description": "Run a Michelson script in the current context", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "storage": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "input": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "balance": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.implicit" + }, + "self": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "now": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/021-PsQuebec.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "script", + "storage", + "input", + "amount", + "chain_id" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "storage": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/021-PsQuebec.lazy_storage_diff" + } + }, + "required": [ + "storage", + "operations" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/run_instruction": { + "post": { + "description": "Run a single Michelson instruction", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "input": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "type", + "val" + ] + } + }, + "code": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "now": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "sender": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.implicit" + }, + "self": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + }, + "parameter": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "balance": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/021-PsQuebec.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "legacy": { + "type": "boolean" + } + }, + "required": [ + "input", + "code", + "chain_id", + "amount" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "output": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "type", + "val" + ] + } + }, + "gas": { + "oneOf": [ + { + "title": "Limited", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + { + "title": "Unaccounted", + "type": "string", + "enum": [ + "unaccounted" + ] + } + ] + } + }, + "required": [ + "output", + "gas" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/run_operation": { + "post": { + "description": "Run an operation with the context of the given block and without signature checks. Return the operation application result, including the consumed gas. This RPC does not support consensus operations.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC version is version '1'", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "operation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "contents" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + } + }, + "required": [ + "operation", + "chain_id" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Operation_with_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_contents_and_result" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + }, + { + "title": "Operation_without_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/run_script_view": { + "post": { + "description": "Simulate a call to a michelson view", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "contract": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + }, + "view": { + "$ref": "#/components/schemas/unistring" + }, + "input": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "unlimited_gas": { + "type": "boolean" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.implicit" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "now": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/021-PsQuebec.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "contract", + "view", + "input", + "chain_id", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "data" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/run_view": { + "post": { + "description": "Simulate a call to a view following the TZIP-4 standard. See https://gitlab.com/tezos/tzip/-/blob/master/proposals/tzip-4/tzip-4.md#view-entrypoints.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "contract": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + }, + "input": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.implicit" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "now": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/021-PsQuebec.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "contract", + "entrypoint", + "input", + "chain_id", + "unparsing_mode" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "data" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/script_size": { + "post": { + "description": "Compute the size of a script in the current context", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "program": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "storage": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "legacy": { + "type": "boolean" + } + }, + "required": [ + "program", + "storage" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "script_size" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/simulate_operation": { + "post": { + "description": "Simulate running an operation at some future moment (based on the number of blocks given in the `latency` argument), and return the operation application result. The result is the same as run_operation except for the consumed gas, which depends on the contents of the cache at that future moment. This RPC estimates future gas consumption by trying to predict the state of the cache using some heuristics.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC version is version '1'", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "successor_level", + "in": "query", + "description": "If true, the simulation is done on the successor level of the current context.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "blocks_before_activation": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "operation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "contents" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "latency": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "operation", + "chain_id" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Operation_with_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_contents_and_result" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + }, + { + "title": "Operation_without_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/trace_code": { + "post": { + "description": "Run a Michelson script in the current context, keeping a trace", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "script": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "storage": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "input": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "balance": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "payer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.implicit" + }, + "self": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + }, + "unparsing_mode": { + "oneOf": [ + { + "title": "Readable", + "type": "string", + "enum": [ + "Readable" + ] + }, + { + "title": "Optimized", + "type": "string", + "enum": [ + "Optimized" + ] + }, + { + "title": "Optimized_legacy", + "type": "string", + "enum": [ + "Optimized_legacy" + ] + } + ] + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "now": { + "$ref": "#/components/schemas/bignum" + }, + "level": { + "$ref": "#/components/schemas/positive_bignum" + }, + "other_contracts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/Contract_hash" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "address", + "type" + ] + } + }, + "extra_big_maps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/021-PsQuebec.big_map_id" + }, + "key_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "val_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "map_literal": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "id", + "key_type", + "val_type", + "map_literal" + ] + } + } + }, + "required": [ + "script", + "storage", + "input", + "amount", + "chain_id" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "storage": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + }, + "trace": { + "$ref": "#/components/schemas/021-PsQuebec.scripted.trace" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/021-PsQuebec.lazy_storage_diff" + } + }, + "required": [ + "storage", + "operations", + "trace" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/typecheck_code": { + "post": { + "description": "Typecheck a piece of code in the current context", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "program": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "legacy": { + "type": "boolean" + }, + "show_types": { + "type": "boolean" + } + }, + "required": [ + "program" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "type_map": { + "type": "array", + "items": { + "type": "object", + "properties": { + "location": { + "$ref": "#/components/schemas/micheline.location" + }, + "stack_before": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "stack_after": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + } + }, + "required": [ + "location", + "stack_before", + "stack_after" + ] + } + }, + "gas": { + "oneOf": [ + { + "title": "Limited", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + { + "title": "Unaccounted", + "type": "string", + "enum": [ + "unaccounted" + ] + } + ] + } + }, + "required": [ + "type_map", + "gas" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/scripts/typecheck_data": { + "post": { + "description": "Check that some data expression is well formed and of a given type in the current context", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "legacy": { + "type": "boolean" + } + }, + "required": [ + "data", + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "gas": { + "oneOf": [ + { + "title": "Limited", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + { + "title": "Unaccounted", + "type": "string", + "enum": [ + "unaccounted" + ] + } + ] + } + }, + "required": [ + "gas" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/helpers/validators": { + "get": { + "description": "Retrieves the level, the attestation slots and the public key hash of each delegate allowed to attest a block.\nBy default, it provides this information for the next level.\nParameter `level` can be used to specify the (valid) level(s) in the past or future at which the attestation rights have to be returned. Parameter `delegate` can be used to restrict the results results to the given delegates. Parameter `consensus_key` can be used to restrict the results to the given consensus_keys.\n", + "parameters": [ + { + "name": "level", + "in": "query", + "description": "A level integer", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "delegate", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "consensus_key", + "in": "query", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "slots": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "level", + "delegate", + "slots", + "consensus_key" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/live_blocks": { + "get": { + "description": "List the ancestors of the given block which, if referred to as the branch in an operation header, are recent enough for that operation to be included in the current block.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/block_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/metadata": { + "get": { + "description": "All the metadata associated to the block.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/block_header_metadata" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/metadata_hash": { + "get": { + "description": "Hash of the metadata associated to the block. This is only set on blocks starting from environment V1.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Tezos block metadata ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_hashes": { + "get": { + "description": "The hashes of all the operations included in the block.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Operation_hash" + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_hashes/{list_offset}": { + "get": { + "description": "All the operations included in `n-th` validation pass of the block.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Operation_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_hashes/{list_offset}/{operation_offset}": { + "get": { + "description": "The hash of then `m-th` operation in the `n-th` validation pass of the block.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "operation_offset", + "in": "path", + "description": "Index `m` of the requested operation in its validation pass.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_metadata_hashes": { + "get": { + "description": "The hashes of all the operation metadata included in the block. This is only set on blocks starting from environment V1.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Operation_metadata_hash" + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_metadata_hashes/{list_offset}": { + "get": { + "description": "All the operation metadata included in `n-th` validation pass of the block. This is only set on blocks starting from environment V1.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Operation_metadata_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operation_metadata_hashes/{list_offset}/{operation_offset}": { + "get": { + "description": "The hash of then `m-th` operation metadata in the `n-th` validation pass of the block. This is only set on blocks starting from environment V1.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "operation_offset", + "in": "path", + "description": "Index `m` of the requested operation in its validation pass.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation metadata ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operations": { + "get": { + "description": "All the operations included in the block.", + "parameters": [ + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "force_metadata", + "in": "query", + "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "metadata", + "in": "query", + "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operations/{list_offset}": { + "get": { + "description": "All the operations included in `n-th` validation pass of the block.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "force_metadata", + "in": "query", + "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "metadata", + "in": "query", + "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operations/{list_offset}/{operation_offset}": { + "get": { + "description": "The `m-th` operation in the `n-th` validation pass of the block.", + "parameters": [ + { + "name": "list_offset", + "in": "path", + "description": "Index `n` of the requested validation pass.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "operation_offset", + "in": "path", + "description": "Index `m` of the requested operation in its validation pass.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "version", + "in": "query", + "description": "Supported RPC versions are version \"1\" (default)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "force_metadata", + "in": "query", + "description": "DEPRECATED: Forces to recompute the operations metadata if it was considered as too large.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "metadata", + "in": "query", + "description": "defines the way metadata are queried Specifies whether or not if the operations metadata should be returned. To get the metadata, even if it is needed to recompute them, use \"always\". To avoid getting the metadata, use \"never\". By default, the metadata will be returned depending on the node's metadata size limit policy.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/operation" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/operations_metadata_hash": { + "get": { + "description": "The root hash of the operations metadata from the block. This is only set on blocks starting from environment V1.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A list of list of operation metadata (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/protocols": { + "get": { + "description": "Current and next protocol.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "next_protocol": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "required": [ + "protocol", + "next_protocol" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/resulting_context_hash": { + "get": { + "description": "Context hash resulting of the block application.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A hash of context (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/ballot_list": { + "get": { + "description": "Ballots casted so far during a voting period.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + } + }, + "required": [ + "pkh", + "ballot" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/ballots": { + "get": { + "description": "Sum of ballots casted so far during a voting period.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "yay": { + "$ref": "#/components/schemas/int64" + }, + "nay": { + "$ref": "#/components/schemas/int64" + }, + "pass": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "yay", + "nay", + "pass" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/current_period": { + "get": { + "description": "Returns the voting period (index, kind, starting position) and related information (position, remaining) of the interrogated block.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "voting_period": { + "description": "The voting period to which the block belongs.", + "type": "object", + "properties": { + "index": { + "description": "The voting period's index. Starts at 0 with the first block of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "kind": { + "description": "One of the several kinds of periods in the voting procedure.", + "oneOf": [ + { + "title": "Proposal", + "type": "string", + "enum": [ + "proposal" + ] + }, + { + "title": "exploration", + "type": "string", + "enum": [ + "exploration" + ] + }, + { + "title": "Cooldown", + "type": "string", + "enum": [ + "cooldown" + ] + }, + { + "title": "Promotion", + "type": "string", + "enum": [ + "promotion" + ] + }, + { + "title": "Adoption", + "type": "string", + "enum": [ + "adoption" + ] + } + ] + }, + "start_position": { + "description": "The relative position of the first level of the period with respect to the first level of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "index", + "kind", + "start_position" + ] + }, + "position": { + "description": "The position of the block within the voting period.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "remaining": { + "description": "The number of blocks remaining till the end of the voting period.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "voting_period", + "position", + "remaining" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/current_proposal": { + "get": { + "description": "Current proposal under evaluation.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/Protocol_hash" + } + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/current_quorum": { + "get": { + "description": "Current expected quorum.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/listings": { + "get": { + "description": "List of delegates with their voting power.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pkh": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "voting_power": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "pkh", + "voting_power" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/proposal_count/{pkh}": { + "get": { + "description": "Number of votes casted during the current period.", + "parameters": [ + { + "name": "pkh", + "in": "path", + "description": "A Secp256k1 of a Ed25519 public key hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/proposals": { + "get": { + "description": "List of proposals with number of supporters.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Protocol_hash" + }, + { + "$ref": "#/components/schemas/int64" + } + ] + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/successor_period": { + "get": { + "description": "Returns the voting period (index, kind, starting position) and related information (position, remaining) of the next block.Useful to craft operations that will be valid in the next block.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "voting_period": { + "description": "The voting period to which the block belongs.", + "type": "object", + "properties": { + "index": { + "description": "The voting period's index. Starts at 0 with the first block of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "kind": { + "description": "One of the several kinds of periods in the voting procedure.", + "oneOf": [ + { + "title": "Proposal", + "type": "string", + "enum": [ + "proposal" + ] + }, + { + "title": "exploration", + "type": "string", + "enum": [ + "exploration" + ] + }, + { + "title": "Cooldown", + "type": "string", + "enum": [ + "cooldown" + ] + }, + { + "title": "Promotion", + "type": "string", + "enum": [ + "promotion" + ] + }, + { + "title": "Adoption", + "type": "string", + "enum": [ + "adoption" + ] + } + ] + }, + "start_position": { + "description": "The relative position of the first level of the period with respect to the first level of the Alpha family of protocols.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "index", + "kind", + "start_position" + ] + }, + "position": { + "description": "The position of the block within the voting period.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "remaining": { + "description": "The number of blocks remaining till the end of the voting period.", + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "voting_period", + "position", + "remaining" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/votes/total_voting_power": { + "get": { + "description": "Total voting power in the voting listings.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "021-PsQuebec.adaptive_issuance_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + }, + "021-PsQuebec.apply_internal_results.alpha.operation_result": { + "oneOf": [ + { + "title": "transaction", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transaction" + ] + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "destination": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/021-PsQuebec.entrypoint" + }, + "value": {} + }, + "required": [ + "entrypoint", + "value" + ] + }, + "result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.internal_operation_result.transaction" + } + }, + "required": [ + "kind", + "source", + "nonce", + "amount", + "destination", + "result" + ] + }, + { + "title": "origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "origination" + ] + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "balance": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/021-PsQuebec.scripted.contracts" + }, + "result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.internal_operation_result.origination" + } + }, + "required": [ + "kind", + "source", + "nonce", + "balance", + "script", + "result" + ] + }, + { + "title": "delegation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "delegation" + ] + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.internal_operation_result.delegation" + } + }, + "required": [ + "kind", + "source", + "nonce", + "result" + ] + }, + { + "title": "event", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "event" + ] + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "nonce": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "tag": { + "$ref": "#/components/schemas/021-PsQuebec.entrypoint" + }, + "payload": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.internal_operation_result.event" + } + }, + "required": [ + "kind", + "source", + "nonce", + "type", + "result" + ] + } + ] + }, + "021-PsQuebec.big_map_id": { + "title": "Big map identifier", + "description": "A big map identifier", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + "021-PsQuebec.block_header.alpha.full_header": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "payload_round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proof_of_work_nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "seed_nonce_hash": { + "$ref": "#/components/schemas/cycle_nonce" + }, + "liquidity_baking_toggle_vote": { + "$ref": "#/components/schemas/021-PsQuebec.liquidity_baking_vote" + }, + "adaptive_issuance_vote": { + "$ref": "#/components/schemas/021-PsQuebec.adaptive_issuance_vote" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "payload_hash", + "payload_round", + "proof_of_work_nonce", + "liquidity_baking_toggle_vote", + "adaptive_issuance_vote", + "signature" + ] + }, + "021-PsQuebec.bond_id": { + "type": "object", + "properties": { + "smart_rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + } + }, + "required": [ + "smart_rollup" + ] + }, + "021-PsQuebec.contract_id": { + "title": "A contract handle", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash or a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "021-PsQuebec.contract_id.implicit": { + "title": "A contract handle -- implicit account", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "021-PsQuebec.contract_id.originated": { + "title": "A contract handle -- originated account", + "description": "A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "021-PsQuebec.entrypoint": { + "title": "entrypoint", + "description": "Named entrypoint to a Michelson smart contract", + "oneOf": [ + { + "title": "default", + "type": "string", + "enum": [ + "default" + ] + }, + { + "title": "root", + "type": "string", + "enum": [ + "root" + ] + }, + { + "title": "do", + "type": "string", + "enum": [ + "do" + ] + }, + { + "title": "set_delegate", + "type": "string", + "enum": [ + "set_delegate" + ] + }, + { + "title": "remove_delegate", + "type": "string", + "enum": [ + "remove_delegate" + ] + }, + { + "title": "deposit", + "type": "string", + "enum": [ + "deposit" + ] + }, + { + "title": "stake", + "type": "string", + "enum": [ + "stake" + ] + }, + { + "title": "unstake", + "type": "string", + "enum": [ + "unstake" + ] + }, + { + "title": "finalize_unstake", + "type": "string", + "enum": [ + "finalize_unstake" + ] + }, + { + "title": "set_delegate_parameters", + "type": "string", + "enum": [ + "set_delegate_parameters" + ] + }, + { + "title": "named", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + ] + }, + "021-PsQuebec.error": { + "description": "The full list of RPC errors would be too long to include.\nIt is available at RPC `/errors` (GET).\nErrors specific to protocol Alpha have an id that starts with `proto.alpha`." + }, + "021-PsQuebec.frozen_staker": { + "title": "frozen_staker", + "description": "Abstract notion of staker used in operation receipts for frozen deposits, either a single staker or all the stakers delegating to some delegate.", + "oneOf": [ + { + "title": "Single", + "type": "object", + "properties": { + "contract": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "contract", + "delegate" + ] + }, + { + "title": "Shared", + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate" + ] + }, + { + "title": "Baker", + "type": "object", + "properties": { + "baker_own_stake": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "baker_own_stake" + ] + }, + { + "title": "Baker_edge", + "type": "object", + "properties": { + "baker_edge": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "baker_edge" + ] + } + ] + }, + "021-PsQuebec.inlined.attestation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.attestation_mempool.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "021-PsQuebec.inlined.attestation_mempool.contents": { + "oneOf": [ + { + "title": "Attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestation_with_dal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation_with_dal" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "dal_attestation": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "dal_attestation" + ] + } + ] + }, + "021-PsQuebec.inlined.preattestation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "operations": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.preattestation.contents" + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "branch", + "operations" + ] + }, + "021-PsQuebec.inlined.preattestation.contents": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preattestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + "021-PsQuebec.lazy_storage_diff": { + "type": "array", + "items": { + "oneOf": [ + { + "title": "big_map", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "big_map" + ] + }, + "id": { + "$ref": "#/components/schemas/021-PsQuebec.big_map_id" + }, + "diff": { + "oneOf": [ + { + "title": "update", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "update" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "key": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "value": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "key_hash", + "key" + ] + } + } + }, + "required": [ + "action", + "updates" + ] + }, + { + "title": "remove", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "remove" + ] + } + }, + "required": [ + "action" + ] + }, + { + "title": "copy", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "copy" + ] + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.big_map_id" + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "key": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "value": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "key_hash", + "key" + ] + } + } + }, + "required": [ + "action", + "source", + "updates" + ] + }, + { + "title": "alloc", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "alloc" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key_hash": { + "$ref": "#/components/schemas/script_expr" + }, + "key": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "value": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "key_hash", + "key" + ] + } + }, + "key_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "value_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "action", + "updates", + "key_type", + "value_type" + ] + } + ] + } + }, + "required": [ + "kind", + "id", + "diff" + ] + }, + { + "title": "sapling_state", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "sapling_state" + ] + }, + "id": { + "$ref": "#/components/schemas/021-PsQuebec.sapling_state_id" + }, + "diff": { + "oneOf": [ + { + "title": "update", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "update" + ] + }, + "updates": { + "type": "object", + "properties": { + "commitments_and_ciphertexts": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/sapling.transaction.commitment" + }, + { + "$ref": "#/components/schemas/sapling.transaction.ciphertext" + } + ] + } + } + }, + "nullifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sapling.transaction.nullifier" + } + } + }, + "required": [ + "commitments_and_ciphertexts", + "nullifiers" + ] + } + }, + "required": [ + "action", + "updates" + ] + }, + { + "title": "remove", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "remove" + ] + } + }, + "required": [ + "action" + ] + }, + { + "title": "copy", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "copy" + ] + }, + "source": { + "$ref": "#/components/schemas/021-PsQuebec.sapling_state_id" + }, + "updates": { + "type": "object", + "properties": { + "commitments_and_ciphertexts": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/sapling.transaction.commitment" + }, + { + "$ref": "#/components/schemas/sapling.transaction.ciphertext" + } + ] + } + } + }, + "nullifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sapling.transaction.nullifier" + } + } + }, + "required": [ + "commitments_and_ciphertexts", + "nullifiers" + ] + } + }, + "required": [ + "action", + "source", + "updates" + ] + }, + { + "title": "alloc", + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "alloc" + ] + }, + "updates": { + "type": "object", + "properties": { + "commitments_and_ciphertexts": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/sapling.transaction.commitment" + }, + { + "$ref": "#/components/schemas/sapling.transaction.ciphertext" + } + ] + } + } + }, + "nullifiers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sapling.transaction.nullifier" + } + } + }, + "required": [ + "commitments_and_ciphertexts", + "nullifiers" + ] + }, + "memo_size": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "action", + "updates", + "memo_size" + ] + } + ] + } + }, + "required": [ + "kind", + "id", + "diff" + ] + } + ] + } + }, + "021-PsQuebec.liquidity_baking_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + }, + "021-PsQuebec.michelson.v1.primitives": { + "type": "string", + "enum": [ + "SHA256", + "GT", + "RIGHT", + "SAPLING_EMPTY_STATE", + "False", + "RENAME", + "CAST", + "tx_rollup_l2_address", + "PACK", + "BYTES", + "timestamp", + "bls12_381_g2", + "Pair", + "IF_LEFT", + "contract", + "mutez", + "storage", + "PAIR", + "view", + "UNPACK", + "ADD", + "DROP", + "big_map", + "MUL", + "NAT", + "SELF", + "CONTRACT", + "CDR", + "SAPLING_VERIFY_UPDATE", + "pair", + "LSL", + "int", + "operation", + "SHA512", + "CREATE_ACCOUNT", + "BLAKE2B", + "SPLIT_TICKET", + "LEFT", + "never", + "unit", + "address", + "signature", + "CHAIN_ID", + "constant", + "SLICE", + "SENDER", + "IMPLICIT_ACCOUNT", + "key_hash", + "AMOUNT", + "CHECK_SIGNATURE", + "sapling_state", + "LT", + "EXEC", + "Elt", + "EMIT", + "NONE", + "CREATE_CONTRACT", + "LSR", + "SET_DELEGATE", + "OPEN_CHEST", + "TRANSFER_TOKENS", + "Some", + "parameter", + "set", + "bls12_381_fr", + "EDIV", + "None", + "STEPS_TO_QUOTA", + "key", + "ABS", + "list", + "NEVER", + "map", + "CAR", + "IF", + "GET_AND_UPDATE", + "CONCAT", + "LOOP", + "DIG", + "KECCAK", + "Lambda_rec", + "SOME", + "option", + "SUB", + "INT", + "PUSH", + "CONS", + "Unit", + "ISNAT", + "NEG", + "XOR", + "APPLY", + "UNPAIR", + "JOIN_TICKETS", + "SIZE", + "lambda", + "AND", + "NEQ", + "or", + "BALANCE", + "UNIT", + "VOTING_POWER", + "OR", + "LAMBDA", + "chest", + "LOOP_LEFT", + "True", + "Right", + "Ticket", + "HASH_KEY", + "DUG", + "sapling_transaction", + "SUB_MUTEZ", + "EMPTY_BIG_MAP", + "MEM", + "IF_NONE", + "nat", + "TOTAL_VOTING_POWER", + "LE", + "Left", + "chest_key", + "READ_TICKET", + "ticket", + "bls12_381_g1", + "LEVEL", + "VIEW", + "string", + "PAIRING_CHECK", + "LAMBDA_REC", + "NOW", + "SHA3", + "bool", + "MIN_BLOCK_TIME", + "GET", + "bytes", + "sapling_transaction_deprecated", + "NIL", + "IF_CONS", + "GE", + "NOT", + "SWAP", + "ITER", + "ADDRESS", + "TICKET", + "DUP", + "EMPTY_MAP", + "UPDATE", + "chain_id", + "TICKET_DEPRECATED", + "EMPTY_SET", + "FAILWITH", + "MAP", + "SOURCE", + "DIP", + "COMPARE", + "EQ", + "SELF_ADDRESS", + "code" + ] + }, + "021-PsQuebec.mutez": { + "$ref": "#/components/schemas/positive_bignum" + }, + "021-PsQuebec.operation.alpha.contents": { + "oneOf": [ + { + "title": "Preattestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preattestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash" + ] + }, + { + "title": "Attestation_with_dal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation_with_dal" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "dal_attestation": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "dal_attestation" + ] + }, + { + "title": "Double_preattestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_preattestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.preattestation" + }, + "op2": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.preattestation" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Double_attestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_attestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.attestation" + }, + "op2": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.attestation" + } + }, + "required": [ + "kind", + "op1", + "op2" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "level", + "nonce" + ] + }, + { + "title": "Vdf_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "vdf_revelation" + ] + }, + "solution": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + ] + } + } + }, + "required": [ + "kind", + "solution" + ] + }, + { + "title": "Double_baking_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_baking_evidence" + ] + }, + "bh1": { + "$ref": "#/components/schemas/021-PsQuebec.block_header.alpha.full_header" + }, + "bh2": { + "$ref": "#/components/schemas/021-PsQuebec.block_header.alpha.full_header" + } + }, + "required": [ + "kind", + "bh1", + "bh2" + ] + }, + { + "title": "Activate_account", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "activate_account" + ] + }, + "pkh": { + "$ref": "#/components/schemas/Ed25519.Public_key_hash" + }, + "secret": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "pkh", + "secret" + ] + }, + { + "title": "Proposals", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "proposals" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + } + }, + "required": [ + "kind", + "source", + "period", + "proposals" + ] + }, + { + "title": "Ballot", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "ballot" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposal": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + } + }, + "required": [ + "kind", + "source", + "period", + "proposal", + "ballot" + ] + }, + { + "title": "Reveal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "reveal" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_key": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_key" + ] + }, + { + "title": "Transaction", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transaction" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "destination": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/021-PsQuebec.entrypoint" + }, + "value": {} + }, + "required": [ + "entrypoint", + "value" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination" + ] + }, + { + "title": "Origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/021-PsQuebec.scripted.contracts" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "balance", + "script" + ] + }, + { + "title": "Delegation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "delegation" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit" + ] + }, + { + "title": "Set_deposits_limit", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "set_deposits_limit" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "limit": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit" + ] + }, + { + "title": "Increase_paid_storage", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "increase_paid_storage" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + }, + "destination": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination" + ] + }, + { + "title": "Update_consensus_key", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "update_consensus_key" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pk" + ] + }, + { + "title": "Drain_delegate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "drain_delegate" + ] + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "destination": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "consensus_key", + "delegate", + "destination" + ] + }, + { + "title": "Failing_noop", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "failing_noop" + ] + }, + "arbitrary": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "arbitrary" + ] + }, + { + "title": "Register_global_constant", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "register_global_constant" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "value": {} + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "value" + ] + }, + { + "title": "Transfer_ticket", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transfer_ticket" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_contents": {}, + "ticket_ty": {}, + "ticket_ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "ticket_amount": { + "$ref": "#/components/schemas/positive_bignum" + }, + "destination": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "ticket_contents", + "ticket_ty", + "ticket_ticketer", + "ticket_amount", + "destination", + "entrypoint" + ] + }, + { + "title": "Dal_publish_commitment", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_publish_commitment" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "slot_header": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + }, + "commitment_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "slot_index", + "commitment", + "commitment_proof" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "slot_header" + ] + }, + { + "title": "Smart_rollup_originate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_originate" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pvm_kind": { + "type": "string", + "enum": [ + "wasm_2_0_0", + "arith", + "riscv" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {}, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pvm_kind", + "kernel", + "parameters_ty" + ] + }, + { + "title": "Smart_rollup_add_messages", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_add_messages" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "message": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "message" + ] + }, + { + "title": "Smart_rollup_cement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_cement" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup" + ] + }, + { + "title": "Smart_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "commitment": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "commitment" + ] + }, + { + "title": "Smart_rollup_refute", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_refute" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "opponent": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "refutation": { + "oneOf": [ + { + "title": "Start", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "start" + ] + }, + "player_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "opponent_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "refutation_kind", + "player_commitment_hash", + "opponent_commitment_hash" + ] + }, + { + "title": "Move", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "move" + ] + }, + "choice": { + "$ref": "#/components/schemas/positive_bignum" + }, + "step": { + "oneOf": [ + { + "title": "Dissection", + "type": "array", + "items": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + } + }, + { + "title": "Proof", + "type": "object", + "properties": { + "pvm_step": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "input_proof": { + "oneOf": [ + { + "title": "inbox proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "inbox_proof" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "message_counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "serialized_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "input_proof_kind", + "level", + "message_counter", + "serialized_proof" + ] + }, + { + "title": "reveal proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "reveal_proof" + ] + }, + "reveal_proof": { + "oneOf": [ + { + "title": "raw data proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "raw_data_proof" + ] + }, + "raw_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "raw_data" + ] + }, + { + "title": "metadata proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "metadata_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + }, + { + "title": "dal page proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_page_proof" + ] + }, + "dal_page_id": { + "type": "object", + "properties": { + "published_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_index": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "published_level", + "slot_index", + "page_index" + ] + }, + "dal_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "dal_page_id", + "dal_proof" + ] + }, + { + "title": "dal parameters proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_parameters_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + } + ] + } + }, + "required": [ + "input_proof_kind", + "reveal_proof" + ] + }, + { + "title": "first input", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "first_input" + ] + } + }, + "required": [ + "input_proof_kind" + ] + } + ] + } + }, + "required": [ + "pvm_step" + ] + } + ] + } + }, + "required": [ + "refutation_kind", + "choice", + "step" + ] + } + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "opponent", + "refutation" + ] + }, + { + "title": "Smart_rollup_timeout", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_timeout" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "stakers": { + "type": "object", + "properties": { + "alice": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "bob": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "alice", + "bob" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "stakers" + ] + }, + { + "title": "Smart_rollup_execute_outbox_message", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_execute_outbox_message" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "cemented_commitment": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "output_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "cemented_commitment", + "output_proof" + ] + }, + { + "title": "Smart_rollup_recover_bond", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_recover_bond" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "staker": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "staker" + ] + }, + { + "title": "Zk_rollup_origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "circuits_info": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "oneOf": [ + { + "title": "Public", + "type": "object", + "properties": { + "public": {} + }, + "required": [ + "public" + ] + }, + { + "title": "Private", + "type": "object", + "properties": { + "private": {} + }, + "required": [ + "private" + ] + }, + { + "title": "Fee", + "type": "object", + "properties": { + "fee": {} + }, + "required": [ + "fee" + ] + } + ] + } + ] + } + } + }, + "init_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "nb_ops": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_parameters", + "circuits_info", + "init_state", + "nb_ops" + ] + }, + { + "title": "Zk_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "op": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "properties": { + "op_code": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "price": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/script_expr" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "id", + "amount" + ] + }, + "l1_dst": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "rollup_id": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "payload": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "op_code", + "price", + "l1_dst", + "rollup_id", + "payload" + ] + }, + { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "contents": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "ty": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + } + }, + "required": [ + "contents", + "ty", + "ticketer" + ] + } + ] + } + ] + } + } + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "op" + ] + }, + { + "title": "Zk_rollup_update", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_update" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "update": { + "type": "object", + "properties": { + "pending_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "exit_validity": { + "type": "boolean" + } + }, + "required": [ + "new_state", + "fee", + "exit_validity" + ] + } + ] + } + } + }, + "private_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "new_state", + "fee" + ] + } + ] + } + } + }, + "fee_pi": { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "new_state" + ] + }, + "proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "pending_pis", + "private_pis", + "fee_pi", + "proof" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "update" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.internal_operation_result.delegation": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.internal_operation_result.event": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.internal_operation_result.origination": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/021-PsQuebec.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/021-PsQuebec.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.internal_operation_result.transaction": { + "oneOf": [ + { + "title": "Applied", + "oneOf": [ + { + "title": "To_contract", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "storage": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "ticket_receipt": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "allocated_destination_contract": { + "type": "boolean" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/021-PsQuebec.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_smart_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_receipt": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + } + }, + "required": [ + "status", + "ticket_receipt" + ] + } + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "oneOf": [ + { + "title": "To_contract", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "storage": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "ticket_receipt": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "allocated_destination_contract": { + "type": "boolean" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/021-PsQuebec.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_smart_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_receipt": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + } + }, + "required": [ + "status", + "ticket_receipt" + ] + } + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_contents_and_result": { + "oneOf": [ + { + "title": "Attestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "consensus_power": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate", + "consensus_power", + "consensus_key" + ] + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "metadata" + ] + }, + { + "title": "Attestation_with_dal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "attestation_with_dal" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "dal_attestation": { + "$ref": "#/components/schemas/bignum" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "consensus_power": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate", + "consensus_power", + "consensus_key" + ] + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "dal_attestation", + "metadata" + ] + }, + { + "title": "Preattestation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "preattestation" + ] + }, + "slot": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "round": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "block_payload_hash": { + "$ref": "#/components/schemas/value_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "consensus_power": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate", + "consensus_power", + "consensus_key" + ] + } + }, + "required": [ + "kind", + "slot", + "level", + "round", + "block_payload_hash", + "metadata" + ] + }, + { + "title": "Double_attestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_attestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.attestation" + }, + "op2": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.attestation" + }, + "metadata": { + "type": "object", + "properties": { + "forbidden_delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "op1", + "op2", + "metadata" + ] + }, + { + "title": "Double_preattestation_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_preattestation_evidence" + ] + }, + "op1": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.preattestation" + }, + "op2": { + "$ref": "#/components/schemas/021-PsQuebec.inlined.preattestation" + }, + "metadata": { + "type": "object", + "properties": { + "forbidden_delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "op1", + "op2", + "metadata" + ] + }, + { + "title": "Seed_nonce_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "seed_nonce_revelation" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "nonce": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "level", + "nonce", + "metadata" + ] + }, + { + "title": "Vdf_revelation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "vdf_revelation" + ] + }, + "solution": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + ] + } + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "solution", + "metadata" + ] + }, + { + "title": "Double_baking_evidence", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "double_baking_evidence" + ] + }, + "bh1": { + "$ref": "#/components/schemas/021-PsQuebec.block_header.alpha.full_header" + }, + "bh2": { + "$ref": "#/components/schemas/021-PsQuebec.block_header.alpha.full_header" + }, + "metadata": { + "type": "object", + "properties": { + "forbidden_delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "bh1", + "bh2", + "metadata" + ] + }, + { + "title": "Activate_account", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "activate_account" + ] + }, + "pkh": { + "$ref": "#/components/schemas/Ed25519.Public_key_hash" + }, + "secret": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + } + } + }, + "required": [ + "kind", + "pkh", + "secret", + "metadata" + ] + }, + { + "title": "Proposals", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "proposals" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "metadata": { + "type": "object", + "properties": {} + } + }, + "required": [ + "kind", + "source", + "period", + "proposals", + "metadata" + ] + }, + { + "title": "Ballot", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "ballot" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "period": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proposal": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "ballot": { + "type": "string", + "enum": [ + "nay", + "yay", + "pass" + ] + }, + "metadata": { + "type": "object", + "properties": {} + } + }, + "required": [ + "kind", + "source", + "period", + "proposal", + "ballot", + "metadata" + ] + }, + { + "title": "Drain_delegate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "drain_delegate" + ] + }, + "consensus_key": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "destination": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "allocated_destination_contract": { + "type": "boolean" + } + } + } + }, + "required": [ + "kind", + "consensus_key", + "delegate", + "destination", + "metadata" + ] + }, + { + "title": "Reveal", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "reveal" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_key": { + "$ref": "#/components/schemas/Signature.Public_key" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.reveal" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_key", + "metadata" + ] + }, + { + "title": "Transaction", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transaction" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "destination": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "parameters": { + "type": "object", + "properties": { + "entrypoint": { + "$ref": "#/components/schemas/021-PsQuebec.entrypoint" + }, + "value": {} + }, + "required": [ + "entrypoint", + "value" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.transaction" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination", + "metadata" + ] + }, + { + "title": "Origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "script": { + "$ref": "#/components/schemas/021-PsQuebec.scripted.contracts" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.origination" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "balance", + "script", + "metadata" + ] + }, + { + "title": "Delegation", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "delegation" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.delegation" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "metadata" + ] + }, + { + "title": "Register_global_constant", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "register_global_constant" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "value": {}, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.register_global_constant" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "value", + "metadata" + ] + }, + { + "title": "Set_deposits_limit", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "set_deposits_limit" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "limit": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.set_deposits_limit" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "metadata" + ] + }, + { + "title": "Increase_paid_storage", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "increase_paid_storage" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + }, + "destination": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.increase_paid_storage" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "amount", + "destination", + "metadata" + ] + }, + { + "title": "Update_consensus_key", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "update_consensus_key" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pk": { + "$ref": "#/components/schemas/Signature.Public_key" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.update_consensus_key" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pk", + "metadata" + ] + }, + { + "title": "Transfer_ticket", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "transfer_ticket" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_contents": {}, + "ticket_ty": {}, + "ticket_ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "ticket_amount": { + "$ref": "#/components/schemas/positive_bignum" + }, + "destination": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "entrypoint": { + "$ref": "#/components/schemas/unistring" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.transfer_ticket" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "ticket_contents", + "ticket_ty", + "ticket_ticketer", + "ticket_amount", + "destination", + "entrypoint", + "metadata" + ] + }, + { + "title": "Dal_publish_commitment", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "dal_publish_commitment" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "slot_header": { + "type": "object", + "properties": { + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + }, + "commitment_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "slot_index", + "commitment", + "commitment_proof" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.dal_publish_commitment" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "slot_header", + "metadata" + ] + }, + { + "title": "Smart_rollup_originate", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_originate" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "pvm_kind": { + "type": "string", + "enum": [ + "wasm_2_0_0", + "arith", + "riscv" + ] + }, + "kernel": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "parameters_ty": {}, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.smart_rollup_originate" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "pvm_kind", + "kernel", + "parameters_ty", + "metadata" + ] + }, + { + "title": "Smart_rollup_add_messages", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_add_messages" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "message": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.smart_rollup_add_messages" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "message", + "metadata" + ] + }, + { + "title": "Smart_rollup_cement", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_cement" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.smart_rollup_cement" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "metadata" + ] + }, + { + "title": "Smart_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "commitment": { + "type": "object", + "properties": { + "compressed_state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "predecessor": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "number_of_ticks": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "compressed_state", + "inbox_level", + "predecessor", + "number_of_ticks" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.smart_rollup_publish" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "commitment", + "metadata" + ] + }, + { + "title": "Smart_rollup_refute", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_refute" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "opponent": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "refutation": { + "oneOf": [ + { + "title": "Start", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "start" + ] + }, + "player_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "opponent_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "refutation_kind", + "player_commitment_hash", + "opponent_commitment_hash" + ] + }, + { + "title": "Move", + "type": "object", + "properties": { + "refutation_kind": { + "type": "string", + "enum": [ + "move" + ] + }, + "choice": { + "$ref": "#/components/schemas/positive_bignum" + }, + "step": { + "oneOf": [ + { + "title": "Dissection", + "type": "array", + "items": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/smart_rollup_state_hash" + }, + "tick": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "tick" + ] + } + }, + { + "title": "Proof", + "type": "object", + "properties": { + "pvm_step": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "input_proof": { + "oneOf": [ + { + "title": "inbox proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "inbox_proof" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "message_counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "serialized_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "input_proof_kind", + "level", + "message_counter", + "serialized_proof" + ] + }, + { + "title": "reveal proof", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "reveal_proof" + ] + }, + "reveal_proof": { + "oneOf": [ + { + "title": "raw data proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "raw_data_proof" + ] + }, + "raw_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "raw_data" + ] + }, + { + "title": "metadata proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "metadata_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + }, + { + "title": "dal page proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_page_proof" + ] + }, + "dal_page_id": { + "type": "object", + "properties": { + "published_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "slot_index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "page_index": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "published_level", + "slot_index", + "page_index" + ] + }, + "dal_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "reveal_proof_kind", + "dal_page_id", + "dal_proof" + ] + }, + { + "title": "dal parameters proof", + "type": "object", + "properties": { + "reveal_proof_kind": { + "type": "string", + "enum": [ + "dal_parameters_proof" + ] + } + }, + "required": [ + "reveal_proof_kind" + ] + } + ] + } + }, + "required": [ + "input_proof_kind", + "reveal_proof" + ] + }, + { + "title": "first input", + "type": "object", + "properties": { + "input_proof_kind": { + "type": "string", + "enum": [ + "first_input" + ] + } + }, + "required": [ + "input_proof_kind" + ] + } + ] + } + }, + "required": [ + "pvm_step" + ] + } + ] + } + }, + "required": [ + "refutation_kind", + "choice", + "step" + ] + } + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.smart_rollup_refute" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "opponent", + "refutation", + "metadata" + ] + }, + { + "title": "Smart_rollup_timeout", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_timeout" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "stakers": { + "type": "object", + "properties": { + "alice": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "bob": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "alice", + "bob" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.smart_rollup_timeout" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "stakers", + "metadata" + ] + }, + { + "title": "Smart_rollup_execute_outbox_message", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_execute_outbox_message" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "cemented_commitment": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "output_proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.smart_rollup_execute_outbox_message" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "cemented_commitment", + "output_proof", + "metadata" + ] + }, + { + "title": "Smart_rollup_recover_bond", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "smart_rollup_recover_bond" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "rollup": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "staker": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.smart_rollup_recover_bond" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "rollup", + "staker", + "metadata" + ] + }, + { + "title": "Zk_rollup_origination", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_origination" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "public_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "circuits_info": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "oneOf": [ + { + "title": "Public", + "type": "object", + "properties": { + "public": {} + }, + "required": [ + "public" + ] + }, + { + "title": "Private", + "type": "object", + "properties": { + "private": {} + }, + "required": [ + "private" + ] + }, + { + "title": "Fee", + "type": "object", + "properties": { + "fee": {} + }, + "required": [ + "fee" + ] + } + ] + } + ] + } + } + }, + "init_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "nb_ops": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.zk_rollup_origination" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "public_parameters", + "circuits_info", + "init_state", + "nb_ops", + "metadata" + ] + }, + { + "title": "Zk_rollup_publish", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_publish" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "op": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "properties": { + "op_code": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "price": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/script_expr" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "id", + "amount" + ] + }, + "l1_dst": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "rollup_id": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "payload": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "op_code", + "price", + "l1_dst", + "rollup_id", + "payload" + ] + }, + { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "contents": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "ty": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + } + }, + "required": [ + "contents", + "ty", + "ticketer" + ] + } + ] + } + ] + } + } + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.zk_rollup_publish" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "op", + "metadata" + ] + }, + { + "title": "Zk_rollup_update", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "zk_rollup_update" + ] + }, + "source": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "fee": { + "$ref": "#/components/schemas/021-PsQuebec.mutez" + }, + "counter": { + "$ref": "#/components/schemas/positive_bignum" + }, + "gas_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_limit": { + "$ref": "#/components/schemas/positive_bignum" + }, + "zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "update": { + "type": "object", + "properties": { + "pending_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "exit_validity": { + "type": "boolean" + } + }, + "required": [ + "new_state", + "fee", + "exit_validity" + ] + } + ] + } + } + }, + "private_pis": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "fee": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "new_state", + "fee" + ] + } + ] + } + } + }, + "fee_pi": { + "type": "object", + "properties": { + "new_state": { + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + }, + "required": [ + "new_state" + ] + }, + "proof": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "pending_pis", + "private_pis", + "fee_pi", + "proof" + ] + }, + "metadata": { + "type": "object", + "properties": { + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "operation_result": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_result.zk_rollup_update" + }, + "internal_operation_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.apply_internal_results.alpha.operation_result" + } + } + }, + "required": [ + "operation_result" + ] + } + }, + "required": [ + "kind", + "source", + "fee", + "counter", + "gas_limit", + "storage_limit", + "zk_rollup", + "update", + "metadata" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.dal_publish_commitment": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "slot_header": { + "type": "object", + "properties": { + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "version", + "level", + "index", + "commitment" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "slot_header" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "slot_header": { + "type": "object", + "properties": { + "version": { + "type": "string", + "enum": [ + "0" + ] + }, + "level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "index": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "commitment": { + "$ref": "#/components/schemas/DAL_commitment" + } + }, + "required": [ + "version", + "level", + "index", + "commitment" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "slot_header" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.delegation": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.increase_paid_storage": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.origination": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/021-PsQuebec.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/021-PsQuebec.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.register_global_constant": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "global_address": { + "$ref": "#/components/schemas/script_expr" + } + }, + "required": [ + "status", + "global_address" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "global_address": { + "$ref": "#/components/schemas/script_expr" + } + }, + "required": [ + "status", + "global_address" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.reveal": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.set_deposits_limit": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.smart_rollup_add_messages": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.smart_rollup_cement": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "status", + "inbox_level", + "commitment_hash" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "inbox_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + } + }, + "required": [ + "status", + "inbox_level", + "commitment_hash" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.smart_rollup_execute_outbox_message": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "whitelist_update": { + "oneOf": [ + { + "title": "Public", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "public" + ] + } + }, + "required": [ + "kind" + ] + }, + { + "title": "Private", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "update" + ] + }, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + }, + "required": [ + "kind", + "whitelist" + ] + } + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "ticket_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "whitelist_update": { + "oneOf": [ + { + "title": "Public", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "public" + ] + } + }, + "required": [ + "kind" + ] + }, + { + "title": "Private", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "update" + ] + }, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + } + }, + "required": [ + "kind", + "whitelist" + ] + } + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "ticket_updates" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.smart_rollup_originate": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "address": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "genesis_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "address", + "genesis_commitment_hash", + "size" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "address": { + "$ref": "#/components/schemas/smart_rollup_address" + }, + "genesis_commitment_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "address", + "genesis_commitment_hash", + "size" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.smart_rollup_publish": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "staked_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "published_at_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "staked_hash", + "published_at_level", + "balance_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "staked_hash": { + "$ref": "#/components/schemas/smart_rollup_commitment_hash" + }, + "published_at_level": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "staked_hash", + "published_at_level", + "balance_updates" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.smart_rollup_recover_bond": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "balance_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status", + "balance_updates" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.smart_rollup_refute": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "game_status": { + "oneOf": [ + { + "title": "Ongoing", + "type": "string", + "enum": [ + "ongoing" + ] + }, + { + "title": "Ended", + "type": "object", + "properties": { + "result": { + "oneOf": [ + { + "title": "Loser", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "loser" + ] + }, + "reason": { + "oneOf": [ + { + "title": "Conflict_resolved", + "type": "string", + "enum": [ + "conflict_resolved" + ] + }, + { + "title": "Timeout", + "type": "string", + "enum": [ + "timeout" + ] + } + ] + }, + "player": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "reason", + "player" + ] + }, + { + "title": "Draw", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "draw" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + }, + "required": [ + "result" + ] + } + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "game_status", + "balance_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "game_status": { + "oneOf": [ + { + "title": "Ongoing", + "type": "string", + "enum": [ + "ongoing" + ] + }, + { + "title": "Ended", + "type": "object", + "properties": { + "result": { + "oneOf": [ + { + "title": "Loser", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "loser" + ] + }, + "reason": { + "oneOf": [ + { + "title": "Conflict_resolved", + "type": "string", + "enum": [ + "conflict_resolved" + ] + }, + { + "title": "Timeout", + "type": "string", + "enum": [ + "timeout" + ] + } + ] + }, + "player": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "reason", + "player" + ] + }, + { + "title": "Draw", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "draw" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + }, + "required": [ + "result" + ] + } + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "game_status", + "balance_updates" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.smart_rollup_timeout": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "game_status": { + "oneOf": [ + { + "title": "Ongoing", + "type": "string", + "enum": [ + "ongoing" + ] + }, + { + "title": "Ended", + "type": "object", + "properties": { + "result": { + "oneOf": [ + { + "title": "Loser", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "loser" + ] + }, + "reason": { + "oneOf": [ + { + "title": "Conflict_resolved", + "type": "string", + "enum": [ + "conflict_resolved" + ] + }, + { + "title": "Timeout", + "type": "string", + "enum": [ + "timeout" + ] + } + ] + }, + "player": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "reason", + "player" + ] + }, + { + "title": "Draw", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "draw" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + }, + "required": [ + "result" + ] + } + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "game_status", + "balance_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "game_status": { + "oneOf": [ + { + "title": "Ongoing", + "type": "string", + "enum": [ + "ongoing" + ] + }, + { + "title": "Ended", + "type": "object", + "properties": { + "result": { + "oneOf": [ + { + "title": "Loser", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "loser" + ] + }, + "reason": { + "oneOf": [ + { + "title": "Conflict_resolved", + "type": "string", + "enum": [ + "conflict_resolved" + ] + }, + { + "title": "Timeout", + "type": "string", + "enum": [ + "timeout" + ] + } + ] + }, + "player": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "kind", + "reason", + "player" + ] + }, + { + "title": "Draw", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "draw" + ] + } + }, + "required": [ + "kind" + ] + } + ] + } + }, + "required": [ + "result" + ] + } + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + } + }, + "required": [ + "status", + "game_status", + "balance_updates" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.transaction": { + "oneOf": [ + { + "title": "Applied", + "oneOf": [ + { + "title": "To_contract", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "storage": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "allocated_destination_contract": { + "type": "boolean" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/021-PsQuebec.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_smart_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + } + }, + "required": [ + "status", + "ticket_updates" + ] + } + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "oneOf": [ + { + "title": "To_contract", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "storage": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "originated_contracts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id.originated" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "storage_size": { + "$ref": "#/components/schemas/bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + }, + "allocated_destination_contract": { + "type": "boolean" + }, + "lazy_storage_diff": { + "$ref": "#/components/schemas/021-PsQuebec.lazy_storage_diff" + } + }, + "required": [ + "status" + ] + }, + { + "title": "To_smart_rollup", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + } + }, + "required": [ + "status", + "ticket_updates" + ] + } + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.transfer_ticket": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "ticket_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "ticket_updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ticket_token": { + "type": "object", + "properties": { + "ticketer": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "content_type": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + }, + "content": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "required": [ + "ticketer", + "content_type", + "content" + ] + }, + "updates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "account": { + "$ref": "#/components/schemas/021-PsQuebec.transaction_destination" + }, + "amount": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "account", + "amount" + ] + } + } + }, + "required": [ + "ticket_token", + "updates" + ] + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "ticket_updates" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.update_consensus_key": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + } + }, + "required": [ + "status" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.zk_rollup_origination": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "originated_zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "originated_zk_rollup", + "size" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "originated_zk_rollup": { + "$ref": "#/components/schemas/Zk_rollup_hash" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "originated_zk_rollup", + "size" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.zk_rollup_publish": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "size" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "size": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates", + "size" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_result.zk_rollup_update": { + "oneOf": [ + { + "title": "Applied", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "applied" + ] + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates" + ] + }, + { + "title": "Failed", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "failed" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + } + }, + "required": [ + "status", + "errors" + ] + }, + { + "title": "Skipped", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "skipped" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Backtracked", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "backtracked" + ] + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.error" + } + }, + "balance_updates": { + "$ref": "#/components/schemas/021-PsQuebec.operation_metadata.alpha.balance_updates" + }, + "consumed_milligas": { + "$ref": "#/components/schemas/positive_bignum" + }, + "paid_storage_size_diff": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "status", + "balance_updates" + ] + } + ] + }, + "021-PsQuebec.operation.alpha.operation_with_metadata": { + "oneOf": [ + { + "title": "Operation_with_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.operation_contents_and_result" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + }, + { + "title": "Operation_without_metadata", + "type": "object", + "properties": { + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "contents" + ] + } + ] + }, + "021-PsQuebec.operation_metadata.alpha.balance_updates": { + "type": "array", + "items": { + "oneOf": [ + { + "title": "Contract", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "contract" + ] + }, + "contract": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "contract", + "change", + "origin" + ] + }, + { + "title": "Block_fees", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "accumulator" + ] + }, + "category": { + "type": "string", + "enum": [ + "block fees" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Deposits", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "freezer" + ] + }, + "category": { + "type": "string", + "enum": [ + "deposits" + ] + }, + "staker": { + "$ref": "#/components/schemas/021-PsQuebec.frozen_staker" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "staker", + "change", + "origin" + ] + }, + { + "title": "Nonce_revelation_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "nonce revelation rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Attesting_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "attesting rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Baking_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "baking rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Baking_bonuses", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "baking bonuses" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Storage_fees", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "storage fees" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Double_signing_punishments", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "punishments" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Lost_attesting_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "lost attesting rewards" + ] + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "participation": { + "type": "boolean" + }, + "revelation": { + "type": "boolean" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "delegate", + "participation", + "revelation", + "change", + "origin" + ] + }, + { + "title": "Liquidity_baking_subsidies", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "subsidy" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Burned", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "burned" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Commitments", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "commitment" + ] + }, + "category": { + "type": "string", + "enum": [ + "commitment" + ] + }, + "committer": { + "$ref": "#/components/schemas/Blinded public key hash" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "committer", + "change", + "origin" + ] + }, + { + "title": "Bootstrap", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "bootstrap" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Invoice", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "invoice" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Initial_commitments", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "commitment" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Minted", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "minted" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Frozen_bonds", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "freezer" + ] + }, + "category": { + "type": "string", + "enum": [ + "bonds" + ] + }, + "contract": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "bond_id": { + "$ref": "#/components/schemas/021-PsQuebec.bond_id" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "contract", + "bond_id", + "change", + "origin" + ] + }, + { + "title": "Smart_rollup_refutation_punishments", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "burned" + ] + }, + "category": { + "type": "string", + "enum": [ + "smart_rollup_refutation_punishments" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Smart_rollup_refutation_rewards", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "minted" + ] + }, + "category": { + "type": "string", + "enum": [ + "smart_rollup_refutation_rewards" + ] + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "change", + "origin" + ] + }, + { + "title": "Unstaked_deposits", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "freezer" + ] + }, + "category": { + "type": "string", + "enum": [ + "unstaked_deposits" + ] + }, + "staker": { + "$ref": "#/components/schemas/021-PsQuebec.staker" + }, + "cycle": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "staker", + "cycle", + "change", + "origin" + ] + }, + { + "title": "Staking_delegator_numerator", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "staking" + ] + }, + "category": { + "type": "string", + "enum": [ + "delegator_numerator" + ] + }, + "delegator": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "delegator", + "change", + "origin" + ] + }, + { + "title": "Staking_delegate_denominator", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "staking" + ] + }, + "category": { + "type": "string", + "enum": [ + "delegate_denominator" + ] + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + }, + "change": { + "$ref": "#/components/schemas/int64" + }, + "origin": { + "type": "string", + "enum": [ + "block" + ] + } + }, + "required": [ + "kind", + "category", + "delegate", + "change", + "origin" + ] + } + ] + } + }, + "021-PsQuebec.per_block_votes": { + "type": "object", + "properties": { + "liquidity_baking_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + }, + "adaptive_issuance_vote": { + "oneOf": [ + { + "title": "per_block_vote_on", + "type": "string", + "enum": [ + "on" + ] + }, + { + "title": "per_block_vote_off", + "type": "string", + "enum": [ + "off" + ] + }, + { + "title": "per_block_vote_pass", + "type": "string", + "enum": [ + "pass" + ] + } + ] + } + }, + "required": [ + "liquidity_baking_vote", + "adaptive_issuance_vote" + ] + }, + "021-PsQuebec.sapling_state_id": { + "title": "Sapling state identifier", + "description": "A sapling state identifier", + "oneOf": [ + { + "$ref": "#/components/schemas/bignum" + } + ] + }, + "021-PsQuebec.scripted.contracts": { + "type": "object", + "properties": { + "code": {}, + "storage": {} + }, + "required": [ + "code", + "storage" + ] + }, + "021-PsQuebec.scripted.trace": { + "type": "array", + "items": { + "type": "object", + "properties": { + "location": { + "$ref": "#/components/schemas/micheline.location" + }, + "gas": { + "$ref": "#/components/schemas/bignum" + }, + "stack": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + } + }, + "required": [ + "location", + "gas", + "stack" + ] + } + }, + "021-PsQuebec.staker": { + "title": "unstaked_frozen_staker", + "description": "Abstract notion of staker used in operation receipts for unstaked frozen deposits, either a single staker or all the stakers delegating to some delegate.", + "oneOf": [ + { + "title": "Single", + "type": "object", + "properties": { + "contract": { + "$ref": "#/components/schemas/021-PsQuebec.contract_id" + }, + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "contract", + "delegate" + ] + }, + { + "title": "Shared", + "type": "object", + "properties": { + "delegate": { + "$ref": "#/components/schemas/Signature.Public_key_hash" + } + }, + "required": [ + "delegate" + ] + } + ] + }, + "021-PsQuebec.transaction_destination": { + "title": "A destination of a transaction", + "description": "A destination notation compatible with the contract notation as given to an RPC or inside scripts. Can be a base58 implicit contract hash, a base58 originated contract hash, a base58 originated transaction rollup, or a base58 originated smart rollup.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Blinded public key hash": { + "title": "A blinded public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Chain_id": { + "title": "Network identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Context_hash": { + "title": "A hash of context (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Contract_hash": { + "title": "A contract ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "DAL_commitment": { + "title": "Commitment representation for the DAL (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Ed25519.Public_key_hash": { + "title": "An Ed25519 public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_hash": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_list_list_hash": { + "title": "A list of list of operations (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_metadata_hash": { + "title": "A Tezos operation metadata ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Protocol_hash": { + "title": "A Tezos protocol ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.Public_key": { + "title": "A Ed25519, Secp256k1, or P256 public key (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.Public_key_hash": { + "title": "A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.V0": { + "title": "A Ed25519, Secp256k1 or P256 signature (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Signature.V1": { + "title": "A Ed25519, Secp256k1, P256 or BLS signature (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Zk_rollup_hash": { + "title": "A zk rollup address (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "bignum": { + "title": "Big number", + "description": "Decimal representation of a big number", + "type": "string" + }, + "block_hash": { + "title": "A block identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "block_header.shell": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context" + ] + }, + "block_header_metadata": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "next_protocol": { + "type": "string", + "enum": [ + "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg" + ] + }, + "test_chain_status": { + "$ref": "#/components/schemas/test_chain_status" + }, + "max_operations_ttl": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_operation_data_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_block_header_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_operation_list_length": { + "type": "array", + "items": { + "type": "object", + "properties": { + "max_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_op": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "max_size" + ] + } + } + }, + "required": [ + "protocol", + "next_protocol", + "test_chain_status", + "max_operations_ttl", + "max_operation_data_length", + "max_block_header_length", + "max_operation_list_length" + ], + "additionalProperties": {} + }, + "cycle_nonce": { + "title": "A nonce hash (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "dal_skip_list_pointer": { + "title": "A hash that represents the skip list pointers (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "error": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + }, + "fitness": { + "title": "Block fitness", + "description": "The fitness, or score, of a block, that allow the Tezos to decide which chain is the best. A fitness value is a list of byte sequences. They are compared as follows: shortest lists are smaller; lists of the same length are compared according to the lexicographical order.", + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "inode_tree": { + "oneOf": [ + { + "title": "Inode_tree", + "type": "object", + "properties": { + "inode_tree": { + "type": "object", + "properties": { + "length": { + "$ref": "#/components/schemas/int64" + }, + "proofs": { + "oneOf": [ + { + "title": "sparse_proof", + "type": "object", + "properties": { + "sparse_proof": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + { + "$ref": "#/components/schemas/inode_tree" + } + ] + } + } + } + }, + "required": [ + "sparse_proof" + ] + }, + { + "title": "dense_proof", + "type": "object", + "properties": { + "dense_proof": { + "type": "array", + "items": { + "$ref": "#/components/schemas/inode_tree" + } + } + }, + "required": [ + "dense_proof" + ] + } + ] + } + }, + "required": [ + "length", + "proofs" + ] + } + }, + "required": [ + "inode_tree" + ] + }, + { + "title": "other_inode_trees", + "type": "object", + "properties": { + "other_inode_trees": { + "oneOf": [ + { + "title": "Inode_values", + "type": "object", + "properties": { + "inode_values": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "$ref": "#/components/schemas/tree_encoding" + } + ] + } + } + } + }, + "required": [ + "inode_values" + ] + }, + { + "title": "other_inode_trees", + "type": "object", + "properties": { + "other_inode_trees": { + "oneOf": [ + { + "title": "Blinded_inode", + "type": "object", + "properties": { + "blinded_inode": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "blinded_inode" + ] + }, + { + "title": "Inode_extender", + "type": "object", + "properties": { + "inode_extender": { + "type": "object", + "properties": { + "length": { + "$ref": "#/components/schemas/int64" + }, + "segment": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "proof": { + "$ref": "#/components/schemas/inode_tree" + } + }, + "required": [ + "length", + "segment", + "proof" + ] + } + }, + "required": [ + "inode_extender" + ] + }, + { + "title": "None", + "type": "object", + "properties": { + "none": {} + }, + "required": [ + "none" + ] + } + ] + } + }, + "required": [ + "other_inode_trees" + ] + } + ] + } + }, + "required": [ + "other_inode_trees" + ] + } + ] + }, + "int64": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + }, + "merkle_tree": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "oneOf": [ + { + "title": "Hash", + "type": "array", + "items": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/components/schemas/unistring" + } + ] + } + }, + { + "title": "Data", + "oneOf": [ + { + "$ref": "#/components/schemas/raw_context" + } + ] + }, + { + "title": "Continue", + "oneOf": [ + { + "$ref": "#/components/schemas/merkle_tree" + } + ] + } + ] + } + ] + } + } + }, + "micheline.021-PsQuebec.michelson_v1.expression": { + "oneOf": [ + { + "title": "Int", + "type": "object", + "properties": { + "int": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "int" + ] + }, + { + "title": "String", + "type": "object", + "properties": { + "string": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "string" + ] + }, + { + "title": "Bytes", + "type": "object", + "properties": { + "bytes": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "bytes" + ] + }, + { + "title": "Sequence", + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + { + "title": "Prim__generic", + "description": "Generic primitive (any number of args with or without annotations)", + "type": "object", + "properties": { + "prim": { + "$ref": "#/components/schemas/021-PsQuebec.michelson.v1.primitives" + }, + "args": { + "type": "array", + "items": { + "$ref": "#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression" + } + }, + "annots": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + }, + "required": [ + "prim" + ] + } + ] + }, + "micheline.location": { + "title": "Canonical location in a Micheline expression", + "description": "The location of a node in a Micheline expression tree in prefix order, with zero being the root and adding one for every basic node, sequence and primitive application.", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "next_operation": { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg" + ] + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/021-PsQuebec.operation.alpha.contents" + } + }, + "signature": { + "$ref": "#/components/schemas/Signature.V1" + } + }, + "required": [ + "protocol", + "branch", + "contents" + ] + }, + "operation": { + "oneOf": [ + { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "metadata": { + "type": "string", + "enum": [ + "too large" + ] + } + }, + "required": [ + "protocol", + "chain_id", + "hash", + "branch", + "metadata" + ], + "additionalProperties": {} + }, + { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + } + }, + "required": [ + "protocol", + "chain_id", + "hash", + "branch" + ], + "additionalProperties": {} + }, + { + "description": "An operation's shell header.", + "type": "object", + "properties": { + "protocol": { + "type": "string", + "enum": [ + "ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "branch": { + "$ref": "#/components/schemas/block_hash" + } + }, + "required": [ + "protocol", + "chain_id", + "hash", + "branch" + ], + "additionalProperties": {} + } + ] + }, + "positive_bignum": { + "title": "Positive big number", + "description": "Decimal representation of a positive big number", + "type": "string" + }, + "random": { + "title": "A random generation state (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "raw_block_header": { + "title": "Shell header", + "description": "Block header's shell-related content. It contains information such as the block level, its predecessor and timestamp.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "content": { + "oneOf": [ + { + "title": "Activate", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters" + ] + }, + { + "title": "Activate_testchain", + "type": "object", + "properties": { + "command": { + "type": "string", + "enum": [ + "activate_testchain" + ] + }, + "hash": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "protocol_parameters": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "validity_time": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "command", + "hash", + "fitness", + "protocol_parameters", + "validity_time" + ] + } + ] + }, + "signature": { + "$ref": "#/components/schemas/Signature.V0" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "content", + "signature" + ] + }, + "raw_context": { + "nullable": true, + "oneOf": [ + { + "title": "Key", + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "title": "Dir", + "type": "object", + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/raw_context" + } + } + ] + }, + "sapling.DH.epk": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "sapling.transaction.ciphertext": { + "type": "object", + "properties": { + "cv": { + "$ref": "#/components/schemas/sapling.transaction.commitment_value" + }, + "epk": { + "$ref": "#/components/schemas/sapling.DH.epk" + }, + "payload_enc": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "nonce_enc": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "payload_out": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "nonce_out": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "cv", + "epk", + "payload_enc", + "nonce_enc", + "payload_out", + "nonce_out" + ] + }, + "sapling.transaction.commitment": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "sapling.transaction.commitment_hash": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "sapling.transaction.commitment_value": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "sapling.transaction.nullifier": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "script_expr": { + "title": "A script expression ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_address": { + "title": "A smart rollup address (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_commitment_hash": { + "title": "The hash of a commitment of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_inbox_hash": { + "title": "The hash of an inbox of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_merkelized_payload_hashes_hash": { + "title": "The hash of the Merkelized payload hashes of a smart rollup inbox (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "smart_rollup_state_hash": { + "title": "The hash of the VM state of a smart rollup (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "test_chain_status": { + "description": "The status of the test chain: not_running (there is no test chain at the moment), forking (the test chain is being setup), running (the test chain is running).", + "oneOf": [ + { + "title": "Not_running", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "not_running" + ] + } + }, + "required": [ + "status" + ] + }, + { + "title": "Forking", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "forking" + ] + }, + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "expiration": { + "$ref": "#/components/schemas/timestamp.protocol" + } + }, + "required": [ + "status", + "protocol", + "expiration" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "running" + ] + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "genesis": { + "$ref": "#/components/schemas/block_hash" + }, + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "expiration": { + "$ref": "#/components/schemas/timestamp.protocol" + } + }, + "required": [ + "status", + "chain_id", + "genesis", + "protocol", + "expiration" + ] + } + ] + }, + "timestamp.protocol": { + "description": "A timestamp as seen by the protocol: second-level precision, epoch based.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "tree_encoding": { + "oneOf": [ + { + "title": "Inode", + "type": "object", + "properties": { + "inode": { + "type": "object", + "properties": { + "length": { + "$ref": "#/components/schemas/int64" + }, + "proofs": { + "oneOf": [ + { + "title": "sparse_proof", + "type": "object", + "properties": { + "sparse_proof": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + { + "$ref": "#/components/schemas/inode_tree" + } + ] + } + } + } + }, + "required": [ + "sparse_proof" + ] + }, + { + "title": "dense_proof", + "type": "object", + "properties": { + "dense_proof": { + "type": "array", + "items": { + "$ref": "#/components/schemas/inode_tree" + } + } + }, + "required": [ + "dense_proof" + ] + } + ] + } + }, + "required": [ + "length", + "proofs" + ] + } + }, + "required": [ + "inode" + ] + }, + { + "title": "other_trees", + "type": "object", + "properties": { + "other_trees": { + "oneOf": [ + { + "title": "Node", + "type": "object", + "properties": { + "node": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "$ref": "#/components/schemas/tree_encoding" + } + ] + } + } + } + }, + "required": [ + "node" + ] + }, + { + "title": "other_trees", + "type": "object", + "properties": { + "other_trees": { + "oneOf": [ + { + "title": "Value", + "type": "object", + "properties": { + "value": { + "oneOf": [ + { + "title": "short_bytes", + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "title": "medium_bytes", + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + { + "title": "long_bytes", + "description": "This case is void. No data is accepted." + }, + { + "title": "unlimited_bytes", + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + ] + } + }, + "required": [ + "value" + ] + }, + { + "title": "Blinded_value", + "type": "object", + "properties": { + "blinded_value": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "blinded_value" + ] + }, + { + "title": "Blinded_node", + "type": "object", + "properties": { + "blinded_node": { + "$ref": "#/components/schemas/Context_hash" + } + }, + "required": [ + "blinded_node" + ] + }, + { + "title": "Extender", + "type": "object", + "properties": { + "extender": { + "type": "object", + "properties": { + "length": { + "$ref": "#/components/schemas/int64" + }, + "segment": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "proof": { + "$ref": "#/components/schemas/inode_tree" + } + }, + "required": [ + "length", + "segment", + "proof" + ] + } + }, + "required": [ + "extender" + ] + }, + { + "title": "None", + "type": "object", + "properties": { + "none": {} + }, + "required": [ + "none" + ] + } + ] + } + }, + "required": [ + "other_trees" + ] + } + ] + } + }, + "required": [ + "other_trees" + ] + } + ] + }, + "unistring": { + "title": "Universal string representation", + "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "invalid_utf8_string": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + }, + "required": [ + "invalid_utf8_string" + ] + } + ] + }, + "value_hash": { + "title": "Hash of a consensus value (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } +} diff --git a/docs/api/quebec-openapi.json b/docs/api/quebec-openapi.json index 6ef44ee19ed3..aaae643a9884 100644 --- a/docs/api/quebec-openapi.json +++ b/docs/api/quebec-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Protocol quebec RPC", "description": "The RPC API for protocol quebec served by the Octez node.", - "version": "Octez 21.4 (b8278e10)" + "version": "Octez 22.0~rc1 (f1704a05)" }, "paths": { "/": { diff --git a/docs/api/quebec-smart-rollup-node-openapi-rc.json b/docs/api/quebec-smart-rollup-node-openapi-rc.json new file mode 100644 index 000000000000..9a72887f1e56 --- /dev/null +++ b/docs/api/quebec-smart-rollup-node-openapi-rc.json @@ -0,0 +1 @@ +{"openapi":"3.0.0","info":{"title":"Smart Rollup Node RPCs","description":"Smart Rollup Node RPC API for protocol PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg","version":"Octez 21.0~rc3+dev (b950d9ce)"},"paths":{"/admin/batcher/queue":{"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"order_below","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_no_order","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/cancel_gc":{"get":{"description":"Cancel any ongoing GC","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"boolean"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues":{"get":{"description":"Get operation queues of injectors","parameters":[{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue":{"type":"array","items":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","slot_index","commitment","commitment_proof"]}]}}},"required":["tags","queue"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}},"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"order_below","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}},{"name":"drop_no_order","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues/total":{"get":{"description":"Get total operations queued in injectors","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"injectors":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["tags","queue_size"]}},"total":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["injectors","total"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/config":{"get":{"description":"Returns the rollup node configuration","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"smart-rollup-address":{"description":"Smart rollup address","oneOf":[{"$ref":"#/components/schemas/smart_rollup_address"}]},"boot-sector":{"description":"Boot sector","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart-rollup-node-operator":{"description":"Operators that sign operations of the smart rollup, by purpose","type":"object","properties":{"operating":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"batching":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"cementing":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"recovering":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"executing_outbox":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}}},"rpc-addr":{"description":"RPC address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"rpc-port":{"description":"RPC port","type":"integer","minimum":0,"maximum":65535},"acl":{"description":"Access control list","type":"array","items":{"oneOf":[{"title":"Whitelist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","whitelist"]},{"title":"Blacklist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","blacklist"]}]}},"metrics-addr":{"description":"Metrics address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"performance-metrics":{"type":"boolean"},"reconnection_delay":{"description":"The reconnection (to the tezos node) delay in seconds","type":"number"},"fee-parameters":{"description":"The fee parameters for each purpose used when injecting operations in L1","type":"object","properties":{"publish":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"add_messages":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"cement":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"timeout":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"refute":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"recover":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"execute_outbox_message":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"publish_dal_commitment":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}}}},"mode":{"description":"The mode for this rollup node","oneOf":[{"$ref":"#/components/schemas/sc_rollup_node_mode"}]},"loser-mode":{"description":"If enabled, the rollup node will issue wrong commitments (for test only!)","type":"array","items":{"type":"object","properties":{"level":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_tick":{"$ref":"#/components/schemas/int64"}},"required":["level","message_index","message_tick"]}},"unsafe-pvm-patches":{"description":"Unsafe patches to apply to the PVM. For tests only, don't set this value in production.","type":"array","items":{"oneOf":[{"title":"increase_max_nb_tick","type":"object","properties":{"increase_max_nb_tick":{"$ref":"#/components/schemas/int64"}},"required":["increase_max_nb_tick"]},{"title":"patch_durable_storage","type":"object","properties":{"patch_durable_storage":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}},"required":["patch_durable_storage"]}]}},"execute-outbox-messages-filter":{"description":"A filter to select which outbox messages the rollup will execute automatically (must be in maintenance or operator mode).","type":"array","items":{"type":"object","properties":{"transaction":{"type":"object","properties":{"destination":{"oneOf":[{"title":"any_destination","description":"Accept any destination.","type":"string","enum":["any"]},{"title":"destination_among","description":"Accept destination that matches the given list (in base58-check).","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]},"entrypoint":{"oneOf":[{"title":"any_entrypoint","description":"Accept any entrypoint.","type":"string","enum":["any"]},{"title":"entrypoint_among","description":"Accept entrypoint of the given list.","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]}},"required":["destination","entrypoint"]}},"required":["transaction"]}},"DAL node endpoint":{"$ref":"#/components/schemas/unistring"},"pre-images-endpoint":{"$ref":"#/components/schemas/unistring"},"batcher":{"type":"object","properties":{"min_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"min_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"injector":{"type":"object","properties":{"retention_period":{"type":"integer","minimum":0,"maximum":65535},"attempts":{"type":"integer","minimum":0,"maximum":65535},"injection_ttl":{"type":"integer","minimum":0,"maximum":65535}}},"l1_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l2_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"prefetch_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l1_rpc_timeout":{"type":"number"},"loop_retry_delay":{"type":"number"},"index_buffer_size":{"description":"Deprecated","type":"integer","minimum":-1073741824,"maximum":1073741823},"irmin_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"log-kernel-debug":{"type":"boolean"},"unsafe-disable-wasm-kernel-checks":{"type":"boolean"},"no-degraded":{"type":"boolean"},"gc-parameters":{"type":"object","properties":{"frequency":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"context_splitting_period":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"history-mode":{"type":"string","enum":["full","archive"]},"cors":{"type":"object","properties":{"allowed_headers":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}},"allowed_origins":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["allowed_headers","allowed_origins"]},"bail-on-disagree":{"type":"boolean"}},"required":["smart-rollup-address","smart-rollup-node-operator","rpc-addr","rpc-port","acl","performance-metrics","reconnection_delay","fee-parameters","mode","loser-mode","unsafe-pvm-patches","execute-outbox-messages-filter","batcher","injector","l1_blocks_cache_size","l2_blocks_cache_size","l1_rpc_timeout","loop_retry_delay","log-kernel-debug","unsafe-disable-wasm-kernel-checks","no-degraded","gc-parameters","cors","bail-on-disagree"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/describe":{"get":{"description":"RPCs documentation and input/output schema","parameters":[{"name":"recurse","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service_tree"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}":{"get":{"description":"Layer-2 block of the layer-2 chain with respect to a Layer 1 block identifier","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"inbox":{"description":"Inbox for this block.","type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]},"messages":{"description":"Messages added to the inbox in this block.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"commitment":{"description":"Commitment, if any is computed for this block.","type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"outbox":{"description":"Outbox messages produced by PVM execution of inbox","type":"array","items":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["message_index","whitelist_update"]},{"title":"transactions","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["message_index","transactions"]}]}},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","inbox","messages","initial_tick","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/committed_status":{"get":{"description":"Commitment status of the rollup state which will include content of this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"uncommitted","description":"L2 Block content is not yet committed on L1","type":"object","properties":{"uncommitted":{"type":"object","properties":{"commitment_level":{"description":"Level at which the following commitment will be produced.","type":"integer","minimum":-2147483648,"maximum":2147483647},"estimated_commitment_time":{"description":"Estimated time at which the commitment will be published.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_level","estimated_commitment_time","estimated_cementation_time"]}},"required":["uncommitted"]},{"title":"committed","description":"L2 Block content is already committed on L1 but not yet cemented","type":"object","properties":{"committed":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_hash","commitment_level","first_published_level","published_level","estimated_cementation_time"]}},"required":["committed"]},{"title":"cemented","description":"L2 Block content is already cemented","type":"object","properties":{"cemented":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"blocks_since_cemented":{"description":"Number of blocks since commitment was cemented.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment_hash","commitment_level","first_published_level","published_level","blocks_since_cemented"]}},"required":["cemented"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/processed_slots":{"get":{"description":"Data availability processed slots and their statuses","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"status":{"type":"string","enum":["unconfirmed","confirmed"]}},"required":["index","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/slot_headers":{"get":{"description":"Availability slots for a given block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","enum":["0"]},"level":{"type":"integer","minimum":0,"maximum":2147483647},"index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"}},"required":["version","level","index","commitment"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/length":{"get":{"description":"Retrieve number of bytes in raw representation of value by key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/int64"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/subkeys":{"get":{"description":"Retrieve subkeys of the specified key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/value":{"get":{"description":"Retrieve value by key from PVM durable storage. PVM state is taken with respect to the specified block level. Value returned in hex format.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/values":{"get":{"description":"Retrieve values directly under a given key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/hash":{"get":{"description":"Tezos block hash of block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/helpers/proofs/outbox/{level}/messages":{"get":{"description":"Generate serialized output proof for some outbox message at level and index","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}},{"name":"index","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["commitment","proof"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/inbox":{"get":{"description":"Rollup inbox for block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/level":{"get":{"description":"Level of Tezos block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"integer","minimum":-2147483648,"maximum":2147483647}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/num_messages":{"get":{"description":"Number of messages for specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox_level","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox/{level}/messages":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/simulate":{"post":{"description":"Simulate messages evaluation by the PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"description":"Serialized messages for simulation.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"reveal_pages":{"description":"Pages (at most 4kB) to be used for revelation ticks","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"insight_requests":{"description":"Paths in the PVM to inspect after the simulation","type":"array","items":{"oneOf":[{"title":"pvm_state","description":"Path in the PVM state","type":"object","properties":{"kind":{"type":"string","enum":["pvm_state"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]},{"title":"durable_storage","description":"Path in the PVM durable storage","type":"object","properties":{"kind":{"type":"string","enum":["durable_storage"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]}]}},"log_kernel_debug_file":{"description":"File in which to emit kernel logs. This file will be created in /simulation_kernel_logs/, where is the data directory of the rollup node.","oneOf":[{"$ref":"#/components/schemas/unistring"}]}},"required":["messages"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"state_hash":{"description":"Hash of the state after execution of the PVM on the input messages","oneOf":[{"$ref":"#/components/schemas/smart_rollup_state_hash"}]},"status":{"description":"Status of the PVM after evaluation","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"output":{"description":"Output produced by evaluation of the messages","type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}},"inbox_level":{"description":"Level of the inbox that would contain these messages","type":"integer","minimum":-2147483648,"maximum":2147483647},"num_ticks":{"description":"Ticks taken by the PVM for evaluating the messages","oneOf":[{"$ref":"#/components/schemas/bignum"}]},"insights":{"description":"PVM state values requested after the simulation","type":"array","items":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}},"required":["state_hash","status","output","inbox_level","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state":{"get":{"description":"Retrieve value from key is PVM state of specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_current_level":{"get":{"description":"Retrieve the current level of a PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":0,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_hash":{"get":{"description":"State hash for this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/status":{"get":{"description":"PVM status at block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/ticks":{"get":{"description":"Number of ticks for specified level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/total_ticks":{"get":{"description":"Total number of ticks at specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/last_stored_commitment":{"get":{"description":"Last commitment computed by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/monitor_blocks":{"get":{"description":"Monitor and streaming the L2 blocks","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","initial_tick","num_ticks"],"additionalProperties":{}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/smart_rollup_address":{"get":{"description":"Smart rollup address","responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_head":{"get":{"description":"Tezos head known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/block_hash"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_level":{"get":{"description":"Tezos level known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/health":{"get":{"description":"Returns health status information for the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"healthy":{"type":"boolean"},"degraded":{"type":"boolean"},"l1":{"type":"object","properties":{"connection":{"type":"string","enum":["connected","reconnecting","disconnected"]},"blocks_late":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"last_seen_head":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"timestamp":{"$ref":"#/components/schemas/timestamp.protocol"}},"required":["hash","level","timestamp"]}},"required":["connection","blocks_late"]},"active_workers":{"type":"array","items":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/unistring"},{"oneOf":[{"title":"running","type":"string","enum":["running"]},{"title":"crashed","type":"object","properties":{"crashed":{"$ref":"#/components/schemas/exception"}},"required":["crashed"]}]}]}}}},"required":["healthy","degraded","l1","active_workers"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/injection":{"post":{"description":"Inject messages in the batcher's queue","parameters":[{"name":"order","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_duplicate","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/sc_l2_message"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"description":"Ids of injected L2 messages","type":"array","items":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue":{"get":{"description":"List messages present in the batcher's queue","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/positive_bignum"},"id":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"},"message":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/sc_l2_message"},"counter":{"$ref":"#/components/schemas/positive_bignum"}},"required":["content","counter"]}},"required":["id","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue/{l2_message_id}":{"get":{"description":"Retrieve an L2 message and its status","parameters":[{"name":"l2_message_id","in":"path","description":"A L2 message id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/commitments/{commitment_hash}":{"get":{"description":"Commitment computed and published by the node","parameters":[{"name":"commitment_hash","in":"path","description":"A commitment hash.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/batcher/injection":{"post":{"description":"Inject the given messages in the DAL queue, even in case of duplicates","requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injected/operations/statuses":{"get":{"description":"Retrieve the statuses of all known operations injected via DAL.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/injector_operation_hash"},"status":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}},"required":["id","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injection/{injector_operation_hash}/forget":{"post":{"description":"Forget information about the injection whose id is given","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/slot/indices":{"post":{"description":"Provide the (new) list of slot indices to use to the rollup node's DAL injector","requestBody":{"content":{"application/json":{"schema":{"description":"Slot indices to set","type":"object","properties":{"indices":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["indices"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/gc_info":{"get":{"description":"Information about garbage collection","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"first_available_level":{"description":"First level where data is guaranteed to be available in the rollup node.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_gc_level":{"description":"The level at which the last GC was triggered.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_context_split_level":{"description":"The level at which the context was split for the last time. Commits before this level are in other chunks.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_successful_gc_target":{"description":"The level which was the target of the last successful GC.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["first_available_level"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/injector/operation/{injector_operation_hash}/status":{"get":{"description":"Retrieve the status of the injected operation using its injector ID.","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/last_published_commitment":{"get":{"description":"Last commitment published by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/executable":{"get":{"description":"Pending outbox messages which can be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/unexecutable":{"get":{"description":"Pending outbox messages which cannot yet be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/synchronized":{"get":{"description":"Wait for the node to have synchronized its L2 chain with the L1 chain, streaming its progress.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"synchronized","type":"string","enum":["synchronized"]},{"title":"synchronizing","type":"object","properties":{"synchronizing":{"type":"object","properties":{"processed_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"l1_head_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"percentage_done":{"type":"number"}},"required":["processed_level","l1_head_level","percentage_done"]}},"required":["synchronizing"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/openapi":{"get":{"description":"OpenAPI specification of RPCs for rollup node","parameters":[{"name":"protocol","in":"query","description":"Protocol_hash (Base58Check-encoded)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/ping":{"get":{"description":"Returns an empty response if the rollup node can answer requests","responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/memory":{"get":{"description":"Gets memory usage stats","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"Linux_proc_statm","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"$ref":"#/components/schemas/int64"},"resident":{"$ref":"#/components/schemas/int64"},"shared":{"$ref":"#/components/schemas/int64"},"text":{"$ref":"#/components/schemas/int64"},"lib":{"$ref":"#/components/schemas/int64"},"data":{"$ref":"#/components/schemas/int64"},"dt":{"$ref":"#/components/schemas/int64"}},"required":["page_size","size","resident","shared","text","lib","data","dt"]},{"title":"Darwin_ps","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"mem":{"type":"number"},"resident":{"$ref":"#/components/schemas/int64"}},"required":["page_size","mem","resident"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/ocaml_gc":{"get":{"description":"Gets stats from the OCaml Garbage Collector","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"minor_words":{"type":"number"},"promoted_words":{"type":"number"},"major_words":{"type":"number"},"minor_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"forced_major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_chunks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"largest_free":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fragments":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"compactions":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"top_heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"stack_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["minor_words","promoted_words","major_words","minor_collections","major_collections","forced_major_collections","heap_words","heap_chunks","live_words","live_blocks","free_words","free_blocks","largest_free","fragments","compactions","top_heap_words","stack_size"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/version":{"get":{"description":"Returns the version information of the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/unistring"},"store_version":{"$ref":"#/components/schemas/unistring"},"context_version":{"$ref":"#/components/schemas/unistring"}},"required":["version","store_version","context_version"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}}},"components":{"schemas":{"021-PsQuebec.contract_id.originated":{"title":"A contract handle -- originated account","description":"A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"021-PsQuebec.michelson.v1.primitives":{"type":"string","enum":["SHA256","GT","RIGHT","SAPLING_EMPTY_STATE","False","RENAME","CAST","tx_rollup_l2_address","PACK","BYTES","timestamp","bls12_381_g2","Pair","IF_LEFT","contract","mutez","storage","PAIR","view","UNPACK","ADD","DROP","big_map","MUL","NAT","SELF","CONTRACT","CDR","SAPLING_VERIFY_UPDATE","pair","LSL","int","operation","SHA512","CREATE_ACCOUNT","BLAKE2B","SPLIT_TICKET","LEFT","never","unit","address","signature","CHAIN_ID","constant","SLICE","SENDER","IMPLICIT_ACCOUNT","key_hash","AMOUNT","CHECK_SIGNATURE","sapling_state","LT","EXEC","Elt","EMIT","NONE","CREATE_CONTRACT","LSR","SET_DELEGATE","OPEN_CHEST","TRANSFER_TOKENS","Some","parameter","set","bls12_381_fr","EDIV","None","STEPS_TO_QUOTA","key","ABS","list","NEVER","map","CAR","IF","GET_AND_UPDATE","CONCAT","LOOP","DIG","KECCAK","Lambda_rec","SOME","option","SUB","INT","PUSH","CONS","Unit","ISNAT","NEG","XOR","APPLY","UNPAIR","JOIN_TICKETS","SIZE","lambda","AND","NEQ","or","BALANCE","UNIT","VOTING_POWER","OR","LAMBDA","chest","LOOP_LEFT","True","Right","Ticket","HASH_KEY","DUG","sapling_transaction","SUB_MUTEZ","EMPTY_BIG_MAP","MEM","IF_NONE","nat","TOTAL_VOTING_POWER","LE","Left","chest_key","READ_TICKET","ticket","bls12_381_g1","LEVEL","VIEW","string","PAIRING_CHECK","LAMBDA_REC","NOW","SHA3","bool","MIN_BLOCK_TIME","GET","bytes","sapling_transaction_deprecated","NIL","IF_CONS","GE","NOT","SWAP","ITER","ADDRESS","TICKET","DUP","EMPTY_MAP","UPDATE","chain_id","TICKET_DEPRECATED","EMPTY_SET","FAILWITH","MAP","SOURCE","DIP","COMPARE","EQ","SELF_ADDRESS","code"]},"DAL_commitment":{"title":"Commitment representation for the DAL (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Operation_hash":{"title":"A Tezos operation ID (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Signature.Public_key_hash":{"title":"A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Smart_rollup_context_hash":{"title":"A base58-check encoded hash of a Smart rollup node context (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"bignum":{"title":"Big number","description":"Decimal representation of a big number","type":"string"},"block_hash":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"error":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"},"exception":{"description":"Exception","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"injector_operation_hash":{"title":"An identifier (hash) for an operation in the injector (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"int64":{"title":"64 bit integers","description":"Decimal representation of 64 bit integers","type":"string"},"layout":{"oneOf":[{"title":"Zero_width","type":"object","properties":{"kind":{"type":"string","enum":["Zero_width"]}},"required":["kind"]},{"title":"Int","type":"object","properties":{"size":{"type":"string","enum":["Int32","Int16","Uint16","Int64","Int8","Uint8"]},"endianness":{"type":"string","enum":["Little","Big"]},"kind":{"type":"string","enum":["Int"]}},"required":["size","kind"]},{"title":"Bool","type":"object","properties":{"kind":{"type":"string","enum":["Bool"]}},"required":["kind"]},{"title":"RangedInt","type":"object","properties":{"min":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"endianness":{"type":"string","enum":["Little","Big"]},"max":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["RangedInt"]}},"required":["min","max","kind"]},{"title":"RangedFloat","type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"kind":{"type":"string","enum":["RangedFloat"]}},"required":["min","max","kind"]},{"title":"Float","type":"object","properties":{"kind":{"type":"string","enum":["Float"]}},"required":["kind"]},{"title":"Bytes","type":"object","properties":{"kind":{"type":"string","enum":["Bytes"]}},"required":["kind"]},{"title":"String","type":"object","properties":{"kind":{"type":"string","enum":["String"]}},"required":["kind"]},{"title":"Enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"reference":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Enum"]}},"required":["size","reference","kind"]},{"title":"Seq","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["Seq"]},"length_limit":{"oneOf":[{"title":"No_limit","type":"object","properties":{"kind":{"type":"string","enum":["no-limit"]}},"required":["kind"]},{"title":"At_most","type":"object","properties":{"kind":{"type":"string","enum":["at-most"]},"at_most":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","at_most"]},{"title":"Exactly","type":"object","properties":{"kind":{"type":"string","enum":["exactly"]},"exactly":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","exactly"]}]}},"required":["layout","kind"]},{"title":"Ref","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Ref"]}},"required":["name","kind"]},{"title":"Padding","type":"object","properties":{"kind":{"type":"string","enum":["Padding"]}},"required":["kind"]}]},"micheline.021-PsQuebec.michelson_v1.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/021-PsQuebec.michelson.v1.primitives"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters_type.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"mutez":{"title":"A millionth of a tez","description":"One million mutez make a tez (1 tez = 1e6 mutez)","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"nanotez":{"title":"A thousandth of a mutez","description":"One thousand nanotez make a mutez (1 tez = 1e9 nanotez)","type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/bignum"}]}},"positive_bignum":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"},"sc_l2_message":{"description":"A hex encoded smart rollup message","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"sc_rollup_l2_message_id":{"title":"A smart rollup layer 2 message identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"sc_rollup_node_l1_operation":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","slot_index","commitment","commitment_proof"]}]},"sc_rollup_node_mode":{"oneOf":[{"title":"custom","type":"object","properties":{"custom":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}}},"required":["custom"]},{"title":"observer","type":"string","enum":["observer"]},{"title":"accuser","type":"string","enum":["accuser"]},{"title":"bailout","type":"string","enum":["bailout"]},{"title":"batcher","type":"string","enum":["batcher"]},{"title":"maintenance","type":"string","enum":["maintenance"]},{"title":"operator","type":"string","enum":["operator"]}]},"schema.field":{"oneOf":[{"title":"Named_field","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"layout":{"$ref":"#/components/schemas/layout"},"data_kind":{"$ref":"#/components/schemas/schema.kind"},"kind":{"type":"string","enum":["named"]}},"required":["name","layout","data_kind","kind"]},{"title":"Anonymous_field","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["anon"]},"data_kind":{"$ref":"#/components/schemas/schema.kind"}},"required":["layout","kind","data_kind"]},{"title":"Dynamic_field","type":"object","properties":{"kind":{"type":"string","enum":["dyn"]},"name":{"$ref":"#/components/schemas/unistring"},"num_fields":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"type":"string","enum":["N","Uint30","Uint16","Uint8"]}},"required":["kind","num_fields","size"]},{"title":"Optional_field","type":"object","properties":{"kind":{"type":"string","enum":["option_indicator"]},"name":{"$ref":"#/components/schemas/unistring"}},"required":["kind","name"]}]},"schema.kind":{"oneOf":[{"title":"Fixed","type":"object","properties":{"size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["Fixed"]}},"required":["size","kind"]},{"title":"Dynamic","type":"object","properties":{"kind":{"type":"string","enum":["Dynamic"]}},"required":["kind"]},{"title":"Variable","type":"object","properties":{"kind":{"type":"string","enum":["Variable"]}},"required":["kind"]}]},"service_tree":{"oneOf":[{"title":"Static","type":"object","properties":{"static":{"type":"object","properties":{"get_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"post_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"delete_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"put_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"patch_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"subdirs":{"oneOf":[{"title":"Suffixes","type":"object","properties":{"suffixes":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["name","tree"]}}},"required":["suffixes"]},{"title":"Arg","type":"object","properties":{"dynamic_dispatch":{"type":"object","properties":{"arg":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["arg","tree"]}},"required":["dynamic_dispatch"]}]}}}},"required":["static"]},{"title":"Dynamic","type":"object","properties":{"dynamic":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/unistring"}]}]}},"required":["dynamic"]},{"title":"Empty","type":"string","enum":["empty"]}]},"smart_rollup_address":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_commitment_hash":{"title":"The hash of a commitment of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_inbox_hash":{"title":"The hash of an inbox of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_merkelized_payload_hashes_hash":{"title":"The hash of the Merkelized payload hashes of a smart rollup inbox (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_state_hash":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.protocol":{"description":"A timestamp as seen by the protocol: second-level precision, epoch based.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.rfc":{"title":"RFC 3339 formatted timestamp","description":"A date in RFC 3339 notation.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.system":{"description":"A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.","oneOf":[{"title":"RFC encoding","oneOf":[{"$ref":"#/components/schemas/timestamp.rfc"}]},{"title":"Second since epoch","oneOf":[{"$ref":"#/components/schemas/int64"}]}]},"union case":{"type":"object","properties":{"tag":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}},"name":{"$ref":"#/components/schemas/unistring"}},"required":["tag","fields"]},"unistring":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}} diff --git a/docs/api/quebec-smart-rollup-node-openapi.json b/docs/api/quebec-smart-rollup-node-openapi.json index 05eadb2a9a0a..5905927a3ce4 100644 --- a/docs/api/quebec-smart-rollup-node-openapi.json +++ b/docs/api/quebec-smart-rollup-node-openapi.json @@ -1 +1 @@ -{"openapi":"3.0.0","info":{"title":"Smart Rollup Node RPCs","description":"Smart Rollup Node RPC API for protocol PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg","version":"Octez 21.4 (b8278e10)"},"paths":{"/admin/cancel_gc":{"get":{"description":"Cancel any ongoing GC","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"boolean"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues":{"get":{"description":"Get operation queues of injectors","parameters":[{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue":{"type":"array","items":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","slot_index","commitment","commitment_proof"]}]}}},"required":["tags","queue"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}},"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues/total":{"get":{"description":"Get total operations queued in injectors","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"injectors":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["tags","queue_size"]}},"total":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["injectors","total"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/config":{"get":{"description":"Returns the rollup node configuration","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"smart-rollup-address":{"description":"Smart rollup address","oneOf":[{"$ref":"#/components/schemas/smart_rollup_address"}]},"boot-sector":{"description":"Boot sector","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart-rollup-node-operator":{"description":"Operators that sign operations of the smart rollup, by purpose","type":"object","properties":{"operating":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"batching":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"cementing":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"recovering":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"executing_outbox":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}}},"rpc-addr":{"description":"RPC address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"rpc-port":{"description":"RPC port","type":"integer","minimum":0,"maximum":65535},"acl":{"description":"Access control list","type":"array","items":{"oneOf":[{"title":"Whitelist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","whitelist"]},{"title":"Blacklist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","blacklist"]}]}},"metrics-addr":{"description":"Metrics address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"performance-metrics":{"type":"boolean"},"reconnection_delay":{"description":"The reconnection (to the tezos node) delay in seconds","type":"number"},"fee-parameters":{"description":"The fee parameters for each purpose used when injecting operations in L1","type":"object","properties":{"publish":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"add_messages":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"cement":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"timeout":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"refute":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"recover":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"execute_outbox_message":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"publish_dal_commitment":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}}}},"mode":{"description":"The mode for this rollup node","oneOf":[{"$ref":"#/components/schemas/sc_rollup_node_mode"}]},"loser-mode":{"description":"If enabled, the rollup node will issue wrong commitments (for test only!)","type":"array","items":{"type":"object","properties":{"level":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_tick":{"$ref":"#/components/schemas/int64"}},"required":["level","message_index","message_tick"]}},"unsafe-pvm-patches":{"description":"Unsafe patches to apply to the PVM. For tests only, don't set this value in production.","type":"array","items":{"oneOf":[{"title":"increase_max_nb_tick","type":"object","properties":{"increase_max_nb_tick":{"$ref":"#/components/schemas/int64"}},"required":["increase_max_nb_tick"]},{"title":"patch_durable_storage","type":"object","properties":{"patch_durable_storage":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}},"required":["patch_durable_storage"]}]}},"execute-outbox-messages-filter":{"description":"A filter to select which outbox messages the rollup will execute automatically (must be in maintenance or operator mode).","type":"array","items":{"type":"object","properties":{"transaction":{"type":"object","properties":{"destination":{"oneOf":[{"title":"any_destination","description":"Accept any destination.","type":"string","enum":["any"]},{"title":"destination_among","description":"Accept destination that matches the given list (in base58-check).","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]},"entrypoint":{"oneOf":[{"title":"any_entrypoint","description":"Accept any entrypoint.","type":"string","enum":["any"]},{"title":"entrypoint_among","description":"Accept entrypoint of the given list.","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]}},"required":["destination","entrypoint"]}},"required":["transaction"]}},"DAL node endpoint":{"$ref":"#/components/schemas/unistring"},"dac-observer-client":{"$ref":"#/components/schemas/unistring"},"dac-timeout":{"$ref":"#/components/schemas/bignum"},"pre-images-endpoint":{"$ref":"#/components/schemas/unistring"},"batcher":{"type":"object","properties":{"min_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"min_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"injector":{"type":"object","properties":{"retention_period":{"type":"integer","minimum":0,"maximum":65535},"attempts":{"type":"integer","minimum":0,"maximum":65535},"injection_ttl":{"type":"integer","minimum":0,"maximum":65535}}},"l1_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l2_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"prefetch_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l1_rpc_timeout":{"type":"number"},"loop_retry_delay":{"type":"number"},"index_buffer_size":{"description":"Deprecated","type":"integer","minimum":-1073741824,"maximum":1073741823},"irmin_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"log-kernel-debug":{"type":"boolean"},"no-degraded":{"type":"boolean"},"gc-parameters":{"type":"object","properties":{"frequency":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"context_splitting_period":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"history-mode":{"type":"string","enum":["full","archive"]},"cors":{"type":"object","properties":{"allowed_headers":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}},"allowed_origins":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["allowed_headers","allowed_origins"]},"bail-on-disagree":{"type":"boolean"}},"required":["smart-rollup-address","smart-rollup-node-operator","rpc-addr","rpc-port","acl","performance-metrics","reconnection_delay","fee-parameters","mode","loser-mode","unsafe-pvm-patches","execute-outbox-messages-filter","batcher","injector","l1_blocks_cache_size","l2_blocks_cache_size","l1_rpc_timeout","loop_retry_delay","log-kernel-debug","no-degraded","gc-parameters","cors","bail-on-disagree"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/describe":{"get":{"description":"RPCs documentation and input/output schema","parameters":[{"name":"recurse","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service_tree"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}":{"get":{"description":"Layer-2 block of the layer-2 chain with respect to a Layer 1 block identifier","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"inbox":{"description":"Inbox for this block.","type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]},"messages":{"description":"Messages added to the inbox in this block.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"commitment":{"description":"Commitment, if any is computed for this block.","type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"outbox":{"description":"Outbox messages produced by PVM execution of inbox","type":"array","items":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["message_index","whitelist_update"]},{"title":"transactions","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["message_index","transactions"]}]}},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","inbox","messages","initial_tick","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/committed_status":{"get":{"description":"Commitment status of the rollup state which will include content of this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"uncommitted","description":"L2 Block content is not yet committed on L1","type":"object","properties":{"uncommitted":{"type":"object","properties":{"commitment_level":{"description":"Level at which the following commitment will be produced.","type":"integer","minimum":-2147483648,"maximum":2147483647},"estimated_commitment_time":{"description":"Estimated time at which the commitment will be published.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_level","estimated_commitment_time","estimated_cementation_time"]}},"required":["uncommitted"]},{"title":"committed","description":"L2 Block content is already committed on L1 but not yet cemented","type":"object","properties":{"committed":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_hash","commitment_level","first_published_level","published_level","estimated_cementation_time"]}},"required":["committed"]},{"title":"cemented","description":"L2 Block content is already cemented","type":"object","properties":{"cemented":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"blocks_since_cemented":{"description":"Number of blocks since commitment was cemented.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment_hash","commitment_level","first_published_level","published_level","blocks_since_cemented"]}},"required":["cemented"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/processed_slots":{"get":{"description":"Data availability processed slots and their statuses","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"status":{"type":"string","enum":["unconfirmed","confirmed"]}},"required":["index","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/slot_headers":{"get":{"description":"Availability slots for a given block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","enum":["0"]},"level":{"type":"integer","minimum":0,"maximum":2147483647},"index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"}},"required":["version","level","index","commitment"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/length":{"get":{"description":"Retrieve number of bytes in raw representation of value by key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/int64"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/subkeys":{"get":{"description":"Retrieve subkeys of the specified key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/value":{"get":{"description":"Retrieve value by key from PVM durable storage. PVM state is taken with respect to the specified block level. Value returned in hex format.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/values":{"get":{"description":"Retrieve values directly under a given key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/hash":{"get":{"description":"Tezos block hash of block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/helpers/proofs/outbox/{level}/messages":{"get":{"description":"Generate serialized output proof for some outbox message at level and index","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}},{"name":"index","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["commitment","proof"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/inbox":{"get":{"description":"Rollup inbox for block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/level":{"get":{"description":"Level of Tezos block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"integer","minimum":-2147483648,"maximum":2147483647}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/num_messages":{"get":{"description":"Number of messages for specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox_level","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox/{level}/messages":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/simulate":{"post":{"description":"Simulate messages evaluation by the PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"description":"Serialized messages for simulation.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"reveal_pages":{"description":"Pages (at most 4kB) to be used for revelation ticks","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"insight_requests":{"description":"Paths in the PVM to inspect after the simulation","type":"array","items":{"oneOf":[{"title":"pvm_state","description":"Path in the PVM state","type":"object","properties":{"kind":{"type":"string","enum":["pvm_state"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]},{"title":"durable_storage","description":"Path in the PVM durable storage","type":"object","properties":{"kind":{"type":"string","enum":["durable_storage"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]}]}},"log_kernel_debug_file":{"description":"File in which to emit kernel logs. This file will be created in /simulation_kernel_logs/, where is the data directory of the rollup node.","oneOf":[{"$ref":"#/components/schemas/unistring"}]}},"required":["messages"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"state_hash":{"description":"Hash of the state after execution of the PVM on the input messages","oneOf":[{"$ref":"#/components/schemas/smart_rollup_state_hash"}]},"status":{"description":"Status of the PVM after evaluation","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"output":{"description":"Output produced by evaluation of the messages","type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}},"inbox_level":{"description":"Level of the inbox that would contain these messages","type":"integer","minimum":-2147483648,"maximum":2147483647},"num_ticks":{"description":"Ticks taken by the PVM for evaluating the messages","oneOf":[{"$ref":"#/components/schemas/bignum"}]},"insights":{"description":"PVM state values requested after the simulation","type":"array","items":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}},"required":["state_hash","status","output","inbox_level","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state":{"get":{"description":"Retrieve value from key is PVM state of specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_current_level":{"get":{"description":"Retrieve the current level of a PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":0,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_hash":{"get":{"description":"State hash for this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/status":{"get":{"description":"PVM status at block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/ticks":{"get":{"description":"Number of ticks for specified level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/total_ticks":{"get":{"description":"Total number of ticks at specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/last_stored_commitment":{"get":{"description":"Last commitment computed by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/monitor_blocks":{"get":{"description":"Monitor and streaming the L2 blocks","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","initial_tick","num_ticks"],"additionalProperties":{}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/smart_rollup_address":{"get":{"description":"Smart rollup address","responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_head":{"get":{"description":"Tezos head known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/block_hash"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_level":{"get":{"description":"Tezos level known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/health":{"get":{"description":"Returns health status information for the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"healthy":{"type":"boolean"},"degraded":{"type":"boolean"},"l1":{"type":"object","properties":{"connection":{"type":"string","enum":["connected","reconnecting","disconnected"]},"blocks_late":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"last_seen_head":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"timestamp":{"$ref":"#/components/schemas/timestamp.protocol"}},"required":["hash","level","timestamp"]}},"required":["connection","blocks_late"]},"active_workers":{"type":"array","items":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/unistring"},{"oneOf":[{"title":"running","type":"string","enum":["running"]},{"title":"crashed","type":"object","properties":{"crashed":{"$ref":"#/components/schemas/exception"}},"required":["crashed"]}]}]}}}},"required":["healthy","degraded","l1","active_workers"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/injection":{"post":{"description":"Inject messages in the batcher's queue","parameters":[{"name":"order","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_duplicate","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/sc_l2_message"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"description":"Ids of injected L2 messages","type":"array","items":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue":{"get":{"description":"List messages present in the batcher's queue","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/positive_bignum"},"id":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"},"message":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/sc_l2_message"},"counter":{"$ref":"#/components/schemas/positive_bignum"}},"required":["content","counter"]}},"required":["id","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue/{l2_message_id}":{"get":{"description":"Retrieve an L2 message and its status","parameters":[{"name":"l2_message_id","in":"path","description":"A L2 message id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/commitments/{commitment_hash}":{"get":{"description":"Commitment computed and published by the node","parameters":[{"name":"commitment_hash","in":"path","description":"A commitment hash.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/batcher/injection":{"post":{"description":"Inject the given messages in the DAL queue, even in case of duplicates","requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injected/operations/statuses":{"get":{"description":"Retrieve the statuses of all known operations injected via DAL.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/injector_operation_hash"},"status":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}},"required":["id","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injection/{injector_operation_hash}/forget":{"post":{"description":"Forget information about the injection whose id is given","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/slot/indices":{"post":{"description":"Provide the (new) list of slot indices to use to the rollup node's DAL injector","requestBody":{"content":{"application/json":{"schema":{"description":"Slot indices to set","type":"object","properties":{"indices":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["indices"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/gc_info":{"get":{"description":"Information about garbage collection","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"first_available_level":{"description":"First level where data is guaranteed to be available in the rollup node.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_gc_level":{"description":"The level at which the last GC was triggered.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_context_split_level":{"description":"The level at which the context was split for the last time. Commits before this level are in other chunks.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_successful_gc_target":{"description":"The level which was the target of the last successful GC.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["first_available_level"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/injector/operation/{injector_operation_hash}/status":{"get":{"description":"Retrieve the status of the injected operation using its injector ID.","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/last_published_commitment":{"get":{"description":"Last commitment published by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/executable":{"get":{"description":"Pending outbox messages which can be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/unexecutable":{"get":{"description":"Pending outbox messages which cannot yet be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/synchronized":{"get":{"description":"Wait for the node to have synchronized its L2 chain with the L1 chain, streaming its progress.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"synchronized","type":"string","enum":["synchronized"]},{"title":"synchronizing","type":"object","properties":{"synchronizing":{"type":"object","properties":{"processed_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"l1_head_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"percentage_done":{"type":"number"}},"required":["processed_level","l1_head_level","percentage_done"]}},"required":["synchronizing"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/openapi":{"get":{"description":"OpenAPI specification of RPCs for rollup node","parameters":[{"name":"protocol","in":"query","description":"Protocol_hash (Base58Check-encoded)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/ping":{"get":{"description":"Returns an empty response if the rollup node can answer requests","responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/memory":{"get":{"description":"Gets memory usage stats","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"Linux_proc_statm","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"$ref":"#/components/schemas/int64"},"resident":{"$ref":"#/components/schemas/int64"},"shared":{"$ref":"#/components/schemas/int64"},"text":{"$ref":"#/components/schemas/int64"},"lib":{"$ref":"#/components/schemas/int64"},"data":{"$ref":"#/components/schemas/int64"},"dt":{"$ref":"#/components/schemas/int64"}},"required":["page_size","size","resident","shared","text","lib","data","dt"]},{"title":"Darwin_ps","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"mem":{"type":"number"},"resident":{"$ref":"#/components/schemas/int64"}},"required":["page_size","mem","resident"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/ocaml_gc":{"get":{"description":"Gets stats from the OCaml Garbage Collector","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"minor_words":{"type":"number"},"promoted_words":{"type":"number"},"major_words":{"type":"number"},"minor_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"forced_major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_chunks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"largest_free":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fragments":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"compactions":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"top_heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"stack_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["minor_words","promoted_words","major_words","minor_collections","major_collections","forced_major_collections","heap_words","heap_chunks","live_words","live_blocks","free_words","free_blocks","largest_free","fragments","compactions","top_heap_words","stack_size"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/version":{"get":{"description":"Returns the version information of the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/unistring"},"store_version":{"$ref":"#/components/schemas/unistring"},"context_version":{"$ref":"#/components/schemas/unistring"}},"required":["version","store_version","context_version"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}}},"components":{"schemas":{"021-PsQuebec.contract_id.originated":{"title":"A contract handle -- originated account","description":"A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"021-PsQuebec.michelson.v1.primitives":{"type":"string","enum":["SHA256","GT","RIGHT","SAPLING_EMPTY_STATE","False","RENAME","CAST","tx_rollup_l2_address","PACK","BYTES","timestamp","bls12_381_g2","Pair","IF_LEFT","contract","mutez","storage","PAIR","view","UNPACK","ADD","DROP","big_map","MUL","NAT","SELF","CONTRACT","CDR","SAPLING_VERIFY_UPDATE","pair","LSL","int","operation","SHA512","CREATE_ACCOUNT","BLAKE2B","SPLIT_TICKET","LEFT","never","unit","address","signature","CHAIN_ID","constant","SLICE","SENDER","IMPLICIT_ACCOUNT","key_hash","AMOUNT","CHECK_SIGNATURE","sapling_state","LT","EXEC","Elt","EMIT","NONE","CREATE_CONTRACT","LSR","SET_DELEGATE","OPEN_CHEST","TRANSFER_TOKENS","Some","parameter","set","bls12_381_fr","EDIV","None","STEPS_TO_QUOTA","key","ABS","list","NEVER","map","CAR","IF","GET_AND_UPDATE","CONCAT","LOOP","DIG","KECCAK","Lambda_rec","SOME","option","SUB","INT","PUSH","CONS","Unit","ISNAT","NEG","XOR","APPLY","UNPAIR","JOIN_TICKETS","SIZE","lambda","AND","NEQ","or","BALANCE","UNIT","VOTING_POWER","OR","LAMBDA","chest","LOOP_LEFT","True","Right","Ticket","HASH_KEY","DUG","sapling_transaction","SUB_MUTEZ","EMPTY_BIG_MAP","MEM","IF_NONE","nat","TOTAL_VOTING_POWER","LE","Left","chest_key","READ_TICKET","ticket","bls12_381_g1","LEVEL","VIEW","string","PAIRING_CHECK","LAMBDA_REC","NOW","SHA3","bool","MIN_BLOCK_TIME","GET","bytes","sapling_transaction_deprecated","NIL","IF_CONS","GE","NOT","SWAP","ITER","ADDRESS","TICKET","DUP","EMPTY_MAP","UPDATE","chain_id","TICKET_DEPRECATED","EMPTY_SET","FAILWITH","MAP","SOURCE","DIP","COMPARE","EQ","SELF_ADDRESS","code"]},"DAL_commitment":{"title":"Commitment representation for the DAL (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Operation_hash":{"title":"A Tezos operation ID (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Signature.Public_key_hash":{"title":"A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Smart_rollup_context_hash":{"title":"A base58-check encoded hash of a Smart rollup node context (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"bignum":{"title":"Big number","description":"Decimal representation of a big number","type":"string"},"block_hash":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"error":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"},"exception":{"description":"Exception","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"injector_operation_hash":{"title":"An identifier (hash) for an operation in the injector (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"int64":{"title":"64 bit integers","description":"Decimal representation of 64 bit integers","type":"string"},"layout":{"oneOf":[{"title":"Zero_width","type":"object","properties":{"kind":{"type":"string","enum":["Zero_width"]}},"required":["kind"]},{"title":"Int","type":"object","properties":{"size":{"type":"string","enum":["Int32","Int16","Uint16","Int64","Int8","Uint8"]},"endianness":{"type":"string","enum":["Little","Big"]},"kind":{"type":"string","enum":["Int"]}},"required":["size","kind"]},{"title":"Bool","type":"object","properties":{"kind":{"type":"string","enum":["Bool"]}},"required":["kind"]},{"title":"RangedInt","type":"object","properties":{"min":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"endianness":{"type":"string","enum":["Little","Big"]},"max":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["RangedInt"]}},"required":["min","max","kind"]},{"title":"RangedFloat","type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"kind":{"type":"string","enum":["RangedFloat"]}},"required":["min","max","kind"]},{"title":"Float","type":"object","properties":{"kind":{"type":"string","enum":["Float"]}},"required":["kind"]},{"title":"Bytes","type":"object","properties":{"kind":{"type":"string","enum":["Bytes"]}},"required":["kind"]},{"title":"String","type":"object","properties":{"kind":{"type":"string","enum":["String"]}},"required":["kind"]},{"title":"Enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"reference":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Enum"]}},"required":["size","reference","kind"]},{"title":"Seq","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["Seq"]},"length_limit":{"oneOf":[{"title":"No_limit","type":"object","properties":{"kind":{"type":"string","enum":["no-limit"]}},"required":["kind"]},{"title":"At_most","type":"object","properties":{"kind":{"type":"string","enum":["at-most"]},"at_most":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","at_most"]},{"title":"Exactly","type":"object","properties":{"kind":{"type":"string","enum":["exactly"]},"exactly":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","exactly"]}]}},"required":["layout","kind"]},{"title":"Ref","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Ref"]}},"required":["name","kind"]},{"title":"Padding","type":"object","properties":{"kind":{"type":"string","enum":["Padding"]}},"required":["kind"]}]},"micheline.021-PsQuebec.michelson_v1.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/021-PsQuebec.michelson.v1.primitives"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters_type.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"mutez":{"title":"A millionth of a tez","description":"One million mutez make a tez (1 tez = 1e6 mutez)","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"nanotez":{"title":"A thousandth of a mutez","description":"One thousand nanotez make a mutez (1 tez = 1e9 nanotez)","type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/bignum"}]}},"positive_bignum":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"},"sc_l2_message":{"description":"A hex encoded smart rollup message","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"sc_rollup_l2_message_id":{"title":"A smart rollup layer 2 message identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"sc_rollup_node_l1_operation":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","slot_index","commitment","commitment_proof"]}]},"sc_rollup_node_mode":{"oneOf":[{"title":"custom","type":"object","properties":{"custom":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}}},"required":["custom"]},{"title":"observer","type":"string","enum":["observer"]},{"title":"accuser","type":"string","enum":["accuser"]},{"title":"bailout","type":"string","enum":["bailout"]},{"title":"batcher","type":"string","enum":["batcher"]},{"title":"maintenance","type":"string","enum":["maintenance"]},{"title":"operator","type":"string","enum":["operator"]}]},"schema.field":{"oneOf":[{"title":"Named_field","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"layout":{"$ref":"#/components/schemas/layout"},"data_kind":{"$ref":"#/components/schemas/schema.kind"},"kind":{"type":"string","enum":["named"]}},"required":["name","layout","data_kind","kind"]},{"title":"Anonymous_field","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["anon"]},"data_kind":{"$ref":"#/components/schemas/schema.kind"}},"required":["layout","kind","data_kind"]},{"title":"Dynamic_field","type":"object","properties":{"kind":{"type":"string","enum":["dyn"]},"name":{"$ref":"#/components/schemas/unistring"},"num_fields":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"type":"string","enum":["N","Uint30","Uint16","Uint8"]}},"required":["kind","num_fields","size"]},{"title":"Optional_field","type":"object","properties":{"kind":{"type":"string","enum":["option_indicator"]},"name":{"$ref":"#/components/schemas/unistring"}},"required":["kind","name"]}]},"schema.kind":{"oneOf":[{"title":"Fixed","type":"object","properties":{"size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["Fixed"]}},"required":["size","kind"]},{"title":"Dynamic","type":"object","properties":{"kind":{"type":"string","enum":["Dynamic"]}},"required":["kind"]},{"title":"Variable","type":"object","properties":{"kind":{"type":"string","enum":["Variable"]}},"required":["kind"]}]},"service_tree":{"oneOf":[{"title":"Static","type":"object","properties":{"static":{"type":"object","properties":{"get_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"post_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"delete_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"put_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"patch_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"subdirs":{"oneOf":[{"title":"Suffixes","type":"object","properties":{"suffixes":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["name","tree"]}}},"required":["suffixes"]},{"title":"Arg","type":"object","properties":{"dynamic_dispatch":{"type":"object","properties":{"arg":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["arg","tree"]}},"required":["dynamic_dispatch"]}]}}}},"required":["static"]},{"title":"Dynamic","type":"object","properties":{"dynamic":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/unistring"}]}]}},"required":["dynamic"]},{"title":"Empty","type":"string","enum":["empty"]}]},"smart_rollup_address":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_commitment_hash":{"title":"The hash of a commitment of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_inbox_hash":{"title":"The hash of an inbox of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_merkelized_payload_hashes_hash":{"title":"The hash of the Merkelized payload hashes of a smart rollup inbox (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_state_hash":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.protocol":{"description":"A timestamp as seen by the protocol: second-level precision, epoch based.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.rfc":{"title":"RFC 3339 formatted timestamp","description":"A date in RFC 3339 notation.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.system":{"description":"A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.","oneOf":[{"title":"RFC encoding","oneOf":[{"$ref":"#/components/schemas/timestamp.rfc"}]},{"title":"Second since epoch","oneOf":[{"$ref":"#/components/schemas/int64"}]}]},"union case":{"type":"object","properties":{"tag":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}},"name":{"$ref":"#/components/schemas/unistring"}},"required":["tag","fields"]},"unistring":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}} +{"openapi":"3.0.0","info":{"title":"Smart Rollup Node RPCs","description":"Smart Rollup Node RPC API for protocol PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg","version":"Octez 22.0~rc1 (f1704a05)"},"paths":{"/admin/batcher/queue":{"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"order_below","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_no_order","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/cancel_gc":{"get":{"description":"Cancel any ongoing GC","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"boolean"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues":{"get":{"description":"Get operation queues of injectors","parameters":[{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue":{"type":"array","items":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","slot_index","commitment","commitment_proof"]}]}}},"required":["tags","queue"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}},"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"order_below","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}},{"name":"drop_no_order","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues/total":{"get":{"description":"Get total operations queued in injectors","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"injectors":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["tags","queue_size"]}},"total":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["injectors","total"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/config":{"get":{"description":"Returns the rollup node configuration","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"smart-rollup-address":{"description":"Smart rollup address","oneOf":[{"$ref":"#/components/schemas/smart_rollup_address"}]},"boot-sector":{"description":"Boot sector","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart-rollup-node-operator":{"description":"Operators that sign operations of the smart rollup, by purpose","type":"object","properties":{"operating":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"batching":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"cementing":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"recovering":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"executing_outbox":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}}},"rpc-addr":{"description":"RPC address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"rpc-port":{"description":"RPC port","type":"integer","minimum":0,"maximum":65535},"acl":{"description":"Access control list","type":"array","items":{"oneOf":[{"title":"Whitelist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","whitelist"]},{"title":"Blacklist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","blacklist"]}]}},"metrics-addr":{"description":"Metrics address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"performance-metrics":{"type":"boolean"},"reconnection_delay":{"description":"The reconnection (to the tezos node) delay in seconds","type":"number"},"fee-parameters":{"description":"The fee parameters for each purpose used when injecting operations in L1","type":"object","properties":{"publish":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"add_messages":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"cement":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"timeout":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"refute":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"recover":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"execute_outbox_message":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"publish_dal_commitment":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}}}},"mode":{"description":"The mode for this rollup node","oneOf":[{"$ref":"#/components/schemas/sc_rollup_node_mode"}]},"loser-mode":{"description":"If enabled, the rollup node will issue wrong commitments (for test only!)","type":"array","items":{"type":"object","properties":{"level":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_tick":{"$ref":"#/components/schemas/int64"}},"required":["level","message_index","message_tick"]}},"unsafe-pvm-patches":{"description":"Unsafe patches to apply to the PVM. For tests only, don't set this value in production.","type":"array","items":{"oneOf":[{"title":"increase_max_nb_tick","type":"object","properties":{"increase_max_nb_tick":{"$ref":"#/components/schemas/int64"}},"required":["increase_max_nb_tick"]},{"title":"patch_durable_storage","type":"object","properties":{"patch_durable_storage":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}},"required":["patch_durable_storage"]}]}},"execute-outbox-messages-filter":{"description":"A filter to select which outbox messages the rollup will execute automatically (must be in maintenance or operator mode).","type":"array","items":{"type":"object","properties":{"transaction":{"type":"object","properties":{"destination":{"oneOf":[{"title":"any_destination","description":"Accept any destination.","type":"string","enum":["any"]},{"title":"destination_among","description":"Accept destination that matches the given list (in base58-check).","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]},"entrypoint":{"oneOf":[{"title":"any_entrypoint","description":"Accept any entrypoint.","type":"string","enum":["any"]},{"title":"entrypoint_among","description":"Accept entrypoint of the given list.","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]}},"required":["destination","entrypoint"]}},"required":["transaction"]}},"DAL node endpoint":{"$ref":"#/components/schemas/unistring"},"pre-images-endpoint":{"$ref":"#/components/schemas/unistring"},"batcher":{"type":"object","properties":{"min_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"min_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"injector":{"type":"object","properties":{"retention_period":{"type":"integer","minimum":0,"maximum":65535},"attempts":{"type":"integer","minimum":0,"maximum":65535},"injection_ttl":{"type":"integer","minimum":0,"maximum":65535}}},"l1_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l2_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"prefetch_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l1_rpc_timeout":{"type":"number"},"loop_retry_delay":{"type":"number"},"index_buffer_size":{"description":"Deprecated","type":"integer","minimum":-1073741824,"maximum":1073741823},"irmin_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"log-kernel-debug":{"type":"boolean"},"unsafe-disable-wasm-kernel-checks":{"type":"boolean"},"no-degraded":{"type":"boolean"},"gc-parameters":{"type":"object","properties":{"frequency":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"context_splitting_period":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"history-mode":{"type":"string","enum":["full","archive"]},"cors":{"type":"object","properties":{"allowed_headers":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}},"allowed_origins":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["allowed_headers","allowed_origins"]},"bail-on-disagree":{"type":"boolean"}},"required":["smart-rollup-address","smart-rollup-node-operator","rpc-addr","rpc-port","acl","performance-metrics","reconnection_delay","fee-parameters","mode","loser-mode","unsafe-pvm-patches","execute-outbox-messages-filter","batcher","injector","l1_blocks_cache_size","l2_blocks_cache_size","l1_rpc_timeout","loop_retry_delay","log-kernel-debug","unsafe-disable-wasm-kernel-checks","no-degraded","gc-parameters","cors","bail-on-disagree"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/describe":{"get":{"description":"RPCs documentation and input/output schema","parameters":[{"name":"recurse","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service_tree"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}":{"get":{"description":"Layer-2 block of the layer-2 chain with respect to a Layer 1 block identifier","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"inbox":{"description":"Inbox for this block.","type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]},"messages":{"description":"Messages added to the inbox in this block.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"commitment":{"description":"Commitment, if any is computed for this block.","type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"outbox":{"description":"Outbox messages produced by PVM execution of inbox","type":"array","items":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["message_index","whitelist_update"]},{"title":"transactions","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["message_index","transactions"]}]}},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","inbox","messages","initial_tick","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/committed_status":{"get":{"description":"Commitment status of the rollup state which will include content of this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"uncommitted","description":"L2 Block content is not yet committed on L1","type":"object","properties":{"uncommitted":{"type":"object","properties":{"commitment_level":{"description":"Level at which the following commitment will be produced.","type":"integer","minimum":-2147483648,"maximum":2147483647},"estimated_commitment_time":{"description":"Estimated time at which the commitment will be published.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_level","estimated_commitment_time","estimated_cementation_time"]}},"required":["uncommitted"]},{"title":"committed","description":"L2 Block content is already committed on L1 but not yet cemented","type":"object","properties":{"committed":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_hash","commitment_level","first_published_level","published_level","estimated_cementation_time"]}},"required":["committed"]},{"title":"cemented","description":"L2 Block content is already cemented","type":"object","properties":{"cemented":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"blocks_since_cemented":{"description":"Number of blocks since commitment was cemented.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment_hash","commitment_level","first_published_level","published_level","blocks_since_cemented"]}},"required":["cemented"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/processed_slots":{"get":{"description":"Data availability processed slots and their statuses","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"status":{"type":"string","enum":["unconfirmed","confirmed"]}},"required":["index","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/slot_headers":{"get":{"description":"Availability slots for a given block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","enum":["0"]},"level":{"type":"integer","minimum":0,"maximum":2147483647},"index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"}},"required":["version","level","index","commitment"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/length":{"get":{"description":"Retrieve number of bytes in raw representation of value by key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/int64"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/subkeys":{"get":{"description":"Retrieve subkeys of the specified key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/value":{"get":{"description":"Retrieve value by key from PVM durable storage. PVM state is taken with respect to the specified block level. Value returned in hex format.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/values":{"get":{"description":"Retrieve values directly under a given key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/hash":{"get":{"description":"Tezos block hash of block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/helpers/proofs/outbox/{level}/messages":{"get":{"description":"Generate serialized output proof for some outbox message at level and index","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}},{"name":"index","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["commitment","proof"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/inbox":{"get":{"description":"Rollup inbox for block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/level":{"get":{"description":"Level of Tezos block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"integer","minimum":-2147483648,"maximum":2147483647}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/num_messages":{"get":{"description":"Number of messages for specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox_level","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox/{level}/messages":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/simulate":{"post":{"description":"Simulate messages evaluation by the PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"description":"Serialized messages for simulation.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"reveal_pages":{"description":"Pages (at most 4kB) to be used for revelation ticks","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"insight_requests":{"description":"Paths in the PVM to inspect after the simulation","type":"array","items":{"oneOf":[{"title":"pvm_state","description":"Path in the PVM state","type":"object","properties":{"kind":{"type":"string","enum":["pvm_state"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]},{"title":"durable_storage","description":"Path in the PVM durable storage","type":"object","properties":{"kind":{"type":"string","enum":["durable_storage"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]}]}},"log_kernel_debug_file":{"description":"File in which to emit kernel logs. This file will be created in /simulation_kernel_logs/, where is the data directory of the rollup node.","oneOf":[{"$ref":"#/components/schemas/unistring"}]}},"required":["messages"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"state_hash":{"description":"Hash of the state after execution of the PVM on the input messages","oneOf":[{"$ref":"#/components/schemas/smart_rollup_state_hash"}]},"status":{"description":"Status of the PVM after evaluation","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"output":{"description":"Output produced by evaluation of the messages","type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/021-PsQuebec.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}},"inbox_level":{"description":"Level of the inbox that would contain these messages","type":"integer","minimum":-2147483648,"maximum":2147483647},"num_ticks":{"description":"Ticks taken by the PVM for evaluating the messages","oneOf":[{"$ref":"#/components/schemas/bignum"}]},"insights":{"description":"PVM state values requested after the simulation","type":"array","items":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}},"required":["state_hash","status","output","inbox_level","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state":{"get":{"description":"Retrieve value from key is PVM state of specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_current_level":{"get":{"description":"Retrieve the current level of a PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":0,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_hash":{"get":{"description":"State hash for this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/status":{"get":{"description":"PVM status at block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/ticks":{"get":{"description":"Number of ticks for specified level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/total_ticks":{"get":{"description":"Total number of ticks at specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/last_stored_commitment":{"get":{"description":"Last commitment computed by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/monitor_blocks":{"get":{"description":"Monitor and streaming the L2 blocks","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","initial_tick","num_ticks"],"additionalProperties":{}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/smart_rollup_address":{"get":{"description":"Smart rollup address","responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_head":{"get":{"description":"Tezos head known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/block_hash"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_level":{"get":{"description":"Tezos level known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/health":{"get":{"description":"Returns health status information for the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"healthy":{"type":"boolean"},"degraded":{"type":"boolean"},"l1":{"type":"object","properties":{"connection":{"type":"string","enum":["connected","reconnecting","disconnected"]},"blocks_late":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"last_seen_head":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"timestamp":{"$ref":"#/components/schemas/timestamp.protocol"}},"required":["hash","level","timestamp"]}},"required":["connection","blocks_late"]},"active_workers":{"type":"array","items":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/unistring"},{"oneOf":[{"title":"running","type":"string","enum":["running"]},{"title":"crashed","type":"object","properties":{"crashed":{"$ref":"#/components/schemas/exception"}},"required":["crashed"]}]}]}}}},"required":["healthy","degraded","l1","active_workers"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/injection":{"post":{"description":"Inject messages in the batcher's queue","parameters":[{"name":"order","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_duplicate","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/sc_l2_message"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"description":"Ids of injected L2 messages","type":"array","items":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue":{"get":{"description":"List messages present in the batcher's queue","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/positive_bignum"},"id":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"},"message":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/sc_l2_message"},"counter":{"$ref":"#/components/schemas/positive_bignum"}},"required":["content","counter"]}},"required":["id","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue/{l2_message_id}":{"get":{"description":"Retrieve an L2 message and its status","parameters":[{"name":"l2_message_id","in":"path","description":"A L2 message id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/commitments/{commitment_hash}":{"get":{"description":"Commitment computed and published by the node","parameters":[{"name":"commitment_hash","in":"path","description":"A commitment hash.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/batcher/injection":{"post":{"description":"Inject the given messages in the DAL queue, even in case of duplicates","requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injected/operations/statuses":{"get":{"description":"Retrieve the statuses of all known operations injected via DAL.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/injector_operation_hash"},"status":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}},"required":["id","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injection/{injector_operation_hash}/forget":{"post":{"description":"Forget information about the injection whose id is given","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/slot/indices":{"post":{"description":"Provide the (new) list of slot indices to use to the rollup node's DAL injector","requestBody":{"content":{"application/json":{"schema":{"description":"Slot indices to set","type":"object","properties":{"indices":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["indices"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/gc_info":{"get":{"description":"Information about garbage collection","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"first_available_level":{"description":"First level where data is guaranteed to be available in the rollup node.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_gc_level":{"description":"The level at which the last GC was triggered.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_context_split_level":{"description":"The level at which the context was split for the last time. Commits before this level are in other chunks.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_successful_gc_target":{"description":"The level which was the target of the last successful GC.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["first_available_level"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/injector/operation/{injector_operation_hash}/status":{"get":{"description":"Retrieve the status of the injected operation using its injector ID.","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/last_published_commitment":{"get":{"description":"Last commitment published by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/executable":{"get":{"description":"Pending outbox messages which can be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/unexecutable":{"get":{"description":"Pending outbox messages which cannot yet be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/synchronized":{"get":{"description":"Wait for the node to have synchronized its L2 chain with the L1 chain, streaming its progress.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"synchronized","type":"string","enum":["synchronized"]},{"title":"synchronizing","type":"object","properties":{"synchronizing":{"type":"object","properties":{"processed_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"l1_head_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"percentage_done":{"type":"number"}},"required":["processed_level","l1_head_level","percentage_done"]}},"required":["synchronizing"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/openapi":{"get":{"description":"OpenAPI specification of RPCs for rollup node","parameters":[{"name":"protocol","in":"query","description":"Protocol_hash (Base58Check-encoded)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/ping":{"get":{"description":"Returns an empty response if the rollup node can answer requests","responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/memory":{"get":{"description":"Gets memory usage stats","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"Linux_proc_statm","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"$ref":"#/components/schemas/int64"},"resident":{"$ref":"#/components/schemas/int64"},"shared":{"$ref":"#/components/schemas/int64"},"text":{"$ref":"#/components/schemas/int64"},"lib":{"$ref":"#/components/schemas/int64"},"data":{"$ref":"#/components/schemas/int64"},"dt":{"$ref":"#/components/schemas/int64"}},"required":["page_size","size","resident","shared","text","lib","data","dt"]},{"title":"Darwin_ps","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"mem":{"type":"number"},"resident":{"$ref":"#/components/schemas/int64"}},"required":["page_size","mem","resident"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/ocaml_gc":{"get":{"description":"Gets stats from the OCaml Garbage Collector","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"minor_words":{"type":"number"},"promoted_words":{"type":"number"},"major_words":{"type":"number"},"minor_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"forced_major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_chunks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"largest_free":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fragments":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"compactions":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"top_heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"stack_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["minor_words","promoted_words","major_words","minor_collections","major_collections","forced_major_collections","heap_words","heap_chunks","live_words","live_blocks","free_words","free_blocks","largest_free","fragments","compactions","top_heap_words","stack_size"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/version":{"get":{"description":"Returns the version information of the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/unistring"},"store_version":{"$ref":"#/components/schemas/unistring"},"context_version":{"$ref":"#/components/schemas/unistring"}},"required":["version","store_version","context_version"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}}},"components":{"schemas":{"021-PsQuebec.contract_id.originated":{"title":"A contract handle -- originated account","description":"A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"021-PsQuebec.michelson.v1.primitives":{"type":"string","enum":["SHA256","GT","RIGHT","SAPLING_EMPTY_STATE","False","RENAME","CAST","tx_rollup_l2_address","PACK","BYTES","timestamp","bls12_381_g2","Pair","IF_LEFT","contract","mutez","storage","PAIR","view","UNPACK","ADD","DROP","big_map","MUL","NAT","SELF","CONTRACT","CDR","SAPLING_VERIFY_UPDATE","pair","LSL","int","operation","SHA512","CREATE_ACCOUNT","BLAKE2B","SPLIT_TICKET","LEFT","never","unit","address","signature","CHAIN_ID","constant","SLICE","SENDER","IMPLICIT_ACCOUNT","key_hash","AMOUNT","CHECK_SIGNATURE","sapling_state","LT","EXEC","Elt","EMIT","NONE","CREATE_CONTRACT","LSR","SET_DELEGATE","OPEN_CHEST","TRANSFER_TOKENS","Some","parameter","set","bls12_381_fr","EDIV","None","STEPS_TO_QUOTA","key","ABS","list","NEVER","map","CAR","IF","GET_AND_UPDATE","CONCAT","LOOP","DIG","KECCAK","Lambda_rec","SOME","option","SUB","INT","PUSH","CONS","Unit","ISNAT","NEG","XOR","APPLY","UNPAIR","JOIN_TICKETS","SIZE","lambda","AND","NEQ","or","BALANCE","UNIT","VOTING_POWER","OR","LAMBDA","chest","LOOP_LEFT","True","Right","Ticket","HASH_KEY","DUG","sapling_transaction","SUB_MUTEZ","EMPTY_BIG_MAP","MEM","IF_NONE","nat","TOTAL_VOTING_POWER","LE","Left","chest_key","READ_TICKET","ticket","bls12_381_g1","LEVEL","VIEW","string","PAIRING_CHECK","LAMBDA_REC","NOW","SHA3","bool","MIN_BLOCK_TIME","GET","bytes","sapling_transaction_deprecated","NIL","IF_CONS","GE","NOT","SWAP","ITER","ADDRESS","TICKET","DUP","EMPTY_MAP","UPDATE","chain_id","TICKET_DEPRECATED","EMPTY_SET","FAILWITH","MAP","SOURCE","DIP","COMPARE","EQ","SELF_ADDRESS","code"]},"DAL_commitment":{"title":"Commitment representation for the DAL (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Operation_hash":{"title":"A Tezos operation ID (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Signature.Public_key_hash":{"title":"A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Smart_rollup_context_hash":{"title":"A base58-check encoded hash of a Smart rollup node context (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"bignum":{"title":"Big number","description":"Decimal representation of a big number","type":"string"},"block_hash":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"error":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"},"exception":{"description":"Exception","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"injector_operation_hash":{"title":"An identifier (hash) for an operation in the injector (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"int64":{"title":"64 bit integers","description":"Decimal representation of 64 bit integers","type":"string"},"layout":{"oneOf":[{"title":"Zero_width","type":"object","properties":{"kind":{"type":"string","enum":["Zero_width"]}},"required":["kind"]},{"title":"Int","type":"object","properties":{"size":{"type":"string","enum":["Int32","Int16","Uint16","Int64","Int8","Uint8"]},"endianness":{"type":"string","enum":["Little","Big"]},"kind":{"type":"string","enum":["Int"]}},"required":["size","kind"]},{"title":"Bool","type":"object","properties":{"kind":{"type":"string","enum":["Bool"]}},"required":["kind"]},{"title":"RangedInt","type":"object","properties":{"min":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"endianness":{"type":"string","enum":["Little","Big"]},"max":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["RangedInt"]}},"required":["min","max","kind"]},{"title":"RangedFloat","type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"kind":{"type":"string","enum":["RangedFloat"]}},"required":["min","max","kind"]},{"title":"Float","type":"object","properties":{"kind":{"type":"string","enum":["Float"]}},"required":["kind"]},{"title":"Bytes","type":"object","properties":{"kind":{"type":"string","enum":["Bytes"]}},"required":["kind"]},{"title":"String","type":"object","properties":{"kind":{"type":"string","enum":["String"]}},"required":["kind"]},{"title":"Enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"reference":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Enum"]}},"required":["size","reference","kind"]},{"title":"Seq","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["Seq"]},"length_limit":{"oneOf":[{"title":"No_limit","type":"object","properties":{"kind":{"type":"string","enum":["no-limit"]}},"required":["kind"]},{"title":"At_most","type":"object","properties":{"kind":{"type":"string","enum":["at-most"]},"at_most":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","at_most"]},{"title":"Exactly","type":"object","properties":{"kind":{"type":"string","enum":["exactly"]},"exactly":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","exactly"]}]}},"required":["layout","kind"]},{"title":"Ref","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Ref"]}},"required":["name","kind"]},{"title":"Padding","type":"object","properties":{"kind":{"type":"string","enum":["Padding"]}},"required":["kind"]}]},"micheline.021-PsQuebec.michelson_v1.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/021-PsQuebec.michelson.v1.primitives"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.021-PsQuebec.michelson_v1.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters_type.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"mutez":{"title":"A millionth of a tez","description":"One million mutez make a tez (1 tez = 1e6 mutez)","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"nanotez":{"title":"A thousandth of a mutez","description":"One thousand nanotez make a mutez (1 tez = 1e9 nanotez)","type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/bignum"}]}},"positive_bignum":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"},"sc_l2_message":{"description":"A hex encoded smart rollup message","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"sc_rollup_l2_message_id":{"title":"A smart rollup layer 2 message identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"sc_rollup_node_l1_operation":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","slot_index","commitment","commitment_proof"]}]},"sc_rollup_node_mode":{"oneOf":[{"title":"custom","type":"object","properties":{"custom":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}}},"required":["custom"]},{"title":"observer","type":"string","enum":["observer"]},{"title":"accuser","type":"string","enum":["accuser"]},{"title":"bailout","type":"string","enum":["bailout"]},{"title":"batcher","type":"string","enum":["batcher"]},{"title":"maintenance","type":"string","enum":["maintenance"]},{"title":"operator","type":"string","enum":["operator"]}]},"schema.field":{"oneOf":[{"title":"Named_field","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"layout":{"$ref":"#/components/schemas/layout"},"data_kind":{"$ref":"#/components/schemas/schema.kind"},"kind":{"type":"string","enum":["named"]}},"required":["name","layout","data_kind","kind"]},{"title":"Anonymous_field","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["anon"]},"data_kind":{"$ref":"#/components/schemas/schema.kind"}},"required":["layout","kind","data_kind"]},{"title":"Dynamic_field","type":"object","properties":{"kind":{"type":"string","enum":["dyn"]},"name":{"$ref":"#/components/schemas/unistring"},"num_fields":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"type":"string","enum":["N","Uint30","Uint16","Uint8"]}},"required":["kind","num_fields","size"]},{"title":"Optional_field","type":"object","properties":{"kind":{"type":"string","enum":["option_indicator"]},"name":{"$ref":"#/components/schemas/unistring"}},"required":["kind","name"]}]},"schema.kind":{"oneOf":[{"title":"Fixed","type":"object","properties":{"size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["Fixed"]}},"required":["size","kind"]},{"title":"Dynamic","type":"object","properties":{"kind":{"type":"string","enum":["Dynamic"]}},"required":["kind"]},{"title":"Variable","type":"object","properties":{"kind":{"type":"string","enum":["Variable"]}},"required":["kind"]}]},"service_tree":{"oneOf":[{"title":"Static","type":"object","properties":{"static":{"type":"object","properties":{"get_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"post_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"delete_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"put_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"patch_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"subdirs":{"oneOf":[{"title":"Suffixes","type":"object","properties":{"suffixes":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["name","tree"]}}},"required":["suffixes"]},{"title":"Arg","type":"object","properties":{"dynamic_dispatch":{"type":"object","properties":{"arg":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["arg","tree"]}},"required":["dynamic_dispatch"]}]}}}},"required":["static"]},{"title":"Dynamic","type":"object","properties":{"dynamic":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/unistring"}]}]}},"required":["dynamic"]},{"title":"Empty","type":"string","enum":["empty"]}]},"smart_rollup_address":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_commitment_hash":{"title":"The hash of a commitment of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_inbox_hash":{"title":"The hash of an inbox of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_merkelized_payload_hashes_hash":{"title":"The hash of the Merkelized payload hashes of a smart rollup inbox (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_state_hash":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.protocol":{"description":"A timestamp as seen by the protocol: second-level precision, epoch based.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.rfc":{"title":"RFC 3339 formatted timestamp","description":"A date in RFC 3339 notation.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.system":{"description":"A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.","oneOf":[{"title":"RFC encoding","oneOf":[{"$ref":"#/components/schemas/timestamp.rfc"}]},{"title":"Second since epoch","oneOf":[{"$ref":"#/components/schemas/int64"}]}]},"union case":{"type":"object","properties":{"tag":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}},"name":{"$ref":"#/components/schemas/unistring"}},"required":["tag","fields"]},"unistring":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}} diff --git a/docs/api/rio-mempool-openapi.json b/docs/api/rio-mempool-openapi.json index 4a88644ea873..bc34714f1810 100644 --- a/docs/api/rio-mempool-openapi.json +++ b/docs/api/rio-mempool-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Mempool RPC", "description": "The RPC API for the mempool served by the Octez node.", - "version": "Octez 22.0~rc1 (TBD)" + "version": "Octez 22.0~rc1 (f1704a05)" }, "paths": { "/ban_operation": { diff --git a/docs/api/rio-openapi.json b/docs/api/rio-openapi.json index a7875869551f..fa0578a7e731 100644 --- a/docs/api/rio-openapi.json +++ b/docs/api/rio-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez Protocol rio RPC", "description": "The RPC API for protocol rio served by the Octez node.", - "version": "Octez 22.0~rc1 (TBD)" + "version": "Octez 22.0~rc1 (f1704a05)" }, "paths": { "/": { diff --git a/docs/api/rio-smart-rollup-node-openapi.json b/docs/api/rio-smart-rollup-node-openapi.json index 597759e90212..d07e92888e22 100644 --- a/docs/api/rio-smart-rollup-node-openapi.json +++ b/docs/api/rio-smart-rollup-node-openapi.json @@ -1 +1 @@ -{"openapi":"3.0.0","info":{"title":"Smart Rollup Node RPCs","description":"Smart Rollup Node RPC API for protocol PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7","version":"Octez 22.0~rc1 (TBD)"},"paths":{"/admin/batcher/queue":{"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"order_below","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_no_order","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/cancel_gc":{"get":{"description":"Cancel any ongoing GC","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"boolean"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues":{"get":{"description":"Get operation queues of injectors","parameters":[{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue":{"type":"array","items":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","slot_index","commitment","commitment_proof"]}]}}},"required":["tags","queue"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}},"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"order_below","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}},{"name":"drop_no_order","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues/total":{"get":{"description":"Get total operations queued in injectors","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"injectors":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["tags","queue_size"]}},"total":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["injectors","total"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/config":{"get":{"description":"Returns the rollup node configuration","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"smart-rollup-address":{"description":"Smart rollup address","oneOf":[{"$ref":"#/components/schemas/smart_rollup_address"}]},"boot-sector":{"description":"Boot sector","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart-rollup-node-operator":{"description":"Operators that sign operations of the smart rollup, by purpose","type":"object","properties":{"operating":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"batching":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"cementing":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"recovering":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"executing_outbox":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}}},"rpc-addr":{"description":"RPC address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"rpc-port":{"description":"RPC port","type":"integer","minimum":0,"maximum":65535},"acl":{"description":"Access control list","type":"array","items":{"oneOf":[{"title":"Whitelist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","whitelist"]},{"title":"Blacklist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","blacklist"]}]}},"metrics-addr":{"description":"Metrics address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"performance-metrics":{"type":"boolean"},"reconnection_delay":{"description":"The reconnection (to the tezos node) delay in seconds","type":"number"},"fee-parameters":{"description":"The fee parameters for each purpose used when injecting operations in L1","type":"object","properties":{"publish":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"add_messages":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"cement":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"timeout":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"refute":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"recover":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"execute_outbox_message":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"publish_dal_commitment":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}}}},"mode":{"description":"The mode for this rollup node","oneOf":[{"$ref":"#/components/schemas/sc_rollup_node_mode"}]},"loser-mode":{"description":"If enabled, the rollup node will issue wrong commitments (for test only!)","type":"array","items":{"type":"object","properties":{"level":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_tick":{"$ref":"#/components/schemas/int64"}},"required":["level","message_index","message_tick"]}},"unsafe-pvm-patches":{"description":"Unsafe patches to apply to the PVM. For tests only, don't set this value in production.","type":"array","items":{"oneOf":[{"title":"increase_max_nb_tick","type":"object","properties":{"increase_max_nb_tick":{"$ref":"#/components/schemas/int64"}},"required":["increase_max_nb_tick"]},{"title":"patch_durable_storage","type":"object","properties":{"patch_durable_storage":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}},"required":["patch_durable_storage"]}]}},"execute-outbox-messages-filter":{"description":"A filter to select which outbox messages the rollup will execute automatically (must be in maintenance or operator mode).","type":"array","items":{"type":"object","properties":{"transaction":{"type":"object","properties":{"destination":{"oneOf":[{"title":"any_destination","description":"Accept any destination.","type":"string","enum":["any"]},{"title":"destination_among","description":"Accept destination that matches the given list (in base58-check).","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]},"entrypoint":{"oneOf":[{"title":"any_entrypoint","description":"Accept any entrypoint.","type":"string","enum":["any"]},{"title":"entrypoint_among","description":"Accept entrypoint of the given list.","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]}},"required":["destination","entrypoint"]}},"required":["transaction"]}},"DAL node endpoint":{"$ref":"#/components/schemas/unistring"},"pre-images-endpoint":{"$ref":"#/components/schemas/unistring"},"batcher":{"type":"object","properties":{"min_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"min_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"injector":{"type":"object","properties":{"retention_period":{"type":"integer","minimum":0,"maximum":65535},"attempts":{"type":"integer","minimum":0,"maximum":65535},"injection_ttl":{"type":"integer","minimum":0,"maximum":65535}}},"l1_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l2_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"prefetch_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l1_rpc_timeout":{"type":"number"},"loop_retry_delay":{"type":"number"},"index_buffer_size":{"description":"Deprecated","type":"integer","minimum":-1073741824,"maximum":1073741823},"irmin_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"log-kernel-debug":{"type":"boolean"},"unsafe-disable-wasm-kernel-checks":{"type":"boolean"},"no-degraded":{"type":"boolean"},"gc-parameters":{"type":"object","properties":{"frequency":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"context_splitting_period":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"history-mode":{"type":"string","enum":["full","archive"]},"cors":{"type":"object","properties":{"allowed_headers":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}},"allowed_origins":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["allowed_headers","allowed_origins"]},"bail-on-disagree":{"type":"boolean"}},"required":["smart-rollup-address","smart-rollup-node-operator","rpc-addr","rpc-port","acl","performance-metrics","reconnection_delay","fee-parameters","mode","loser-mode","unsafe-pvm-patches","execute-outbox-messages-filter","batcher","injector","l1_blocks_cache_size","l2_blocks_cache_size","l1_rpc_timeout","loop_retry_delay","log-kernel-debug","unsafe-disable-wasm-kernel-checks","no-degraded","gc-parameters","cors","bail-on-disagree"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/describe":{"get":{"description":"RPCs documentation and input/output schema","parameters":[{"name":"recurse","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service_tree"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}":{"get":{"description":"Layer-2 block of the layer-2 chain with respect to a Layer 1 block identifier","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"inbox":{"description":"Inbox for this block.","type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]},"messages":{"description":"Messages added to the inbox in this block.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"commitment":{"description":"Commitment, if any is computed for this block.","type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"outbox":{"description":"Outbox messages produced by PVM execution of inbox","type":"array","items":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["message_index","whitelist_update"]},{"title":"transactions","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["message_index","transactions"]}]}},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","inbox","messages","initial_tick","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/committed_status":{"get":{"description":"Commitment status of the rollup state which will include content of this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"uncommitted","description":"L2 Block content is not yet committed on L1","type":"object","properties":{"uncommitted":{"type":"object","properties":{"commitment_level":{"description":"Level at which the following commitment will be produced.","type":"integer","minimum":-2147483648,"maximum":2147483647},"estimated_commitment_time":{"description":"Estimated time at which the commitment will be published.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_level","estimated_commitment_time","estimated_cementation_time"]}},"required":["uncommitted"]},{"title":"committed","description":"L2 Block content is already committed on L1 but not yet cemented","type":"object","properties":{"committed":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_hash","commitment_level","first_published_level","published_level","estimated_cementation_time"]}},"required":["committed"]},{"title":"cemented","description":"L2 Block content is already cemented","type":"object","properties":{"cemented":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"blocks_since_cemented":{"description":"Number of blocks since commitment was cemented.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment_hash","commitment_level","first_published_level","published_level","blocks_since_cemented"]}},"required":["cemented"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/processed_slots":{"get":{"description":"Data availability processed slots and their statuses","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"status":{"type":"string","enum":["unconfirmed","confirmed"]}},"required":["index","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/slot_headers":{"get":{"description":"Availability slots for a given block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","enum":["0"]},"level":{"type":"integer","minimum":0,"maximum":2147483647},"index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"}},"required":["version","level","index","commitment"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/length":{"get":{"description":"Retrieve number of bytes in raw representation of value by key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/int64"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/subkeys":{"get":{"description":"Retrieve subkeys of the specified key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/value":{"get":{"description":"Retrieve value by key from PVM durable storage. PVM state is taken with respect to the specified block level. Value returned in hex format.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/values":{"get":{"description":"Retrieve values directly under a given key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/hash":{"get":{"description":"Tezos block hash of block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/helpers/proofs/outbox/{level}/messages":{"get":{"description":"Generate serialized output proof for some outbox message at level and index","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}},{"name":"index","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["commitment","proof"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/inbox":{"get":{"description":"Rollup inbox for block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/level":{"get":{"description":"Level of Tezos block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"integer","minimum":-2147483648,"maximum":2147483647}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/num_messages":{"get":{"description":"Number of messages for specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox_level","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox/{level}/messages":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/simulate":{"post":{"description":"Simulate messages evaluation by the PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"description":"Serialized messages for simulation.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"reveal_pages":{"description":"Pages (at most 4kB) to be used for revelation ticks","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"insight_requests":{"description":"Paths in the PVM to inspect after the simulation","type":"array","items":{"oneOf":[{"title":"pvm_state","description":"Path in the PVM state","type":"object","properties":{"kind":{"type":"string","enum":["pvm_state"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]},{"title":"durable_storage","description":"Path in the PVM durable storage","type":"object","properties":{"kind":{"type":"string","enum":["durable_storage"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]}]}},"log_kernel_debug_file":{"description":"File in which to emit kernel logs. This file will be created in /simulation_kernel_logs/, where is the data directory of the rollup node.","oneOf":[{"$ref":"#/components/schemas/unistring"}]}},"required":["messages"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"state_hash":{"description":"Hash of the state after execution of the PVM on the input messages","oneOf":[{"$ref":"#/components/schemas/smart_rollup_state_hash"}]},"status":{"description":"Status of the PVM after evaluation","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"output":{"description":"Output produced by evaluation of the messages","type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}},"inbox_level":{"description":"Level of the inbox that would contain these messages","type":"integer","minimum":-2147483648,"maximum":2147483647},"num_ticks":{"description":"Ticks taken by the PVM for evaluating the messages","oneOf":[{"$ref":"#/components/schemas/bignum"}]},"insights":{"description":"PVM state values requested after the simulation","type":"array","items":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}},"required":["state_hash","status","output","inbox_level","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state":{"get":{"description":"Retrieve value from key is PVM state of specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_current_level":{"get":{"description":"Retrieve the current level of a PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":0,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_hash":{"get":{"description":"State hash for this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/status":{"get":{"description":"PVM status at block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/ticks":{"get":{"description":"Number of ticks for specified level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/total_ticks":{"get":{"description":"Total number of ticks at specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/last_stored_commitment":{"get":{"description":"Last commitment computed by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/monitor_blocks":{"get":{"description":"Monitor and streaming the L2 blocks","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","initial_tick","num_ticks"],"additionalProperties":{}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/smart_rollup_address":{"get":{"description":"Smart rollup address","responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_head":{"get":{"description":"Tezos head known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/block_hash"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_level":{"get":{"description":"Tezos level known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/health":{"get":{"description":"Returns health status information for the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"healthy":{"type":"boolean"},"degraded":{"type":"boolean"},"l1":{"type":"object","properties":{"connection":{"type":"string","enum":["connected","reconnecting","disconnected"]},"blocks_late":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"last_seen_head":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"timestamp":{"$ref":"#/components/schemas/timestamp.protocol"}},"required":["hash","level","timestamp"]}},"required":["connection","blocks_late"]},"active_workers":{"type":"array","items":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/unistring"},{"oneOf":[{"title":"running","type":"string","enum":["running"]},{"title":"crashed","type":"object","properties":{"crashed":{"$ref":"#/components/schemas/exception"}},"required":["crashed"]}]}]}}}},"required":["healthy","degraded","l1","active_workers"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/injection":{"post":{"description":"Inject messages in the batcher's queue","parameters":[{"name":"order","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_duplicate","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/sc_l2_message"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"description":"Ids of injected L2 messages","type":"array","items":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue":{"get":{"description":"List messages present in the batcher's queue","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/positive_bignum"},"id":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"},"message":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/sc_l2_message"},"counter":{"$ref":"#/components/schemas/positive_bignum"}},"required":["content","counter"]}},"required":["id","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue/{l2_message_id}":{"get":{"description":"Retrieve an L2 message and its status","parameters":[{"name":"l2_message_id","in":"path","description":"A L2 message id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/commitments/{commitment_hash}":{"get":{"description":"Commitment computed and published by the node","parameters":[{"name":"commitment_hash","in":"path","description":"A commitment hash.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/batcher/injection":{"post":{"description":"Inject the given messages in the DAL queue, even in case of duplicates","requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injected/operations/statuses":{"get":{"description":"Retrieve the statuses of all known operations injected via DAL.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/injector_operation_hash"},"status":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}},"required":["id","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injection/{injector_operation_hash}/forget":{"post":{"description":"Forget information about the injection whose id is given","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/slot/indices":{"post":{"description":"Provide the (new) list of slot indices to use to the rollup node's DAL injector","requestBody":{"content":{"application/json":{"schema":{"description":"Slot indices to set","type":"object","properties":{"indices":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["indices"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/gc_info":{"get":{"description":"Information about garbage collection","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"first_available_level":{"description":"First level where data is guaranteed to be available in the rollup node.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_gc_level":{"description":"The level at which the last GC was triggered.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_context_split_level":{"description":"The level at which the context was split for the last time. Commits before this level are in other chunks.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_successful_gc_target":{"description":"The level which was the target of the last successful GC.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["first_available_level"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/injector/operation/{injector_operation_hash}/status":{"get":{"description":"Retrieve the status of the injected operation using its injector ID.","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/last_published_commitment":{"get":{"description":"Last commitment published by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/executable":{"get":{"description":"Pending outbox messages which can be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/unexecutable":{"get":{"description":"Pending outbox messages which cannot yet be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/synchronized":{"get":{"description":"Wait for the node to have synchronized its L2 chain with the L1 chain, streaming its progress.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"synchronized","type":"string","enum":["synchronized"]},{"title":"synchronizing","type":"object","properties":{"synchronizing":{"type":"object","properties":{"processed_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"l1_head_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"percentage_done":{"type":"number"}},"required":["processed_level","l1_head_level","percentage_done"]}},"required":["synchronizing"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/openapi":{"get":{"description":"OpenAPI specification of RPCs for rollup node","parameters":[{"name":"protocol","in":"query","description":"Protocol_hash (Base58Check-encoded)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/ping":{"get":{"description":"Returns an empty response if the rollup node can answer requests","responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/memory":{"get":{"description":"Gets memory usage stats","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"Linux_proc_statm","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"$ref":"#/components/schemas/int64"},"resident":{"$ref":"#/components/schemas/int64"},"shared":{"$ref":"#/components/schemas/int64"},"text":{"$ref":"#/components/schemas/int64"},"lib":{"$ref":"#/components/schemas/int64"},"data":{"$ref":"#/components/schemas/int64"},"dt":{"$ref":"#/components/schemas/int64"}},"required":["page_size","size","resident","shared","text","lib","data","dt"]},{"title":"Darwin_ps","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"mem":{"type":"number"},"resident":{"$ref":"#/components/schemas/int64"}},"required":["page_size","mem","resident"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/ocaml_gc":{"get":{"description":"Gets stats from the OCaml Garbage Collector","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"minor_words":{"type":"number"},"promoted_words":{"type":"number"},"major_words":{"type":"number"},"minor_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"forced_major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_chunks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"largest_free":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fragments":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"compactions":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"top_heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"stack_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["minor_words","promoted_words","major_words","minor_collections","major_collections","forced_major_collections","heap_words","heap_chunks","live_words","live_blocks","free_words","free_blocks","largest_free","fragments","compactions","top_heap_words","stack_size"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/version":{"get":{"description":"Returns the version information of the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/unistring"},"store_version":{"$ref":"#/components/schemas/unistring"},"context_version":{"$ref":"#/components/schemas/unistring"}},"required":["version","store_version","context_version"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}}},"components":{"schemas":{"022-PsRiotum.contract_id.originated":{"title":"A contract handle -- originated account","description":"A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"022-PsRiotum.michelson.v1.primitives":{"type":"string","enum":["SHA256","GT","RIGHT","SAPLING_EMPTY_STATE","False","RENAME","CAST","tx_rollup_l2_address","PACK","BYTES","timestamp","bls12_381_g2","Pair","IF_LEFT","contract","mutez","storage","PAIR","view","UNPACK","ADD","DROP","big_map","MUL","NAT","SELF","CONTRACT","CDR","SAPLING_VERIFY_UPDATE","pair","LSL","int","operation","SHA512","CREATE_ACCOUNT","BLAKE2B","SPLIT_TICKET","LEFT","never","unit","address","signature","CHAIN_ID","constant","SLICE","SENDER","IMPLICIT_ACCOUNT","key_hash","AMOUNT","CHECK_SIGNATURE","sapling_state","LT","EXEC","Elt","EMIT","NONE","CREATE_CONTRACT","LSR","SET_DELEGATE","OPEN_CHEST","TRANSFER_TOKENS","Some","parameter","set","bls12_381_fr","EDIV","None","STEPS_TO_QUOTA","key","ABS","list","NEVER","map","CAR","IF","GET_AND_UPDATE","CONCAT","LOOP","DIG","KECCAK","Lambda_rec","SOME","option","SUB","INT","PUSH","CONS","Unit","ISNAT","NEG","XOR","APPLY","UNPAIR","JOIN_TICKETS","SIZE","lambda","AND","NEQ","or","BALANCE","UNIT","VOTING_POWER","OR","LAMBDA","chest","LOOP_LEFT","True","Right","Ticket","HASH_KEY","DUG","sapling_transaction","SUB_MUTEZ","EMPTY_BIG_MAP","MEM","IF_NONE","nat","TOTAL_VOTING_POWER","LE","Left","chest_key","READ_TICKET","ticket","bls12_381_g1","LEVEL","VIEW","string","PAIRING_CHECK","LAMBDA_REC","NOW","SHA3","bool","MIN_BLOCK_TIME","GET","bytes","sapling_transaction_deprecated","NIL","IF_CONS","GE","NOT","SWAP","ITER","ADDRESS","TICKET","DUP","EMPTY_MAP","UPDATE","chain_id","TICKET_DEPRECATED","EMPTY_SET","FAILWITH","MAP","SOURCE","DIP","COMPARE","EQ","SELF_ADDRESS","code"]},"DAL_commitment":{"title":"Commitment representation for the DAL (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Operation_hash":{"title":"A Tezos operation ID (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Signature.Public_key_hash":{"title":"A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Smart_rollup_context_hash":{"title":"A base58-check encoded hash of a Smart rollup node context (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"bignum":{"title":"Big number","description":"Decimal representation of a big number","type":"string"},"block_hash":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"error":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"},"exception":{"description":"Exception","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"injector_operation_hash":{"title":"An identifier (hash) for an operation in the injector (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"int64":{"title":"64 bit integers","description":"Decimal representation of 64 bit integers","type":"string"},"layout":{"oneOf":[{"title":"Zero_width","type":"object","properties":{"kind":{"type":"string","enum":["Zero_width"]}},"required":["kind"]},{"title":"Int","type":"object","properties":{"size":{"type":"string","enum":["Int32","Int16","Uint16","Int64","Int8","Uint8"]},"endianness":{"type":"string","enum":["Little","Big"]},"kind":{"type":"string","enum":["Int"]}},"required":["size","kind"]},{"title":"Bool","type":"object","properties":{"kind":{"type":"string","enum":["Bool"]}},"required":["kind"]},{"title":"RangedInt","type":"object","properties":{"min":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"endianness":{"type":"string","enum":["Little","Big"]},"max":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["RangedInt"]}},"required":["min","max","kind"]},{"title":"RangedFloat","type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"kind":{"type":"string","enum":["RangedFloat"]}},"required":["min","max","kind"]},{"title":"Float","type":"object","properties":{"kind":{"type":"string","enum":["Float"]}},"required":["kind"]},{"title":"Bytes","type":"object","properties":{"kind":{"type":"string","enum":["Bytes"]}},"required":["kind"]},{"title":"String","type":"object","properties":{"kind":{"type":"string","enum":["String"]}},"required":["kind"]},{"title":"Enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"reference":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Enum"]}},"required":["size","reference","kind"]},{"title":"Seq","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["Seq"]},"length_limit":{"oneOf":[{"title":"No_limit","type":"object","properties":{"kind":{"type":"string","enum":["no-limit"]}},"required":["kind"]},{"title":"At_most","type":"object","properties":{"kind":{"type":"string","enum":["at-most"]},"at_most":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","at_most"]},{"title":"Exactly","type":"object","properties":{"kind":{"type":"string","enum":["exactly"]},"exactly":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","exactly"]}]}},"required":["layout","kind"]},{"title":"Ref","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Ref"]}},"required":["name","kind"]},{"title":"Padding","type":"object","properties":{"kind":{"type":"string","enum":["Padding"]}},"required":["kind"]}]},"micheline.022-PsRiotum.michelson_v1.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/022-PsRiotum.michelson.v1.primitives"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters_type.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"mutez":{"title":"A millionth of a tez","description":"One million mutez make a tez (1 tez = 1e6 mutez)","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"nanotez":{"title":"A thousandth of a mutez","description":"One thousand nanotez make a mutez (1 tez = 1e9 nanotez)","type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/bignum"}]}},"positive_bignum":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"},"sc_l2_message":{"description":"A hex encoded smart rollup message","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"sc_rollup_l2_message_id":{"title":"A smart rollup layer 2 message identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"sc_rollup_node_l1_operation":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","slot_index","commitment","commitment_proof"]}]},"sc_rollup_node_mode":{"oneOf":[{"title":"custom","type":"object","properties":{"custom":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}}},"required":["custom"]},{"title":"observer","type":"string","enum":["observer"]},{"title":"accuser","type":"string","enum":["accuser"]},{"title":"bailout","type":"string","enum":["bailout"]},{"title":"batcher","type":"string","enum":["batcher"]},{"title":"maintenance","type":"string","enum":["maintenance"]},{"title":"operator","type":"string","enum":["operator"]}]},"schema.field":{"oneOf":[{"title":"Named_field","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"layout":{"$ref":"#/components/schemas/layout"},"data_kind":{"$ref":"#/components/schemas/schema.kind"},"kind":{"type":"string","enum":["named"]}},"required":["name","layout","data_kind","kind"]},{"title":"Anonymous_field","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["anon"]},"data_kind":{"$ref":"#/components/schemas/schema.kind"}},"required":["layout","kind","data_kind"]},{"title":"Dynamic_field","type":"object","properties":{"kind":{"type":"string","enum":["dyn"]},"name":{"$ref":"#/components/schemas/unistring"},"num_fields":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"type":"string","enum":["N","Uint30","Uint16","Uint8"]}},"required":["kind","num_fields","size"]},{"title":"Optional_field","type":"object","properties":{"kind":{"type":"string","enum":["option_indicator"]},"name":{"$ref":"#/components/schemas/unistring"}},"required":["kind","name"]}]},"schema.kind":{"oneOf":[{"title":"Fixed","type":"object","properties":{"size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["Fixed"]}},"required":["size","kind"]},{"title":"Dynamic","type":"object","properties":{"kind":{"type":"string","enum":["Dynamic"]}},"required":["kind"]},{"title":"Variable","type":"object","properties":{"kind":{"type":"string","enum":["Variable"]}},"required":["kind"]}]},"service_tree":{"oneOf":[{"title":"Static","type":"object","properties":{"static":{"type":"object","properties":{"get_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"post_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"delete_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"put_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"patch_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"subdirs":{"oneOf":[{"title":"Suffixes","type":"object","properties":{"suffixes":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["name","tree"]}}},"required":["suffixes"]},{"title":"Arg","type":"object","properties":{"dynamic_dispatch":{"type":"object","properties":{"arg":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["arg","tree"]}},"required":["dynamic_dispatch"]}]}}}},"required":["static"]},{"title":"Dynamic","type":"object","properties":{"dynamic":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/unistring"}]}]}},"required":["dynamic"]},{"title":"Empty","type":"string","enum":["empty"]}]},"smart_rollup_address":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_commitment_hash":{"title":"The hash of a commitment of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_inbox_hash":{"title":"The hash of an inbox of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_merkelized_payload_hashes_hash":{"title":"The hash of the Merkelized payload hashes of a smart rollup inbox (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_state_hash":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.protocol":{"description":"A timestamp as seen by the protocol: second-level precision, epoch based.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.rfc":{"title":"RFC 3339 formatted timestamp","description":"A date in RFC 3339 notation.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.system":{"description":"A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.","oneOf":[{"title":"RFC encoding","oneOf":[{"$ref":"#/components/schemas/timestamp.rfc"}]},{"title":"Second since epoch","oneOf":[{"$ref":"#/components/schemas/int64"}]}]},"union case":{"type":"object","properties":{"tag":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}},"name":{"$ref":"#/components/schemas/unistring"}},"required":["tag","fields"]},"unistring":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}} +{"openapi":"3.0.0","info":{"title":"Smart Rollup Node RPCs","description":"Smart Rollup Node RPC API for protocol PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7","version":"Octez 22.0~rc1 (f1704a05)"},"paths":{"/admin/batcher/queue":{"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"order_below","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_no_order","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/cancel_gc":{"get":{"description":"Cancel any ongoing GC","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"boolean"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues":{"get":{"description":"Get operation queues of injectors","parameters":[{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue":{"type":"array","items":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"errors":{"type":"object","properties":{"count":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"last":{"$ref":"#/components/schemas/error"}},"required":["count"]}},"required":["kind","slot_index","commitment","commitment_proof"]}]}}},"required":["tags","queue"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}},"delete":{"description":"Clear operation queues of injectors","parameters":[{"name":"order_below","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","description":"A kind of operation for the injector.","required":false,"schema":{"type":"string"}},{"name":"drop_no_order","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/admin/injector/queues/total":{"get":{"description":"Get total operations queued in injectors","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"injectors":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}},"queue_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["tags","queue_size"]}},"total":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["injectors","total"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/config":{"get":{"description":"Returns the rollup node configuration","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"smart-rollup-address":{"description":"Smart rollup address","oneOf":[{"$ref":"#/components/schemas/smart_rollup_address"}]},"boot-sector":{"description":"Boot sector","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart-rollup-node-operator":{"description":"Operators that sign operations of the smart rollup, by purpose","type":"object","properties":{"operating":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"batching":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"cementing":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"recovering":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]},"executing_outbox":{"oneOf":[{"title":"Signature.public_key_hash operator","oneOf":[{"$ref":"#/components/schemas/Signature.Public_key_hash"}]},{"title":"multiple operator","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}}},"rpc-addr":{"description":"RPC address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"rpc-port":{"description":"RPC port","type":"integer","minimum":0,"maximum":65535},"acl":{"description":"Access control list","type":"array","items":{"oneOf":[{"title":"Whitelist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","whitelist"]},{"title":"Blacklist","type":"object","properties":{"address":{"$ref":"#/components/schemas/unistring"},"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["address","blacklist"]}]}},"metrics-addr":{"description":"Metrics address","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"performance-metrics":{"type":"boolean"},"reconnection_delay":{"description":"The reconnection (to the tezos node) delay in seconds","type":"number"},"fee-parameters":{"description":"The fee parameters for each purpose used when injecting operations in L1","type":"object","properties":{"publish":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"add_messages":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"cement":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"timeout":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"refute":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"recover":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"execute_outbox_message":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}},"publish_dal_commitment":{"type":"object","properties":{"minimal-fees":{"description":"Exclude operations with lower fees","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"minimal-nanotez-per-byte":{"description":"Exclude operations with lower fees per byte","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"minimal-nanotez-per-gas-unit":{"description":"Exclude operations with lower gas fees","oneOf":[{"$ref":"#/components/schemas/nanotez"}]},"force-low-fee":{"description":"Don't check that the fee is lower than the estimated default","type":"boolean"},"fee-cap":{"description":"The fee cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]},"burn-cap":{"description":"The burn cap","oneOf":[{"$ref":"#/components/schemas/mutez"}]}}}}},"mode":{"description":"The mode for this rollup node","oneOf":[{"$ref":"#/components/schemas/sc_rollup_node_mode"}]},"loser-mode":{"description":"If enabled, the rollup node will issue wrong commitments (for test only!)","type":"array","items":{"type":"object","properties":{"level":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message_tick":{"$ref":"#/components/schemas/int64"}},"required":["level","message_index","message_tick"]}},"unsafe-pvm-patches":{"description":"Unsafe patches to apply to the PVM. For tests only, don't set this value in production.","type":"array","items":{"oneOf":[{"title":"increase_max_nb_tick","type":"object","properties":{"increase_max_nb_tick":{"$ref":"#/components/schemas/int64"}},"required":["increase_max_nb_tick"]},{"title":"patch_durable_storage","type":"object","properties":{"patch_durable_storage":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}},"required":["patch_durable_storage"]}]}},"execute-outbox-messages-filter":{"description":"A filter to select which outbox messages the rollup will execute automatically (must be in maintenance or operator mode).","type":"array","items":{"type":"object","properties":{"transaction":{"type":"object","properties":{"destination":{"oneOf":[{"title":"any_destination","description":"Accept any destination.","type":"string","enum":["any"]},{"title":"destination_among","description":"Accept destination that matches the given list (in base58-check).","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]},"entrypoint":{"oneOf":[{"title":"any_entrypoint","description":"Accept any entrypoint.","type":"string","enum":["any"]},{"title":"entrypoint_among","description":"Accept entrypoint of the given list.","type":"array","items":{"$ref":"#/components/schemas/unistring"}}]}},"required":["destination","entrypoint"]}},"required":["transaction"]}},"DAL node endpoint":{"$ref":"#/components/schemas/unistring"},"pre-images-endpoint":{"$ref":"#/components/schemas/unistring"},"batcher":{"type":"object","properties":{"min_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"min_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_elements":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"max_batch_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"injector":{"type":"object","properties":{"retention_period":{"type":"integer","minimum":0,"maximum":65535},"attempts":{"type":"integer","minimum":0,"maximum":65535},"injection_ttl":{"type":"integer","minimum":0,"maximum":65535}}},"l1_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l2_blocks_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"prefetch_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"l1_rpc_timeout":{"type":"number"},"loop_retry_delay":{"type":"number"},"index_buffer_size":{"description":"Deprecated","type":"integer","minimum":-1073741824,"maximum":1073741823},"irmin_cache_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"log-kernel-debug":{"type":"boolean"},"unsafe-disable-wasm-kernel-checks":{"type":"boolean"},"no-degraded":{"type":"boolean"},"gc-parameters":{"type":"object","properties":{"frequency":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"context_splitting_period":{"type":"integer","minimum":-1073741824,"maximum":1073741823}}},"history-mode":{"type":"string","enum":["full","archive"]},"cors":{"type":"object","properties":{"allowed_headers":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}},"allowed_origins":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["allowed_headers","allowed_origins"]},"bail-on-disagree":{"type":"boolean"}},"required":["smart-rollup-address","smart-rollup-node-operator","rpc-addr","rpc-port","acl","performance-metrics","reconnection_delay","fee-parameters","mode","loser-mode","unsafe-pvm-patches","execute-outbox-messages-filter","batcher","injector","l1_blocks_cache_size","l2_blocks_cache_size","l1_rpc_timeout","loop_retry_delay","log-kernel-debug","unsafe-disable-wasm-kernel-checks","no-degraded","gc-parameters","cors","bail-on-disagree"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/describe":{"get":{"description":"RPCs documentation and input/output schema","parameters":[{"name":"recurse","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service_tree"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}":{"get":{"description":"Layer-2 block of the layer-2 chain with respect to a Layer 1 block identifier","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"inbox":{"description":"Inbox for this block.","type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]},"messages":{"description":"Messages added to the inbox in this block.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"commitment":{"description":"Commitment, if any is computed for this block.","type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"outbox":{"description":"Outbox messages produced by PVM execution of inbox","type":"array","items":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["message_index","whitelist_update"]},{"title":"transactions","type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["message_index","transactions"]}]}},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","inbox","messages","initial_tick","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/committed_status":{"get":{"description":"Commitment status of the rollup state which will include content of this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"uncommitted","description":"L2 Block content is not yet committed on L1","type":"object","properties":{"uncommitted":{"type":"object","properties":{"commitment_level":{"description":"Level at which the following commitment will be produced.","type":"integer","minimum":-2147483648,"maximum":2147483647},"estimated_commitment_time":{"description":"Estimated time at which the commitment will be published.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_level","estimated_commitment_time","estimated_cementation_time"]}},"required":["uncommitted"]},{"title":"committed","description":"L2 Block content is already committed on L1 but not yet cemented","type":"object","properties":{"committed":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"estimated_cementation_time":{"description":"Estimated time at which the commitment will be cemented.","oneOf":[{"$ref":"#/components/schemas/timestamp.system"}]}},"required":["commitment_hash","commitment_level","first_published_level","published_level","estimated_cementation_time"]}},"required":["committed"]},{"title":"cemented","description":"L2 Block content is already cemented","type":"object","properties":{"cemented":{"type":"object","properties":{"commitment_hash":{"description":"Hash of following commitment.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"commitment_level":{"description":"Level of following commitment.","type":"integer","minimum":-2147483648,"maximum":2147483647},"first_published_level":{"description":"Level at which commitment was first published.","type":"integer","minimum":-2147483648,"maximum":2147483647},"published_level":{"description":"Level at which commitment was published by operator (may be null if e.g. rollup node does not publish).","nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]},"blocks_since_cemented":{"description":"Number of blocks since commitment was cemented.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment_hash","commitment_level","first_published_level","published_level","blocks_since_cemented"]}},"required":["cemented"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/processed_slots":{"get":{"description":"Data availability processed slots and their statuses","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"status":{"type":"string","enum":["unconfirmed","confirmed"]}},"required":["index","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/dal/slot_headers":{"get":{"description":"Availability slots for a given block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","enum":["0"]},"level":{"type":"integer","minimum":0,"maximum":2147483647},"index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"}},"required":["version","level","index","commitment"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/length":{"get":{"description":"Retrieve number of bytes in raw representation of value by key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/int64"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/subkeys":{"get":{"description":"Retrieve subkeys of the specified key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/value":{"get":{"description":"Retrieve value by key from PVM durable storage. PVM state is taken with respect to the specified block level. Value returned in hex format.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/durable/wasm_2_0_0/values":{"get":{"description":"Retrieve values directly under a given key from PVM durable storage. PVM state is taken with respect to the specified block level.","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/unistring"},"value":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["key","value"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/hash":{"get":{"description":"Tezos block hash of block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/helpers/proofs/outbox/{level}/messages":{"get":{"description":"Generate serialized output proof for some outbox message at level and index","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}},{"name":"index","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["commitment","proof"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/inbox":{"get":{"description":"Rollup inbox for block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"old_levels_messages":{"type":"object","properties":{"index":{"$ref":"#/components/schemas/positive_bignum"},"content":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["hash","level"]},"back_pointers":{"type":"array","items":{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}}},"required":["index","content","back_pointers"]}},"required":["level","old_levels_messages"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/level":{"get":{"description":"Level of Tezos block known to the smart rollup node","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"integer","minimum":-2147483648,"maximum":2147483647}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/num_messages":{"get":{"description":"Number of messages for specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"outbox_level","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/outbox/{level}/messages":{"get":{"description":"Outbox at block for a given outbox level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"level","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/simulate":{"post":{"description":"Simulate messages evaluation by the PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"description":"Serialized messages for simulation.","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"reveal_pages":{"description":"Pages (at most 4kB) to be used for revelation ticks","type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"insight_requests":{"description":"Paths in the PVM to inspect after the simulation","type":"array","items":{"oneOf":[{"title":"pvm_state","description":"Path in the PVM state","type":"object","properties":{"kind":{"type":"string","enum":["pvm_state"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]},{"title":"durable_storage","description":"Path in the PVM durable storage","type":"object","properties":{"kind":{"type":"string","enum":["durable_storage"]},"key":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["kind","key"]}]}},"log_kernel_debug_file":{"description":"File in which to emit kernel logs. This file will be created in /simulation_kernel_logs/, where is the data directory of the rollup node.","oneOf":[{"$ref":"#/components/schemas/unistring"}]}},"required":["messages"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"state_hash":{"description":"Hash of the state after execution of the PVM on the input messages","oneOf":[{"$ref":"#/components/schemas/smart_rollup_state_hash"}]},"status":{"description":"Status of the PVM after evaluation","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"output":{"description":"Output produced by evaluation of the messages","type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":0,"maximum":2147483647},"message_index":{"$ref":"#/components/schemas/positive_bignum"},"message":{"oneOf":[{"title":"Atomic_transaction_batch","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","destination"]}},"kind":{"type":"string","enum":["untyped"]}},"required":["transactions","kind"]},{"title":"Atomic_transaction_batch_typed","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"},"destination":{"$ref":"#/components/schemas/022-PsRiotum.contract_id.originated"},"entrypoint":{"$ref":"#/components/schemas/unistring"}},"required":["parameters","parameters_ty","destination"]}},"kind":{"type":"string","enum":["typed"]}},"required":["transactions","kind"]},{"title":"Whitelist_update","type":"object","properties":{"whitelist":{"type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"kind":{"type":"string","enum":["whitelist_update"]}},"required":["kind"]}]}},"required":["outbox_level","message_index","message"]}},"inbox_level":{"description":"Level of the inbox that would contain these messages","type":"integer","minimum":-2147483648,"maximum":2147483647},"num_ticks":{"description":"Ticks taken by the PVM for evaluating the messages","oneOf":[{"$ref":"#/components/schemas/bignum"}]},"insights":{"description":"PVM state values requested after the simulation","type":"array","items":{"nullable":true,"oneOf":[{"title":"Some","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}}},"required":["state_hash","status","output","inbox_level","num_ticks"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state":{"get":{"description":"Retrieve value from key is PVM state of specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_current_level":{"get":{"description":"Retrieve the current level of a PVM","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":0,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/state_hash":{"get":{"description":"State hash for this block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/status":{"get":{"description":"PVM status at block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/ticks":{"get":{"description":"Number of ticks for specified level","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Big number","description":"Decimal representation of a big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/block/{block_id}/total_ticks":{"get":{"description":"Total number of ticks at specified block","parameters":[{"name":"block_id","in":"path","description":"An L1 block identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/last_stored_commitment":{"get":{"description":"Last commitment computed by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/monitor_blocks":{"get":{"description":"Monitor and streaming the L2 blocks","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"block_hash":{"description":"Tezos block hash.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"level":{"description":"Level of the block, corresponds to the level of the tezos block.","type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"description":"Predecessor hash of the Tezos block.","oneOf":[{"$ref":"#/components/schemas/block_hash"}]},"commitment_hash":{"description":"Hash of this block's commitment if any was computed for it.","nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]}]},"previous_commitment_hash":{"description":"Previous commitment hash in the chain. If there is a commitment for this block, this field contains the commitment that was previously computed.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}]},"context":{"description":"Hash of the layer 2 context for this block.","oneOf":[{"$ref":"#/components/schemas/Smart_rollup_context_hash"}]},"inbox_witness":{"description":"Witness for the inbox for this block, i.e. the Merkle hash of payloads of messages.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_merkelized_payload_hashes_hash"}]},"inbox_hash":{"description":"Hash of the inbox for this block.","oneOf":[{"$ref":"#/components/schemas/smart_rollup_inbox_hash"}]},"initial_tick":{"description":"Initial tick of the PVM at this block, i.e. before evaluation of the messages.","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"num_ticks":{"description":"Number of ticks produced by the evaluation of the messages in this block.","oneOf":[{"$ref":"#/components/schemas/int64"}]}},"required":["block_hash","level","predecessor","commitment_hash","previous_commitment_hash","context","inbox_witness","inbox_hash","initial_tick","num_ticks"],"additionalProperties":{}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/smart_rollup_address":{"get":{"description":"Smart rollup address","responses":{"200":{"description":"","content":{"application/json":{"schema":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_head":{"get":{"description":"Tezos head known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/block_hash"}]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/global/tezos_level":{"get":{"description":"Tezos level known to the smart rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"integer","minimum":-2147483648,"maximum":2147483647}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/health":{"get":{"description":"Returns health status information for the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"healthy":{"type":"boolean"},"degraded":{"type":"boolean"},"l1":{"type":"object","properties":{"connection":{"type":"string","enum":["connected","reconnecting","disconnected"]},"blocks_late":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"last_seen_head":{"type":"object","properties":{"hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"timestamp":{"$ref":"#/components/schemas/timestamp.protocol"}},"required":["hash","level","timestamp"]}},"required":["connection","blocks_late"]},"active_workers":{"type":"array","items":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/unistring"},{"oneOf":[{"title":"running","type":"string","enum":["running"]},{"title":"crashed","type":"object","properties":{"crashed":{"$ref":"#/components/schemas/exception"}},"required":["crashed"]}]}]}}}},"required":["healthy","degraded","l1","active_workers"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/injection":{"post":{"description":"Inject messages in the batcher's queue","parameters":[{"name":"order","in":"query","required":false,"schema":{"type":"string"}},{"name":"drop_duplicate","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/sc_l2_message"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"description":"Ids of injected L2 messages","type":"array","items":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue":{"get":{"description":"List messages present in the batcher's queue","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/positive_bignum"},"id":{"$ref":"#/components/schemas/sc_rollup_l2_message_id"},"message":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/sc_l2_message"},"counter":{"$ref":"#/components/schemas/positive_bignum"}},"required":["content","counter"]}},"required":["id","message"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/batcher/queue/{l2_message_id}":{"get":{"description":"Retrieve an L2 message and its status","parameters":[{"name":"l2_message_id","in":"path","description":"A L2 message id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"content":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/commitments/{commitment_hash}":{"get":{"description":"Commitment computed and published by the node","parameters":[{"name":"commitment_hash","in":"path","description":"A commitment hash.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/batcher/injection":{"post":{"description":"Inject the given messages in the DAL queue, even in case of duplicates","requestBody":{"content":{"application/json":{"schema":{"description":"Messages to inject","type":"array","items":{"$ref":"#/components/schemas/unistring"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injected/operations/statuses":{"get":{"description":"Retrieve the statuses of all known operations injected via DAL.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/injector_operation_hash"},"status":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}},"required":["id","status"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/injection/{injector_operation_hash}/forget":{"post":{"description":"Forget information about the injection whose id is given","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/dal/slot/indices":{"post":{"description":"Provide the (new) list of slot indices to use to the rollup node's DAL injector","requestBody":{"content":{"application/json":{"schema":{"description":"Slot indices to set","type":"object","properties":{"indices":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["indices"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/gc_info":{"get":{"description":"Information about garbage collection","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"first_available_level":{"description":"First level where data is guaranteed to be available in the rollup node.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_gc_level":{"description":"The level at which the last GC was triggered.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_context_split_level":{"description":"The level at which the context was split for the last time. Commits before this level are in other chunks.","type":"integer","minimum":-2147483648,"maximum":2147483647},"last_successful_gc_target":{"description":"The level which was the target of the last successful GC.","type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["first_available_level"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/injector/operation/{injector_operation_hash}/status":{"get":{"description":"Retrieve the status of the injected operation using its injector ID.","parameters":[{"name":"injector_operation_hash","in":"path","description":"injector_operation_hash (Base58Check-encoded)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"unknown","description":"The message is not known by the batcher.","type":"object","properties":{"status":{"type":"string","enum":["unknown"]}},"required":["status"]},{"title":"pending_batch","description":"The message is in the batcher queue.","type":"object","properties":{"status":{"type":"string","enum":["pending_batch"]}},"required":["status"]},{"title":"pending_injection","description":"The message is batched but not injected yet.","type":"object","properties":{"status":{"type":"string","enum":["pending_injection"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"}},"required":["status","operation"]},{"title":"injected","description":"The message is injected as part of an L1 operation but it is not included in a block.","type":"object","properties":{"status":{"type":"string","enum":["injected"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["operation_hash","operation_index"]}},"required":["status","operation","layer1"]},{"title":"included","description":"The message is included in an inbox in an L1 block.","type":"object","properties":{"status":{"type":"string","enum":["included"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"}},"required":["status","operation","layer1","finalized","cemented"]},{"title":"committed","description":"The message is included in a committed inbox on L1.","type":"object","properties":{"status":{"type":"string","enum":["committed"]},"operation":{"$ref":"#/components/schemas/sc_rollup_node_l1_operation"},"layer1":{"type":"object","properties":{"operation_hash":{"$ref":"#/components/schemas/Operation_hash"},"operation_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"block_hash":{"$ref":"#/components/schemas/block_hash"},"level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["operation_hash","operation_index","block_hash","level"]},"finalized":{"type":"boolean"},"cemented":{"type":"boolean"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["status","operation","layer1","finalized","cemented","commitment","hash","first_published_at_level","published_at_level"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/last_published_commitment":{"get":{"description":"Last commitment published by the node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"nullable":true,"oneOf":[{"title":"Some","type":"object","properties":{"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]},"hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"first_published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"published_at_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647}},"required":["commitment","hash"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/executable":{"get":{"description":"Pending outbox messages which can be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/outbox/pending/unexecutable":{"get":{"description":"Pending outbox messages which cannot yet be executed","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"outbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"messages":{"type":"array","items":{"type":"object","properties":{"message_index":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"message":{"oneOf":[{"title":"whitelist_update","type":"object","properties":{"whitelist_update":{"nullable":true,"oneOf":[{"title":"Some","type":"array","items":{"$ref":"#/components/schemas/Signature.Public_key_hash"}}]}},"required":["whitelist_update"]},{"title":"transactions","type":"object","properties":{"transactions":{"type":"array","items":{"type":"object","properties":{"destination":{"$ref":"#/components/schemas/unistring"},"entrypoint":{"$ref":"#/components/schemas/unistring"},"parameters":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"},"parameters_ty":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"required":["destination"]}}},"required":["transactions"]}]}},"required":["message_index"]}}},"required":["outbox_level","messages"]}}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/local/synchronized":{"get":{"description":"Wait for the node to have synchronized its L2 chain with the L1 chain, streaming its progress.","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"synchronized","type":"string","enum":["synchronized"]},{"title":"synchronizing","type":"object","properties":{"synchronizing":{"type":"object","properties":{"processed_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"l1_head_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"percentage_done":{"type":"number"}},"required":["processed_level","l1_head_level","percentage_done"]}},"required":["synchronizing"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/openapi":{"get":{"description":"OpenAPI specification of RPCs for rollup node","parameters":[{"name":"protocol","in":"query","description":"Protocol_hash (Base58Check-encoded)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/ping":{"get":{"description":"Returns an empty response if the rollup node can answer requests","responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/memory":{"get":{"description":"Gets memory usage stats","responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"title":"Linux_proc_statm","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"$ref":"#/components/schemas/int64"},"resident":{"$ref":"#/components/schemas/int64"},"shared":{"$ref":"#/components/schemas/int64"},"text":{"$ref":"#/components/schemas/int64"},"lib":{"$ref":"#/components/schemas/int64"},"data":{"$ref":"#/components/schemas/int64"},"dt":{"$ref":"#/components/schemas/int64"}},"required":["page_size","size","resident","shared","text","lib","data","dt"]},{"title":"Darwin_ps","type":"object","properties":{"page_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"mem":{"type":"number"},"resident":{"$ref":"#/components/schemas/int64"}},"required":["page_size","mem","resident"]}]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/stats/ocaml_gc":{"get":{"description":"Gets stats from the OCaml Garbage Collector","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"minor_words":{"type":"number"},"promoted_words":{"type":"number"},"major_words":{"type":"number"},"minor_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"forced_major_collections":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"heap_chunks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"live_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"free_blocks":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"largest_free":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fragments":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"compactions":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"top_heap_words":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"stack_size":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["minor_words","promoted_words","major_words","minor_collections","major_collections","forced_major_collections","heap_words","heap_chunks","live_words","live_blocks","free_words","free_blocks","largest_free","fragments","compactions","top_heap_words","stack_size"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}},"/version":{"get":{"description":"Returns the version information of the rollup node","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/unistring"},"store_version":{"$ref":"#/components/schemas/unistring"},"context_version":{"$ref":"#/components/schemas/unistring"}},"required":["version","store_version","context_version"]}}}},"default":{"description":"","content":{"application/json":{"schema":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"}}}}}}}},"components":{"schemas":{"022-PsRiotum.contract_id.originated":{"title":"A contract handle -- originated account","description":"A contract notation as given to an RPC or inside scripts. Can be a base58 originated contract hash.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"022-PsRiotum.michelson.v1.primitives":{"type":"string","enum":["SHA256","GT","RIGHT","SAPLING_EMPTY_STATE","False","RENAME","CAST","tx_rollup_l2_address","PACK","BYTES","timestamp","bls12_381_g2","Pair","IF_LEFT","contract","mutez","storage","PAIR","view","UNPACK","ADD","DROP","big_map","MUL","NAT","SELF","CONTRACT","CDR","SAPLING_VERIFY_UPDATE","pair","LSL","int","operation","SHA512","CREATE_ACCOUNT","BLAKE2B","SPLIT_TICKET","LEFT","never","unit","address","signature","CHAIN_ID","constant","SLICE","SENDER","IMPLICIT_ACCOUNT","key_hash","AMOUNT","CHECK_SIGNATURE","sapling_state","LT","EXEC","Elt","EMIT","NONE","CREATE_CONTRACT","LSR","SET_DELEGATE","OPEN_CHEST","TRANSFER_TOKENS","Some","parameter","set","bls12_381_fr","EDIV","None","STEPS_TO_QUOTA","key","ABS","list","NEVER","map","CAR","IF","GET_AND_UPDATE","CONCAT","LOOP","DIG","KECCAK","Lambda_rec","SOME","option","SUB","INT","PUSH","CONS","Unit","ISNAT","NEG","XOR","APPLY","UNPAIR","JOIN_TICKETS","SIZE","lambda","AND","NEQ","or","BALANCE","UNIT","VOTING_POWER","OR","LAMBDA","chest","LOOP_LEFT","True","Right","Ticket","HASH_KEY","DUG","sapling_transaction","SUB_MUTEZ","EMPTY_BIG_MAP","MEM","IF_NONE","nat","TOTAL_VOTING_POWER","LE","Left","chest_key","READ_TICKET","ticket","bls12_381_g1","LEVEL","VIEW","string","PAIRING_CHECK","LAMBDA_REC","NOW","SHA3","bool","MIN_BLOCK_TIME","GET","bytes","sapling_transaction_deprecated","NIL","IF_CONS","GE","NOT","SWAP","ITER","ADDRESS","TICKET","DUP","EMPTY_MAP","UPDATE","chain_id","TICKET_DEPRECATED","EMPTY_SET","FAILWITH","MAP","SOURCE","DIP","COMPARE","EQ","SELF_ADDRESS","code"]},"DAL_commitment":{"title":"Commitment representation for the DAL (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Operation_hash":{"title":"A Tezos operation ID (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Signature.Public_key_hash":{"title":"A Ed25519, Secp256k1, P256, or BLS public key hash (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"Smart_rollup_context_hash":{"title":"A base58-check encoded hash of a Smart rollup node context (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"bignum":{"title":"Big number","description":"Decimal representation of a big number","type":"string"},"block_hash":{"title":"A block identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"error":{"description":"An error trace. The full list of errors is available with the global RPC `GET errors`"},"exception":{"description":"Exception","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"injector_operation_hash":{"title":"An identifier (hash) for an operation in the injector (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"int64":{"title":"64 bit integers","description":"Decimal representation of 64 bit integers","type":"string"},"layout":{"oneOf":[{"title":"Zero_width","type":"object","properties":{"kind":{"type":"string","enum":["Zero_width"]}},"required":["kind"]},{"title":"Int","type":"object","properties":{"size":{"type":"string","enum":["Int32","Int16","Uint16","Int64","Int8","Uint8"]},"endianness":{"type":"string","enum":["Little","Big"]},"kind":{"type":"string","enum":["Int"]}},"required":["size","kind"]},{"title":"Bool","type":"object","properties":{"kind":{"type":"string","enum":["Bool"]}},"required":["kind"]},{"title":"RangedInt","type":"object","properties":{"min":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"endianness":{"type":"string","enum":["Little","Big"]},"max":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["RangedInt"]}},"required":["min","max","kind"]},{"title":"RangedFloat","type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"kind":{"type":"string","enum":["RangedFloat"]}},"required":["min","max","kind"]},{"title":"Float","type":"object","properties":{"kind":{"type":"string","enum":["Float"]}},"required":["kind"]},{"title":"Bytes","type":"object","properties":{"kind":{"type":"string","enum":["Bytes"]}},"required":["kind"]},{"title":"String","type":"object","properties":{"kind":{"type":"string","enum":["String"]}},"required":["kind"]},{"title":"Enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"reference":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Enum"]}},"required":["size","reference","kind"]},{"title":"Seq","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["Seq"]},"length_limit":{"oneOf":[{"title":"No_limit","type":"object","properties":{"kind":{"type":"string","enum":["no-limit"]}},"required":["kind"]},{"title":"At_most","type":"object","properties":{"kind":{"type":"string","enum":["at-most"]},"at_most":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","at_most"]},{"title":"Exactly","type":"object","properties":{"kind":{"type":"string","enum":["exactly"]},"exactly":{"type":"integer","minimum":-1073741824,"maximum":1073741823}},"required":["kind","exactly"]}]}},"required":["layout","kind"]},{"title":"Ref","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"kind":{"type":"string","enum":["Ref"]}},"required":["name","kind"]},{"title":"Padding","type":"object","properties":{"kind":{"type":"string","enum":["Padding"]}},"required":["kind"]}]},"micheline.022-PsRiotum.michelson_v1.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/022-PsRiotum.michelson.v1.primitives"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.022-PsRiotum.michelson_v1.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"micheline.outbox_transaction_parameters_type.expression":{"oneOf":[{"title":"Int","type":"object","properties":{"int":{"$ref":"#/components/schemas/bignum"}},"required":["int"]},{"title":"String","type":"object","properties":{"string":{"$ref":"#/components/schemas/unistring"}},"required":["string"]},{"title":"Bytes","type":"object","properties":{"bytes":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["bytes"]},{"title":"Sequence","type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},{"title":"Prim__generic","description":"Generic primitive (any number of args with or without annotations)","type":"object","properties":{"prim":{"$ref":"#/components/schemas/unistring"},"args":{"type":"array","items":{"$ref":"#/components/schemas/micheline.outbox_transaction_parameters_type.expression"}},"annots":{"type":"array","items":{"$ref":"#/components/schemas/unistring"}}},"required":["prim"]}]},"mutez":{"title":"A millionth of a tez","description":"One million mutez make a tez (1 tez = 1e6 mutez)","oneOf":[{"$ref":"#/components/schemas/positive_bignum"}]},"nanotez":{"title":"A thousandth of a mutez","description":"One thousand nanotez make a mutez (1 tez = 1e9 nanotez)","type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/bignum"}]}},"positive_bignum":{"title":"Positive big number","description":"Decimal representation of a positive big number","type":"string"},"sc_l2_message":{"description":"A hex encoded smart rollup message","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"},"sc_rollup_l2_message_id":{"title":"A smart rollup layer 2 message identifier (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"sc_rollup_node_l1_operation":{"oneOf":[{"title":"add_messages","type":"object","properties":{"kind":{"type":"string","enum":["add_messages"]},"message":{"type":"array","items":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}}},"required":["kind","message"]},{"title":"cement","type":"object","properties":{"kind":{"type":"string","enum":["cement"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["kind","rollup","commitment"]},{"title":"publish","type":"object","properties":{"kind":{"type":"string","enum":["publish"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"commitment":{"type":"object","properties":{"compressed_state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"inbox_level":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"predecessor":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"number_of_ticks":{"$ref":"#/components/schemas/int64"}},"required":["compressed_state","inbox_level","predecessor","number_of_ticks"]}},"required":["kind","rollup","commitment"]},{"title":"refute","type":"object","properties":{"kind":{"type":"string","enum":["refute"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"opponent":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"refutation":{"oneOf":[{"title":"Start","type":"object","properties":{"refutation_kind":{"type":"string","enum":["start"]},"player_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"opponent_commitment_hash":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"}},"required":["refutation_kind","player_commitment_hash","opponent_commitment_hash"]},{"title":"Move","type":"object","properties":{"refutation_kind":{"type":"string","enum":["move"]},"choice":{"$ref":"#/components/schemas/positive_bignum"},"step":{"oneOf":[{"title":"Dissection","type":"array","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/smart_rollup_state_hash"},"tick":{"$ref":"#/components/schemas/positive_bignum"}},"required":["tick"]}},{"title":"Proof","type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}]}},"required":["refutation_kind","choice","step"]}]}},"required":["kind","rollup","opponent","refutation"]},{"title":"timeout","type":"object","properties":{"kind":{"type":"string","enum":["timeout"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"stakers":{"type":"object","properties":{"alice":{"$ref":"#/components/schemas/Signature.Public_key_hash"},"bob":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["alice","bob"]}},"required":["kind","rollup","stakers"]},{"title":"recover","type":"object","properties":{"kind":{"type":"string","enum":["recover"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"staker":{"$ref":"#/components/schemas/Signature.Public_key_hash"}},"required":["kind","rollup","staker"]},{"title":"execute_outbox_message","type":"object","properties":{"kind":{"type":"string","enum":["execute_outbox_message"]},"rollup":{"$ref":"#/components/schemas/smart_rollup_address"},"cemented_commitment":{"$ref":"#/components/schemas/smart_rollup_commitment_hash"},"proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","rollup","cemented_commitment","proof"]},{"title":"publish_dal_commitment","type":"object","properties":{"kind":{"type":"string","enum":["publish_dal_commitment"]},"slot_index":{"type":"integer","minimum":0,"maximum":255},"commitment":{"$ref":"#/components/schemas/DAL_commitment"},"commitment_proof":{"type":"string","pattern":"^([a-zA-Z0-9][a-zA-Z0-9])*$"}},"required":["kind","slot_index","commitment","commitment_proof"]}]},"sc_rollup_node_mode":{"oneOf":[{"title":"custom","type":"object","properties":{"custom":{"type":"array","items":{"type":"string","enum":["add_messages","publish","refute","recover","timeout","publish_dal_commitment","cement","execute_outbox_message"]}}},"required":["custom"]},{"title":"observer","type":"string","enum":["observer"]},{"title":"accuser","type":"string","enum":["accuser"]},{"title":"bailout","type":"string","enum":["bailout"]},{"title":"batcher","type":"string","enum":["batcher"]},{"title":"maintenance","type":"string","enum":["maintenance"]},{"title":"operator","type":"string","enum":["operator"]}]},"schema.field":{"oneOf":[{"title":"Named_field","type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"layout":{"$ref":"#/components/schemas/layout"},"data_kind":{"$ref":"#/components/schemas/schema.kind"},"kind":{"type":"string","enum":["named"]}},"required":["name","layout","data_kind","kind"]},{"title":"Anonymous_field","type":"object","properties":{"layout":{"$ref":"#/components/schemas/layout"},"kind":{"type":"string","enum":["anon"]},"data_kind":{"$ref":"#/components/schemas/schema.kind"}},"required":["layout","kind","data_kind"]},{"title":"Dynamic_field","type":"object","properties":{"kind":{"type":"string","enum":["dyn"]},"name":{"$ref":"#/components/schemas/unistring"},"num_fields":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"size":{"type":"string","enum":["N","Uint30","Uint16","Uint8"]}},"required":["kind","num_fields","size"]},{"title":"Optional_field","type":"object","properties":{"kind":{"type":"string","enum":["option_indicator"]},"name":{"$ref":"#/components/schemas/unistring"}},"required":["kind","name"]}]},"schema.kind":{"oneOf":[{"title":"Fixed","type":"object","properties":{"size":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"kind":{"type":"string","enum":["Fixed"]}},"required":["size","kind"]},{"title":"Dynamic","type":"object","properties":{"kind":{"type":"string","enum":["Dynamic"]}},"required":["kind"]},{"title":"Variable","type":"object","properties":{"kind":{"type":"string","enum":["Variable"]}},"required":["kind"]}]},"service_tree":{"oneOf":[{"title":"Static","type":"object","properties":{"static":{"type":"object","properties":{"get_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"post_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"delete_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"put_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"patch_service":{"type":"object","properties":{"meth":{"type":"string","enum":["PATCH","GET","POST","PUT","DELETE"]},"path":{"type":"array","items":{"oneOf":[{"title":"PStatic","oneOf":[{"$ref":"#/components/schemas/unistring"}]},{"title":"PDynamic","type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},{"title":"PDynamicTail","type":"object","properties":{"id":{"type":"string","enum":["multiple"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}]}},"description":{"$ref":"#/components/schemas/unistring"},"query":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"},"kind":{"oneOf":[{"title":"Single","type":"object","properties":{"single":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["single"]},{"title":"Optional","type":"object","properties":{"optional":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["optional"]},{"title":"Flag","type":"object","properties":{"flag":{"type":"object","properties":{}}},"required":["flag"]},{"title":"Multi","type":"object","properties":{"multi":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]}},"required":["multi"]}]}},"required":["name","kind"]}},"input":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"output":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]},"error":{"type":"object","properties":{"json_schema":{},"binary_schema":{"type":"object","properties":{"toplevel":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]},"fields":{"type":"array","items":{"type":"object","properties":{"description":{"type":"object","properties":{"title":{"$ref":"#/components/schemas/unistring"},"description":{"$ref":"#/components/schemas/unistring"}},"required":["title"]},"encoding":{"oneOf":[{"title":"Obj","type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}}},"required":["fields"]},{"title":"Cases","type":"object","properties":{"tag_size":{"type":"string","enum":["Uint16","Uint8"]},"kind":{"$ref":"#/components/schemas/schema.kind"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/union case"}}},"required":["tag_size","kind","cases"]},{"title":"Int_enum","type":"object","properties":{"size":{"type":"string","enum":["Int16","Uint16","Int8","Uint8"]},"cases":{"type":"array","items":{"type":"array","items":{"oneOf":[{"type":"integer","minimum":-1073741824,"maximum":1073741823},{"$ref":"#/components/schemas/unistring"}]}}}},"required":["size","cases"]}]}},"required":["description","encoding"]}}},"required":["toplevel","fields"]}},"required":["json_schema","binary_schema"]}},"required":["meth","path","query","output","error"]},"subdirs":{"oneOf":[{"title":"Suffixes","type":"object","properties":{"suffixes":{"type":"array","items":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/unistring"},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["name","tree"]}}},"required":["suffixes"]},{"title":"Arg","type":"object","properties":{"dynamic_dispatch":{"type":"object","properties":{"arg":{"type":"object","properties":{"id":{"type":"string","enum":["single"]},"name":{"$ref":"#/components/schemas/unistring"},"descr":{"$ref":"#/components/schemas/unistring"}},"required":["id","name"]},"tree":{"$ref":"#/components/schemas/service_tree"}},"required":["arg","tree"]}},"required":["dynamic_dispatch"]}]}}}},"required":["static"]},{"title":"Dynamic","type":"object","properties":{"dynamic":{"nullable":true,"oneOf":[{"title":"Some","oneOf":[{"$ref":"#/components/schemas/unistring"}]}]}},"required":["dynamic"]},{"title":"Empty","type":"string","enum":["empty"]}]},"smart_rollup_address":{"title":"A smart rollup address (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_commitment_hash":{"title":"The hash of a commitment of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_inbox_hash":{"title":"The hash of an inbox of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_merkelized_payload_hashes_hash":{"title":"The hash of the Merkelized payload hashes of a smart rollup inbox (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"smart_rollup_state_hash":{"title":"The hash of the VM state of a smart rollup (Base58Check-encoded)","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.protocol":{"description":"A timestamp as seen by the protocol: second-level precision, epoch based.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.rfc":{"title":"RFC 3339 formatted timestamp","description":"A date in RFC 3339 notation.","oneOf":[{"$ref":"#/components/schemas/unistring"}]},"timestamp.system":{"description":"A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.","oneOf":[{"title":"RFC encoding","oneOf":[{"$ref":"#/components/schemas/timestamp.rfc"}]},{"title":"Second since epoch","oneOf":[{"$ref":"#/components/schemas/int64"}]}]},"union case":{"type":"object","properties":{"tag":{"type":"integer","minimum":-1073741824,"maximum":1073741823},"fields":{"type":"array","items":{"$ref":"#/components/schemas/schema.field"}},"name":{"$ref":"#/components/schemas/unistring"}},"required":["tag","fields"]},"unistring":{"title":"Universal string representation","description":"Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.","oneOf":[{"type":"string"},{"type":"object","properties":{"invalid_utf8_string":{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}},"required":["invalid_utf8_string"]}]}}}} diff --git a/docs/api/rpc-openapi-rc.json b/docs/api/rpc-openapi-rc.json new file mode 100644 index 000000000000..577db203fc0f --- /dev/null +++ b/docs/api/rpc-openapi-rc.json @@ -0,0 +1,12086 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Octez RPC", + "description": "The RPC API served by the Octez node.", + "version": "Octez 22.0~rc1 ()" + }, + "paths": { + "/chains/{chain_id}": { + "patch": { + "description": "Forcefully set the bootstrapped flag of the node", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "bootstrapped": { + "type": "boolean" + } + }, + "required": [ + "bootstrapped" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/active_peers_heads": { + "get": { + "description": "The heads of all active peers", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "active_peers_heads": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "block_hash": { + "$ref": "#/components/schemas/block_hash" + }, + "block_level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "peer_id", + "block_hash", + "block_level" + ] + } + } + }, + "required": [ + "active_peers_heads" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/blocks": { + "get": { + "description": "Lists block hashes from '', up to the last checkpoint, sorted with decreasing fitness. Without arguments it returns the head of the chain. Optional arguments allow to return the list of predecessors of a given block or of a set of blocks.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "length", + "in": "query", + "description": "The requested number of predecessors to return (per request; see next argument).", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "head", + "in": "query", + "description": "block_hash (Base58Check-encoded) An empty argument requests blocks starting with the current head. A non empty list allows to request one or more specific fragments of the chain.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "min_date", + "in": "query", + "description": "A date in seconds from epoch When `min_date` is provided, blocks with a timestamp before `min_date` are filtered out. However, if the `length` parameter is also provided, then up to that number of predecessors will be returned regardless of their date.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/block_hash" + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/chain_id": { + "get": { + "description": "The chain unique identifier.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Network identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/invalid_blocks": { + "get": { + "description": "Lists blocks that have been declared invalid along with the errors that led to them being declared invalid.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "block": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "block", + "level", + "errors" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/invalid_blocks/{block_hash}": { + "get": { + "description": "The errors that appears during the block (in)validation.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "block_hash", + "in": "path", + "description": "block_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "block": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "block", + "level", + "errors" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + }, + "delete": { + "description": "Remove an invalid block for the tezos storage", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "block_hash", + "in": "path", + "description": "block_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/is_bootstrapped": { + "get": { + "description": "The bootstrap status of a chain", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "bootstrapped": { + "type": "boolean" + }, + "sync_state": { + "$ref": "#/components/schemas/chain_status" + } + }, + "required": [ + "bootstrapped", + "sync_state" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/levels/caboose": { + "get": { + "description": "The current caboose for this chain.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "block_hash": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "block_hash", + "level" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/levels/checkpoint": { + "get": { + "description": "The current checkpoint for this chain.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "block_hash": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "block_hash", + "level" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/levels/savepoint": { + "get": { + "description": "The current savepoint for this chain.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "block_hash": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "block_hash", + "level" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/protocols": { + "get": { + "description": "Lists protocols of the chain.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "proto_level": { + "description": "Level of protocol in the sequence of protocol activations.", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "activation_block": { + "description": "The activation block for a protocol is the migration block, i.e. the last level of the previous protocol.", + "type": "object", + "properties": { + "block_hash": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "block_hash", + "level" + ] + } + }, + "required": [ + "protocol", + "proto_level", + "activation_block" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/protocols/{Protocol_hash}": { + "get": { + "description": "Information about a protocol of the chain.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Protocol_hash", + "in": "path", + "description": "Protocol_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "proto_level": { + "description": "Level of protocol in the sequence of protocol activations.", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "activation_block": { + "description": "The activation block for a protocol is the migration block, i.e. the last level of the previous protocol.", + "type": "object", + "properties": { + "block_hash": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "block_hash", + "level" + ] + } + }, + "required": [ + "protocol", + "proto_level", + "activation_block" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/config": { + "get": { + "description": "Return the runtime node configuration (this takes into account the command-line arguments and the on-disk configuration file)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data-dir": { + "description": "Location of the data dir on disk.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "disable-config-validation": { + "description": "Disable the node configuration validation.", + "type": "boolean" + }, + "rpc": { + "description": "Configuration of rpc parameters", + "type": "object", + "properties": { + "listen-addrs": { + "description": "Hosts to listen to. If the port is not specified, the default port 8732 will be assumed.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + }, + "external-listen-addrs": { + "description": "Hosts to listen to. If the port is not specified, the default port 8732 will be assumed.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + }, + "listen-addr": { + "description": "Legacy value: Host to listen to", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "cors-origin": { + "description": "Cross Origin Resource Sharing parameters, see https://en.wikipedia.org/wiki/Cross-origin_resource_sharing.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + }, + "cors-headers": { + "description": "Cross Origin Resource Sharing parameters, see https://en.wikipedia.org/wiki/Cross-origin_resource_sharing.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + }, + "crt": { + "description": "Certificate file (necessary when TLS is used).", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "key": { + "description": "Key file (necessary when TLS is used).", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "acl": { + "description": "A list of RPC ACLs for specific listening addresses.", + "type": "array", + "items": { + "oneOf": [ + { + "title": "Whitelist", + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/unistring" + }, + "whitelist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + }, + "required": [ + "address", + "whitelist" + ] + }, + { + "title": "Blacklist", + "type": "object", + "properties": { + "address": { + "$ref": "#/components/schemas/unistring" + }, + "blacklist": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + }, + "required": [ + "address", + "blacklist" + ] + } + ] + } + }, + "media-type": { + "description": "The media types supported by the server.", + "type": "string", + "enum": [ + "json", + "any", + "binary" + ] + }, + "max_active_rpc_connections": { + "description": "The maximum number of active connections per RPC endpoint.", + "oneOf": [ + { + "$ref": "#/components/schemas/max_active_rpc_connections" + } + ] + }, + "enable-http-cache-headers": { + "description": "Enables HTTP cache headers in the RPC response. When enabled, 'Cache-control' will be present with 'max-age' in the response header of relative queries (eg. head, head-n, head~n). The 'max-age' value indicates the duration of which the returned response is cacheable. It is an estimate of the remaining duration of the current round based on when the block was forged. Enabling this feature adds a performance overhead to all queries hence you should only do so if you are running the RPC server behind a caching server. The feature is implemented based on RFC9111 hence useful for reverse proxies with auto-caching mechanism.", + "type": "boolean" + } + } + }, + "p2p": { + "description": "Configuration of network parameters", + "type": "object", + "properties": { + "expected-proof-of-work": { + "description": "Floating point number between 0 and 256 that represents a difficulty, 24 signifies for example that at least 24 leading zeroes are expected in the hash.", + "type": "number" + }, + "bootstrap-peers": { + "description": "List of hosts. Tezos can connect to both IPv6 and IPv4 hosts. If the port is not specified, default port 9732 will be assumed.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + }, + "listen-addr": { + "description": "Host to listen to. If the port is not specified, the default port 9732 will be assumed.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "advertised-net-port": { + "description": "Alternative port advertised to other peers to connect to. If the port is not specified, the port from listen-addr will be assumed.", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "discovery-addr": { + "description": "Host for local peer discovery. If the port is not specified, the default port 10732 will be assumed.", + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + ] + }, + "private-mode": { + "description": "Specify if the node is in private mode or not. A node in private mode rejects incoming connections from untrusted peers and only opens outgoing connections to peers listed in 'bootstrap-peers' or provided with '--peer' option. Moreover, these peers will keep the identity and the address of the private node secret.", + "type": "boolean" + }, + "limits": { + "description": "Network limits", + "type": "object", + "properties": { + "connection-timeout": { + "description": "Delay acceptable when initiating a connection to a new peer, in seconds.", + "oneOf": [ + { + "$ref": "#/components/schemas/timespan.system" + } + ] + }, + "authentication-timeout": { + "description": "Delay granted to a peer to perform authentication, in seconds.", + "oneOf": [ + { + "$ref": "#/components/schemas/timespan.system" + } + ] + }, + "min-connections": { + "description": "Strict minimum number of connections (triggers an urgent maintenance).", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "expected-connections": { + "description": "Targeted number of connections to reach when bootstrapping / maintaining.", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "max-connections": { + "description": "Maximum number of connections (exceeding peers are disconnected).", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "backlog": { + "description": "Number above which pending incoming connections are immediately rejected.", + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max-incoming-connections": { + "description": "Number above which pending incoming connections are immediately rejected.", + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "max-download-speed": { + "description": "Max download speeds in KiB/s.", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max-upload-speed": { + "description": "Max upload speeds in KiB/s.", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "swap-linger": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/timespan.system" + } + ] + } + ] + }, + "binary-chunks-size": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "read-buffer-size": { + "description": "Size of the buffer passed to read(2).", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "read-queue-size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "write-queue-size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "incoming-app-message-queue-size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "incoming-message-queue-size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "outgoing-message-queue-size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "max_known_points": { + "description": "The max and target size for the known address table.", + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + ] + } + }, + "max_known_peer_ids": { + "description": "The max and target size for the known peers table.", + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + ] + } + }, + "peer_greylist_size": { + "description": "The number of peer_ids kept in the peer_id greylist.", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "ip_greylist_size_in_kilobytes": { + "description": "The size of the IP address greylist (in kilobytes).", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "ip_greylist_cleanup_delay": { + "description": "The time an IP address is kept in the greylist.", + "oneOf": [ + { + "$ref": "#/components/schemas/timespan.system" + } + ] + }, + "greylist-timeout": { + "description": "GC delay for the greylists tables, in seconds.", + "oneOf": [ + { + "$ref": "#/components/schemas/timespan.system" + } + ] + }, + "maintenance-idle-time": { + "description": "How long to wait at most, in seconds, before running a maintenance loop. If null -- decoding to None -- is provided then the maintenance is disabled.", + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/timespan.system" + } + ] + } + ] + } + } + }, + "disable_mempool": { + "description": "If set to [true], the node will not participate in the propagation of pending operations (mempool). Default value is [false]. It can be used to decrease the memory and computation footprints of the node.", + "type": "boolean" + }, + "enable_testchain": { + "description": "DEPRECATED. If set to [true], the node will spawn a testchain during the protocol's testing voting period. Default value is [false]. It is disabled to decrease the node storage usage and computation by dropping the validation of the test network blocks.", + "type": "boolean" + }, + "greylisting_config": { + "description": "The reconnection policy regulates the frequency with which the node tries to reconnect to an old known peer.", + "type": "object", + "properties": { + "factor": { + "description": "The factor by which the reconnection delay is increased when a peer that was previously disconnected is disconnected again. This value should be set to 1 for a linear back-off and to >1 for an exponential back-off.", + "type": "number" + }, + "initial-delay": { + "description": "The span of time a peer is disconnected for when it is first disconnected.", + "oneOf": [ + { + "$ref": "#/components/schemas/timespan.system" + } + ] + }, + "disconnection-delay": { + "description": "The span of time a peer is disconnected for when it is disconnected as the result of an error.", + "oneOf": [ + { + "$ref": "#/components/schemas/timespan.system" + } + ] + }, + "increase-cap": { + "description": "The maximum amount by which the reconnection is extended. This limits the rate of the exponential back-off, which eventually becomes linear when it reaches this limit. This limit is set to avoid reaching the End-of-Time when repeatedly reconnection a peer.", + "oneOf": [ + { + "$ref": "#/components/schemas/timespan.system" + } + ] + } + } + }, + "disable_peer_discovery": { + "description": "This field should be used for testing purpose only. If set to [true], the node will not participate to the peer discovery mechanism. The node will not be able to find new peers to connect with.", + "type": "boolean" + } + } + }, + "log": { + "description": "Configuration of the Lwt-log sink (part of the logging framework)", + "type": "object", + "properties": { + "output": { + "description": "Output for the logging function. Either 'stdout', 'stderr' or the name of a log file .", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "level": { + "description": "Verbosity level: one of 'fatal', 'error', 'warn','notice', 'info', 'debug'.", + "type": "string", + "enum": [ + "info", + "debug", + "error", + "fatal", + "warning", + "notice" + ] + }, + "colors": { + "description": "Enables light coloring in logs.", + "type": "boolean" + }, + "rules": { + "description": "Fine-grained logging instructions. Same format as described in `octez-node run --help`, DEBUG section. In the example below, sections 'p2p' and all sections starting by 'client' will have their messages logged up to the debug level, whereas the rest of log sections will be logged up to the notice level.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "advertises_level": { + "description": "When `true`, advertises the level of an event in addition to its contents.", + "type": "boolean" + } + } + }, + "internal-events": { + "description": "Configuration of the structured logging framework", + "oneOf": [ + { + "title": "Active-Sinks", + "description": "List of sinks to make sure are activated.", + "type": "object", + "properties": { + "active_sinks": { + "description": "List of URIs to activate/configure sinks.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + } + }, + { + "title": "Active-Sinks-Deprecated", + "description": "List of sinks to make sure are activated, deprecated backwards-compatibility encoding.", + "type": "object", + "properties": { + "activate": { + "description": "List of URIs to activate/configure sinks.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + } + } + ] + }, + "shell": { + "description": "Configuration of network parameters", + "type": "object", + "properties": { + "peer_validator": { + "type": "object", + "properties": { + "block_header_request_timeout": { + "$ref": "#/components/schemas/timespan.system" + }, + "block_operations_request_timeout": { + "$ref": "#/components/schemas/timespan.system" + }, + "protocol_request_timeout": { + "$ref": "#/components/schemas/timespan.system" + }, + "new_head_request_timeout": { + "$ref": "#/components/schemas/timespan.system" + } + } + }, + "block_validator": { + "type": "object", + "properties": { + "protocol_request_timeout": { + "$ref": "#/components/schemas/timespan.system" + }, + "operation_metadata_size_limit": { + "$ref": "#/components/schemas/operation_metadata_size_limit" + } + } + }, + "prevalidator": { + "type": "object", + "properties": { + "operations_request_timeout": { + "$ref": "#/components/schemas/timespan.system" + }, + "max_refused_operations": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "operations_batch_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + } + }, + "chain_validator": { + "oneOf": [ + { + "title": "synchronisation_heuristic_encoding", + "type": "object", + "properties": { + "latency": { + "description": "[latency] is the time interval (in seconds) used to determine if a peer is synchronized with a chain. For instance, a peer whose known head has a timestamp T is considered synchronized if T >= now - latency. This parameter depends on the baking rate and the latency of the network.", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "synchronisation_threshold": { + "description": "The minimal number of peers this peer should be synchronized with in order to be bootstrapped.", + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + }, + { + "title": "legacy_bootstrap_threshold_encoding", + "type": "object", + "properties": { + "bootstrap_threshold": { + "description": "[DEPRECATED] Set the number of peers with whom a chain synchronisation must be completed to bootstrap the node.", + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + } + ] + }, + "history_mode": { + "$ref": "#/components/schemas/history_mode" + }, + "disable_context_pruning": { + "type": "boolean" + }, + "storage_maintenance_delay": { + "$ref": "#/components/schemas/storage_maintenance_delay" + } + } + }, + "network": { + "description": "Configuration of which network/blockchain to connect to", + "oneOf": [ + { + "title": "sandbox", + "type": "string", + "enum": [ + "sandbox" + ] + }, + { + "title": "mainnet", + "type": "string", + "enum": [ + "mainnet" + ] + }, + { + "title": "ghostnet", + "type": "string", + "enum": [ + "ghostnet" + ] + }, + { + "title": "Custom", + "type": "object", + "properties": { + "genesis": { + "type": "object", + "properties": { + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "block": { + "$ref": "#/components/schemas/block_hash" + }, + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "required": [ + "timestamp", + "block", + "protocol" + ] + }, + "genesis_parameters": { + "type": "object", + "properties": { + "context_key": { + "$ref": "#/components/schemas/unistring" + }, + "values": {} + }, + "required": [ + "values" + ] + }, + "chain_name": { + "$ref": "#/components/schemas/distributed_db_version.name" + }, + "old_chain_name": { + "$ref": "#/components/schemas/distributed_db_version.name" + }, + "incompatible_chain_name": { + "$ref": "#/components/schemas/distributed_db_version.name" + }, + "sandboxed_chain_name": { + "$ref": "#/components/schemas/distributed_db_version.name" + }, + "user_activated_upgrades": { + "$ref": "#/components/schemas/user_activated.upgrades" + }, + "user_activated_protocol_overrides": { + "$ref": "#/components/schemas/user_activated.protocol_overrides" + }, + "default_bootstrap_peers": { + "description": "List of hosts to use if p2p.bootstrap_peers is unspecified.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + }, + "dal_config": { + "description": "USE FOR TESTING PURPOSE ONLY. Configuration for the data-availibility layer", + "type": "object", + "properties": { + "activated": { + "type": "boolean" + }, + "bootstrap_peers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + }, + "required": [ + "bootstrap_peers" + ] + } + }, + "required": [ + "genesis", + "chain_name", + "sandboxed_chain_name" + ] + } + ] + }, + "metrics_addr": { + "description": "Configuration of the Prometheus metrics endpoint", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/config/history_mode": { + "get": { + "description": "Returns the history mode of the node's underlying storage. In full or rolling mode, it provides the values of `additional_cycles` and `blocks_preservation_cycles`. The sum of these values is the total number of stored cycles.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "history_mode": { + "$ref": "#/components/schemas/history_mode" + }, + "blocks_preservation_cycles": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + }, + "required": [ + "history_mode" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/config/logging": { + "put": { + "description": "Replace the logging configuration of the node.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Active-Sinks", + "description": "List of sinks to make sure are activated.", + "type": "object", + "properties": { + "active_sinks": { + "description": "List of URIs to activate/configure sinks.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + } + }, + { + "title": "Active-Sinks-Deprecated", + "description": "List of sinks to make sure are activated, deprecated backwards-compatibility encoding.", + "type": "object", + "properties": { + "activate": { + "description": "List of URIs to activate/configure sinks.", + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + } + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/config/network/dal": { + "get": { + "description": "Configuration for the DAL", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "activated": { + "type": "boolean" + }, + "bootstrap_peers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/unistring" + } + } + }, + "required": [ + "bootstrap_peers" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/config/network/user_activated_protocol_overrides": { + "get": { + "description": "List of protocols which replace other protocols", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "User activated protocol overrides", + "description": "User activated protocol overrides: activate a protocol instead of another.", + "type": "array", + "items": { + "type": "object", + "properties": { + "replaced_protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "replacement_protocol": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "required": [ + "replaced_protocol", + "replacement_protocol" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/config/network/user_activated_upgrades": { + "get": { + "description": "List of protocols to switch to at given levels", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "User activated upgrades", + "description": "User activated upgrades: at given level, switch to given protocol.", + "type": "array", + "items": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "replacement_protocol": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "required": [ + "level", + "replacement_protocol" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/errors": { + "get": { + "description": "Schema for all the RPC errors from the shell", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/fetch_protocol/{Protocol_hash}": { + "get": { + "description": "Fetch a protocol from the network.", + "parameters": [ + { + "name": "Protocol_hash", + "in": "path", + "description": "Protocol_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": {} + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/health/ready": { + "get": { + "description": "Returns whether or not the node is ready to answer to requests.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ready": { + "type": "boolean" + } + }, + "required": [ + "ready" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/injection/block": { + "post": { + "description": "Inject a block in the node and broadcast it. The `operations` embedded in `blockHeader` might be pre-validated using a contextual RPCs from the latest block (e.g. '/blocks/head/context/preapply'). Returns the ID of the block. By default, the RPC will wait for the block to be validated before answering. If ?async is true, the function returns immediately. Otherwise, the block will be validated before the result is returned. If ?force is true, it will be injected even on non strictly increasing fitness. An optional ?chain parameter can be used to specify whether to inject on the test chain or the main chain.", + "parameters": [ + { + "name": "async", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "force", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "chain", + "in": "query", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + }, + "operations": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + } + } + }, + "required": [ + "data", + "operations" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A block identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/injection/operation": { + "post": { + "description": "Inject an operation in node and broadcast it. Returns the ID of the operation. The `signedOperationContents` should be constructed using contextual RPCs from the latest block and signed by the client. The injection of the operation will apply it on the current mempool context. This context may change at each operation injection or operation reception from peers. By default, the RPC will wait for the operation to be (pre-)validated before returning. However, if ?async is true, the function returns immediately. The optional ?chain parameter can be used to specify whether to inject on the test chain or the main chain.", + "parameters": [ + { + "name": "async", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "chain", + "in": "query", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/injection/protocol": { + "post": { + "description": "Inject a protocol in node. Returns the ID of the protocol. If ?async is true, the function returns immediately. Otherwise, the protocol will be validated before the result is returned.", + "parameters": [ + { + "name": "async", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "description": "The environment a protocol relies on and the components a protocol is made of.", + "type": "object", + "properties": { + "expected_env_version": { + "$ref": "#/components/schemas/protocol.environment_version" + }, + "components": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "$ref": "#/components/schemas/unistring" + }, + "interface": { + "$ref": "#/components/schemas/unistring" + }, + "implementation": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "name", + "implementation" + ] + } + } + }, + "required": [ + "expected_env_version", + "components" + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Tezos protocol ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/monitor/active_chains": { + "get": { + "description": "Monitor every chain creation and destruction. Currently active chains will be given as first elements", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "oneOf": [ + { + "title": "Main", + "type": "object", + "properties": { + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + } + }, + "required": [ + "chain_id" + ] + }, + { + "title": "Test", + "type": "object", + "properties": { + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "test_protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "expiration_date": { + "$ref": "#/components/schemas/timestamp.protocol" + } + }, + "required": [ + "chain_id", + "test_protocol", + "expiration_date" + ] + }, + { + "title": "Stopping", + "type": "object", + "properties": { + "stopping": { + "$ref": "#/components/schemas/Chain_id" + } + }, + "required": [ + "stopping" + ] + } + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/monitor/applied_blocks": { + "get": { + "description": "Monitor all blocks that are successfully applied and stored by the node, disregarding whether they were selected as the new head or not.", + "parameters": [ + { + "name": "protocol", + "in": "query", + "description": "Protocol_hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "next_protocol", + "in": "query", + "description": "Protocol_hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "chain", + "in": "query", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/block_hash" + }, + "header": { + "$ref": "#/components/schemas/block_header" + }, + "operations": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + } + } + }, + "required": [ + "chain_id", + "hash", + "header", + "operations" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/monitor/bootstrapped": { + "get": { + "description": "Wait for the node to have synchronized its chain with a few peers (configured by the node's administrator), streaming head updates that happen during the bootstrapping process, and closing the stream at the end. If the node was already bootstrapped, returns the current head immediately.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "block": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + } + }, + "required": [ + "block", + "timestamp" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/monitor/heads/{chain_id}": { + "get": { + "description": "Monitor all blocks that are successfully validated and applied by the node and selected as the new head of the given chain.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "protocol", + "in": "query", + "description": "Protocol_hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "next_protocol", + "in": "query", + "description": "Protocol_hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "Block header", + "description": "Block header. It contains both shell and protocol specific data.", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "protocol_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "hash", + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "protocol_data" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/monitor/protocols": { + "get": { + "description": "Monitor all economic protocols that are retrieved and successfully loaded and compiled by the node.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Tezos protocol ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/monitor/received_blocks/{chain_id}": { + "get": { + "description": "Monitor all newly received blocks that are not yet known by the store.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/block_hash" + } + }, + "required": [ + "hash" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/monitor/validated_blocks": { + "get": { + "description": "Monitor all blocks that were successfully validated by the node but are not applied nor stored yet, disregarding whether they are going to be selected as the new head or not.", + "parameters": [ + { + "name": "protocol", + "in": "query", + "description": "Protocol_hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "next_protocol", + "in": "query", + "description": "Protocol_hash (Base58Check-encoded)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "chain", + "in": "query", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "hash": { + "$ref": "#/components/schemas/block_hash" + }, + "header": { + "$ref": "#/components/schemas/block_header" + }, + "operations": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/operation" + } + } + } + }, + "required": [ + "chain_id", + "hash", + "header", + "operations" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/connections": { + "get": { + "description": "List the running P2P connection.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "incoming": { + "type": "boolean" + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "id_point": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "remote_socket_port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "announced_version": { + "$ref": "#/components/schemas/network_version" + }, + "private": { + "type": "boolean" + }, + "local_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "remote_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + } + }, + "required": [ + "incoming", + "peer_id", + "id_point", + "remote_socket_port", + "announced_version", + "private", + "local_metadata", + "remote_metadata" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/connections/{peer_id}": { + "get": { + "description": "Details about the current P2P connection to the given peer.", + "parameters": [ + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "incoming": { + "type": "boolean" + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "id_point": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "remote_socket_port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "announced_version": { + "$ref": "#/components/schemas/network_version" + }, + "private": { + "type": "boolean" + }, + "local_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "remote_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + } + }, + "required": [ + "incoming", + "peer_id", + "id_point", + "remote_socket_port", + "announced_version", + "private", + "local_metadata", + "remote_metadata" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + }, + "delete": { + "description": "Forced close of the current P2P connection to the given peer.", + "parameters": [ + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "wait", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/full_stat": { + "get": { + "description": "Full network statistics.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "Stored statistics about the p2p network.", + "type": "object", + "properties": { + "stat": { + "$ref": "#/components/schemas/p2p_stat" + }, + "incoming_connections": { + "type": "array", + "items": { + "type": "object", + "properties": { + "incoming": { + "type": "boolean" + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "id_point": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "remote_socket_port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "announced_version": { + "$ref": "#/components/schemas/network_version" + }, + "private": { + "type": "boolean" + }, + "local_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "remote_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + } + }, + "required": [ + "incoming", + "peer_id", + "id_point", + "remote_socket_port", + "announced_version", + "private", + "local_metadata", + "remote_metadata" + ] + } + }, + "outgoing_connections": { + "type": "array", + "items": { + "type": "object", + "properties": { + "incoming": { + "type": "boolean" + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "id_point": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "remote_socket_port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "announced_version": { + "$ref": "#/components/schemas/network_version" + }, + "private": { + "type": "boolean" + }, + "local_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "remote_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + } + }, + "required": [ + "incoming", + "peer_id", + "id_point", + "remote_socket_port", + "announced_version", + "private", + "local_metadata", + "remote_metadata" + ] + } + }, + "peers": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "type": "object", + "properties": { + "score": { + "type": "number" + }, + "trusted": { + "type": "boolean" + }, + "conn_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "peer_metadata": { + "type": "object", + "properties": { + "responses": { + "type": "object", + "properties": { + "sent": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "failed": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "received": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "unexpected": { + "$ref": "#/components/schemas/bignum" + }, + "outdated": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "sent", + "failed", + "received", + "unexpected", + "outdated" + ] + }, + "requests": { + "type": "object", + "properties": { + "sent": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "received": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "failed": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "scheduled": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + } + }, + "required": [ + "sent", + "received", + "failed", + "scheduled" + ] + }, + "valid_blocks": { + "$ref": "#/components/schemas/bignum" + }, + "old_heads": { + "$ref": "#/components/schemas/bignum" + }, + "prevalidator_results": { + "type": "object", + "properties": { + "cannot_download": { + "$ref": "#/components/schemas/bignum" + }, + "cannot_parse": { + "$ref": "#/components/schemas/bignum" + }, + "refused_by_prefilter": { + "$ref": "#/components/schemas/bignum" + }, + "refused_by_postfilter": { + "$ref": "#/components/schemas/bignum" + }, + "applied": { + "$ref": "#/components/schemas/bignum" + }, + "branch_delayed": { + "$ref": "#/components/schemas/bignum" + }, + "branch_refused": { + "$ref": "#/components/schemas/bignum" + }, + "refused": { + "$ref": "#/components/schemas/bignum" + }, + "duplicate": { + "$ref": "#/components/schemas/bignum" + }, + "outdated": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "cannot_download", + "cannot_parse", + "refused_by_prefilter", + "refused_by_postfilter", + "applied", + "branch_delayed", + "branch_refused", + "refused", + "duplicate", + "outdated" + ] + }, + "unactivated_chains": { + "$ref": "#/components/schemas/bignum" + }, + "inactive_chains": { + "$ref": "#/components/schemas/bignum" + }, + "future_blocks_advertised": { + "$ref": "#/components/schemas/bignum" + }, + "unadvertised": { + "type": "object", + "properties": { + "block": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocol": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "block", + "operations", + "protocol" + ] + }, + "advertisements": { + "type": "object", + "properties": { + "sent": { + "type": "object", + "properties": { + "head": { + "$ref": "#/components/schemas/bignum" + }, + "branch": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "head", + "branch" + ] + }, + "received": { + "type": "object", + "properties": { + "head": { + "$ref": "#/components/schemas/bignum" + }, + "branch": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "head", + "branch" + ] + } + }, + "required": [ + "sent", + "received" + ] + } + }, + "required": [ + "responses", + "requests", + "valid_blocks", + "old_heads", + "prevalidator_results", + "unactivated_chains", + "inactive_chains", + "future_blocks_advertised", + "unadvertised", + "advertisements" + ] + }, + "state": { + "$ref": "#/components/schemas/p2p_peer.state" + }, + "reachable_at": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "stat": { + "$ref": "#/components/schemas/p2p_stat" + }, + "last_failed_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + } + }, + "required": [ + "score", + "trusted", + "peer_metadata", + "state", + "stat" + ] + } + ] + } + } + }, + "points": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_point.id" + }, + { + "$ref": "#/components/schemas/p2p_point.info" + } + ] + } + } + } + }, + "required": [ + "stat", + "incoming_connections", + "outgoing_connections", + "peers", + "points" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/greylist": { + "delete": { + "description": "Clear all greylists tables. This will unban all addresses and peers automatically greylisted by the system.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/greylist/ips": { + "get": { + "description": "Returns an object that contains a list of IP and the field \"not_reliable_since\".\n If the field \"not_reliable_since\" is None then the list contains the currently greylisted IP addresses.\n If the field \"not_reliable_since\" Contains a date, this means that the greylist has been overflowed and it is no more possible to obtain the exact list of greylisted IPs. Since the greylist of IP addresses has been design to work whatever his size, there is no security issue related to this overflow.\n Reinitialize the ACL structure by calling \"delete /network/greylist\" to get back this list reliable.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ips": { + "type": "array", + "items": { + "$ref": "#/components/schemas/p2p_address" + } + }, + "not_reliable_since": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "oneOf": [ + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + ] + } + }, + "required": [ + "ips", + "not_reliable_since" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/greylist/peers": { + "get": { + "description": "List of the last greylisted peers.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/log": { + "get": { + "description": "Stream of all network events", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An event that may happen during maintenance of and other operations on the p2p connection pool. Typically, it includes connection errors, peer swaps, etc.", + "oneOf": [ + { + "title": "Too_few_connections", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "too_few_connections" + ] + } + }, + "required": [ + "event" + ] + }, + { + "title": "Too_many_connections", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "too_many_connections" + ] + } + }, + "required": [ + "event" + ] + }, + { + "title": "New_point", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "new_point" + ] + }, + "point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "event", + "point" + ] + }, + { + "title": "New_peer", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "new_peer" + ] + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "peer_id" + ] + }, + { + "title": "Incoming_connection", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "incoming_connection" + ] + }, + "point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "event", + "point" + ] + }, + { + "title": "Outgoing_connection", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "outgoing_connection" + ] + }, + "point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "event", + "point" + ] + }, + { + "title": "Authentication_failed", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "authentication_failed" + ] + }, + "point": { + "$ref": "#/components/schemas/p2p_point.id" + } + }, + "required": [ + "event", + "point" + ] + }, + { + "title": "Accepting_request", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "accepting_request" + ] + }, + "point": { + "$ref": "#/components/schemas/p2p_point.id" + }, + "id_point": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "point", + "id_point", + "peer_id" + ] + }, + { + "title": "Rejecting_request", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "rejecting_request" + ] + }, + "point": { + "$ref": "#/components/schemas/p2p_point.id" + }, + "id_point": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "point", + "id_point", + "peer_id" + ] + }, + { + "title": "Request_rejected", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "request_rejected" + ] + }, + "point": { + "$ref": "#/components/schemas/p2p_point.id" + }, + "identity": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + ] + } + } + }, + "required": [ + "event", + "point" + ] + }, + { + "title": "Connection_established", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "connection_established" + ] + }, + "id_point": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "id_point", + "peer_id" + ] + }, + { + "title": "Disconnection", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "disconnection" + ] + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "peer_id" + ] + }, + { + "title": "External_disconnection", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "external_disconnection" + ] + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "peer_id" + ] + }, + { + "title": "Gc_points", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "gc_points" + ] + } + }, + "required": [ + "event" + ] + }, + { + "title": "Gc_peer_ids", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "gc_peer_ids" + ] + } + }, + "required": [ + "event" + ] + }, + { + "title": "Swap_request_received", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "swap_request_received" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + }, + { + "title": "Swap_ack_received", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "swap_ack_received" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + }, + { + "title": "Swap_request_sent", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "swap_request_sent" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + }, + { + "title": "Swap_ack_sent", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "swap_ack_sent" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + }, + { + "title": "Swap_request_ignored", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "swap_request_ignored" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + }, + { + "title": "Swap_success", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "swap_success" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + }, + { + "title": "Swap_failure", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "swap_failure" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + }, + { + "title": "Bootstrap_sent", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "bootstrap_sent" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + }, + { + "title": "Bootstrap_received", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "bootstrap_received" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + }, + { + "title": "Advertise_sent", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "advertise_sent" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + }, + { + "title": "Advertise_received", + "type": "object", + "properties": { + "event": { + "type": "string", + "enum": [ + "advertise_received" + ] + }, + "source": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event", + "source" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/peers": { + "get": { + "description": "List the peers the node ever met.", + "parameters": [ + { + "name": "filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "type": "object", + "properties": { + "score": { + "type": "number" + }, + "trusted": { + "type": "boolean" + }, + "conn_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "peer_metadata": { + "type": "object", + "properties": { + "responses": { + "type": "object", + "properties": { + "sent": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "failed": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "received": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "unexpected": { + "$ref": "#/components/schemas/bignum" + }, + "outdated": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "sent", + "failed", + "received", + "unexpected", + "outdated" + ] + }, + "requests": { + "type": "object", + "properties": { + "sent": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "received": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "failed": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "scheduled": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + } + }, + "required": [ + "sent", + "received", + "failed", + "scheduled" + ] + }, + "valid_blocks": { + "$ref": "#/components/schemas/bignum" + }, + "old_heads": { + "$ref": "#/components/schemas/bignum" + }, + "prevalidator_results": { + "type": "object", + "properties": { + "cannot_download": { + "$ref": "#/components/schemas/bignum" + }, + "cannot_parse": { + "$ref": "#/components/schemas/bignum" + }, + "refused_by_prefilter": { + "$ref": "#/components/schemas/bignum" + }, + "refused_by_postfilter": { + "$ref": "#/components/schemas/bignum" + }, + "applied": { + "$ref": "#/components/schemas/bignum" + }, + "branch_delayed": { + "$ref": "#/components/schemas/bignum" + }, + "branch_refused": { + "$ref": "#/components/schemas/bignum" + }, + "refused": { + "$ref": "#/components/schemas/bignum" + }, + "duplicate": { + "$ref": "#/components/schemas/bignum" + }, + "outdated": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "cannot_download", + "cannot_parse", + "refused_by_prefilter", + "refused_by_postfilter", + "applied", + "branch_delayed", + "branch_refused", + "refused", + "duplicate", + "outdated" + ] + }, + "unactivated_chains": { + "$ref": "#/components/schemas/bignum" + }, + "inactive_chains": { + "$ref": "#/components/schemas/bignum" + }, + "future_blocks_advertised": { + "$ref": "#/components/schemas/bignum" + }, + "unadvertised": { + "type": "object", + "properties": { + "block": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocol": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "block", + "operations", + "protocol" + ] + }, + "advertisements": { + "type": "object", + "properties": { + "sent": { + "type": "object", + "properties": { + "head": { + "$ref": "#/components/schemas/bignum" + }, + "branch": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "head", + "branch" + ] + }, + "received": { + "type": "object", + "properties": { + "head": { + "$ref": "#/components/schemas/bignum" + }, + "branch": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "head", + "branch" + ] + } + }, + "required": [ + "sent", + "received" + ] + } + }, + "required": [ + "responses", + "requests", + "valid_blocks", + "old_heads", + "prevalidator_results", + "unactivated_chains", + "inactive_chains", + "future_blocks_advertised", + "unadvertised", + "advertisements" + ] + }, + "state": { + "$ref": "#/components/schemas/p2p_peer.state" + }, + "reachable_at": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "stat": { + "$ref": "#/components/schemas/p2p_stat" + }, + "last_failed_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + } + }, + "required": [ + "score", + "trusted", + "peer_metadata", + "state", + "stat" + ] + } + ] + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/peers/{peer_id}": { + "get": { + "description": "Details about a given peer.", + "parameters": [ + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "score": { + "type": "number" + }, + "trusted": { + "type": "boolean" + }, + "conn_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "peer_metadata": { + "type": "object", + "properties": { + "responses": { + "type": "object", + "properties": { + "sent": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "failed": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "received": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "unexpected": { + "$ref": "#/components/schemas/bignum" + }, + "outdated": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "sent", + "failed", + "received", + "unexpected", + "outdated" + ] + }, + "requests": { + "type": "object", + "properties": { + "sent": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "received": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "failed": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "scheduled": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + } + }, + "required": [ + "sent", + "received", + "failed", + "scheduled" + ] + }, + "valid_blocks": { + "$ref": "#/components/schemas/bignum" + }, + "old_heads": { + "$ref": "#/components/schemas/bignum" + }, + "prevalidator_results": { + "type": "object", + "properties": { + "cannot_download": { + "$ref": "#/components/schemas/bignum" + }, + "cannot_parse": { + "$ref": "#/components/schemas/bignum" + }, + "refused_by_prefilter": { + "$ref": "#/components/schemas/bignum" + }, + "refused_by_postfilter": { + "$ref": "#/components/schemas/bignum" + }, + "applied": { + "$ref": "#/components/schemas/bignum" + }, + "branch_delayed": { + "$ref": "#/components/schemas/bignum" + }, + "branch_refused": { + "$ref": "#/components/schemas/bignum" + }, + "refused": { + "$ref": "#/components/schemas/bignum" + }, + "duplicate": { + "$ref": "#/components/schemas/bignum" + }, + "outdated": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "cannot_download", + "cannot_parse", + "refused_by_prefilter", + "refused_by_postfilter", + "applied", + "branch_delayed", + "branch_refused", + "refused", + "duplicate", + "outdated" + ] + }, + "unactivated_chains": { + "$ref": "#/components/schemas/bignum" + }, + "inactive_chains": { + "$ref": "#/components/schemas/bignum" + }, + "future_blocks_advertised": { + "$ref": "#/components/schemas/bignum" + }, + "unadvertised": { + "type": "object", + "properties": { + "block": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocol": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "block", + "operations", + "protocol" + ] + }, + "advertisements": { + "type": "object", + "properties": { + "sent": { + "type": "object", + "properties": { + "head": { + "$ref": "#/components/schemas/bignum" + }, + "branch": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "head", + "branch" + ] + }, + "received": { + "type": "object", + "properties": { + "head": { + "$ref": "#/components/schemas/bignum" + }, + "branch": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "head", + "branch" + ] + } + }, + "required": [ + "sent", + "received" + ] + } + }, + "required": [ + "responses", + "requests", + "valid_blocks", + "old_heads", + "prevalidator_results", + "unactivated_chains", + "inactive_chains", + "future_blocks_advertised", + "unadvertised", + "advertisements" + ] + }, + "state": { + "$ref": "#/components/schemas/p2p_peer.state" + }, + "reachable_at": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "stat": { + "$ref": "#/components/schemas/p2p_stat" + }, + "last_failed_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + } + }, + "required": [ + "score", + "trusted", + "peer_metadata", + "state", + "stat" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + }, + "patch": { + "description": "Change the permissions of a given peer. With `{acl: ban}`: blacklist the given peer and remove it from the whitelist if present. With `{acl: open}`: removes the peer from the blacklist and whitelist. With `{acl: trust}`: trust the given peer permanently and remove it from the blacklist if present. The peer cannot be blocked (but its host IP still can).", + "parameters": [ + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "acl": { + "type": "string", + "enum": [ + "open", + "trust", + "ban" + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "score": { + "type": "number" + }, + "trusted": { + "type": "boolean" + }, + "conn_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "peer_metadata": { + "type": "object", + "properties": { + "responses": { + "type": "object", + "properties": { + "sent": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "failed": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "received": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "unexpected": { + "$ref": "#/components/schemas/bignum" + }, + "outdated": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "sent", + "failed", + "received", + "unexpected", + "outdated" + ] + }, + "requests": { + "type": "object", + "properties": { + "sent": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "received": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "failed": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "scheduled": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + } + }, + "required": [ + "sent", + "received", + "failed", + "scheduled" + ] + }, + "valid_blocks": { + "$ref": "#/components/schemas/bignum" + }, + "old_heads": { + "$ref": "#/components/schemas/bignum" + }, + "prevalidator_results": { + "type": "object", + "properties": { + "cannot_download": { + "$ref": "#/components/schemas/bignum" + }, + "cannot_parse": { + "$ref": "#/components/schemas/bignum" + }, + "refused_by_prefilter": { + "$ref": "#/components/schemas/bignum" + }, + "refused_by_postfilter": { + "$ref": "#/components/schemas/bignum" + }, + "applied": { + "$ref": "#/components/schemas/bignum" + }, + "branch_delayed": { + "$ref": "#/components/schemas/bignum" + }, + "branch_refused": { + "$ref": "#/components/schemas/bignum" + }, + "refused": { + "$ref": "#/components/schemas/bignum" + }, + "duplicate": { + "$ref": "#/components/schemas/bignum" + }, + "outdated": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "cannot_download", + "cannot_parse", + "refused_by_prefilter", + "refused_by_postfilter", + "applied", + "branch_delayed", + "branch_refused", + "refused", + "duplicate", + "outdated" + ] + }, + "unactivated_chains": { + "$ref": "#/components/schemas/bignum" + }, + "inactive_chains": { + "$ref": "#/components/schemas/bignum" + }, + "future_blocks_advertised": { + "$ref": "#/components/schemas/bignum" + }, + "unadvertised": { + "type": "object", + "properties": { + "block": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocol": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "block", + "operations", + "protocol" + ] + }, + "advertisements": { + "type": "object", + "properties": { + "sent": { + "type": "object", + "properties": { + "head": { + "$ref": "#/components/schemas/bignum" + }, + "branch": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "head", + "branch" + ] + }, + "received": { + "type": "object", + "properties": { + "head": { + "$ref": "#/components/schemas/bignum" + }, + "branch": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "head", + "branch" + ] + } + }, + "required": [ + "sent", + "received" + ] + } + }, + "required": [ + "responses", + "requests", + "valid_blocks", + "old_heads", + "prevalidator_results", + "unactivated_chains", + "inactive_chains", + "future_blocks_advertised", + "unadvertised", + "advertisements" + ] + }, + "state": { + "$ref": "#/components/schemas/p2p_peer.state" + }, + "reachable_at": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "stat": { + "$ref": "#/components/schemas/p2p_stat" + }, + "last_failed_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + } + }, + "required": [ + "score", + "trusted", + "peer_metadata", + "state", + "stat" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/peers/{peer_id}/banned": { + "get": { + "description": "Check if a given peer is blacklisted or greylisted.", + "parameters": [ + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/peers/{peer_id}/log": { + "get": { + "description": "Monitor network events related to a given peer.", + "parameters": [ + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "monitor", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/p2p_peer.pool_event" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/points": { + "get": { + "description": "List the pool of known `IP:port` used for establishing P2P connections.", + "parameters": [ + { + "name": "filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_point.id" + }, + { + "$ref": "#/components/schemas/p2p_point.info" + } + ] + } + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/points/{point}": { + "get": { + "description": "Details about a given `IP:addr`.", + "parameters": [ + { + "name": "point", + "in": "path", + "description": "A network point (ipv4:port or [ipv6]:port).", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "Information about a peer point. Includes flags, state, and records about past events.", + "type": "object", + "properties": { + "trusted": { + "type": "boolean" + }, + "greylisted_until": { + "$ref": "#/components/schemas/timestamp.system" + }, + "state": { + "$ref": "#/components/schemas/p2p_point.state" + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "last_failed_connection": { + "$ref": "#/components/schemas/timestamp.system" + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "$ref": "#/components/schemas/timestamp.system" + }, + "expected_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "trusted", + "state" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + }, + "put": { + "description": "Connect to a peer", + "parameters": [ + { + "name": "point", + "in": "path", + "description": "A network point (ipv4:port or [ipv6]:port).", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "timeout", + "in": "query", + "description": "A span of time in seconds", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + }, + "patch": { + "description": "Change the connectivity state of a given `IP:addr`. With `{acl : ban}`: blacklist the given address and remove it from the whitelist if present. With `{acl: open}`: removes an address from the blacklist and whitelist. With `{acl: trust}`: trust a given address permanently and remove it from the blacklist if present. With `{peer_id: }` set the peerId of the point. Connections from this address can still be closed on authentication if the peer is greylisted. ", + "parameters": [ + { + "name": "point", + "in": "path", + "description": "A network point (ipv4:port or [ipv6]:port).", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "acl": { + "type": "string", + "enum": [ + "open", + "trust", + "ban" + ] + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "Information about a peer point. Includes flags, state, and records about past events.", + "type": "object", + "properties": { + "trusted": { + "type": "boolean" + }, + "greylisted_until": { + "$ref": "#/components/schemas/timestamp.system" + }, + "state": { + "$ref": "#/components/schemas/p2p_point.state" + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "last_failed_connection": { + "$ref": "#/components/schemas/timestamp.system" + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "$ref": "#/components/schemas/timestamp.system" + }, + "expected_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "trusted", + "state" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/points/{point}/banned": { + "get": { + "description": "Check if a given address is blacklisted or greylisted. Port component is unused.", + "parameters": [ + { + "name": "point", + "in": "path", + "description": "A network point (ipv4:port or [ipv6]:port).", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/points/{point}/log": { + "get": { + "description": "Monitor network events related to an `IP:addr`.", + "parameters": [ + { + "name": "point", + "in": "path", + "description": "A network point (ipv4:port or [ipv6]:port).", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "monitor", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/p2p_point.pool_event" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/self": { + "get": { + "description": "Return the node's peer id", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "title": "A Cryptobox public key ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/stat": { + "get": { + "description": "Global network bandwidth statistics in B/s.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "Statistics about the p2p network.", + "type": "object", + "properties": { + "total_sent": { + "$ref": "#/components/schemas/int64" + }, + "total_recv": { + "$ref": "#/components/schemas/int64" + }, + "current_inflow": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "current_outflow": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "total_sent", + "total_recv", + "current_inflow", + "current_outflow" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/profiler/registered_backend": { + "get": { + "description": "Registered backend.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "Registered backend.", + "type": "object", + "properties": { + "registered_backend": { + "type": "array", + "items": { + "oneOf": [ + { + "title": "opentelemetry", + "description": "Opentelemetry driver", + "type": "string", + "enum": [ + "opentelemetry" + ] + }, + { + "title": "prometheus", + "description": "Prometheus driver", + "type": "string", + "enum": [ + "prometheus" + ] + }, + { + "title": "plain_text", + "description": "plain_text driver", + "type": "string", + "enum": [ + "plain_text" + ] + }, + { + "title": "json", + "description": "json driver", + "type": "string", + "enum": [ + "json" + ] + } + ] + } + }, + "backends": { + "$ref": "#/components/schemas/backends_encoding" + } + }, + "required": [ + "registered_backend", + "backends" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/protocols": { + "get": { + "description": "(no description)", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Protocol_hash" + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/protocols/{Protocol_hash}": { + "get": { + "description": "(no description)", + "parameters": [ + { + "name": "Protocol_hash", + "in": "path", + "description": "Protocol_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "The environment a protocol relies on and the components a protocol is made of.", + "type": "object", + "properties": { + "expected_env_version": { + "$ref": "#/components/schemas/protocol.environment_version" + }, + "components": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "$ref": "#/components/schemas/unistring" + }, + "interface": { + "$ref": "#/components/schemas/unistring" + }, + "implementation": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "name", + "implementation" + ] + } + } + }, + "required": [ + "expected_env_version", + "components" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/protocols/{Protocol_hash}/environment": { + "get": { + "description": "(no description)", + "parameters": [ + { + "name": "Protocol_hash", + "in": "path", + "description": "Protocol_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/stats/gc": { + "get": { + "description": "Gets stats from the OCaml Garbage Collector", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "minor_words": { + "type": "number" + }, + "promoted_words": { + "type": "number" + }, + "major_words": { + "type": "number" + }, + "minor_collections": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "major_collections": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "forced_major_collections": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "heap_words": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "heap_chunks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "live_words": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "live_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "free_words": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "free_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "largest_free": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "fragments": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "compactions": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "top_heap_words": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "stack_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "minor_words", + "promoted_words", + "major_words", + "minor_collections", + "major_collections", + "forced_major_collections", + "heap_words", + "heap_chunks", + "live_words", + "live_blocks", + "free_words", + "free_blocks", + "largest_free", + "fragments", + "compactions", + "top_heap_words", + "stack_size" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/stats/memory": { + "get": { + "description": "Gets memory usage stats", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "Linux_proc_statm", + "type": "object", + "properties": { + "page_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "size": { + "$ref": "#/components/schemas/int64" + }, + "resident": { + "$ref": "#/components/schemas/int64" + }, + "shared": { + "$ref": "#/components/schemas/int64" + }, + "text": { + "$ref": "#/components/schemas/int64" + }, + "lib": { + "$ref": "#/components/schemas/int64" + }, + "data": { + "$ref": "#/components/schemas/int64" + }, + "dt": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "page_size", + "size", + "resident", + "shared", + "text", + "lib", + "data", + "dt" + ] + }, + { + "title": "Darwin_ps", + "type": "object", + "properties": { + "page_size": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "mem": { + "type": "number" + }, + "resident": { + "$ref": "#/components/schemas/int64" + } + }, + "required": [ + "page_size", + "mem", + "resident" + ] + } + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/version": { + "get": { + "description": "Get information on the node version", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "minor": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "additional_info": { + "oneOf": [ + { + "title": "Dev", + "type": "string", + "enum": [ + "dev" + ] + }, + { + "title": "RC", + "type": "object", + "properties": { + "rc": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "rc" + ] + }, + { + "title": "Release", + "type": "string", + "enum": [ + "release" + ] + }, + { + "title": "RC_dev", + "type": "object", + "properties": { + "rc_dev": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "rc_dev" + ] + }, + { + "title": "Beta", + "type": "object", + "properties": { + "beta": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "beta" + ] + }, + { + "title": "Beta_dev", + "type": "object", + "properties": { + "beta_dev": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "beta_dev" + ] + } + ] + } + }, + "required": [ + "major", + "minor", + "additional_info" + ] + }, + "network_version": { + "$ref": "#/components/schemas/network_version" + }, + "commit_info": { + "nullable": true, + "oneOf": [ + { + "title": "Some", + "type": "object", + "properties": { + "commit_hash": { + "$ref": "#/components/schemas/unistring" + }, + "commit_date": { + "$ref": "#/components/schemas/unistring" + } + }, + "required": [ + "commit_hash", + "commit_date" + ] + } + ] + } + }, + "required": [ + "version", + "network_version", + "commit_info" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/workers/block_validator": { + "get": { + "description": "Introspect the state of the block_validator worker.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "status": { + "oneOf": [ + { + "title": "Launching", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "launching" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "running" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Closing", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closing" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Closed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Crashed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "crashed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "phase", + "birth", + "since", + "errors" + ] + } + ] + }, + "pending_requests": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pushed": { + "$ref": "#/components/schemas/timestamp.system" + }, + "request": { + "oneOf": [ + { + "title": "validation", + "type": "object", + "properties": { + "block": { + "$ref": "#/components/schemas/block_hash" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "peer": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "block", + "chain_id" + ] + }, + { + "title": "preapplication", + "type": "object", + "properties": { + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "chain_id", + "level" + ] + } + ] + } + }, + "required": [ + "pushed", + "request" + ] + } + }, + "current_request": { + "type": "object", + "properties": { + "pushed": { + "$ref": "#/components/schemas/timestamp.system" + }, + "treated": { + "$ref": "#/components/schemas/timestamp.system" + }, + "request": { + "oneOf": [ + { + "title": "validation", + "type": "object", + "properties": { + "block": { + "$ref": "#/components/schemas/block_hash" + }, + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "peer": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "block", + "chain_id" + ] + }, + { + "title": "preapplication", + "type": "object", + "properties": { + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "chain_id", + "level" + ] + } + ] + } + }, + "required": [ + "pushed", + "treated", + "request" + ] + } + }, + "required": [ + "status", + "pending_requests" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/workers/chain_validators": { + "get": { + "description": "Lists the chain validator workers and their status.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "status": { + "oneOf": [ + { + "title": "Launching", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "launching" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "running" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Closing", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closing" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Closed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Crashed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "crashed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "phase", + "birth", + "since", + "errors" + ] + } + ] + }, + "information": { + "type": "object", + "properties": { + "instances": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "status": { + "oneOf": [ + { + "title": "Launching", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "launching" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "running" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Closing", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closing" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Closed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Crashed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "crashed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "phase", + "birth", + "since", + "errors" + ] + } + ] + }, + "queue_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "instances", + "status", + "queue_length" + ] + }, + "pipelines": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "chain_id", + "status", + "information", + "pipelines" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/workers/chain_validators/{chain_id}": { + "get": { + "description": "Introspect the state of a chain validator worker.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "status": { + "oneOf": [ + { + "title": "Launching", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "launching" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "running" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Closing", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closing" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Closed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Crashed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "crashed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "phase", + "birth", + "since", + "errors" + ] + } + ] + }, + "pending_requests": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pushed": { + "$ref": "#/components/schemas/timestamp.system" + }, + "request": { + "oneOf": [ + { + "title": "Hash", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/block_hash" + } + }, + "required": [ + "hash" + ] + }, + { + "title": "Peer_id", + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "peer_id" + ] + } + ] + } + }, + "required": [ + "pushed", + "request" + ] + } + }, + "current_request": { + "type": "object", + "properties": { + "pushed": { + "$ref": "#/components/schemas/timestamp.system" + }, + "treated": { + "$ref": "#/components/schemas/timestamp.system" + }, + "request": { + "oneOf": [ + { + "title": "Hash", + "type": "object", + "properties": { + "hash": { + "$ref": "#/components/schemas/block_hash" + } + }, + "required": [ + "hash" + ] + }, + { + "title": "Peer_id", + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "peer_id" + ] + } + ] + } + }, + "required": [ + "pushed", + "treated", + "request" + ] + } + }, + "required": [ + "status", + "pending_requests" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/workers/chain_validators/{chain_id}/ddb": { + "get": { + "description": "Introspect the state of the DDB attached to a chain validator worker.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "p2p_readers": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "active_chains": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "operation_db": { + "type": "object", + "properties": { + "table_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "scheduler_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "table_length", + "scheduler_length" + ] + }, + "operations_db": { + "type": "object", + "properties": { + "table_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "scheduler_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "table_length", + "scheduler_length" + ] + }, + "block_header_db": { + "type": "object", + "properties": { + "table_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "scheduler_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "table_length", + "scheduler_length" + ] + }, + "active_connections": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "active_peers": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "p2p_readers", + "active_chains", + "operation_db", + "operations_db", + "block_header_db", + "active_connections", + "active_peers" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/workers/chain_validators/{chain_id}/peers_validators": { + "get": { + "description": "Lists the peer validator workers and their status.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "status": { + "oneOf": [ + { + "title": "Launching", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "launching" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "running" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Closing", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closing" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Closed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Crashed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "crashed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "phase", + "birth", + "since", + "errors" + ] + } + ] + }, + "information": { + "type": "object", + "properties": { + "instances": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "status": { + "oneOf": [ + { + "title": "Launching", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "launching" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "running" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Closing", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closing" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Closed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Crashed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "crashed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "phase", + "birth", + "since", + "errors" + ] + } + ] + }, + "queue_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "instances", + "status", + "queue_length" + ] + }, + "pipelines": { + "type": "object", + "properties": { + "fetched_headers": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "fetched_blocks": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "fetched_headers", + "fetched_blocks" + ] + } + }, + "required": [ + "peer_id", + "status", + "information", + "pipelines" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/workers/chain_validators/{chain_id}/peers_validators/{peer_id}": { + "get": { + "description": "Introspect the state of a peer validator worker.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "status": { + "oneOf": [ + { + "title": "Launching", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "launching" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "running" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Closing", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closing" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Closed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Crashed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "crashed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "phase", + "birth", + "since", + "errors" + ] + } + ] + }, + "pending_requests": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pushed": { + "$ref": "#/components/schemas/timestamp.system" + }, + "request": { + "oneOf": [ + { + "title": "New_head", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "new_head" + ] + }, + "block": { + "$ref": "#/components/schemas/block_hash" + } + }, + "required": [ + "request", + "block" + ] + }, + { + "title": "New_branch", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "new_branch" + ] + }, + "block": { + "$ref": "#/components/schemas/block_hash" + }, + "locators": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "request", + "block", + "locators" + ] + } + ] + } + }, + "required": [ + "pushed", + "request" + ] + } + }, + "current_request": { + "type": "object", + "properties": { + "pushed": { + "$ref": "#/components/schemas/timestamp.system" + }, + "treated": { + "$ref": "#/components/schemas/timestamp.system" + }, + "request": { + "oneOf": [ + { + "title": "New_head", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "new_head" + ] + }, + "block": { + "$ref": "#/components/schemas/block_hash" + } + }, + "required": [ + "request", + "block" + ] + }, + { + "title": "New_branch", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "new_branch" + ] + }, + "block": { + "$ref": "#/components/schemas/block_hash" + }, + "locators": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "request", + "block", + "locators" + ] + } + ] + } + }, + "required": [ + "pushed", + "treated", + "request" + ] + } + }, + "required": [ + "status", + "pending_requests" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/workers/prevalidators": { + "get": { + "description": "Lists the Prevalidator workers and their status.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "chain_id": { + "$ref": "#/components/schemas/Chain_id" + }, + "status": { + "oneOf": [ + { + "title": "Launching", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "launching" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "running" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Closing", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closing" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Closed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Crashed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "crashed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "phase", + "birth", + "since", + "errors" + ] + } + ] + }, + "information": { + "type": "object", + "properties": { + "instances": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "status": { + "oneOf": [ + { + "title": "Launching", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "launching" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "running" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Closing", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closing" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Closed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Crashed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "crashed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "phase", + "birth", + "since", + "errors" + ] + } + ] + }, + "queue_length": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "instances", + "status", + "queue_length" + ] + }, + "pipelines": { + "type": "integer", + "minimum": -32768, + "maximum": 32767 + } + }, + "required": [ + "chain_id", + "status", + "information", + "pipelines" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/workers/prevalidators/{chain_id}": { + "get": { + "description": "Introspect the state of prevalidator workers.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "status": { + "oneOf": [ + { + "title": "Launching", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "launching" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "running" + ] + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "since" + ] + }, + { + "title": "Closing", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closing" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Closed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "closed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + } + }, + "required": [ + "phase", + "birth", + "since" + ] + }, + { + "title": "Crashed", + "type": "object", + "properties": { + "phase": { + "type": "string", + "enum": [ + "crashed" + ] + }, + "birth": { + "$ref": "#/components/schemas/timestamp.system" + }, + "since": { + "$ref": "#/components/schemas/timestamp.system" + }, + "errors": { + "$ref": "#/components/schemas/error" + } + }, + "required": [ + "phase", + "birth", + "since", + "errors" + ] + } + ] + }, + "pending_requests": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pushed": { + "$ref": "#/components/schemas/timestamp.system" + }, + "request": { + "oneOf": [ + { + "title": "Flush", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "flush" + ] + }, + "block": { + "$ref": "#/components/schemas/block_hash" + }, + "event": { + "$ref": "#/components/schemas/chain_update" + } + }, + "required": [ + "request", + "block", + "event" + ] + }, + { + "title": "Notify", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "notify" + ] + }, + "peer": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "mempool": { + "$ref": "#/components/schemas/mempool" + } + }, + "required": [ + "request", + "peer", + "mempool" + ] + }, + { + "title": "Inject", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "inject" + ] + }, + "operation": { + "$ref": "#/components/schemas/operation" + }, + "force": { + "type": "boolean" + } + }, + "required": [ + "request", + "operation", + "force" + ] + }, + { + "title": "Arrived", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "arrived" + ] + }, + "operation_hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "operation": { + "$ref": "#/components/schemas/operation" + } + }, + "required": [ + "request", + "operation_hash", + "operation" + ] + }, + { + "title": "Advertise", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "advertise" + ] + } + }, + "required": [ + "request" + ] + }, + { + "title": "Leftover", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "leftover" + ] + } + }, + "required": [ + "request" + ] + }, + { + "title": "Ban", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "ban" + ] + }, + "operation_hash": { + "$ref": "#/components/schemas/Operation_hash" + } + }, + "required": [ + "request", + "operation_hash" + ] + } + ] + } + }, + "required": [ + "pushed", + "request" + ] + } + }, + "current_request": { + "type": "object", + "properties": { + "pushed": { + "$ref": "#/components/schemas/timestamp.system" + }, + "treated": { + "$ref": "#/components/schemas/timestamp.system" + }, + "request": { + "oneOf": [ + { + "title": "Flush", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "flush" + ] + }, + "block": { + "$ref": "#/components/schemas/block_hash" + }, + "event": { + "$ref": "#/components/schemas/chain_update" + } + }, + "required": [ + "request", + "block", + "event" + ] + }, + { + "title": "Notify", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "notify" + ] + }, + "peer": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "mempool": { + "$ref": "#/components/schemas/mempool" + } + }, + "required": [ + "request", + "peer", + "mempool" + ] + }, + { + "title": "Inject", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "inject" + ] + }, + "operation": { + "$ref": "#/components/schemas/operation" + }, + "force": { + "type": "boolean" + } + }, + "required": [ + "request", + "operation", + "force" + ] + }, + { + "title": "Arrived", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "arrived" + ] + }, + "operation_hash": { + "$ref": "#/components/schemas/Operation_hash" + }, + "operation": { + "$ref": "#/components/schemas/operation" + } + }, + "required": [ + "request", + "operation_hash", + "operation" + ] + }, + { + "title": "Advertise", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "advertise" + ] + } + }, + "required": [ + "request" + ] + }, + { + "title": "Leftover", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "leftover" + ] + } + }, + "required": [ + "request" + ] + }, + { + "title": "Ban", + "type": "object", + "properties": { + "request": { + "type": "string", + "enum": [ + "ban" + ] + }, + "operation_hash": { + "$ref": "#/components/schemas/Operation_hash" + } + }, + "required": [ + "request", + "operation_hash" + ] + } + ] + } + }, + "required": [ + "pushed", + "treated", + "request" + ] + } + }, + "required": [ + "status", + "pending_requests" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Chain_id": { + "title": "Network identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Context_hash": { + "title": "A hash of context (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Crypto_box.Public_key_hash": { + "title": "A Cryptobox public key ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_hash": { + "title": "A Tezos operation ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Operation_list_list_hash": { + "title": "A list of list of operations (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "Protocol_hash": { + "title": "A Tezos protocol ID (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "backends_encoding": { + "title": "Backends encoding", + "description": "Backends encoding", + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "oneOf": [ + { + "title": "opentelemetry", + "description": "Opentelemetry driver", + "type": "string", + "enum": [ + "opentelemetry" + ] + }, + { + "title": "prometheus", + "description": "Prometheus driver", + "type": "string", + "enum": [ + "prometheus" + ] + }, + { + "title": "plain_text", + "description": "plain_text driver", + "type": "string", + "enum": [ + "plain_text" + ] + }, + { + "title": "json", + "description": "json driver", + "type": "string", + "enum": [ + "json" + ] + } + ] + } + ] + } + } + }, + "bignum": { + "title": "Big number", + "description": "Decimal representation of a big number", + "type": "string" + }, + "block_hash": { + "title": "A block identifier (Base58Check-encoded)", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "block_header": { + "title": "Block header", + "description": "Block header. It contains both shell and protocol specific data.", + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "proto": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "predecessor": { + "$ref": "#/components/schemas/block_hash" + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.protocol" + }, + "validation_pass": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "operations_hash": { + "$ref": "#/components/schemas/Operation_list_list_hash" + }, + "fitness": { + "$ref": "#/components/schemas/fitness" + }, + "context": { + "$ref": "#/components/schemas/Context_hash" + }, + "protocol_data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "level", + "proto", + "predecessor", + "timestamp", + "validation_pass", + "operations_hash", + "fitness", + "context", + "protocol_data" + ] + }, + "chain_status": { + "description": "If 'unsynced', the node is not currently synchronized with of its peers (it is probably still bootstrapping and its head is lagging behind the chain's).\nIf 'synced', the node considers itself synchronized with its peers and the current head timestamp is recent.\nIf 'stuck', the node considers itself synchronized with its peers but the chain seems to be halted from its viewpoint.", + "type": "string", + "enum": [ + "stuck", + "synced", + "unsynced" + ] + }, + "chain_update": { + "description": "If 'ignored', the new validated block is ignored since the current head fitness is better. If 'branch', we have set our head to a new validated block which is not the direct successor of the previous head. If 'increment', the new validated head is the direct successor of the previous head.", + "type": "string", + "enum": [ + "branch", + "ignored", + "increment" + ] + }, + "distributed_db_version": { + "description": "A version number for the distributed DB protocol", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "distributed_db_version.name": { + "description": "A name for the distributed DB protocol", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "error": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + }, + "fitness": { + "title": "Block fitness", + "description": "The fitness, or score, of a block, that allow the Tezos to decide which chain is the best. A fitness value is a list of byte sequences. They are compared as follows: shortest lists are smaller; lists of the same length are compared according to the lexicographical order.", + "type": "array", + "items": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "history_mode": { + "title": "history mode", + "description": "Storage mode for the Tezos shell.", + "oneOf": [ + { + "title": "archive", + "description": "Archive mode retains every block and operations since the genesis block including their metadata and their associated contexts.", + "type": "string", + "enum": [ + "archive" + ] + }, + { + "title": "full", + "description": "Full mode retains every block and operations since the genesis block but periodically prunes older blocks' metadata to reduce the storage size.", + "type": "object", + "properties": { + "full": { + "type": "object", + "properties": { + "additional_cycles": { + "title": "additional cycles", + "description": "Number of additional cycles preserved below the savepoint. By default: 1 additional cycles will be stored.", + "type": "integer", + "minimum": 0, + "maximum": 1000 + } + }, + "required": [ + "additional_cycles" + ] + } + }, + "required": [ + "full" + ] + }, + { + "title": "rolling", + "description": "Rolling mode only retains the most recent cycles by periodically discarding older blocks to reduce the storage size.", + "type": "object", + "properties": { + "rolling": { + "type": "object", + "properties": { + "additional_cycles": { + "title": "additional cycles", + "description": "Number of additional cycles preserved below the savepoint. By default: 1 additional cycles will be stored.", + "type": "integer", + "minimum": 0, + "maximum": 1000 + } + }, + "required": [ + "additional_cycles" + ] + } + }, + "required": [ + "rolling" + ] + }, + { + "title": "full_alias", + "description": "Full mode with default number of additional cycles.", + "type": "string", + "enum": [ + "full" + ] + }, + { + "title": "rolling_alias", + "description": "Rolling mode with default number of additional cycles.", + "type": "string", + "enum": [ + "rolling" + ] + } + ] + }, + "int64": { + "title": "64 bit integers", + "description": "Decimal representation of 64 bit integers", + "type": "string" + }, + "max_active_rpc_connections": { + "title": "max_active_rpc_connections", + "description": "The maximum alowed number of RPC connections", + "oneOf": [ + { + "title": "unlimited", + "description": "There is not limit of the number of RPC connections allowed.", + "type": "string", + "enum": [ + "unlimited" + ] + }, + { + "title": "limited", + "description": "The number of maximum RPC connections allowed is limited to the given integer's value.", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + ] + }, + "mempool": { + "description": "A batch of operation. This format is used to gossip operations between peers.", + "type": "object", + "properties": { + "known_valid": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Operation_hash" + } + }, + "pending": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Operation_hash" + } + } + }, + "required": [ + "known_valid", + "pending" + ] + }, + "network_version": { + "description": "A version number for the network protocol (includes distributed DB version and p2p version)", + "type": "object", + "properties": { + "chain_name": { + "$ref": "#/components/schemas/distributed_db_version.name" + }, + "distributed_db_version": { + "$ref": "#/components/schemas/distributed_db_version" + }, + "p2p_version": { + "$ref": "#/components/schemas/p2p_version" + } + }, + "required": [ + "chain_name", + "distributed_db_version", + "p2p_version" + ] + }, + "operation": { + "description": "An operation. The shell_header part indicates a block an operation is meant to apply on top of. The proto part is protocol-specific and appears as a binary blob.", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/block_hash" + }, + "data": { + "type": "string", + "pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$" + } + }, + "required": [ + "branch", + "data" + ] + }, + "operation_metadata_size_limit": { + "title": "operation_metadata_size_limit", + "description": "The operation metadata size limit", + "oneOf": [ + { + "title": "unlimited", + "description": "The metadata size is unlimited.", + "type": "string", + "enum": [ + "unlimited" + ] + }, + { + "title": "limited", + "description": "The metadata size is limited to the given integer's value (in bytes).", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + ] + }, + "p2p_address": { + "description": "An address for locating peers.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "p2p_connection.id": { + "description": "The identifier for a p2p connection. It includes an address and a port number.", + "type": "object", + "properties": { + "addr": { + "$ref": "#/components/schemas/p2p_address" + }, + "port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "addr" + ] + }, + "p2p_peer.pool_event": { + "description": "An event that may happen during maintenance of and other operations on the connection to a specific peer.", + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "rejecting_request", + "incoming_request", + "disconnection", + "external_disconnection", + "connection_established", + "request_rejected" + ] + }, + "timestamp": { + "$ref": "#/components/schemas/timestamp.system" + }, + "addr": { + "$ref": "#/components/schemas/p2p_address" + }, + "port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "required": [ + "kind", + "timestamp", + "addr" + ] + }, + "p2p_peer.state": { + "description": "The state a peer connection can be in: accepted (when the connection is being established), running (when the connection is already established), disconnected (otherwise).", + "type": "string", + "enum": [ + "running", + "accepted", + "disconnected" + ] + }, + "p2p_point.id": { + "description": "Identifier for a peer point", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "p2p_point.info": { + "description": "Information about a peer point. Includes flags, state, and records about past events.", + "type": "object", + "properties": { + "trusted": { + "type": "boolean" + }, + "greylisted_until": { + "$ref": "#/components/schemas/timestamp.system" + }, + "state": { + "$ref": "#/components/schemas/p2p_point.state" + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "last_failed_connection": { + "$ref": "#/components/schemas/timestamp.system" + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "$ref": "#/components/schemas/timestamp.system" + }, + "expected_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "trusted", + "state" + ] + }, + "p2p_point.pool_event": { + "description": "Events happening during maintenance of and operations on a peer point pool (such as connections, disconnections, connection requests).", + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/timestamp.system" + }, + { + "oneOf": [ + { + "title": "Outgoing_request", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "outgoing_request" + ] + } + }, + "required": [ + "event_kind" + ] + }, + { + "title": "Accepting_request", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "accepting_request" + ] + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event_kind", + "p2p_peer_id" + ] + }, + { + "title": "Rejecting_request", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "rejecting_request" + ] + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event_kind", + "p2p_peer_id" + ] + }, + { + "title": "Rejecting_rejected", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "request_rejected" + ] + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event_kind" + ] + }, + { + "title": "Connection_established", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "rejecting_request" + ] + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event_kind", + "p2p_peer_id" + ] + }, + { + "title": "Disconnection", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "rejecting_request" + ] + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event_kind", + "p2p_peer_id" + ] + }, + { + "title": "External_disconnection", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "rejecting_request" + ] + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event_kind", + "p2p_peer_id" + ] + } + ] + } + ] + } + }, + "p2p_point.state": { + "description": "The state a connection to a peer point can be in: requested (connection open from here), accepted (handshake), running (connection already established), disconnected (no connection).", + "oneOf": [ + { + "title": "Requested", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "requested" + ] + } + }, + "required": [ + "event_kind" + ] + }, + { + "title": "Accepted", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "accepted" + ] + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event_kind", + "p2p_peer_id" + ] + }, + { + "title": "Running", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "running" + ] + }, + "p2p_peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + } + }, + "required": [ + "event_kind", + "p2p_peer_id" + ] + }, + { + "title": "Disconnected", + "type": "object", + "properties": { + "event_kind": { + "type": "string", + "enum": [ + "disconnected" + ] + } + }, + "required": [ + "event_kind" + ] + } + ] + }, + "p2p_stat": { + "description": "Statistics about the p2p network.", + "type": "object", + "properties": { + "total_sent": { + "$ref": "#/components/schemas/int64" + }, + "total_recv": { + "$ref": "#/components/schemas/int64" + }, + "current_inflow": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "current_outflow": { + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + } + }, + "required": [ + "total_sent", + "total_recv", + "current_inflow", + "current_outflow" + ] + }, + "p2p_version": { + "description": "A version number for the p2p layer.", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "protocol.environment_version": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "storage_maintenance_delay": { + "title": "storage maintenance delay", + "description": "Delay prior to the storage maintenance trigger", + "oneOf": [ + { + "title": "disabled", + "description": "When disabled, the storage maintenance is triggered without any delay, as soon as a new cycle starts.", + "type": "string", + "enum": [ + "disabled" + ] + }, + { + "title": "custom", + "description": "When \"custom \" is set, storage maintenance is triggered \"N\" blocks after the start of a new cycle.", + "type": "object", + "properties": { + "custom": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "custom" + ] + }, + { + "title": "auto", + "description": "When \"auto\" is set, storage maintenance is triggered after a delay that is determined automatically.", + "type": "string", + "enum": [ + "auto" + ] + } + ] + }, + "timespan.system": { + "description": "A span of time, as seen by the local computer.", + "type": "number" + }, + "timestamp.protocol": { + "description": "A timestamp as seen by the protocol: second-level precision, epoch based.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "timestamp.rfc": { + "title": "RFC 3339 formatted timestamp", + "description": "A date in RFC 3339 notation.", + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + } + ] + }, + "timestamp.system": { + "description": "A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.", + "oneOf": [ + { + "title": "RFC encoding", + "oneOf": [ + { + "$ref": "#/components/schemas/timestamp.rfc" + } + ] + }, + { + "title": "Second since epoch", + "oneOf": [ + { + "$ref": "#/components/schemas/int64" + } + ] + } + ] + }, + "unistring": { + "title": "Universal string representation", + "description": "Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "invalid_utf8_string": { + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 255 + } + } + }, + "required": [ + "invalid_utf8_string" + ] + } + ] + }, + "user_activated.protocol_overrides": { + "title": "User activated protocol overrides", + "description": "User activated protocol overrides: activate a protocol instead of another.", + "type": "array", + "items": { + "type": "object", + "properties": { + "replaced_protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "replacement_protocol": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "required": [ + "replaced_protocol", + "replacement_protocol" + ] + } + }, + "user_activated.upgrades": { + "title": "User activated upgrades", + "description": "User activated upgrades: at given level, switch to given protocol.", + "type": "array", + "items": { + "type": "object", + "properties": { + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "replacement_protocol": { + "$ref": "#/components/schemas/Protocol_hash" + } + }, + "required": [ + "level", + "replacement_protocol" + ] + } + } + } + } +} diff --git a/docs/api/rpc-openapi.json b/docs/api/rpc-openapi.json index 59536dc1130c..257d818b0191 100644 --- a/docs/api/rpc-openapi.json +++ b/docs/api/rpc-openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Octez RPC", "description": "The RPC API served by the Octez node.", - "version": "Octez 21.4 (b8278e10)" + "version": "Octez 22.0~rc1 (f1704a05)" }, "paths": { "/chains/{chain_id}": { @@ -51,7 +51,74 @@ "content": { "application/json": { "schema": { - "description": "The full list of errors is available with the global RPC `GET errors`" + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/active_peers_heads": { + "get": { + "description": "The heads of all active peers", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "active_peers_heads": { + "type": "array", + "items": { + "type": "object", + "properties": { + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "block_hash": { + "$ref": "#/components/schemas/block_hash" + }, + "block_level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "peer_id", + "block_hash", + "block_level" + ] + } + } + }, + "required": [ + "active_peers_heads" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" } } } @@ -549,6 +616,162 @@ } } }, + "/chains/{chain_id}/protocols": { + "get": { + "description": "Lists protocols of the chain.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "proto_level": { + "description": "Level of protocol in the sequence of protocol activations.", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "activation_block": { + "description": "The activation block for a protocol is the migration block, i.e. the last level of the previous protocol.", + "type": "object", + "properties": { + "block_hash": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "block_hash", + "level" + ] + } + }, + "required": [ + "protocol", + "proto_level", + "activation_block" + ] + } + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/chains/{chain_id}/protocols/{Protocol_hash}": { + "get": { + "description": "Information about a protocol of the chain.", + "parameters": [ + { + "name": "chain_id", + "in": "path", + "description": "A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Protocol_hash", + "in": "path", + "description": "Protocol_hash (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "protocol": { + "$ref": "#/components/schemas/Protocol_hash" + }, + "proto_level": { + "description": "Level of protocol in the sequence of protocol activations.", + "type": "integer", + "minimum": -1073741824, + "maximum": 1073741823 + }, + "activation_block": { + "description": "The activation block for a protocol is the migration block, i.e. the last level of the previous protocol.", + "type": "object", + "properties": { + "block_hash": { + "$ref": "#/components/schemas/block_hash" + }, + "level": { + "type": "integer", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "required": [ + "block_hash", + "level" + ] + } + }, + "required": [ + "protocol", + "proto_level", + "activation_block" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, "/config": { "get": { "description": "Return the runtime node configuration (this takes into account the command-line arguments and the on-disk configuration file)", @@ -1018,6 +1241,10 @@ "$ref": "#/components/schemas/unistring" } ] + }, + "advertises_level": { + "description": "When `true`, advertises the level of an event in addition to its contents.", + "type": "boolean" } } }, @@ -2456,37 +2683,1245 @@ "private_node": { "type": "boolean" } - }, - "required": [ - "disable_mempool", - "private_node" - ] + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "remote_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + } + }, + "required": [ + "incoming", + "peer_id", + "id_point", + "remote_socket_port", + "announced_version", + "private", + "local_metadata", + "remote_metadata" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + }, + "delete": { + "description": "Forced close of the current P2P connection to the given peer.", + "parameters": [ + { + "name": "peer_id", + "in": "path", + "description": "A cryptographic node identity (Base58Check-encoded)", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "wait", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, + "/network/full_stat": { + "get": { + "description": "Full network statistics.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "Stored statistics about the p2p network.", + "type": "object", + "properties": { + "stat": { + "$ref": "#/components/schemas/p2p_stat" + }, + "incoming_connections": { + "type": "array", + "items": { + "type": "object", + "properties": { + "incoming": { + "type": "boolean" + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "id_point": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "remote_socket_port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "announced_version": { + "$ref": "#/components/schemas/network_version" + }, + "private": { + "type": "boolean" + }, + "local_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "remote_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + } + }, + "required": [ + "incoming", + "peer_id", + "id_point", + "remote_socket_port", + "announced_version", + "private", + "local_metadata", + "remote_metadata" + ] + } + }, + "outgoing_connections": { + "type": "array", + "items": { + "type": "object", + "properties": { + "incoming": { + "type": "boolean" + }, + "peer_id": { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + "id_point": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "remote_socket_port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "announced_version": { + "$ref": "#/components/schemas/network_version" + }, + "private": { + "type": "boolean" + }, + "local_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "remote_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + } + }, + "required": [ + "incoming", + "peer_id", + "id_point", + "remote_socket_port", + "announced_version", + "private", + "local_metadata", + "remote_metadata" + ] + } + }, + "peers": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Crypto_box.Public_key_hash" + }, + { + "type": "object", + "properties": { + "score": { + "type": "number" + }, + "trusted": { + "type": "boolean" + }, + "conn_metadata": { + "type": "object", + "properties": { + "disable_mempool": { + "type": "boolean" + }, + "private_node": { + "type": "boolean" + } + }, + "required": [ + "disable_mempool", + "private_node" + ] + }, + "peer_metadata": { + "type": "object", + "properties": { + "responses": { + "type": "object", + "properties": { + "sent": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "failed": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "received": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "unexpected": { + "$ref": "#/components/schemas/bignum" + }, + "outdated": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "sent", + "failed", + "received", + "unexpected", + "outdated" + ] + }, + "requests": { + "type": "object", + "properties": { + "sent": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "received": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "failed": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + }, + "scheduled": { + "oneOf": [ + { + "title": "peer_metadata.v1", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "checkpoint": { + "$ref": "#/components/schemas/bignum" + }, + "protocol_branch": { + "$ref": "#/components/schemas/bignum" + }, + "predecessor_header": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "checkpoint", + "protocol_branch", + "predecessor_header", + "other" + ] + }, + { + "title": "peer_metadata.legacy_v0", + "type": "object", + "properties": { + "branch": { + "$ref": "#/components/schemas/bignum" + }, + "head": { + "$ref": "#/components/schemas/bignum" + }, + "block_header": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocols": { + "$ref": "#/components/schemas/bignum" + }, + "operation_hashes_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "operations_for_block": { + "$ref": "#/components/schemas/bignum" + }, + "other": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "branch", + "head", + "block_header", + "operations", + "protocols", + "operation_hashes_for_block", + "operations_for_block", + "other" + ] + } + ] + } + }, + "required": [ + "sent", + "received", + "failed", + "scheduled" + ] + }, + "valid_blocks": { + "$ref": "#/components/schemas/bignum" + }, + "old_heads": { + "$ref": "#/components/schemas/bignum" + }, + "prevalidator_results": { + "type": "object", + "properties": { + "cannot_download": { + "$ref": "#/components/schemas/bignum" + }, + "cannot_parse": { + "$ref": "#/components/schemas/bignum" + }, + "refused_by_prefilter": { + "$ref": "#/components/schemas/bignum" + }, + "refused_by_postfilter": { + "$ref": "#/components/schemas/bignum" + }, + "applied": { + "$ref": "#/components/schemas/bignum" + }, + "branch_delayed": { + "$ref": "#/components/schemas/bignum" + }, + "branch_refused": { + "$ref": "#/components/schemas/bignum" + }, + "refused": { + "$ref": "#/components/schemas/bignum" + }, + "duplicate": { + "$ref": "#/components/schemas/bignum" + }, + "outdated": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "cannot_download", + "cannot_parse", + "refused_by_prefilter", + "refused_by_postfilter", + "applied", + "branch_delayed", + "branch_refused", + "refused", + "duplicate", + "outdated" + ] + }, + "unactivated_chains": { + "$ref": "#/components/schemas/bignum" + }, + "inactive_chains": { + "$ref": "#/components/schemas/bignum" + }, + "future_blocks_advertised": { + "$ref": "#/components/schemas/bignum" + }, + "unadvertised": { + "type": "object", + "properties": { + "block": { + "$ref": "#/components/schemas/bignum" + }, + "operations": { + "$ref": "#/components/schemas/bignum" + }, + "protocol": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "block", + "operations", + "protocol" + ] + }, + "advertisements": { + "type": "object", + "properties": { + "sent": { + "type": "object", + "properties": { + "head": { + "$ref": "#/components/schemas/bignum" + }, + "branch": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "head", + "branch" + ] + }, + "received": { + "type": "object", + "properties": { + "head": { + "$ref": "#/components/schemas/bignum" + }, + "branch": { + "$ref": "#/components/schemas/bignum" + } + }, + "required": [ + "head", + "branch" + ] + } + }, + "required": [ + "sent", + "received" + ] + } + }, + "required": [ + "responses", + "requests", + "valid_blocks", + "old_heads", + "prevalidator_results", + "unactivated_chains", + "inactive_chains", + "future_blocks_advertised", + "unadvertised", + "advertisements" + ] + }, + "state": { + "$ref": "#/components/schemas/p2p_peer.state" + }, + "reachable_at": { + "$ref": "#/components/schemas/p2p_connection.id" + }, + "stat": { + "$ref": "#/components/schemas/p2p_stat" + }, + "last_failed_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_rejected_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_established_connection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_disconnection": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_seen": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + }, + "last_miss": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_connection.id" + }, + { + "$ref": "#/components/schemas/timestamp.system" + } + ] + } + } + }, + "required": [ + "score", + "trusted", + "peer_metadata", + "state", + "stat" + ] + } + ] + } + } }, - "remote_metadata": { - "type": "object", - "properties": { - "disable_mempool": { - "type": "boolean" - }, - "private_node": { - "type": "boolean" + "points": { + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/p2p_point.id" + }, + { + "$ref": "#/components/schemas/p2p_point.info" + } + ] } - }, - "required": [ - "disable_mempool", - "private_node" - ] + } } }, "required": [ - "incoming", - "peer_id", - "id_point", - "remote_socket_port", - "announced_version", - "private", - "local_metadata", - "remote_metadata" + "stat", + "incoming_connections", + "outgoing_connections", + "peers", + "points" ] } } @@ -2503,51 +3938,6 @@ } } } - }, - "delete": { - "description": "Forced close of the current P2P connection to the given peer.", - "parameters": [ - { - "name": "peer_id", - "in": "path", - "description": "A cryptographic node identity (Base58Check-encoded)", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "wait", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "default": { - "description": "", - "content": { - "application/json": { - "schema": { - "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" - } - } - } - } - } } }, "/network/greylist": { @@ -6828,6 +8218,82 @@ } } }, + "/profiler/registered_backend": { + "get": { + "description": "Registered backend.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "Registered backend.", + "type": "object", + "properties": { + "registered_backend": { + "type": "array", + "items": { + "oneOf": [ + { + "title": "opentelemetry", + "description": "Opentelemetry driver", + "type": "string", + "enum": [ + "opentelemetry" + ] + }, + { + "title": "prometheus", + "description": "Prometheus driver", + "type": "string", + "enum": [ + "prometheus" + ] + }, + { + "title": "plain_text", + "description": "plain_text driver", + "type": "string", + "enum": [ + "plain_text" + ] + }, + { + "title": "json", + "description": "json driver", + "type": "string", + "enum": [ + "json" + ] + } + ] + } + }, + "backends": { + "$ref": "#/components/schemas/backends_encoding" + } + }, + "required": [ + "registered_backend", + "backends" + ] + } + } + } + }, + "default": { + "description": "", + "content": { + "application/json": { + "schema": { + "description": "An error trace. The full list of errors is available with the global RPC `GET errors`" + } + } + } + } + } + } + }, "/protocols": { "get": { "description": "(no description)", @@ -9710,6 +11176,57 @@ } ] }, + "backends_encoding": { + "title": "Backends encoding", + "description": "Backends encoding", + "type": "array", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/unistring" + }, + { + "oneOf": [ + { + "title": "opentelemetry", + "description": "Opentelemetry driver", + "type": "string", + "enum": [ + "opentelemetry" + ] + }, + { + "title": "prometheus", + "description": "Prometheus driver", + "type": "string", + "enum": [ + "prometheus" + ] + }, + { + "title": "plain_text", + "description": "plain_text driver", + "type": "string", + "enum": [ + "plain_text" + ] + }, + { + "title": "json", + "description": "json driver", + "type": "string", + "enum": [ + "json" + ] + } + ] + } + ] + } + } + }, "bignum": { "title": "Big number", "description": "Decimal representation of a big number", @@ -9858,7 +11375,7 @@ }, { "title": "rolling", - "description": "Rolling mode only retain the most recent cycles by periodically periodically discarding older blocks to reduce the storage size.", + "description": "Rolling mode only retains the most recent cycles by periodically discarding older blocks to reduce the storage size.", "type": "object", "properties": { "rolling": { -- GitLab From d5c0326a087342b70585e1daba03d3c5b2c077ea Mon Sep 17 00:00:00 2001 From: Nic Volanschi Date: Mon, 24 Feb 2025 12:36:21 +0100 Subject: [PATCH 5/6] doc: add upgrade instructions to release page --- docs/releases/version-22.rst | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/releases/version-22.rst b/docs/releases/version-22.rst index 58a5f96c85b4..fca5c2ba1293 100644 --- a/docs/releases/version-22.rst +++ b/docs/releases/version-22.rst @@ -96,4 +96,17 @@ Packages In Octez v22, the new set of packages, that was introduced in the previous version of Octez, **replaces** the old one in the APT repository. Check :ref:`the documentation ` for more details. -Futhermore, RPM packages are now available in a **dnf repository**. Installation instructions are detailed in :ref:`the documentation `. +Therefore, upgrading to the new packages is done as usual with ``apt``. +Note just that the handling of Zcash parameters is done automatically in the new packages, hence the need to overwrite the old settings:: + + $ sudo apt update + $ sudo apt upgrade octez-baker -o DPkg::options::="--force-overwrite" + +Furthermore, RPM packages are now available in a **dnf repository**. Installation instructions are detailed in :ref:`the documentation `. + +When upgrading to v22, also note that the name of the baker service has changed. +To restart the baker manually, do:: + + $ sudo systemctl stop octez-baker + $ sudo systemctl start octez-baker-active + -- GitLab From dfe22a84d25740b0c2104a78e9d3324b74698e27 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Mon, 24 Feb 2025 15:45:26 +0100 Subject: [PATCH 6/6] Changes: Snapshot changelogs for Octez v22.0~rc1 --- CHANGES.rst | 184 ----------------------------------- docs/CHANGES.rst | 177 +++++++++++++++++++++++++++++++++ docs/releases/version-22.rst | 4 + 3 files changed, 181 insertions(+), 184 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 61f57ef668f4..9091176e0964 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -25,17 +25,6 @@ be documented here either. General ------- -- Changed the compiler version to 5.2.1 and added a manual job to compile with - ocaml 4.14.2. (MR :gl:`!15404`) - -- Logging output on TTYs now adapt to the terminal width. (MR :gl:`!12348`) - -- Logging output can now advertise the level associated to each events, by - enabling the ``advertise-levels`` option in the file-descriptor sink URI. (MR - :gl:`!16190`) - -- Removed binaries for ParisC. (MR :gl:`!16427`) - Node ---- @@ -60,49 +49,12 @@ Node Client ------ -- Registered ``operation.bls_mode_unsigned`` encoding. (MR :gl:`!16655`) - -- Allow tz4 (BLS) addresses to be registered as delegate and or as consensus - keys. (MR :gl:`!15302`) - - - **Breaking change** Removed read-write commands specific to ParisC. (MR :gl:`!16431`) - Baker ----- -- The baker emits a warning when it is started with ``--dal-node``, but the DAL - node has no registered attester, that is, it was not started with - ``--attester-profiles ``. (MR :gl:`!16333`) - -- **Breaking change** For ``proto_alpha``, providing the endpoint of a running - DAL node is required for the baker to be launched, unless opted out with the - newly introduced ``--without-dal`` option. (MR :gl:`!16049`) - -- **Breaking change** The baker daemon ``--dal-node-timeout-percentage`` - argument has been removed. (MR :gl:`!15554`) - Agnostic Baker -------------- -- Release agnostic baker binary as experimental. (MR :gl:`!16318`) - -- Use of a generic watchdog. (MR :gl:`!15508`) - -- Change the binary name to ``octez-experimental-agnostic-baker``. (MR :gl:`!16434`) - -- Added a mechanism for the agnostic baker to switch on new protocol. (MR :gl:`!15305`) - -- Introduced a dummy agnostic baker. (MR :gl:`!15029`) - -Overview: The Agnostic Baker is a protocol-independent binary that dynamically determines -and executes the appropriate baking binary based on the active protocol. It continuously -monitors the blockchain state and automatically transitions to the correct binary whenever -a new protocol is detected, such as during migrations or at startup. - -Please note that this feature is in an EXPERIMENTAL phase, as clearly suggested by its name. -Therefore, it should NOT be used on ``mainnet``. For further clarifications, you can consult -the README from ``src/bin_agnostic_baker``. - Accuser ------- @@ -112,152 +64,18 @@ Proxy Server Protocol Compiler And Environment --------------------------------- -- Added a new version of the protocol environment (V14). (MR :gl:`!15345`) - -- Added a new version of the protocol environment (V15). (MR :gl:`!16599`) - Codec ----- Docker Images ------------- -- Fixed the Docker ``octez-snapshot-import`` command to properly pass - arguments to the snapshot import process. (MR :gl:`!11259`) - Smart Rollup node ----------------- -- In the bailout mode there was a bug where the wrong key was used - when recovering the bond. The node uses the ``cementing`` key and not - the ``operating`` key. (MR :gl:`!16016`). - -- updated RPC ``DELETE /admin/injector/queues`` with new query to - clear injector queues based on priority order. The RPC can takes two - optional arguments: - - + ``order_below``: an integer that filters out all operations with - order strictly inferior to it. - - + ``drop_no_order``: a boolean that if true remove all operations - that has no order specified. ``false`` by default. - - When ``tag`` is specified only operation of that type will be - considered, else all operations are considered.(MR :gl:`!15929`) - -- Added RPC ``DELETE /admin/batcher/queue``, which can take two optional - arguments: - - + ``order_below``: an integer that filters all messages with order - inferior to it. - - + ``drop_no_order``: a boolean that if true remove all messages that - has no order specified. ``false` by default. If no ``order_below`` - is specified it completely clear the queue. - - (MR :gl:`!15929`) - -- Updated RPC ``/local/batcher/injection`` with a new query argument - possibility. When the rpc contains ``"drop_duplicate": true`` then - the batcher will drop the messages that were already injected with a - previous RPC call. If ``"drop_duplicate": false`` then the rollup - node defaults to its the previous behavior, where messages are - injected again, even if the exact same one was previously - injected. By default ``"drop_duplicate": false``. (MR :gl:`!13165`) - -- RPC ``/health`` now returns meaningful health related data to asses if the - rollup node operates correctly. Old ``/health`` RPC is renamed to ``/ping``. - (MR :gl:`!12940`) - -- Use a local cache per game for intermediate states of dissections. (MR - :gl:`!12899`) - -- Introduce the 5th version of the WASM PVM, which defaults to a higher tick - limits to delegate refutability to the kernels. (MR :gl:`!12999`) - -- Trigger GC every 1000 blocks (instead of 100) by default to reduce CPU - consumption. (MR :gl:`!13177`) - -- Default history mode is now "full". (MR :gl:`!13178`) - -- Allow to import archive snapshots in "full" rollup node. (MR :gl:`!13186`) - -- Fix a bug in how commitments are computed after a protocol migration - where the the commitment period changes. (MR :gl:`!13588`) - -- Ensure penultimate commitment is published on snapshot export as a - failsafe. (MR :gl:`!13544`) - -- Include commitment publication information in snapshots. (MR :gl:`!13724`) - -- Under-approximate publication level for cementation when it is missing. (MR - :gl:`!13725`) - -- New metrics for the rollup node, including performance ones which can be - enabled with the flag ``--enable-performance-metrics`` (requires - ``lsof``). (MR :gl:`!12290`) - -- Addition of ``elapsed_time`` to performance metrics, - which exposes in seconds the time since the node started. (MR :gl:`!16551`) - -- Rotate multiple batcher keys in injector so that they are used evenly. (MR - :gl:`!14194`) - -- RPC ``/global/block/?outbox=true`` now returns the outbox messages - produced by the PVM for ``block_id`` if the query parameter ``outbox`` is - present. (MR :gl:`!14140`) - -- Introduce the 6th version of the WASM PVM. (MR :gl:`!14493`) - -- New RPC ``GET /admin/cancel_gc`` to cancel any on-going garbage collection in - the rollup node. (MR :gl:`!14693`) - -- Refined GC for rollup node is now triggered every ~3 days to make it less - wasteful on resources. Gc is not run anymore after importing an archive - snapshot in a full node. (MR :gl:`!14717`) - -- The command ``snapshot export`` tries to cancel ongoing GC, if any. Add - ``--rollup-node-endpoint`` to specify the RPC server endpoint, if the address - and port of the running node have been changed via command-line arguments. (MR - :gl:`!14694`) - -- Fixed an issue which could introduce a discrepancy between the snapshot header - and its content. (MR :gl:`!14777`) - -- RPC ``/global/block//outbox//messages`` now fails if - ``outbox_level`` is above the level of ``block_id``. (MR :gl:`!14911`) - -- Improved error messages for RPC - ``/global/block//helpers/proofs/outbox//messages?index=``. (MR :gl:`!15507`) - -- Paginate RPC for durable storage subkeys - ``/global/block//durable/wasm_2_0_0/subkeys?key=&offset=&length=``, - with new query parameters ``offset`` and ``length``. (MR :gl:`!15625`) - -- Fixed file descriptor leak in resto for connections with the L1 node. - (MR :gl:`!15322`) - -- Fixed potential issue with store with SQLite < 3.35. (MR :gl:`!15631`) -- Improved error messages for RPC - ``/global/block//helpers/proofs/outbox//messages?index=``. (MR :gl:`!15507`) - -- Fix potential issue with store with SQLite < 3.35. (MR :gl:`!15631`) - -- New CLI switch ``--unsafe-disable-wasm-kernel-checks`` which allows to bypass - invalid kernel checks in the WASM VM, for use by jstz. (MR :gl:`!15910`) - -- Support ``remote`` signer scheme and check remote signer available on - startup. (MR :gl:`!16651`) - Smart Rollup WASM Debugger -------------------------- -Data Availability Committee (DAC) ---------------------------------- - -- **Breaking_change** DAC node and client have been removed to - simplify the codebase. (MR :gl:`!14862`) - Data Availability Layer (DAL) ----------------------------- @@ -332,5 +150,3 @@ Protocol Miscellaneous ------------- - -- Renamed ``Bls`` file from the crypto library in ``Bls_aug.ml``. (MR :gl:`!16683`). diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 5a804161619d..4726f2a5c424 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -3,6 +3,164 @@ Changelog ''''''''' +Version 22.0~rc1 +================ + +General +------- + +- Changed the compiler version to 5.2.1 and added a manual job to compile with + ocaml 4.14.2. (MR :gl:`!15404`) + +- Logging output on TTYs now adapt to the terminal width. (MR :gl:`!12348`) + +- Logging output can now advertise the level associated to each events, by + enabling the ``advertise-levels`` option in the file-descriptor sink URI. (MR :gl:`!16190`) + +- Removed binaries for ParisC. (MR :gl:`!16427`) + +Node +---- + +- Changed the default ``history-mode`` from ``Full`` to ``Rolling``. (MR :gl:`!15942`) + +- Introduced a specific exit code for the ``octez-node upgrade storage + --status`` command. It now returns the exit code 1 when an upgrade + is available. 0 is returned when the storage is up to date. (MR :gl:`!15152`) + +- New RPCs ``/chain/{chain_id}/protocols`` (and + ``/chain/{chain_id}/protocols/{protocol_hash}``) to retrieve protocol + activation levels of the chain. (MR :gl:`!15447`) + +Client +------ + +- Registered ``operation.bls_mode_unsigned`` encoding. (MR :gl:`!16655`) + +- Allow tz4 (BLS) addresses to be registered as delegate and or as consensus + keys. (MR :gl:`!15302`) + + - **Breaking change** Removed read-write commands specific to ParisC. (MR :gl:`!16431`) + +Baker +----- + +- The baker emits a warning when it is started with ``--dal-node``, but the DAL + node has no registered attester, that is, it was not started with + ``--attester-profiles ``. (MR :gl:`!16333`) + +- **Breaking change** For ``proto_alpha``, providing the endpoint of a running + DAL node is required for the baker to be launched, unless opted out with the + newly introduced ``--without-dal`` option. (MR :gl:`!16049`) + +- **Breaking change** The baker daemon ``--dal-node-timeout-percentage`` + argument has been removed. (MR :gl:`!15554`) + +Agnostic Baker +-------------- + +- Released agnostic baker binary as experimental. (MR :gl:`!16318`) + +- Use of a generic watchdog. (MR :gl:`!15508`) + +- Changed the binary name to ``octez-experimental-agnostic-baker``. (MR :gl:`!16434`) + +- Added a mechanism for the agnostic baker to switch on new protocol. (MR :gl:`!15305`) + +- Introduced a dummy agnostic baker. (MR :gl:`!15029`) + +Overview: The Agnostic Baker is a protocol-independent binary that dynamically determines +and executes the appropriate baking binary based on the active protocol. It continuously +monitors the blockchain state and automatically transitions to the correct binary whenever +a new protocol is detected, such as during migrations or at startup. + +Please note that this feature is in an EXPERIMENTAL phase, as clearly suggested by its name. +Therefore, it should NOT be used on ``mainnet``. For further clarifications, you can consult +the README from ``src/bin_agnostic_baker``. + +Protocol Compiler And Environment +--------------------------------- + +- Added a new version of the protocol environment (V14). (MR :gl:`!15345`) + +- Added a new version of the protocol environment (V15). (MR :gl:`!16599`) + +Docker Images +------------- + +- Fixed the Docker ``octez-snapshot-import`` command to properly pass + arguments to the snapshot import process. (MR :gl:`!11259`) + +Data Availability Committee (DAC) +--------------------------------- + +- **Breaking_change** DAC node and client have been removed to + simplify the codebase. (MR :gl:`!14862`) + +Data Availability Layer (DAL) +----------------------------- + +DAL node +~~~~~~~~ + +- **Breaking_change** The configuration value ``metrics-addr`` is now an option. + It should not break unless the value differs from the default value + (``0.0.0.0:11733``). The new default value is ``None``, so no metrics are + exported by default. + +- **Breaking change** For the RPCs ``/p2p/gossipsub/topics/peers``, + ``/p2p/gossipsub/pkhs/peers``, and ``/p2p/gossipsub/slot_indexes/peers``, the + flag ``subscribed`` is removed and a new flag ``all`` is introduced. The + default behavior is now to list peers only for topics the current peer is + subscribed to, while the ``all`` flag can be used to recover the previous + behavior. (MR :gl:`!14518`) + +- **Bugfix** When shutting down the DAL node using SIGINT, it does a + best effort to shutdown properly its running P2P connections + +- **Feature** The DAL node stores now a peers.json file in its + directory when it is shutdown with SIGINT. This file is read if it + exists when starting the DAL node to restore previous known + connections quickly. + +- **Change** The DAL node store version has been upgraded from 1 to 2. + The DAL node store will automatically upgrade without requiring any + user action. For users running the DAL node with the + ``--operator-profile`` flag enabled, the node now uses SQLite + specifically for managing skip list cells (MR :gl:`!15780`), + preventing inode exhaustion. All other stores remain unchanged. + +- **Feature** The DAL node downloads trusted setup files when launched in observer + or operator mode. (MR :gl:`!16102`) + +- The DAL node supports a ``config update`` command to update an + existing configuration. It takes the same arguments as for the other + commands. (MR :gl:`!15759`) + +- Fixed file descriptor leak in resto affecting connections to the L1 node. + (MR :gl:`!15322`) + +- Added a new RPC ``/last_processed_level`` to retrieve the last (finalized) L1 + level processed by a DAL node. (MR :gl:`!16420`) + +- A warning is emitted when registering a public key hash (as an attester + profile) that does not correspond to that of a delegate. (MR :gl:`!16336`) + +- Set the message validation function at node startup, fixing + https://gitlab.com/tezos/tezos/-/issues/7629. (MR :gl:`!15830`) + +- A warning has been introduced in case it is observed that the DAL node lags + behind the L1 node. (MR :gl:`!15756`) + +- Added a new RPC ``GET /protocol_parameters/`` that retrieve the protocol + parameters that the DAL node uses for a given level, which by default is the + last finalized level the node is aware of. (MR :gl:`!16704`) + +Miscellaneous +------------- + +- Renamed ``Bls`` file from the crypto library in ``Bls_aug.ml``. (MR :gl:`!16683`). + Version 21.4 ============ @@ -25,6 +183,25 @@ DAL node provides for each unreachable point, the time remaining until the next reconnection attempt. (MR :gl:`!16767`) +- **Feature** Added a new RPC ``GET /p2p/gossipsub/mesh/`` that returns the GossipSub mesh + (i.e. full data connections per topic) of a peer. (MR :gl:`!16754`) + +- **Feature** Added a new RPC ``GET /p2p/gossipsub/fanout/`` that returns the GossipSub + fanout of a peer. (MR :gl:`!16764`) + +- **Bugfix** Fixed the timing of the reconnection to peers attempts. (MR :gl:`!16466`) + +- **Bugfix** From v21.2, the ``SO_KEEP_ALIVE`` socket option was used + for incoming connections only. It is now used with both incoming + connections and outgoing connections. (MR :gl:`!16820`) + +Baker +----- + +- Fixed a long time running baker memory leak. (MR :gl:`!16719`) + +- Fixed the storage maintenance default value in the config file (MR :gl:`!16744`) + Version 21.3 ============ diff --git a/docs/releases/version-22.rst b/docs/releases/version-22.rst index fca5c2ba1293..66f04b6fad6a 100644 --- a/docs/releases/version-22.rst +++ b/docs/releases/version-22.rst @@ -110,3 +110,7 @@ To restart the baker manually, do:: $ sudo systemctl stop octez-baker $ sudo systemctl start octez-baker-active +Changelog +--------- + +- `Version 22.0~rc1 <../CHANGES.html#version-22-0-rc1>`_ -- GitLab