Revision 1393399f248002e5eb265fc73990c367a149d6a5 authored by Pierrick Couderc on 07 June 2023, 15:15:24 UTC, committed by Marge Bot on 13 June 2023, 13:43:51 UTC
1 parent aca9435
nairobi-openapi.json
{
"openapi": "3.0.0",
"info": {
"title": "Octez RPC",
"description": "The RPC API served by the Octez node.",
"version": "17.0"
},
"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": "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": "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.017-PtNairob.michelson_v1.expression"
}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.michelson_v1.expression"
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.michelson_v1.expression"
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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": "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": "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": "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
},
"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"
},
"preserved_cycles": {
"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
},
"blocks_per_stake_snapshot": {
"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/017-PtNairob.mutez"
},
"vdf_difficulty": {
"$ref": "#/components/schemas/int64"
},
"seed_nonce_revelation_tip": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"origination_size": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"baking_reward_fixed_portion": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"baking_reward_bonus_per_slot": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"endorsing_reward_per_slot": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"cost_per_byte": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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"
]
},
"max_slashing_period": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"frozen_deposits_percentage": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"double_baking_punishment": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"ratio_of_frozen_deposits_slashed_per_double_endorsement": {
"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
},
"tx_rollup_enable": {
"type": "boolean"
},
"tx_rollup_origination_size": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_hard_size_limit_per_inbox": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_hard_size_limit_per_message": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_max_withdrawals_per_batch": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_commitment_bond": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"tx_rollup_finality_period": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_withdraw_period": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_max_inboxes_count": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_max_messages_per_inbox": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_max_commitments_count": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_cost_per_byte_ema_factor": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_max_ticket_payload_size": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_rejection_max_proof_size": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_sunset_level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"dal_parametric": {
"type": "object",
"properties": {
"feature_enable": {
"type": "boolean"
},
"number_of_slots": {
"type": "integer",
"minimum": -32768,
"maximum": 32767
},
"attestation_lag": {
"type": "integer",
"minimum": -32768,
"maximum": 32767
},
"attestation_threshold": {
"type": "integer",
"minimum": -32768,
"maximum": 32767
},
"blocks_per_epoch": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"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",
"number_of_slots",
"attestation_lag",
"attestation_threshold",
"blocks_per_epoch",
"redundancy_factor",
"page_size",
"slot_size",
"number_of_shards"
]
},
"smart_rollup_enable": {
"type": "boolean"
},
"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/017-PtNairob.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
},
"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
}
},
"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",
"smart_rollup_max_wrapped_proof_binary_size",
"smart_rollup_message_size_limit",
"smart_rollup_max_number_of_messages_per_level",
"preserved_cycles",
"blocks_per_cycle",
"blocks_per_commitment",
"nonce_revelation_threshold",
"blocks_per_stake_snapshot",
"cycles_per_voting_period",
"hard_gas_limit_per_operation",
"hard_gas_limit_per_block",
"proof_of_work_threshold",
"minimal_stake",
"vdf_difficulty",
"seed_nonce_revelation_tip",
"origination_size",
"baking_reward_fixed_portion",
"baking_reward_bonus_per_slot",
"endorsing_reward_per_slot",
"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",
"max_slashing_period",
"frozen_deposits_percentage",
"double_baking_punishment",
"ratio_of_frozen_deposits_slashed_per_double_endorsement",
"cache_script_size",
"cache_stake_distribution_cycles",
"cache_sampler_state_cycles",
"tx_rollup_enable",
"tx_rollup_origination_size",
"tx_rollup_hard_size_limit_per_inbox",
"tx_rollup_hard_size_limit_per_message",
"tx_rollup_max_withdrawals_per_batch",
"tx_rollup_commitment_bond",
"tx_rollup_finality_period",
"tx_rollup_withdraw_period",
"tx_rollup_max_inboxes_count",
"tx_rollup_max_messages_per_inbox",
"tx_rollup_max_commitments_count",
"tx_rollup_cost_per_byte_ema_factor",
"tx_rollup_max_ticket_payload_size",
"tx_rollup_rejection_max_proof_size",
"tx_rollup_sunset_level",
"dal_parametric",
"smart_rollup_enable",
"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",
"zk_rollup_enable",
"zk_rollup_origination_size",
"zk_rollup_min_pending_to_process"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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": {
"preserved_cycles": {
"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
},
"blocks_per_stake_snapshot": {
"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/017-PtNairob.mutez"
},
"vdf_difficulty": {
"$ref": "#/components/schemas/int64"
},
"seed_nonce_revelation_tip": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"origination_size": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"baking_reward_fixed_portion": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"baking_reward_bonus_per_slot": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"endorsing_reward_per_slot": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"cost_per_byte": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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"
]
},
"max_slashing_period": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"frozen_deposits_percentage": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"double_baking_punishment": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"ratio_of_frozen_deposits_slashed_per_double_endorsement": {
"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
},
"tx_rollup_enable": {
"type": "boolean"
},
"tx_rollup_origination_size": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_hard_size_limit_per_inbox": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_hard_size_limit_per_message": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_max_withdrawals_per_batch": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_commitment_bond": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"tx_rollup_finality_period": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_withdraw_period": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_max_inboxes_count": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_max_messages_per_inbox": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_max_commitments_count": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_cost_per_byte_ema_factor": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_max_ticket_payload_size": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_rejection_max_proof_size": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"tx_rollup_sunset_level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"dal_parametric": {
"type": "object",
"properties": {
"feature_enable": {
"type": "boolean"
},
"number_of_slots": {
"type": "integer",
"minimum": -32768,
"maximum": 32767
},
"attestation_lag": {
"type": "integer",
"minimum": -32768,
"maximum": 32767
},
"attestation_threshold": {
"type": "integer",
"minimum": -32768,
"maximum": 32767
},
"blocks_per_epoch": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"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",
"number_of_slots",
"attestation_lag",
"attestation_threshold",
"blocks_per_epoch",
"redundancy_factor",
"page_size",
"slot_size",
"number_of_shards"
]
},
"smart_rollup_enable": {
"type": "boolean"
},
"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/017-PtNairob.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
},
"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
}
},
"required": [
"preserved_cycles",
"blocks_per_cycle",
"blocks_per_commitment",
"nonce_revelation_threshold",
"blocks_per_stake_snapshot",
"cycles_per_voting_period",
"hard_gas_limit_per_operation",
"hard_gas_limit_per_block",
"proof_of_work_threshold",
"minimal_stake",
"vdf_difficulty",
"seed_nonce_revelation_tip",
"origination_size",
"baking_reward_fixed_portion",
"baking_reward_bonus_per_slot",
"endorsing_reward_per_slot",
"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",
"max_slashing_period",
"frozen_deposits_percentage",
"double_baking_punishment",
"ratio_of_frozen_deposits_slashed_per_double_endorsement",
"cache_script_size",
"cache_stake_distribution_cycles",
"cache_sampler_state_cycles",
"tx_rollup_enable",
"tx_rollup_origination_size",
"tx_rollup_hard_size_limit_per_inbox",
"tx_rollup_hard_size_limit_per_message",
"tx_rollup_max_withdrawals_per_batch",
"tx_rollup_commitment_bond",
"tx_rollup_finality_period",
"tx_rollup_withdraw_period",
"tx_rollup_max_inboxes_count",
"tx_rollup_max_messages_per_inbox",
"tx_rollup_max_commitments_count",
"tx_rollup_cost_per_byte_ema_factor",
"tx_rollup_max_ticket_payload_size",
"tx_rollup_rejection_max_proof_size",
"tx_rollup_sunset_level",
"dal_parametric",
"smart_rollup_enable",
"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",
"zk_rollup_enable",
"zk_rollup_origination_size",
"zk_rollup_min_pending_to_process"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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/017-PtNairob.contract_id"
}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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/017-PtNairob.mutez"
},
"delegate": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"script": {
"$ref": "#/components/schemas/017-PtNairob.scripted.contracts"
},
"counter": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"balance"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"amount": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"ticketer",
"content_type",
"content",
"amount"
]
}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/contracts/{contract_id}/balance": {
"get": {
"description": "Access the spendable balance of a contract, excluding frozen bonds.",
"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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/contracts/{contract_id}/balance_and_frozen_bonds": {
"get": {
"description": "Access the sum of the spendable balance and frozen bonds of a contract. This sum is part of the contract's stake, and it is exactly the contract's stake if the contract is not 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": {
"$ref": "#/components/schemas/positive_bignum"
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.michelson_v1.expression"
},
"type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"key",
"type"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"nullable": true,
"oneOf": [
{
"title": "Some",
"oneOf": [
{
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
]
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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": "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/017-PtNairob.michelson.v1.primitives"
}
}
},
"required": [
"path"
]
}
},
"entrypoints": {
"type": "object",
"properties": {},
"additionalProperties": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
}
},
"required": [
"entrypoints"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.michelson_v1.expression"
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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": "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": "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/017-PtNairob.scripted.contracts"
}
]
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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.017-PtNairob.michelson_v1.expression"
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.michelson_v1.expression"
}
]
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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": "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/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/dal/confirmed_slot_headers_history": {
"get": {
"description": "Returns the value of the DAL confirmed slots history skip list if DAL is enabled, or [None] otherwise.",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"nullable": true,
"oneOf": [
{
"title": "Some",
"type": "object",
"properties": {
"index": {
"$ref": "#/components/schemas/positive_bignum"
},
"content": {
"type": "object",
"properties": {
"level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"commitment": {
"$ref": "#/components/schemas/DAL_commitment"
}
},
"required": [
"level",
"index",
"commitment"
]
},
"back_pointers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/dal_skip_list_pointer"
}
}
},
"required": [
"index",
"content",
"back_pointers"
]
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/dal/shards": {
"get": {
"description": "Get the shard assignements for a given level (the default is the current 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": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
{
"type": "array",
"items": {
"oneOf": [
{
"type": "integer",
"minimum": -32768,
"maximum": 32767
},
{
"type": "integer",
"minimum": -32768,
"maximum": 32767
}
]
}
}
]
}
}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/delegates/{pkh}": {
"get": {
"description": "Everything about 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": {
"type": "object",
"properties": {
"full_balance": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"current_frozen_deposits": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"frozen_deposits": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"staking_balance": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"frozen_deposits_limit": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"delegated_contracts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
}
},
"delegated_balance": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"deactivated": {
"type": "boolean"
},
"grace_period": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"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
},
"active_consensus_key": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"pending_consensus_keys": {
"type": "array",
"items": {
"type": "object",
"properties": {
"cycle": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"pkh": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
}
},
"required": [
"cycle",
"pkh"
]
}
}
},
"required": [
"full_balance",
"current_frozen_deposits",
"frozen_deposits",
"staking_balance",
"delegated_contracts",
"delegated_balance",
"deactivated",
"grace_period",
"active_consensus_key"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"pendings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"cycle": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"pkh": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
}
},
"required": [
"cycle",
"pkh"
]
}
}
},
"required": [
"active"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/delegates/{pkh}/current_frozen_deposits": {
"get": {
"description": "Returns the current amount of the frozen deposits (in mutez).",
"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": "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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/delegates/{pkh}/delegated_balance": {
"get": {
"description": "Returns the sum (in mutez) of all balances of all the contracts that delegate to a given delegate. This excludes the delegate's own balance, its frozen deposits and its frozen bonds.",
"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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/delegates/{pkh}/delegated_contracts": {
"get": {
"description": "Returns the list of contracts that delegate to 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": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/delegates/{pkh}/frozen_deposits": {
"get": {
"description": "Returns the initial amount (that is, at the beginning of a cycle) of the frozen deposits (in mutez). This amount is the same as the current amount of the frozen deposits, unless the delegate has been punished.",
"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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/delegates/{pkh}/frozen_deposits_limit": {
"get": {
"description": "Returns the frozen deposits limit for the given delegate or none if no limit is set.",
"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/017-PtNairob.mutez"
}
]
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/delegates/{pkh}/full_balance": {
"get": {
"description": "Returns the full balance (in mutez) of a given delegate, including the frozen deposits and the frozen bonds. It does not include its delegated 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": "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": "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 endorsing slots in the cycle required to get endorsing rewards. It is computed based on 'expected_cycle_activity. The fields 'missed_slots' and 'missed_levels' indicate the number of missed endorsing slots and missed levels (for endorsing) in the cycle so far. 'missed_slots' indicates the number of missed endorsing slots in the cycle so far. The field 'remaining_allowed_missed_slots' indicates the remaining amount of endorsing slots that can be missed in the cycle before forfeiting the rewards. Finally, 'expected_endorsing_rewards' indicates the endorsing 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_endorsing_rewards": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
}
},
"required": [
"expected_cycle_activity",
"minimal_cycle_activity",
"missed_slots",
"missed_levels",
"remaining_allowed_missed_slots",
"expected_endorsing_rewards"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/delegates/{pkh}/staking_balance": {
"get": {
"description": "Returns the total amount of tokens (in mutez) delegated to a given delegate. This includes the balances of all the contracts that delegate to it, but also the balance of the delegate itself, its frozen deposits, and its frozen bonds.",
"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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/selected_snapshot": {
"get": {
"description": "Returns the index of the selected snapshot for the current cycle or for the specific `cycle` passed as argument, if any.",
"parameters": [
{
"name": "cycle",
"in": "query",
"description": "A cycle integer",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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_hash"
}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": -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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/all/origination_proof": {
"post": {
"description": "Proof for a smart rollup origination",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"wasm_2_0_0",
"arith"
]
},
"kernel": {
"type": "string",
"pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$"
}
},
"required": [
"kind",
"kernel"
]
}
}
}
},
"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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/commitment/{Smart_rollup_commitment_hash}": {
"get": {
"description": "Commitment for a smart rollup from its hash",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (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": -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"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/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_hash",
"in": "path",
"description": "Smart_rollup_hash (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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/commitment/{Smart_rollup_commitment_hash}/stakers_indexes": {
"get": {
"description": "List of stakers indexes staking on a given commitment",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/genesis_info": {
"get": {
"description": "Genesis information (level and commitment hash) for a smart rollup",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (Base58Check-encoded)",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"commitment_hash": {
"$ref": "#/components/schemas/Smart_rollup_commitment_hash"
}
},
"required": [
"level",
"commitment_hash"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/inbox_level/{block_level}/commitments": {
"get": {
"description": "List of commitments associated to a rollup for a given inbox level",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/initial_pvm_state_hash": {
"get": {
"description": "Initial PVM state hash of smart rollup",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (Base58Check-encoded)",
"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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/kind": {
"get": {
"description": "Kind of smart rollup",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (Base58Check-encoded)",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string",
"enum": [
"wasm_2_0_0",
"arith"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/last_cemented_commitment_hash_with_level": {
"get": {
"description": "Level and hash of the last cemented commitment for a smart rollup",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (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": -2147483648,
"maximum": 2147483647
}
},
"required": [
"hash",
"level"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/staker/{pkh}/conflicts": {
"get": {
"description": "List of stakers in conflict with the given staker",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (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": -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"
]
},
"our_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"
]
},
"parent_commitment": {
"$ref": "#/components/schemas/Smart_rollup_commitment_hash"
}
},
"required": [
"other",
"their_commitment",
"our_commitment",
"parent_commitment"
]
}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/staker/{pkh}/games": {
"get": {
"description": "Ongoing refutation games for a given staker",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (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": -2147483648,
"maximum": 2147483647
}
},
"required": [
"hash",
"level"
]
},
"back_pointers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Smart_rollup_inbox_hash"
}
}
},
"required": [
"index",
"content",
"back_pointers"
]
},
"dal_snapshot": {
"type": "object",
"properties": {
"index": {
"$ref": "#/components/schemas/positive_bignum"
},
"content": {
"type": "object",
"properties": {
"level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"commitment": {
"$ref": "#/components/schemas/DAL_commitment"
}
},
"required": [
"level",
"index",
"commitment"
]
},
"back_pointers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/dal_skip_list_pointer"
}
}
},
"required": [
"index",
"content",
"back_pointers"
]
},
"start_level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"inbox_level": {
"type": "integer",
"minimum": -2147483648,
"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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/staker/{pkh}/index": {
"get": {
"description": "Staker index associated to a public key hash for a given rollup",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/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_hash",
"in": "path",
"description": "Smart_rollup_hash (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": -2147483648,
"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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/staker1/{pkh}/staker2/{pkh}/timeout": {
"get": {
"description": "Returns the timeout of players.",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (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": {
"alice": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"bob": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"last_turn_level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"alice",
"bob",
"last_turn_level"
]
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/staker1/{pkh}/staker2/{pkh}/timeout_reached": {
"get": {
"description": "Returns whether the timeout creates a result for the game.",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (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",
"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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/smart_rollups/smart_rollup/{Smart_rollup_hash}/stakers": {
"get": {
"description": "List of active stakers' public key hashes of a rollup",
"parameters": [
{
"name": "Smart_rollup_hash",
"in": "path",
"description": "Smart_rollup_hash (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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/tx_rollup/{tx_rollup_id}/commitment/{block_level}": {
"get": {
"description": "Return the commitment for a level, if any",
"parameters": [
{
"name": "tx_rollup_id",
"in": "path",
"description": "A tx rollup identifier encoded in b58check.",
"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": "object",
"properties": {
"commitment": {
"type": "object",
"properties": {
"level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"messages": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"root": {
"$ref": "#/components/schemas/Message_result_list_hash"
},
"last_message_result_hash": {
"$ref": "#/components/schemas/Message_result_hash"
}
},
"required": [
"count",
"root",
"last_message_result_hash"
]
},
"predecessor": {
"nullable": true,
"oneOf": [
{
"title": "Some",
"oneOf": [
{
"$ref": "#/components/schemas/Commitment_hash"
}
]
}
]
},
"inbox_merkle_root": {
"$ref": "#/components/schemas/Inbox_list_hash"
}
},
"required": [
"level",
"messages",
"predecessor",
"inbox_merkle_root"
]
},
"commitment_hash": {
"$ref": "#/components/schemas/Commitment_hash"
},
"committer": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"submitted_at": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"finalized_at": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"commitment",
"commitment_hash",
"committer",
"submitted_at"
]
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/tx_rollup/{tx_rollup_id}/has_bond/{pkh}": {
"get": {
"description": "Returns true if the public key hash already deposited a bond for the given rollup",
"parameters": [
{
"name": "tx_rollup_id",
"in": "path",
"description": "A tx rollup identifier encoded in b58check.",
"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": "boolean"
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/tx_rollup/{tx_rollup_id}/inbox/{block_level}": {
"get": {
"description": "Get the inbox of a transaction rollup",
"parameters": [
{
"name": "tx_rollup_id",
"in": "path",
"description": "A tx rollup identifier encoded in b58check.",
"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": "object",
"properties": {
"inbox_length": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"cumulated_size": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"merkle_root": {
"$ref": "#/components/schemas/Inbox_list_hash"
}
},
"required": [
"inbox_length",
"cumulated_size",
"merkle_root"
]
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/tx_rollup/{tx_rollup_id}/pending_bonded_commitments/{pkh}": {
"get": {
"description": "Get the number of pending bonded commitments for a pkh on a rollup",
"parameters": [
{
"name": "tx_rollup_id",
"in": "path",
"description": "A tx rollup identifier encoded in b58check.",
"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": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/context/tx_rollup/{tx_rollup_id}/state": {
"get": {
"description": "Access the state of a rollup.",
"parameters": [
{
"name": "tx_rollup_id",
"in": "path",
"description": "A tx rollup identifier encoded in b58check.",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"last_removed_commitment_hashes": {
"nullable": true,
"oneOf": [
{
"title": "Some",
"type": "object",
"properties": {
"last_message_hash": {
"$ref": "#/components/schemas/Message_result_hash"
},
"commitment_hash": {
"$ref": "#/components/schemas/Commitment_hash"
}
},
"required": [
"last_message_hash",
"commitment_hash"
]
}
]
},
"finalized_commitments": {
"oneOf": [
{
"title": "empty",
"type": "object",
"properties": {
"next": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"next"
]
},
{
"title": "interval",
"type": "object",
"properties": {
"newest": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"oldest": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"newest",
"oldest"
]
}
]
},
"unfinalized_commitments": {
"oneOf": [
{
"title": "empty",
"type": "object",
"properties": {
"next": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"next"
]
},
{
"title": "interval",
"type": "object",
"properties": {
"newest": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"oldest": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"newest",
"oldest"
]
}
]
},
"uncommitted_inboxes": {
"oneOf": [
{
"title": "empty",
"type": "object",
"properties": {
"next": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"next"
]
},
{
"title": "interval",
"type": "object",
"properties": {
"newest": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"oldest": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"newest",
"oldest"
]
}
]
},
"commitment_newest_hash": {
"nullable": true,
"oneOf": [
{
"title": "Some",
"oneOf": [
{
"$ref": "#/components/schemas/Commitment_hash"
}
]
}
]
},
"tezos_head_level": {
"nullable": true,
"oneOf": [
{
"title": "Some",
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
]
},
"burn_per_byte": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"allocated_storage": {
"$ref": "#/components/schemas/positive_bignum"
},
"occupied_storage": {
"$ref": "#/components/schemas/positive_bignum"
},
"inbox_ema": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"commitments_watermark": {
"nullable": true,
"oneOf": [
{
"title": "Some",
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
]
}
},
"required": [
"last_removed_commitment_hashes",
"finalized_commitments",
"unfinalized_commitments",
"uncommitted_inboxes",
"commitment_newest_hash",
"tezos_head_level",
"burn_per_byte",
"allocated_storage",
"occupied_storage",
"inbox_ema",
"commitments_watermark"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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": "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": "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": "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": "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": "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": -2147483648,
"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": "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": -2147483648,
"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": "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": "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": -2147483648,
"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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/endorsing_rights": {
"get": {
"description": "Deprecated: use `attestation_rights` instead.\nRetrieves the delegates allowed to endorse a block.\nBy default, it gives the endorsing power for delegates that have at least one endorsing 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 endorsing 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 endorsing slots and the endorsing power. Also returns the minimal timestamp that corresponds to endorsing 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": -2147483648,
"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
},
"endorsing_power": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"consensus_key": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
}
},
"required": [
"delegate",
"first_slot",
"endorsing_power",
"consensus_key"
]
}
},
"estimated_time": {
"$ref": "#/components/schemas/timestamp.protocol"
}
},
"required": [
"level",
"delegates"
]
}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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/017-PtNairob.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": "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])*$"
},
"liquidity_baking_toggle_vote": {
"$ref": "#/components/schemas/017-PtNairob.liquidity_baking_toggle_vote"
}
},
"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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/forge/tx_rollup/commitment/merkle_tree_hash": {
"post": {
"description": "Compute the merkle tree hash of a commitment",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message_result_hashes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Message_result_hash"
}
}
},
"required": [
"message_result_hashes"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"hash": {
"$ref": "#/components/schemas/Message_result_list_hash"
}
},
"required": [
"hash"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/forge/tx_rollup/commitment/merkle_tree_path": {
"post": {
"description": "Compute a path of a message result hash in the commitment merkle tree",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message_result_hashes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Message_result_hash"
}
},
"position": {
"type": "integer",
"minimum": -32768,
"maximum": 32767
}
},
"required": [
"message_result_hashes",
"position"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"path": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Message_result_list_hash"
}
}
},
"required": [
"path"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/forge/tx_rollup/commitment/message_result_hash": {
"post": {
"description": "Compute the message result hash",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"context_hash": {
"$ref": "#/components/schemas/Context_hash"
},
"withdraw_list_hash": {
"$ref": "#/components/schemas/Withdraw_list_hash"
}
},
"required": [
"context_hash",
"withdraw_list_hash"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"hash": {
"$ref": "#/components/schemas/Message_result_hash"
}
},
"required": [
"hash"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/forge/tx_rollup/inbox/merkle_tree_hash": {
"post": {
"description": "Compute the merkle tree hash of an inbox",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message_hashes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Tx_rollup_inbox_message_hash"
}
}
},
"required": [
"message_hashes"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"hash": {
"$ref": "#/components/schemas/Inbox_list_hash"
}
},
"required": [
"hash"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/forge/tx_rollup/inbox/merkle_tree_path": {
"post": {
"description": "Compute a path of an inbox message in a merkle tree",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message_hashes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Tx_rollup_inbox_message_hash"
}
},
"position": {
"type": "integer",
"minimum": -32768,
"maximum": 32767
}
},
"required": [
"message_hashes",
"position"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"path": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Inbox_list_hash"
}
}
},
"required": [
"path"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/forge/tx_rollup/inbox/message_hash": {
"post": {
"description": "Compute the hash of a message",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"oneOf": [
{
"title": "Batch",
"type": "object",
"properties": {
"batch": {
"type": "string",
"pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$"
}
},
"required": [
"batch"
]
},
{
"title": "Deposit",
"type": "object",
"properties": {
"deposit": {
"type": "object",
"properties": {
"sender": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"destination": {
"$ref": "#/components/schemas/Bls12_381.Public_key_hash"
},
"ticket_hash": {
"$ref": "#/components/schemas/script_expr"
},
"amount": {
"$ref": "#/components/schemas/int64"
}
},
"required": [
"sender",
"destination",
"ticket_hash",
"amount"
]
}
},
"required": [
"deposit"
]
}
]
}
},
"required": [
"message"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"hash": {
"$ref": "#/components/schemas/Tx_rollup_inbox_message_hash"
}
},
"required": [
"hash"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/forge/tx_rollup/withdraw/withdraw_list_hash": {
"post": {
"description": "Compute the hash of a withdraw list",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"withdraw_list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"claimer": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"ticket_hash": {
"$ref": "#/components/schemas/script_expr"
},
"amount": {
"$ref": "#/components/schemas/int64"
}
},
"required": [
"claimer",
"ticket_hash",
"amount"
]
}
}
},
"required": [
"withdraw_list"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"hash": {
"$ref": "#/components/schemas/Withdraw_list_hash"
}
},
"required": [
"hash"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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": -2147483648,
"maximum": 2147483647
},
"last": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"first",
"last"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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/017-PtNairob.liquidity_baking_toggle_vote"
},
"signature": {
"$ref": "#/components/schemas/Signature.V1"
}
},
"required": [
"payload_hash",
"payload_round",
"proof_of_work_nonce",
"liquidity_baking_toggle_vote",
"signature"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/parse/operations": {
"post": {
"description": "Parse operations",
"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/017-PtNairob.operation.alpha.contents"
}
},
"signature": {
"$ref": "#/components/schemas/Signature.V1"
}
},
"required": [
"branch",
"contents"
]
}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": [
"PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf"
]
},
"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/017-PtNairob.liquidity_baking_toggle_vote"
},
"signature": {
"$ref": "#/components/schemas/Signature.V1"
}
},
"required": [
"protocol",
"payload_hash",
"payload_round",
"proof_of_work_nonce",
"liquidity_baking_toggle_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": "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.",
"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/017-PtNairob.operation.alpha.operation_with_metadata"
}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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.017-PtNairob.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.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"entrypoint_type"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.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/017-PtNairob.michelson.v1.primitives"
}
}
},
"required": [
"path"
]
}
},
"entrypoints": {
"type": "object",
"properties": {},
"additionalProperties": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
}
},
"required": [
"entrypoints"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.michelson_v1.expression"
},
"type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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"
}
},
"required": [
"data",
"type",
"unparsing_mode"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"normalized": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"normalized"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.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.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"normalized"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.michelson_v1.expression"
},
"val": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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"
}
},
"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.017-PtNairob.michelson_v1.expression"
},
"val": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"type",
"val"
]
}
}
},
"required": [
"output"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"type"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"normalized": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"normalized"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.michelson_v1.expression"
},
"type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/scripts/run_code": {
"post": {
"description": "Run a piece of code in the current context",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"script": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"storage": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"input": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"amount": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"balance": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"chain_id": {
"$ref": "#/components/schemas/Chain_id"
},
"source": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"payer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id.implicit"
},
"self": {
"$ref": "#/components/schemas/017-PtNairob.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"
}
},
"required": [
"script",
"storage",
"input",
"amount",
"chain_id"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"storage": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"operations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result"
}
},
"lazy_storage_diff": {
"$ref": "#/components/schemas/017-PtNairob.lazy_storage_diff"
}
},
"required": [
"storage",
"operations"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.",
"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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation.alpha.contents"
}
},
"signature": {
"$ref": "#/components/schemas/Signature.V1"
}
},
"required": [
"contents"
]
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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/017-PtNairob.contract_id.originated"
},
"view": {
"$ref": "#/components/schemas/unistring"
},
"input": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"unlimited_gas": {
"type": "boolean"
},
"chain_id": {
"$ref": "#/components/schemas/Chain_id"
},
"source": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"payer": {
"$ref": "#/components/schemas/017-PtNairob.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"
}
},
"required": [
"contract",
"view",
"input",
"chain_id",
"unparsing_mode"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"data"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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/017-PtNairob.contract_id.originated"
},
"entrypoint": {
"$ref": "#/components/schemas/unistring"
},
"input": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"chain_id": {
"$ref": "#/components/schemas/Chain_id"
},
"source": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"payer": {
"$ref": "#/components/schemas/017-PtNairob.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"
}
},
"required": [
"contract",
"entrypoint",
"input",
"chain_id",
"unparsing_mode"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"data"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.michelson_v1.expression"
},
"storage": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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": "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": "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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation.alpha.contents"
}
},
"signature": {
"$ref": "#/components/schemas/Signature.V1"
}
},
"required": [
"contents"
]
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/scripts/trace_code": {
"post": {
"description": "Run a piece of code in the current context, keeping a trace",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"script": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"storage": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"input": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"amount": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"balance": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"chain_id": {
"$ref": "#/components/schemas/Chain_id"
},
"source": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"payer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id.implicit"
},
"self": {
"$ref": "#/components/schemas/017-PtNairob.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"
}
},
"required": [
"script",
"storage",
"input",
"amount",
"chain_id"
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"storage": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"operations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result"
}
},
"trace": {
"$ref": "#/components/schemas/017-PtNairob.scripted.trace"
},
"lazy_storage_diff": {
"$ref": "#/components/schemas/017-PtNairob.lazy_storage_diff"
}
},
"required": [
"storage",
"operations",
"trace"
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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.017-PtNairob.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.017-PtNairob.michelson_v1.expression"
}
},
"stack_after": {
"type": "array",
"items": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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": "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.017-PtNairob.michelson_v1.expression"
},
"type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/helpers/validators": {
"get": {
"description": "Retrieves the level, the endorsement slots and the public key hash of each delegate allowed to endorse 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 endorsement 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": -2147483648,
"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": "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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
},
"/metadata": {
"get": {
"description": "All the metadata associated to the block.",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"protocol": {
"type": "string",
"enum": [
"ProtoGenesisGenesisGenesisGenesisGenesisGenesk612im"
]
},
"next_protocol": {
"type": "string",
"enum": [
"PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf"
]
},
"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": {}
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": {
"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": {}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"description": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "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": "The full list of errors is available with the global RPC `GET errors`"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"017-PtNairob.apply_internal_results.alpha.operation_result": {
"oneOf": [
{
"title": "transaction",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"transaction"
]
},
"source": {
"$ref": "#/components/schemas/017-PtNairob.transaction_destination"
},
"nonce": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"amount": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"destination": {
"$ref": "#/components/schemas/017-PtNairob.transaction_destination"
},
"parameters": {
"type": "object",
"properties": {
"entrypoint": {
"$ref": "#/components/schemas/017-PtNairob.entrypoint"
},
"value": {}
},
"required": [
"entrypoint",
"value"
]
},
"result": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.transaction_destination"
},
"nonce": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"balance": {
"$ref": "#/components/schemas/017-PtNairob.mutez"
},
"delegate": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"script": {
"$ref": "#/components/schemas/017-PtNairob.scripted.contracts"
},
"result": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.transaction_destination"
},
"nonce": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"delegate": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"result": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.transaction_destination"
},
"nonce": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"tag": {
"$ref": "#/components/schemas/017-PtNairob.entrypoint"
},
"payload": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.internal_operation_result.event"
}
},
"required": [
"kind",
"source",
"nonce",
"type",
"result"
]
}
]
},
"017-PtNairob.big_map_id": {
"title": "Big map identifier",
"description": "A big map identifier",
"oneOf": [
{
"$ref": "#/components/schemas/bignum"
}
]
},
"017-PtNairob.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/017-PtNairob.liquidity_baking_toggle_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",
"signature"
]
},
"017-PtNairob.bond_id": {
"oneOf": [
{
"title": "Tx_rollup_bond_id",
"type": "object",
"properties": {
"tx_rollup": {
"$ref": "#/components/schemas/017-PtNairob.tx_rollup_id"
}
},
"required": [
"tx_rollup"
]
},
{
"title": "Smart_rollup_bond_id",
"type": "object",
"properties": {
"smart_rollup": {
"$ref": "#/components/schemas/017-PtNairob.smart_rollup_address"
}
},
"required": [
"smart_rollup"
]
}
]
},
"017-PtNairob.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"
}
]
},
"017-PtNairob.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"
}
]
},
"017-PtNairob.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"
}
]
},
"017-PtNairob.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": "named",
"oneOf": [
{
"$ref": "#/components/schemas/unistring"
}
]
}
]
},
"017-PtNairob.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`."
},
"017-PtNairob.inlined.endorsement": {
"description": "An operation's shell header.",
"type": "object",
"properties": {
"branch": {
"$ref": "#/components/schemas/block_hash"
},
"operations": {
"$ref": "#/components/schemas/017-PtNairob.inlined.endorsement_mempool.contents"
},
"signature": {
"$ref": "#/components/schemas/Signature.V1"
}
},
"required": [
"branch",
"operations"
]
},
"017-PtNairob.inlined.endorsement_mempool.contents": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"endorsement"
]
},
"slot": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"level": {
"type": "integer",
"minimum": -2147483648,
"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"
]
},
"017-PtNairob.inlined.preendorsement": {
"description": "An operation's shell header.",
"type": "object",
"properties": {
"branch": {
"$ref": "#/components/schemas/block_hash"
},
"operations": {
"$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement.contents"
},
"signature": {
"$ref": "#/components/schemas/Signature.V1"
}
},
"required": [
"branch",
"operations"
]
},
"017-PtNairob.inlined.preendorsement.contents": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"preendorsement"
]
},
"slot": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"level": {
"type": "integer",
"minimum": -2147483648,
"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"
]
},
"017-PtNairob.lazy_storage_diff": {
"type": "array",
"items": {
"oneOf": [
{
"title": "big_map",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"big_map"
]
},
"id": {
"$ref": "#/components/schemas/017-PtNairob.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.017-PtNairob.michelson_v1.expression"
},
"value": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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/017-PtNairob.big_map_id"
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key_hash": {
"$ref": "#/components/schemas/script_expr"
},
"key": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"value": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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.017-PtNairob.michelson_v1.expression"
},
"value": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"key_hash",
"key"
]
}
},
"key_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"value_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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/017-PtNairob.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/017-PtNairob.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"
]
}
]
}
},
"017-PtNairob.liquidity_baking_toggle_vote": {
"type": "string",
"enum": [
"off",
"on",
"pass"
]
},
"017-PtNairob.michelson.v1.primitives": {
"type": "string",
"enum": [
"SHA512",
"HASH_KEY",
"SIZE",
"SAPLING_VERIFY_UPDATE",
"False",
"SAPLING_EMPTY_STATE",
"RENAME",
"sapling_transaction",
"UNPACK",
"NAT",
"unit",
"bls12_381_fr",
"Pair",
"IF_NONE",
"int",
"timestamp",
"storage",
"UNPAIR",
"view",
"BLAKE2B",
"AMOUNT",
"DUP",
"nat",
"NEG",
"bool",
"SELF_ADDRESS",
"ISNAT",
"DIG",
"CHAIN_ID",
"set",
"LSR",
"key",
"address",
"ABS",
"CREATE_CONTRACT",
"SHA256",
"JOIN_TICKETS",
"LEVEL",
"bls12_381_g1",
"operation",
"tx_rollup_l2_address",
"string",
"CHECK_SIGNATURE",
"STEPS_TO_QUOTA",
"SELF",
"DIP",
"lambda",
"AND",
"COMPARE",
"chain_id",
"MAP",
"APPLY",
"Elt",
"BYTES",
"NOT",
"IMPLICIT_ACCOUNT",
"LT",
"UNIT",
"EMIT",
"SET_DELEGATE",
"Some",
"parameter",
"signature",
"ticket",
"EMPTY_BIG_MAP",
"None",
"SUB",
"key_hash",
"ADD",
"map",
"VOTING_POWER",
"big_map",
"CDR",
"GT",
"IF_CONS",
"CONS",
"LSL",
"DUG",
"PACK",
"SHA3",
"SOURCE",
"or",
"SUB_MUTEZ",
"LAMBDA",
"RIGHT",
"CREATE_ACCOUNT",
"Unit",
"CAST",
"NEQ",
"ITER",
"FAILWITH",
"PUSH",
"OPEN_CHEST",
"SOME",
"list",
"BALANCE",
"NIL",
"pair",
"CAR",
"UPDATE",
"TOTAL_VOTING_POWER",
"PAIR",
"constant",
"LAMBDA_REC",
"ADDRESS",
"True",
"Right",
"Lambda_rec",
"IF",
"NEVER",
"sapling_transaction_deprecated",
"SWAP",
"EMPTY_MAP",
"MUL",
"INT",
"option",
"KECCAK",
"LEFT",
"Left",
"chest",
"SPLIT_TICKET",
"chest_key",
"bls12_381_g2",
"EDIV",
"LOOP",
"bytes",
"TICKET",
"LE",
"PAIRING_CHECK",
"MIN_BLOCK_TIME",
"OR",
"contract",
"GET_AND_UPDATE",
"mutez",
"sapling_state",
"NONE",
"IF_LEFT",
"GET",
"NOW",
"TRANSFER_TOKENS",
"LOOP_LEFT",
"CONTRACT",
"TICKET_DEPRECATED",
"VIEW",
"EMPTY_SET",
"XOR",
"never",
"READ_TICKET",
"EQ",
"GE",
"MEM",
"SENDER",
"DROP",
"CONCAT",
"EXEC",
"SLICE",
"code"
]
},
"017-PtNairob.mutez": {
"$ref": "#/components/schemas/positive_bignum"
},
"017-PtNairob.operation.alpha.contents": {
"oneOf": [
{
"title": "Endorsement",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"endorsement"
]
},
"slot": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"level": {
"type": "integer",
"minimum": -2147483648,
"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": "Preendorsement",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"preendorsement"
]
},
"slot": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"level": {
"type": "integer",
"minimum": -2147483648,
"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": "Dal_attestation",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"dal_attestation"
]
},
"attestor": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"attestation": {
"$ref": "#/components/schemas/bignum"
},
"level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"kind",
"attestor",
"attestation",
"level"
]
},
{
"title": "Seed_nonce_revelation",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"seed_nonce_revelation"
]
},
"level": {
"type": "integer",
"minimum": -2147483648,
"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_endorsement_evidence",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"double_endorsement_evidence"
]
},
"op1": {
"$ref": "#/components/schemas/017-PtNairob.inlined.endorsement"
},
"op2": {
"$ref": "#/components/schemas/017-PtNairob.inlined.endorsement"
}
},
"required": [
"kind",
"op1",
"op2"
]
},
{
"title": "Double_preendorsement_evidence",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"double_preendorsement_evidence"
]
},
"op1": {
"$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement"
},
"op2": {
"$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement"
}
},
"required": [
"kind",
"op1",
"op2"
]
},
{
"title": "Double_baking_evidence",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"double_baking_evidence"
]
},
"bh1": {
"$ref": "#/components/schemas/017-PtNairob.block_header.alpha.full_header"
},
"bh2": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez"
},
"destination": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"parameters": {
"type": "object",
"properties": {
"entrypoint": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez"
},
"delegate": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"script": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.contract_id"
},
"ticket_amount": {
"$ref": "#/components/schemas/positive_bignum"
},
"destination": {
"$ref": "#/components/schemas/017-PtNairob.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_slot_header",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"dal_publish_slot_header"
]
},
"source": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"fee": {
"$ref": "#/components/schemas/017-PtNairob.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": {
"published_level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"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": [
"published_level",
"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/017-PtNairob.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"
]
},
"kernel": {
"type": "string",
"pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$"
},
"origination_proof": {
"type": "string",
"pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$"
},
"parameters_ty": {}
},
"required": [
"kind",
"source",
"fee",
"counter",
"gas_limit",
"storage_limit",
"pvm_kind",
"kernel",
"origination_proof",
"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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.smart_rollup_address"
},
"commitment": {
"description": "DEPRECATED: This field is not used anymore by the protocol and will be removed in a future proposal.",
"oneOf": [
{
"$ref": "#/components/schemas/Smart_rollup_commitment_hash"
}
]
}
},
"required": [
"kind",
"source",
"fee",
"counter",
"gas_limit",
"storage_limit",
"rollup",
"commitment"
]
},
{
"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/017-PtNairob.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/017-PtNairob.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",
"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/017-PtNairob.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/017-PtNairob.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": -2147483648,
"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": -2147483648,
"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"
]
}
]
}
},
"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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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_hash"
},
"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/017-PtNairob.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/017-PtNairob.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.017-PtNairob.michelson_v1.expression"
},
"ty": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"ticketer": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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"
]
}
]
},
"017-PtNairob.operation.alpha.internal_operation_result.delegation": {
"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/017-PtNairob.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/017-PtNairob.error"
}
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status"
]
}
]
},
"017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status"
]
}
]
},
"017-PtNairob.operation.alpha.internal_operation_result.origination": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"originated_contracts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff"
}
},
"required": [
"status"
]
},
{
"title": "Failed",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"failed"
]
},
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"originated_contracts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff"
}
},
"required": [
"status"
]
}
]
},
"017-PtNairob.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.017-PtNairob.michelson_v1.expression"
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"ticket_receipt": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ticket_token": {
"type": "object",
"properties": {
"ticketer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.transaction_destination"
},
"amount": {
"$ref": "#/components/schemas/bignum"
}
},
"required": [
"account",
"amount"
]
}
}
},
"required": [
"ticket_token",
"updates"
]
}
},
"originated_contracts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff"
}
},
"required": [
"status"
]
},
{
"title": "To_tx_rollup",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
},
"ticket_hash": {
"$ref": "#/components/schemas/script_expr"
},
"paid_storage_size_diff": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status",
"ticket_hash",
"paid_storage_size_diff"
]
},
{
"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/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"storage": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"ticket_receipt": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ticket_token": {
"type": "object",
"properties": {
"ticketer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.transaction_destination"
},
"amount": {
"$ref": "#/components/schemas/bignum"
}
},
"required": [
"account",
"amount"
]
}
}
},
"required": [
"ticket_token",
"updates"
]
}
},
"originated_contracts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff"
}
},
"required": [
"status"
]
},
{
"title": "To_tx_rollup",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"backtracked"
]
},
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
},
"ticket_hash": {
"$ref": "#/components/schemas/script_expr"
},
"paid_storage_size_diff": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status",
"ticket_hash",
"paid_storage_size_diff"
]
},
{
"title": "To_smart_rollup",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"backtracked"
]
},
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.transaction_destination"
},
"amount": {
"$ref": "#/components/schemas/bignum"
}
},
"required": [
"account",
"amount"
]
}
}
},
"required": [
"ticket_token",
"updates"
]
}
}
},
"required": [
"status",
"ticket_receipt"
]
}
]
}
]
},
"017-PtNairob.operation.alpha.operation_contents_and_result": {
"oneOf": [
{
"title": "Seed_nonce_revelation",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"seed_nonce_revelation"
]
},
"level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"nonce": {
"type": "string",
"pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$"
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
}
}
}
},
"required": [
"kind",
"solution",
"metadata"
]
},
{
"title": "Endorsement",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"endorsement"
]
},
"slot": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"level": {
"type": "integer",
"minimum": -2147483648,
"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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"delegate": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"endorsement_power": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"consensus_key": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
}
},
"required": [
"delegate",
"endorsement_power",
"consensus_key"
]
}
},
"required": [
"kind",
"slot",
"level",
"round",
"block_payload_hash",
"metadata"
]
},
{
"title": "Preendorsement",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"preendorsement"
]
},
"slot": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"level": {
"type": "integer",
"minimum": -2147483648,
"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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"delegate": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"preendorsement_power": {
"type": "integer",
"minimum": -1073741824,
"maximum": 1073741823
},
"consensus_key": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
}
},
"required": [
"delegate",
"preendorsement_power",
"consensus_key"
]
}
},
"required": [
"kind",
"slot",
"level",
"round",
"block_payload_hash",
"metadata"
]
},
{
"title": "Dal_attestation",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"dal_attestation"
]
},
"attestor": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"attestation": {
"$ref": "#/components/schemas/bignum"
},
"level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"metadata": {
"type": "object",
"properties": {
"delegate": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
}
},
"required": [
"delegate"
]
}
},
"required": [
"kind",
"attestor",
"attestation",
"level",
"metadata"
]
},
{
"title": "Double_preendorsement_evidence",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"double_preendorsement_evidence"
]
},
"op1": {
"$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement"
},
"op2": {
"$ref": "#/components/schemas/017-PtNairob.inlined.preendorsement"
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
}
}
}
},
"required": [
"kind",
"op1",
"op2",
"metadata"
]
},
{
"title": "Double_endorsement_evidence",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"double_endorsement_evidence"
]
},
"op1": {
"$ref": "#/components/schemas/017-PtNairob.inlined.endorsement"
},
"op2": {
"$ref": "#/components/schemas/017-PtNairob.inlined.endorsement"
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
}
}
}
},
"required": [
"kind",
"op1",
"op2",
"metadata"
]
},
{
"title": "Double_baking_evidence",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"double_baking_evidence"
]
},
"bh1": {
"$ref": "#/components/schemas/017-PtNairob.block_header.alpha.full_header"
},
"bh2": {
"$ref": "#/components/schemas/017-PtNairob.block_header.alpha.full_header"
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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": "Reveal",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"reveal"
]
},
"source": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"fee": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.reveal"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez"
},
"destination": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"parameters": {
"type": "object",
"properties": {
"entrypoint": {
"$ref": "#/components/schemas/017-PtNairob.entrypoint"
},
"value": {}
},
"required": [
"entrypoint",
"value"
]
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.transaction"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez"
},
"delegate": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"script": {
"$ref": "#/components/schemas/017-PtNairob.scripted.contracts"
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.origination"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.delegation"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.register_global_constant"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.mutez"
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.set_deposits_limit"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.contract_id.originated"
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.increase_paid_storage"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.update_consensus_key"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result"
}
}
},
"required": [
"operation_result"
]
}
},
"required": [
"kind",
"source",
"fee",
"counter",
"gas_limit",
"storage_limit",
"pk",
"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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"allocated_destination_contract": {
"type": "boolean"
}
}
}
},
"required": [
"kind",
"consensus_key",
"delegate",
"destination",
"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/017-PtNairob.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/017-PtNairob.contract_id"
},
"ticket_amount": {
"$ref": "#/components/schemas/positive_bignum"
},
"destination": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"entrypoint": {
"$ref": "#/components/schemas/unistring"
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.transfer_ticket"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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_slot_header",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"dal_publish_slot_header"
]
},
"source": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"fee": {
"$ref": "#/components/schemas/017-PtNairob.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": {
"published_level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"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": [
"published_level",
"slot_index",
"commitment",
"commitment_proof"
]
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.dal_publish_slot_header"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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"
]
},
"kernel": {
"type": "string",
"pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$"
},
"origination_proof": {
"type": "string",
"pattern": "^([a-zA-Z0-9][a-zA-Z0-9])*$"
},
"parameters_ty": {},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_originate"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result"
}
}
},
"required": [
"operation_result"
]
}
},
"required": [
"kind",
"source",
"fee",
"counter",
"gas_limit",
"storage_limit",
"pvm_kind",
"kernel",
"origination_proof",
"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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_add_messages"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.smart_rollup_address"
},
"commitment": {
"description": "DEPRECATED: This field is not used anymore by the protocol and will be removed in a future proposal.",
"oneOf": [
{
"$ref": "#/components/schemas/Smart_rollup_commitment_hash"
}
]
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_cement"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result"
}
}
},
"required": [
"operation_result"
]
}
},
"required": [
"kind",
"source",
"fee",
"counter",
"gas_limit",
"storage_limit",
"rollup",
"commitment",
"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/017-PtNairob.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/017-PtNairob.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"
]
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_publish"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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": -2147483648,
"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": -2147483648,
"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"
]
}
]
}
},
"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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_refute"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_timeout"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_execute_outbox_message"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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_hash"
},
"staker": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.smart_rollup_recover_bond"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.zk_rollup_origination"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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.017-PtNairob.michelson_v1.expression"
},
"ty": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"ticketer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
}
},
"required": [
"contents",
"ty",
"ticketer"
]
}
]
}
]
}
}
},
"metadata": {
"type": "object",
"properties": {
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.zk_rollup_publish"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"operation_result": {
"$ref": "#/components/schemas/017-PtNairob.operation.alpha.operation_result.zk_rollup_update"
},
"internal_operation_results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.apply_internal_results.alpha.operation_result"
}
}
},
"required": [
"operation_result"
]
}
},
"required": [
"kind",
"source",
"fee",
"counter",
"gas_limit",
"storage_limit",
"zk_rollup",
"update",
"metadata"
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.dal_publish_slot_header": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"slot_header": {
"type": "object",
"properties": {
"level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"commitment": {
"$ref": "#/components/schemas/DAL_commitment"
}
},
"required": [
"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/017-PtNairob.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/017-PtNairob.error"
}
},
"slot_header": {
"type": "object",
"properties": {
"level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"commitment": {
"$ref": "#/components/schemas/DAL_commitment"
}
},
"required": [
"level",
"index",
"commitment"
]
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status",
"slot_header"
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.delegation": {
"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/017-PtNairob.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/017-PtNairob.error"
}
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status"
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.increase_paid_storage": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status"
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.origination": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"originated_contracts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff"
}
},
"required": [
"status"
]
},
{
"title": "Failed",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"failed"
]
},
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"originated_contracts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff"
}
},
"required": [
"status"
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.register_global_constant": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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"
]
}
]
},
"017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status"
]
}
]
},
"017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status"
]
}
]
},
"017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status"
]
}
]
},
"017-PtNairob.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": -2147483648,
"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/017-PtNairob.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/017-PtNairob.error"
}
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
},
"inbox_level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"commitment_hash": {
"$ref": "#/components/schemas/Smart_rollup_commitment_hash"
}
},
"required": [
"status",
"inbox_level",
"commitment_hash"
]
}
]
},
"017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"ticket_updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ticket_token": {
"type": "object",
"properties": {
"ticketer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"ticket_updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ticket_token": {
"type": "object",
"properties": {
"ticketer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.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"
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.smart_rollup_originate": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"address": {
"$ref": "#/components/schemas/Smart_rollup_hash"
},
"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/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"address": {
"$ref": "#/components/schemas/Smart_rollup_hash"
},
"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"
]
}
]
},
"017-PtNairob.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": -2147483648,
"maximum": 2147483647
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
},
"staked_hash": {
"$ref": "#/components/schemas/Smart_rollup_commitment_hash"
},
"published_at_level": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
}
},
"required": [
"status",
"staked_hash",
"published_at_level",
"balance_updates"
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.smart_rollup_recover_bond": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status",
"balance_updates"
]
}
]
},
"017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
}
},
"required": [
"status",
"game_status",
"balance_updates"
]
}
]
},
"017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.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/017-PtNairob.operation_metadata.alpha.balance_updates"
}
},
"required": [
"status",
"game_status",
"balance_updates"
]
}
]
},
"017-PtNairob.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.017-PtNairob.michelson_v1.expression"
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"ticket_updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ticket_token": {
"type": "object",
"properties": {
"ticketer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.transaction_destination"
},
"amount": {
"$ref": "#/components/schemas/bignum"
}
},
"required": [
"account",
"amount"
]
}
}
},
"required": [
"ticket_token",
"updates"
]
}
},
"originated_contracts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff"
}
},
"required": [
"status"
]
},
{
"title": "To_tx_rollup",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
},
"ticket_hash": {
"$ref": "#/components/schemas/script_expr"
},
"paid_storage_size_diff": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status",
"ticket_hash",
"paid_storage_size_diff"
]
},
{
"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/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"storage": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"ticket_updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ticket_token": {
"type": "object",
"properties": {
"ticketer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.transaction_destination"
},
"amount": {
"$ref": "#/components/schemas/bignum"
}
},
"required": [
"account",
"amount"
]
}
}
},
"required": [
"ticket_token",
"updates"
]
}
},
"originated_contracts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.lazy_storage_diff"
}
},
"required": [
"status"
]
},
{
"title": "To_tx_rollup",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"backtracked"
]
},
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
},
"ticket_hash": {
"$ref": "#/components/schemas/script_expr"
},
"paid_storage_size_diff": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status",
"ticket_hash",
"paid_storage_size_diff"
]
},
{
"title": "To_smart_rollup",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"backtracked"
]
},
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.transaction_destination"
},
"amount": {
"$ref": "#/components/schemas/bignum"
}
},
"required": [
"account",
"amount"
]
}
}
},
"required": [
"ticket_token",
"updates"
]
}
}
},
"required": [
"status",
"ticket_updates"
]
}
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.transfer_ticket": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"ticket_updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ticket_token": {
"type": "object",
"properties": {
"ticketer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"ticket_updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ticket_token": {
"type": "object",
"properties": {
"ticketer": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"content_type": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
},
"content": {
"$ref": "#/components/schemas/micheline.017-PtNairob.michelson_v1.expression"
}
},
"required": [
"ticketer",
"content_type",
"content"
]
},
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/017-PtNairob.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"
]
}
]
},
"017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
}
},
"required": [
"status"
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.zk_rollup_origination": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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"
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.zk_rollup_publish": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
},
"size": {
"$ref": "#/components/schemas/bignum"
}
},
"required": [
"status",
"balance_updates",
"size"
]
}
]
},
"017-PtNairob.operation.alpha.operation_result.zk_rollup_update": {
"oneOf": [
{
"title": "Applied",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"applied"
]
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.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/017-PtNairob.error"
}
},
"balance_updates": {
"$ref": "#/components/schemas/017-PtNairob.operation_metadata.alpha.balance_updates"
},
"consumed_milligas": {
"$ref": "#/components/schemas/positive_bignum"
},
"paid_storage_size_diff": {
"$ref": "#/components/schemas/bignum"
}
},
"required": [
"status",
"balance_updates"
]
}
]
},
"017-PtNairob.operation.alpha.operation_with_metadata": {
"oneOf": [
{
"title": "Operation_with_metadata",
"type": "object",
"properties": {
"contents": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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/017-PtNairob.operation.alpha.contents"
}
},
"signature": {
"$ref": "#/components/schemas/Signature.V1"
}
},
"required": [
"contents"
]
}
]
},
"017-PtNairob.operation_metadata.alpha.balance_updates": {
"type": "array",
"items": {
"oneOf": [
{
"title": "Contract",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"contract"
]
},
"contract": {
"$ref": "#/components/schemas/017-PtNairob.contract_id"
},
"change": {
"$ref": "#/components/schemas/int64"
},
"origin": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"required": [
"kind",
"category",
"change",
"origin"
]
},
{
"title": "Deposits",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"freezer"
]
},
"category": {
"type": "string",
"enum": [
"deposits"
]
},
"delegate": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"change": {
"$ref": "#/components/schemas/int64"
},
"origin": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"required": [
"kind",
"category",
"delegate",
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"required": [
"kind",
"category",
"change",
"origin"
]
},
{
"title": "Double_signing_evidence_rewards",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"minted"
]
},
"category": {
"type": "string",
"enum": [
"double signing evidence rewards"
]
},
"change": {
"$ref": "#/components/schemas/int64"
},
"origin": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"required": [
"kind",
"category",
"change",
"origin"
]
},
{
"title": "Endorsing_rewards",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"minted"
]
},
"category": {
"type": "string",
"enum": [
"endorsing rewards"
]
},
"change": {
"$ref": "#/components/schemas/int64"
},
"origin": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"required": [
"kind",
"category",
"change",
"origin"
]
},
{
"title": "Lost_endorsing_rewards",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"burned"
]
},
"category": {
"type": "string",
"enum": [
"lost endorsing rewards"
]
},
"delegate": {
"$ref": "#/components/schemas/Signature.Public_key_hash"
},
"participation": {
"type": "boolean"
},
"revelation": {
"type": "boolean"
},
"change": {
"$ref": "#/components/schemas/int64"
},
"origin": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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/017-PtNairob.contract_id"
},
"bond_id": {
"$ref": "#/components/schemas/017-PtNairob.bond_id"
},
"change": {
"$ref": "#/components/schemas/int64"
},
"origin": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"required": [
"kind",
"category",
"contract",
"bond_id",
"change",
"origin"
]
},
{
"title": "Tx_rollup_rejection_rewards",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"minted"
]
},
"category": {
"type": "string",
"enum": [
"tx_rollup_rejection_rewards"
]
},
"change": {
"$ref": "#/components/schemas/int64"
},
"origin": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"required": [
"kind",
"category",
"change",
"origin"
]
},
{
"title": "Tx_rollup_rejection_punishments",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"burned"
]
},
"category": {
"type": "string",
"enum": [
"tx_rollup_rejection_punishments"
]
},
"change": {
"$ref": "#/components/schemas/int64"
},
"origin": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"required": [
"kind",
"category",
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"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": {
"oneOf": [
{
"title": "Block_application",
"type": "string",
"enum": [
"block"
]
},
{
"title": "Protocol_migration",
"type": "string",
"enum": [
"migration"
]
},
{
"title": "Subsidy",
"type": "string",
"enum": [
"subsidy"
]
},
{
"title": "Simulation",
"type": "string",
"enum": [
"simulation"
]
}
]
}
},
"required": [
"kind",
"category",
"change",
"origin"
]
}
]
}
},
"017-PtNairob.sapling_state_id": {
"title": "Sapling state identifier",
"description": "A sapling state identifier",
"oneOf": [
{
"$ref": "#/components/schemas/bignum"
}
]
},
"017-PtNairob.scripted.contracts": {
"type": "object",
"properties": {
"code": {},
"storage": {}
},
"required": [
"code",
"storage"
]
},
"017-PtNairob.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.017-PtNairob.michelson_v1.expression"
}
}
},
"required": [
"location",
"gas",
"stack"
]
}
},
"017-PtNairob.smart_rollup_address": {
"title": "A smart rollup address",
"description": "A smart rollup is identified by a base58 address starting with sr1",
"oneOf": [
{
"$ref": "#/components/schemas/Smart_rollup_hash"
}
]
},
"017-PtNairob.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"
}
]
},
"017-PtNairob.tx_rollup_id": {
"title": "A tx rollup handle",
"description": "A tx rollup notation as given to an RPC or inside scripts, is a base58 tx rollup hash",
"oneOf": [
{
"$ref": "#/components/schemas/unistring"
}
]
},
"Blinded public key hash": {
"title": "A blinded public key hash (Base58Check-encoded)",
"oneOf": [
{
"$ref": "#/components/schemas/unistring"
}
]
},
"Bls12_381.Public_key_hash": {
"title": "A Bls12_381 public key hash (Base58Check-encoded)",
"oneOf": [
{
"$ref": "#/components/schemas/unistring"
}
]
},
"Chain_id": {
"title": "Network identifier (Base58Check-encoded)",
"oneOf": [
{
"$ref": "#/components/schemas/unistring"
}
]
},
"Commitment_hash": {
"title": "A commitment ID (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"
}
]
},
"Inbox_list_hash": {
"title": "A merkle root hash for inboxes (Base58Check-encoded)",
"oneOf": [
{
"$ref": "#/components/schemas/unistring"
}
]
},
"Message_result_hash": {
"title": "A message result hash (Base58Check-encoded)",
"oneOf": [
{
"$ref": "#/components/schemas/unistring"
}
]
},
"Message_result_list_hash": {
"title": "A merklised message result list 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"
}
]
},
"Smart_rollup_commitment_hash": {
"title": "The hash of a commitment of a smart rollup (Base58Check-encoded)",
"oneOf": [
{
"$ref": "#/components/schemas/unistring"
}
]
},
"Smart_rollup_hash": {
"title": "A smart rollup address (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 merkelized payload hashes' hash of the 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"
}
]
},
"Tx_rollup_inbox_message_hash": {
"title": "The hash of a transaction rollup inbox’s message (Base58Check-encoded)",
"oneOf": [
{
"$ref": "#/components/schemas/unistring"
}
]
},
"Withdraw_list_hash": {
"title": "A list of withdraw orders (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": [
"PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf"
]
},
"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": "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.017-PtNairob.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.017-PtNairob.michelson_v1.expression"
}
},
{
"title": "Prim__generic",
"description": "Generic primitive (any number of args with or without annotations)",
"type": "object",
"properties": {
"prim": {
"$ref": "#/components/schemas/017-PtNairob.michelson.v1.primitives"
},
"args": {
"type": "array",
"items": {
"$ref": "#/components/schemas/micheline.017-PtNairob.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": [
"PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf"
]
},
"branch": {
"$ref": "#/components/schemas/block_hash"
},
"contents": {
"type": "array",
"items": {
"$ref": "#/components/schemas/017-PtNairob.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"
}
]
},
"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"
}
]
}
}
}
}
Computing file changes ...