{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pubfi-ai/json-schema/pubfi-ai-pubfi-source-0e2b24f2b7028955ec7e22cf439979e5f981f2313cf1fc77188c8bccc34e07fc-baker-rewards-schema.json",
  "title": "pubfi_source_0e2b24f2b7028955ec7e22cf439979e5f981f2313cf1fc77188c8bccc34e07fc_BakerRewards",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pubfi-ai-openapi.json#/components/schemas/pubfi_source_0e2b24f2b7028955ec7e22cf439979e5f981f2313cf1fc77188c8bccc34e07fc_BakerRewards",
  "additionalProperties": false,
  "properties": {
    "attestationRewardsDelegated": {
      "description": "Rewards, corresponding to delegated stake, received for attested slots on baker's liquid balance\n(it is not frozen and can be spent immediately).",
      "format": "int64",
      "type": "integer"
    },
    "attestationRewardsStakedEdge": {
      "description": "Rewards, corresponding to baker's edge from external stake, received for attested slots on baker's own staked balance\n(it is frozen and belongs to the baker).",
      "format": "int64",
      "type": "integer"
    },
    "attestationRewardsStakedOwn": {
      "description": "Rewards, corresponding to baker's own stake, received for attested slots on baker's own staked balance\n(it is frozen and belongs to the baker).",
      "format": "int64",
      "type": "integer"
    },
    "attestationRewardsStakedShared": {
      "description": "Rewards, corresponding to baker's external stake, received for attested slots on baker's external staked balance\n(it is frozen and belongs to baker's stakers).",
      "format": "int64",
      "type": "integer"
    },
    "attestations": {
      "description": "Number of successfully attested slots.",
      "format": "int32",
      "type": "integer"
    },
    "bakingPower": {
      "description": "Baker's baking power",
      "format": "int64",
      "type": "integer"
    },
    "blockFees": {
      "description": "Operation fees which were harvested from successfully baked blocks.",
      "format": "int64",
      "type": "integer"
    },
    "blockRewardsDelegated": {
      "description": "Rewards, corresponding to delegated stake, received for baked blocks (both proposed and re-proposed blocks) on baker's liquid balance\n(it is not frozen and can be spent immediately).",
      "format": "int64",
      "type": "integer"
    },
    "blockRewardsStakedEdge": {
      "description": "Rewards, corresponding to baker's edge from external stake, received for baked blocks (both proposed and re-proposed blocks) on baker's own staked balance\n(it is frozen and belongs to the baker).",
      "format": "int64",
      "type": "integer"
    },
    "blockRewardsStakedOwn": {
      "description": "Rewards, corresponding to baker's own stake, received for baked blocks (both proposed and re-proposed blocks) on baker's own staked balance\n(it is frozen and belongs to the baker).",
      "format": "int64",
      "type": "integer"
    },
    "blockRewardsStakedShared": {
      "description": "Rewards, corresponding to baker's external stake, received for baked blocks (both proposed and re-proposed blocks) on baker's external staked balance\n(it is frozen and belongs to baker's stakers).",
      "format": "int64",
      "type": "integer"
    },
    "blocks": {
      "description": "Number of successfully baked blocks (both proposed and re-proposed blocks).",
      "format": "int32",
      "type": "integer"
    },
    "cycle": {
      "description": "Cycle in which rewards were or will be earned.  \n**[sortable]**",
      "format": "int32",
      "type": "integer"
    },
    "dalAttestationRewardsDelegated": {
      "description": "Rewards, corresponding to delegated stake, received for attested dal shards on baker's liquid balance\n(it is not frozen and can be spent immediately).",
      "format": "int64",
      "type": "integer"
    },
    "dalAttestationRewardsStakedEdge": {
      "description": "Rewards, corresponding to baker's edge from external stake, received for attested dal shards on baker's own staked balance\n(it is frozen and belongs to the baker).",
      "format": "int64",
      "type": "integer"
    },
    "dalAttestationRewardsStakedOwn": {
      "description": "Rewards, corresponding to baker's own stake, received for attested dal shards on baker's own staked balance\n(it is frozen and belongs to the baker).",
      "format": "int64",
      "type": "integer"
    },
    "dalAttestationRewardsStakedShared": {
      "description": "Rewards, corresponding to baker's external stake, received for attested dal shards on baker's external staked balance\n(it is frozen and belongs to baker's stakers).",
      "format": "int64",
      "type": "integer"
    },
    "delegatorsCount": {
      "description": "Number of delegators (those who were delegated to the baker).\nThis doesn't include \"unstakers\" (delegators who left the baker, but still had locked unstaked balance delegated to the baker).",
      "format": "int32",
      "type": "integer"
    },
    "doubleBakingLostExternalStaked": {
      "description": "Amount of baker's external staked balance lost due to double baking",
      "format": "int64",
      "type": "integer"
    },
    "doubleBakingLostExternalUnstaked": {
      "description": "Amount of baker's external unstaked balance lost due to double baking",
      "format": "int64",
      "type": "integer"
    },
    "doubleBakingLostStaked": {
      "description": "Amount of baker's own staked balance lost due to double baking",
      "format": "int64",
      "type": "integer"
    },
    "doubleBakingLostUnstaked": {
      "description": "Amount of baker's own unstaked balance lost due to double baking",
      "format": "int64",
      "type": "integer"
    },
    "doubleBakingRewards": {
      "description": "Rewards for detecting double baking (accusing someone of producing two different blocks at the same level).",
      "format": "int64",
      "type": "integer"
    },
    "doubleConsensusLostExternalStaked": {
      "description": "Amount of baker's external staked balance lost due to double (pre)attestation",
      "format": "int64",
      "type": "integer"
    },
    "doubleConsensusLostExternalUnstaked": {
      "description": "Amount of baker's external unstaked balance lost due to double (pre)attestation",
      "format": "int64",
      "type": "integer"
    },
    "doubleConsensusLostStaked": {
      "description": "Amount of baker's own staked balance lost due to double (pre)attestation",
      "format": "int64",
      "type": "integer"
    },
    "doubleConsensusLostUnstaked": {
      "description": "Amount of baker's own unstaked balance lost due to double (pre)attestation",
      "format": "int64",
      "type": "integer"
    },
    "doubleConsensusRewards": {
      "description": "Rewards for detecting double (pre)attestation (accusing someone of validating two different blocks at the same level).",
      "format": "int64",
      "type": "integer"
    },
    "doubleEndorsingLostExternalStaked": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "doubleEndorsingLostExternalUnstaked": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "doubleEndorsingLostStaked": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "doubleEndorsingLostUnstaked": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "doubleEndorsingRewards": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "doublePreendorsingLostExternalStaked": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "doublePreendorsingLostExternalUnstaked": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "doublePreendorsingLostStaked": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "doublePreendorsingLostUnstaked": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "doublePreendorsingRewards": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "endorsementRewardsDelegated": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "endorsementRewardsStakedEdge": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "endorsementRewardsStakedOwn": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "endorsementRewardsStakedShared": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "endorsements": {
      "description": "**DEPRECATED**",
      "format": "int32",
      "type": "integer"
    },
    "expectedAttestations": {
      "description": "Expected value of how many slots baker should validate based on baker's active stake, selected stake and attestation slots per cycle.",
      "format": "double",
      "type": "number"
    },
    "expectedBlocks": {
      "description": "Expected value of how many blocks baker should produce based on baker's active stake, selected stake and blocks per cycle.",
      "format": "double",
      "type": "number"
    },
    "expectedDalAttestations": {
      "description": "Expected value of how many dal shards baker should attest based on baker's active stake, selected stake and total shards per cycle.",
      "format": "int64",
      "type": "integer"
    },
    "expectedDalShards": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "expectedEndorsements": {
      "description": "**DEPRECATED**",
      "format": "double",
      "type": "number"
    },
    "externalDelegatedBalance": {
      "description": "Amount delegated from external delegators and \"unstakers\" (delegators who left the baker, but still had locked unstaked balance delegated to the baker) (micro tez).\nThis amount doesn't include external staked amount.",
      "format": "int64",
      "type": "integer"
    },
    "externalStakedBalance": {
      "description": "Amount staked from external stakers (micro tez).",
      "format": "int64",
      "type": "integer"
    },
    "futureAttestationRewards": {
      "description": "Estimated value of future attestation rewards.",
      "format": "int64",
      "type": "integer"
    },
    "futureAttestations": {
      "description": "Number of slots which baker is allowed to validate in this cycle based on future attestation rights.",
      "format": "int32",
      "type": "integer"
    },
    "futureBlockRewards": {
      "description": "Estimated value of future block rewards.",
      "format": "int64",
      "type": "integer"
    },
    "futureBlocks": {
      "description": "Number of blocks which baker is allowed to produce in this cycle based on future baking rights.",
      "format": "int32",
      "type": "integer"
    },
    "futureDalAttestationRewards": {
      "description": "Estimated value of future dal attestation rewards.",
      "format": "int64",
      "type": "integer"
    },
    "futureEndorsementRewards": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "futureEndorsements": {
      "description": "**DEPRECATED**",
      "format": "int32",
      "type": "integer"
    },
    "issuedPseudotokens": {
      "anyOf": [
        {
          "description": "Amount of staking pseudotokens issued by/for external stakers.",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "missedAttestationRewards": {
      "description": "Rewards which were not received due to missing attestations.",
      "format": "int64",
      "type": "integer"
    },
    "missedAttestations": {
      "description": "Number of not attested (missed) slots.",
      "format": "int32",
      "type": "integer"
    },
    "missedBlockFees": {
      "description": "Operation fees which were not received due to missing blocks.",
      "format": "int64",
      "type": "integer"
    },
    "missedBlockRewards": {
      "description": "Rewards which were not received due to missing blocks.",
      "format": "int64",
      "type": "integer"
    },
    "missedBlocks": {
      "description": "Number of missed opportunities to bake block.",
      "format": "int32",
      "type": "integer"
    },
    "missedDalAttestationRewards": {
      "description": "Rewards which were not received due to denunciation or not enough participation.",
      "format": "int64",
      "type": "integer"
    },
    "missedEndorsementRewards": {
      "description": "**DEPRECATED**",
      "format": "int64",
      "type": "integer"
    },
    "missedEndorsements": {
      "description": "**DEPRECATED**",
      "format": "int32",
      "type": "integer"
    },
    "nonceRevelationLosses": {
      "description": "Amount of frozen deposits lost due to missing seed nonce revelation (always zero after Ithaca).",
      "format": "int64",
      "type": "integer"
    },
    "nonceRevelationRewardsDelegated": {
      "description": "Rewards, corresponding to delegated stake, for including seed nonce revelations, received on baker's liquid balance\n(it is not frozen and can be spent immediately).",
      "format": "int64",
      "type": "integer"
    },
    "nonceRevelationRewardsStakedEdge": {
      "description": "Rewards, corresponding to baker's edge from external stake, for including seed nonce revelations, received on baker's own staked balance\n(it is frozen and belongs to the baker).",
      "format": "int64",
      "type": "integer"
    },
    "nonceRevelationRewardsStakedOwn": {
      "description": "Rewards, corresponding to baker's own stake, for including seed nonce revelations, received on baker's own staked balance\n(it is frozen and belongs to the baker).",
      "format": "int64",
      "type": "integer"
    },
    "nonceRevelationRewardsStakedShared": {
      "description": "Rewards, corresponding to baker's external stake, for including seed nonce revelations, received on baker's external staked balance\n(it is frozen and belongs to baker's stakers).",
      "format": "int64",
      "type": "integer"
    },
    "ownDelegatedBalance": {
      "description": "Amount delegated from the baker's own balance (micro tez).\nThis amount doesn't include staked amount.",
      "format": "int64",
      "type": "integer"
    },
    "ownStakedBalance": {
      "description": "Amount staked from the baker's own balance (micro tez).",
      "format": "int64",
      "type": "integer"
    },
    "quote": {
      "anyOf": [
        {
          "description": "Injected historical quote at the end of the cycle",
          "oneOf": [
            {
              "$ref": "#/$defs/pubfi_source_0e2b24f2b7028955ec7e22cf439979e5f981f2313cf1fc77188c8bccc34e07fc_QuoteShort"
            }
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "stakersCount": {
      "description": "Number of external stakers (those who delegated to the baker and also staked some amount).",
      "format": "int32",
      "type": "integer"
    },
    "totalBakingPower": {
      "description": "Sum of baking power of all active bakers",
      "format": "int64",
      "type": "integer"
    },
    "vdfRevelationRewardsDelegated": {
      "description": "Rewards, corresponding to delegated stake, for including vdf revelations, received on baker's liquid balance\n(it is not frozen and can be spent immediately).",
      "format": "int64",
      "type": "integer"
    },
    "vdfRevelationRewardsStakedEdge": {
      "description": "Rewards, corresponding to baker's edge from external stake, for including vdf revelations, received on baker's own staked balance\n(it is frozen and belongs to the baker).",
      "format": "int64",
      "type": "integer"
    },
    "vdfRevelationRewardsStakedOwn": {
      "description": "Rewards, corresponding to baker's own stake, for including vdf revelations, received on baker's own staked balance\n(it is frozen and belongs to the baker).",
      "format": "int64",
      "type": "integer"
    },
    "vdfRevelationRewardsStakedShared": {
      "description": "Rewards, corresponding to baker's external stake, for including vdf revelations, received on baker's external staked balance\n(it is frozen and belongs to baker's stakers).",
      "format": "int64",
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "pubfi_source_0e2b24f2b7028955ec7e22cf439979e5f981f2313cf1fc77188c8bccc34e07fc_QuoteShort": {
      "additionalProperties": false,
      "properties": {
        "btc": {
          "anyOf": [
            {
              "description": "XTZ/BTC price",
              "format": "double",
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "cny": {
          "anyOf": [
            {
              "description": "XTZ/CNY price",
              "format": "double",
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "eth": {
          "anyOf": [
            {
              "description": "XTZ/ETH price",
              "format": "double",
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "eur": {
          "anyOf": [
            {
              "description": "XTZ/EUR price",
              "format": "double",
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "gbp": {
          "anyOf": [
            {
              "description": "XTZ/GBP price",
              "format": "double",
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "jpy": {
          "anyOf": [
            {
              "description": "XTZ/JPY price",
              "format": "double",
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "krw": {
          "anyOf": [
            {
              "description": "XTZ/KRW price",
              "format": "double",
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "usd": {
          "anyOf": [
            {
              "description": "XTZ/USD price",
              "format": "double",
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    }
  }
}