Tezos · Schema

MigrationOperation

TezosBlockchainTzKTBaking BadCryptocurrencySmart ContractsNFTTokensDelegationsStakingGovernanceFA1.2FA2WebSocket
View JSON Schema on GitHub

JSON Schema

migrationoperation.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "MigrationOperation",
  "allOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of the operation, `migration` - result of the context (database) migration during a protocol update (synthetic type)"
        },
        "id": {
          "type": "integer",
          "description": "Unique ID of the operation, stored in the TzKT indexer database",
          "format": "int64"
        },
        "level": {
          "type": "integer",
          "description": "The height of the block from the genesis block, in which the operation was included",
          "format": "int32"
        },
        "timestamp": {
          "type": "string",
          "description": "Datetime of the block, in which the operation was included (ISO 8601, e.g. `2020-02-20T02:40:57Z`)",
          "format": "date-time"
        },
        "block": {
          "type": "string",
          "description": "Hash of the block, in which the operation was included"
        },
        "kind": {
          "type": "string",
          "description": "Kind of the migration \n`bootstrap` - balance updates, included in the first block after genesis\n`activate_delegate` - registering a new baker (delegator) during protocol migration\n`airdrop` - airdrop of 1 micro tez during Babylon protocol upgrade\n`proposal_invoice` - invoice for creation a proposal for protocol upgrade\n`code_change` - changing contract scripts during Babylon protocol upgrade\n`origination` - implicit (hardcoded in the protocol) origination of liquidity baking contracts\n`subsidy` - liquidity baking subsidy\n`remove_bigmap_key` - removing the key from the bigmap"
        },
        "account": {
          "description": "Information about the account whose balance has updated as a result of the operation",
          "oneOf": [
            {
              "$ref": "#/components/schemas/Alias"
            }
          ]
        },
        "balanceChange": {
          "type": "integer",
          "description": "The amount for which the operation updated the balance (micro tez)",
          "format": "int64"
        },
        "storage": {
          "description": "Contract storage after the migration converted to human-readable JSON. Note: you can configure storage format by setting `micheline` query parameter.",
          "nullable": true
        },
        "diffs": {
          "type": "array",
          "description": "List of bigmap updates caused by the migration.",
          "nullable": true,
          "items": {
            "$ref": "#/components/schemas/BigMapDiff"
          }
        },
        "tokenTransfersCount": {
          "type": "integer",
          "description": "Number of token transfers produced by the operation, or `null` if there are no transfers",
          "format": "int32",
          "nullable": true
        },
        "quote": {
          "description": "Injected historical quote at the time of operation",
          "nullable": true,
          "oneOf": [
            {
              "$ref": "#/components/schemas/QuoteShort"
            }
          ]
        }
      }
    }
  ]
}