{
  "openapi": "3.1.1",
  "info": {
    "title": "Crypto.PublicApi | general",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api-p.herowallet.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "tags": [
          "Crypto.PublicApi"
        ],
        "summary": "Gets public API runtime information.",
        "operationId": "GetPublicApiInfo",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "Crypto.PublicApi"
        ],
        "summary": "Gets public API health status.",
        "operationId": "GetHealth",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/public/blockchains": {
      "get": {
        "tags": [
          "Public Catalog"
        ],
        "summary": "Gets active mainnet blockchains for website clients.",
        "operationId": "GetOldPublicBlockchains",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicBlockchainResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/public/tokens": {
      "get": {
        "tags": [
          "Public Catalog"
        ],
        "summary": "Gets a paginated page of active mainnet tokens with optional filters.",
        "operationId": "GetOldPublicTokens",
        "parameters": [
          {
            "name": "NetworkId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "ChainId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Blockchain",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageCount",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IIndexOfPublicTokenResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "IIndexOfPublicTokenResponse": {
        "type": "object",
        "properties": {
          "currentPage": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTokenResponse"
            }
          },
          "pageCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalRecords": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "paging": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "NetworkType": {
        "type": "integer"
      },
      "PublicBlockchainResponse": {
        "type": "object",
        "properties": {
          "networkId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "showName": {
            "type": [
              "null",
              "string"
            ]
          },
          "chainName": {
            "type": [
              "null",
              "string"
            ]
          },
          "networkApiId": {
            "type": [
              "null",
              "string"
            ]
          },
          "chainId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "networkType": {
            "$ref": "#/components/schemas/NetworkType"
          },
          "logoUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "supportOnMobile": {
            "type": "boolean"
          },
          "supportOnWeb": {
            "type": "boolean"
          },
          "supportOnExtension": {
            "type": "boolean"
          },
          "supportSend": {
            "type": "boolean"
          },
          "supportReceive": {
            "type": "boolean"
          },
          "supportSwap": {
            "type": "boolean"
          }
        }
      },
      "PublicTokenResponse": {
        "type": "object",
        "properties": {
          "assetNetworkId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "networkId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "chainId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "network": {
            "$ref": "#/components/schemas/NetworkType"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "logoUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "blockChain": {
            "type": "string"
          },
          "caption": {
            "type": [
              "null",
              "string"
            ]
          },
          "apiId": {
            "type": [
              "null",
              "string"
            ]
          },
          "apiIdMarket": {
            "type": [
              "null",
              "string"
            ]
          },
          "contractAddress": {
            "type": [
              "null",
              "string"
            ]
          },
          "decimals": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rank": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "currentPrice": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "marketCap": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalVolume": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "priceChangePercentage24h": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "Pass your API key in the **X-Api-Key** header.",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKey": [ ]
    }
  ],
  "tags": [
    {
      "name": "Crypto.PublicApi"
    },
    {
      "name": "Public Catalog"
    }
  ]
}