{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/enjin/json-schema/enjin-balance-info-response-schema.json",
  "title": "BalanceInfoResponse",
  "description": "Response for GET /accounts/{accountId}/balance-info",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/enjin-openapi-openapi.json#/components/schemas/BalanceInfoResponse",
  "type": "object",
  "required": [
    "at",
    "nonce",
    "tokenSymbol",
    "free",
    "reserved",
    "miscFrozen",
    "feeFrozen",
    "frozen",
    "transferable",
    "locks"
  ],
  "properties": {
    "ahTimestamp": {
      "type": [
        "string",
        "null"
      ]
    },
    "at": {
      "$ref": "#/$defs/BlockInfo"
    },
    "feeFrozen": {
      "type": "string",
      "description": "The amount that free may not drop below when withdrawing specifically for\ntransaction fee payment (legacy field, may be string message for newer runtimes)"
    },
    "free": {
      "type": "string",
      "description": "Free balance (not equivalent to spendable balance)"
    },
    "frozen": {
      "type": "string",
      "description": "Frozen balance (newer runtimes, may be string message for older runtimes)"
    },
    "locks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BalanceLock"
      },
      "description": "Array of balance locks"
    },
    "miscFrozen": {
      "type": "string",
      "description": "The amount that free may not drop below when withdrawing for anything except\ntransaction fee payment (legacy field, may be string message for newer runtimes)"
    },
    "nonce": {
      "type": "string",
      "description": "Account nonce"
    },
    "rcBlockHash": {
      "type": [
        "string",
        "null"
      ]
    },
    "rcBlockNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "reserved": {
      "type": "string",
      "description": "Reserved balance"
    },
    "tokenSymbol": {
      "type": "string",
      "description": "Token symbol"
    },
    "transferable": {
      "type": "string",
      "description": "Calculated transferable balance using: free - max(maybeED, frozen - reserved)"
    }
  },
  "$defs": {
    "BalanceLock": {
      "type": "object",
      "description": "Balance lock information",
      "required": [
        "id",
        "amount",
        "reasons"
      ],
      "properties": {
        "amount": {
          "type": "string",
          "description": "Amount locked"
        },
        "id": {
          "type": "string",
          "description": "Lock identifier"
        },
        "reasons": {
          "type": "string",
          "description": "Lock reasons (Fee = 0, Misc = 1, All = 2)"
        }
      }
    },
    "BlockInfo": {
      "type": "object",
      "description": "Block information",
      "required": [
        "hash",
        "height"
      ],
      "properties": {
        "hash": {
          "type": "string"
        },
        "height": {
          "type": "string"
        }
      }
    }
  }
}