{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fastnear/json-schema/fastnear-account-full-response-schema.json",
  "title": "AccountFullResponse",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/fastnear-openapi-openapi.json#/components/schemas/AccountFullResponse",
  "additionalProperties": false,
  "properties": {
    "account_id": {
      "type": "string"
    },
    "nfts": {
      "items": {
        "$ref": "#/$defs/NftRow"
      },
      "type": "array"
    },
    "pools": {
      "items": {
        "$ref": "#/$defs/PoolRow"
      },
      "type": "array"
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/AccountStateResponse"
        }
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "tokens": {
      "items": {
        "$ref": "#/$defs/TokenRow"
      },
      "type": "array"
    }
  },
  "required": [
    "account_id",
    "pools",
    "tokens",
    "nfts",
    "state"
  ],
  "type": "object",
  "$defs": {
    "AccountStateResponse": {
      "additionalProperties": false,
      "properties": {
        "balance": {
          "type": [
            "string",
            "null"
          ]
        },
        "locked": {
          "type": [
            "string",
            "null"
          ]
        },
        "storage_bytes": {
          "format": "uint64",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "balance",
        "locked",
        "storage_bytes"
      ],
      "type": "object"
    },
    "NftRow": {
      "additionalProperties": false,
      "properties": {
        "contract_id": {
          "type": "string"
        },
        "last_update_block_height": {
          "format": "uint64",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "contract_id",
        "last_update_block_height"
      ],
      "type": "object"
    },
    "PoolRow": {
      "additionalProperties": false,
      "properties": {
        "last_update_block_height": {
          "format": "uint64",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "pool_id": {
          "type": "string"
        }
      },
      "required": [
        "pool_id",
        "last_update_block_height"
      ],
      "type": "object"
    },
    "TokenRow": {
      "additionalProperties": false,
      "properties": {
        "balance": {
          "type": [
            "string",
            "null"
          ]
        },
        "contract_id": {
          "type": "string"
        },
        "last_update_block_height": {
          "format": "uint64",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "contract_id",
        "last_update_block_height",
        "balance"
      ],
      "type": "object"
    }
  }
}