{
  "openapi": "3.1.0",
  "info": {
    "title": "Gully Chain Indexer API",
    "version": "0.1.0",
    "summary": "Read coins, trades, pools, quests and chain stats of Gully Chain.",
    "description": "Read-only JSON over HTTPS for Gully Chain Testnet (chain 485590). Testnet: test funds with no real value.\n\n**No key.** Every route is public and can be called from a browser (cross-origin reads are allowed).\n\n**Money is in USD.** Fields ending in `Usd` are US dollars. A figure with no price is `null`, never a guess. Raw token amounts are integers as decimal strings.\n\n**Caching.** Answers are cached for a few seconds and carry `Cache-Control` and `ETag`; send `If-None-Match` to get `304` when nothing changed. `GET /head` tells you the newest indexed block.\n\n**Paging.** Lists take `limit`; older rows come with `before` (a block number) or `cursor`, as each route says.\n\n**Limits.** There is no per-key limit yet. Please keep to a few requests per second and use the cache headers; heavy callers may be slowed down.\n\n**Errors.** `{ \"error\": \"<plain words>\" }` with HTTP 400 (bad input), 404 (not found) or 503 (not available right now, retry).",
    "x-generated-by": "l3/indexer/scripts/gen-openapi.mjs"
  },
  "servers": [
    {
      "url": "https://indexer.gullychain.xyz",
      "description": "Gully Chain Testnet (485590)"
    }
  ],
  "tags": [
    {
      "name": "Accounts"
    },
    {
      "name": "Gully Core"
    },
    {
      "name": "Creators"
    },
    {
      "name": "Activity"
    },
    {
      "name": "Chain"
    },
    {
      "name": "Holder rewards"
    },
    {
      "name": "Mirrors"
    },
    {
      "name": "Names"
    },
    {
      "name": "Gully Pass"
    },
    {
      "name": "Pools"
    },
    {
      "name": "Quests"
    },
    {
      "name": "LP rewards"
    },
    {
      "name": "Chain stats"
    },
    {
      "name": "Fees"
    },
    {
      "name": "Tokens"
    }
  ],
  "paths": {
    "/accounts/{a}/quests": {
      "get": {
        "operationId": "getAccountQuests",
        "tags": [
          "Accounts"
        ],
        "summary": "Quests of a wallet",
        "description": "Completed quests, rewards earned and quests created.",
        "security": [],
        "parameters": [
          {
            "name": "a",
            "in": "path",
            "required": true,
            "description": "Account address.",
            "schema": {
              "type": "string"
            },
            "example": "0x1111111111111111111111111111111111111111"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/accounts/{a}/trades": {
      "get": {
        "operationId": "listAccountTrades",
        "tags": [
          "Accounts"
        ],
        "summary": "Trades of a wallet",
        "description": "Newest first. A sponsored trade from a smart account is listed under the smart account (`trader`).",
        "security": [],
        "parameters": [
          {
            "name": "a",
            "in": "path",
            "required": true,
            "description": "Account address.",
            "schema": {
              "type": "string"
            },
            "example": "0x1111111111111111111111111111111111111111"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "description": "Return rows older than this block number.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Only this token (address).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountTrades"
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/accounts/{a}/xp": {
      "get": {
        "operationId": "getAccountXp",
        "tags": [
          "Accounts"
        ],
        "summary": "XP and level of a wallet",
        "description": "All-time XP, level, streak and the current season rank.",
        "security": [],
        "parameters": [
          {
            "name": "a",
            "in": "path",
            "required": true,
            "description": "Account address.",
            "schema": {
              "type": "string"
            },
            "example": "0x1111111111111111111111111111111111111111"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/badges/{a}": {
      "get": {
        "operationId": "listBadges",
        "tags": [
          "Accounts"
        ],
        "summary": "Quest badges of a wallet",
        "description": "Newest first.",
        "security": [],
        "parameters": [
          {
            "name": "a",
            "in": "path",
            "required": true,
            "description": "Account address.",
            "schema": {
              "type": "string"
            },
            "example": "0x1111111111111111111111111111111111111111"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/core/drops/{address}/claims": {
      "get": {
        "operationId": "listDropClaims",
        "tags": [
          "Gully Core"
        ],
        "summary": "Claims of an airdrop",
        "description": "Optionally of one account.",
        "security": [],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Account address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad drop address; bad account address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad drop address"
                }
              }
            }
          },
          "404": {
            "description": "unknown drop",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unknown drop"
                }
              }
            }
          }
        }
      }
    },
    "/core/drops": {
      "get": {
        "operationId": "listDrops",
        "tags": [
          "Gully Core"
        ],
        "summary": "Airdrops",
        "description": "By creator or token.",
        "security": [],
        "parameters": [
          {
            "name": "creator",
            "in": "query",
            "required": false,
            "description": "Creator address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Only this token (address).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "creator= and token= take an address (0x000…000 = native ETH)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "creator= and token= take an address (0x000…000 = native ETH)"
                }
              }
            }
          }
        }
      }
    },
    "/core/locks": {
      "get": {
        "operationId": "listLocks",
        "tags": [
          "Gully Core"
        ],
        "summary": "Token locks",
        "description": "By token or beneficiary. The zero address means native ETH.",
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Only this token (address).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "beneficiary",
            "in": "query",
            "required": false,
            "description": "Beneficiary address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "token= and beneficiary= take an address (0x000…000 = native ETH)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "token= and beneficiary= take an address (0x000…000 = native ETH)"
                }
              }
            }
          }
        }
      }
    },
    "/core/revshare/{account}": {
      "get": {
        "operationId": "getRevshare",
        "tags": [
          "Gully Core"
        ],
        "summary": "Revenue share of an account",
        "description": "Amounts earned and claimable.",
        "security": [],
        "parameters": [
          {
            "name": "account",
            "in": "path",
            "required": true,
            "description": "Account address.",
            "schema": {
              "type": "string"
            },
            "example": "0x1111111111111111111111111111111111111111"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad account address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad account address"
                }
              }
            }
          }
        }
      }
    },
    "/creators/{addr}/earnings": {
      "get": {
        "operationId": "getCreatorEarnings",
        "tags": [
          "Creators"
        ],
        "summary": "Earnings of a creator",
        "description": "Fee earnings by coin.",
        "security": [],
        "parameters": [
          {
            "name": "addr",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/creators/{addr}/rentals/series": {
      "get": {
        "operationId": "getCreatorRentals",
        "tags": [
          "Creators"
        ],
        "summary": "Rental income over time",
        "description": "Daily points.",
        "security": [],
        "parameters": [
          {
            "name": "addr",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "How many days of history.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/creators/editions/{id}/series": {
      "get": {
        "operationId": "getEditionSeries",
        "tags": [
          "Creators"
        ],
        "summary": "Mints of one edition over time",
        "description": "Hourly points.",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Id.",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "name": "hours",
            "in": "query",
            "required": false,
            "description": "How many hours of history.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad edition id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad edition id"
                }
              }
            }
          }
        }
      }
    },
    "/creators/editions/{id}": {
      "get": {
        "operationId": "getEdition",
        "tags": [
          "Creators"
        ],
        "summary": "One edition",
        "description": "Supply, price and state.",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Id.",
            "schema": {
              "type": "string"
            },
            "example": "12"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad edition id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad edition id"
                }
              }
            }
          },
          "404": {
            "description": "unknown edition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unknown edition"
                }
              }
            }
          }
        }
      }
    },
    "/creators/editions": {
      "get": {
        "operationId": "listEditions",
        "tags": [
          "Creators"
        ],
        "summary": "Editions",
        "description": "Editions, optionally of one creator.",
        "security": [],
        "parameters": [
          {
            "name": "creator",
            "in": "query",
            "required": false,
            "description": "Creator address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad creator address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad creator address"
                }
              }
            }
          }
        }
      }
    },
    "/creators/memberships": {
      "get": {
        "operationId": "listMemberships",
        "tags": [
          "Creators"
        ],
        "summary": "Membership plans and members",
        "description": "By creator or by member. One of the two is required.",
        "security": [],
        "parameters": [
          {
            "name": "creator",
            "in": "query",
            "required": false,
            "description": "Creator address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "member",
            "in": "query",
            "required": false,
            "description": "Member address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "creator= or member= (an address) is required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "creator= or member= (an address) is required"
                }
              }
            }
          }
        }
      }
    },
    "/creators/splits/{address}": {
      "get": {
        "operationId": "getSplit",
        "tags": [
          "Creators"
        ],
        "summary": "One revenue split",
        "description": "Recipients and shares.",
        "security": [],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad split address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad split address"
                }
              }
            }
          },
          "404": {
            "description": "unknown split",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unknown split"
                }
              }
            }
          }
        }
      }
    },
    "/creators/splits": {
      "get": {
        "operationId": "listSplits",
        "tags": [
          "Creators"
        ],
        "summary": "Revenue splits",
        "description": "Splits, optionally those an account is part of.",
        "security": [],
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Account address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad account address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad account address"
                }
              }
            }
          }
        }
      }
    },
    "/feed": {
      "get": {
        "operationId": "getFeed",
        "tags": [
          "Activity"
        ],
        "summary": "Latest activity",
        "description": "Launches and trades, newest first. Page with `cursor`.",
        "security": [],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "description": "Return rows older than this block number.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from the previous page (its `next` or `nextCursor` field).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "address",
            "in": "query",
            "required": false,
            "description": "Only activity of this address.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/head": {
      "get": {
        "operationId": "getHead",
        "tags": [
          "Chain"
        ],
        "summary": "Latest indexed block",
        "description": "The chain id and the newest block the indexer has processed. Compare with the chain head to see how fresh the data is.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Head"
                }
              }
            }
          }
        }
      }
    },
    "/holder-rewards/coins/{coin}/accounts/{account}": {
      "get": {
        "operationId": "getHolderRewardAccount",
        "tags": [
          "Holder rewards"
        ],
        "summary": "Holder rewards of an account",
        "description": "Earned and claimable per asset.",
        "security": [],
        "parameters": [
          {
            "name": "coin",
            "in": "path",
            "required": true,
            "description": "Coin (token) address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "account",
            "in": "path",
            "required": true,
            "description": "Account address.",
            "schema": {
              "type": "string"
            },
            "example": "0x1111111111111111111111111111111111111111"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/holder-rewards/coins/{coin}": {
      "get": {
        "operationId": "getHolderRewardCoin",
        "tags": [
          "Holder rewards"
        ],
        "summary": "Holder rewards of a coin",
        "description": "Rate, totals and daily history.",
        "security": [],
        "parameters": [
          {
            "name": "coin",
            "in": "path",
            "required": true,
            "description": "Coin (token) address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "How many days of history.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/holder-rewards/stats": {
      "get": {
        "operationId": "getHolderRewardStats",
        "tags": [
          "Holder rewards"
        ],
        "summary": "Holder reward totals",
        "description": "Coins with holder rewards and amounts paid.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/mirror-hook/pools": {
      "get": {
        "operationId": "listMirrorHookPools",
        "tags": [
          "Mirrors"
        ],
        "summary": "Mirror pools",
        "description": "Pools created for mirrored coins on other chains.",
        "security": [],
        "parameters": [
          {
            "name": "chainId",
            "in": "query",
            "required": false,
            "description": "Chain id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mirror",
            "in": "query",
            "required": false,
            "description": "Mirror token address.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/mirrors/{token}/{domain}/series": {
      "get": {
        "operationId": "getMirrorSeries",
        "tags": [
          "Mirrors"
        ],
        "summary": "One mirror route over time",
        "description": "Hourly locked amount, out, in and transfer counts.",
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Destination chain domain id.",
            "schema": {
              "type": "string"
            },
            "example": "421614"
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "Time range.",
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "30d",
                "all"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad token or domain",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad token or domain"
                }
              }
            }
          },
          "404": {
            "description": "unknown mirror",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unknown mirror"
                }
              }
            }
          }
        }
      }
    },
    "/mirrors/{token}/{domain}": {
      "get": {
        "operationId": "getMirror",
        "tags": [
          "Mirrors"
        ],
        "summary": "One mirror route",
        "description": "The route and its last 50 transfers.",
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "description": "Token address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "description": "Destination chain domain id.",
            "schema": {
              "type": "string"
            },
            "example": "421614"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad token or domain",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad token or domain"
                }
              }
            }
          },
          "404": {
            "description": "unknown mirror",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unknown mirror"
                }
              }
            }
          }
        }
      }
    },
    "/mirrors": {
      "get": {
        "operationId": "listMirrors",
        "tags": [
          "Mirrors"
        ],
        "summary": "Mirrors of coins on other chains",
        "description": "Newest first.",
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Only this token (address).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Destination chain domain id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by state.",
            "schema": {
              "type": "string",
              "enum": [
                "requested",
                "active"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address; bad domain; bad status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/names/{addr}": {
      "get": {
        "operationId": "getName",
        "tags": [
          "Names"
        ],
        "summary": ".gully name of an address",
        "description": "The primary name and how many names the address owns.",
        "security": [],
        "parameters": [
          {
            "name": "addr",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/names": {
      "get": {
        "operationId": "lookupNames",
        "tags": [
          "Names"
        ],
        "summary": ".gully names of several addresses",
        "description": "A map from address to its primary .gully name, or null.",
        "security": [],
        "parameters": [
          {
            "name": "addresses",
            "in": "query",
            "required": false,
            "description": "Comma separated addresses.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/pass/accounts/{address}": {
      "get": {
        "operationId": "getPassAccount",
        "tags": [
          "Gully Pass"
        ],
        "summary": "Gully Pass of an account",
        "description": "Subscription state and history.",
        "security": [],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/pass/creators/{address}": {
      "get": {
        "operationId": "getPassCreator",
        "tags": [
          "Gully Pass"
        ],
        "summary": "Gully Pass earnings of a creator",
        "description": "Claims by epoch.",
        "security": [],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/pass/stats": {
      "get": {
        "operationId": "getPassStats",
        "tags": [
          "Gully Pass"
        ],
        "summary": "Gully Pass totals",
        "description": "Subscribers, epochs and funding.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/pools/{address}": {
      "get": {
        "operationId": "getPool",
        "tags": [
          "Pools"
        ],
        "summary": "One pool",
        "description": "By pool address or Gully Core pool id.",
        "security": [],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad pool address / id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad pool address / id"
                }
              }
            }
          },
          "404": {
            "description": "unknown pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unknown pool"
                }
              }
            }
          }
        }
      }
    },
    "/pools": {
      "get": {
        "operationId": "listPools",
        "tags": [
          "Pools"
        ],
        "summary": "Liquidity pools",
        "description": "Pools with USD liquidity, volume and fee rate.",
        "security": [],
        "parameters": [
          {
            "name": "protocol",
            "in": "query",
            "required": false,
            "description": "Only pools of this protocol.",
            "schema": {
              "type": "string",
              "enum": [
                "uniswap-v3",
                "gully-core"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Search text (symbol or address).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort order.",
            "schema": {
              "type": "string",
              "enum": [
                "tvl",
                "volume",
                "apr"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/positions": {
      "get": {
        "operationId": "listPositions",
        "tags": [
          "Pools"
        ],
        "summary": "Liquidity positions of an owner",
        "description": "Open positions with their amounts.",
        "security": [],
        "parameters": [
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "description": "Owner address.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "owner must be an address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "owner must be an address"
                }
              }
            }
          }
        }
      }
    },
    "/quests/{id}/analytics": {
      "get": {
        "operationId": "getQuestAnalytics",
        "tags": [
          "Quests"
        ],
        "summary": "Results of one quest",
        "description": "Completions, new buyers and volume since the quest started.",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Id.",
            "schema": {
              "type": "string"
            },
            "example": "12"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad quest id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad quest id"
                }
              }
            }
          },
          "404": {
            "description": "quest not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "quest not found"
                }
              }
            }
          }
        }
      }
    },
    "/quests/{id}/completions": {
      "get": {
        "operationId": "listQuestCompletions",
        "tags": [
          "Quests"
        ],
        "summary": "Completions of one quest",
        "description": "Newest first. Page with `before`.",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Id.",
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "description": "Return rows older than this block number.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad quest id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad quest id"
                }
              }
            }
          }
        }
      }
    },
    "/quests/{id}": {
      "get": {
        "operationId": "getQuest",
        "tags": [
          "Quests"
        ],
        "summary": "One quest",
        "description": "The quest, its funding and its latest completions.",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Id.",
            "schema": {
              "type": "string"
            },
            "example": "12"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad quest id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad quest id"
                }
              }
            }
          },
          "404": {
            "description": "quest not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "quest not found"
                }
              }
            }
          }
        }
      }
    },
    "/quests/leaderboard": {
      "get": {
        "operationId": "getQuestLeaderboard",
        "tags": [
          "Quests"
        ],
        "summary": "XP leaderboard",
        "description": "By season or all time.",
        "security": [],
        "parameters": [
          {
            "name": "season",
            "in": "query",
            "required": false,
            "description": "`current`, `all` or a season number.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad season",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad season"
                }
              }
            }
          }
        }
      }
    },
    "/quests/stats": {
      "get": {
        "operationId": "getQuestStats",
        "tags": [
          "Quests"
        ],
        "summary": "Quest totals",
        "description": "Totals, 24 hour completions and a 7 day hourly series.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/quests/trending": {
      "get": {
        "operationId": "getTrendingQuests",
        "tags": [
          "Quests"
        ],
        "summary": "Trending quests",
        "description": "Live quests first, then by recent completions.",
        "security": [],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/quests": {
      "get": {
        "operationId": "listQuests",
        "tags": [
          "Quests"
        ],
        "summary": "Quests",
        "description": "Filter by state, type, creator or reward asset.",
        "security": [],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by state.",
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "paused",
                "upcoming",
                "ended",
                "cancelled",
                "all"
              ]
            }
          },
          {
            "name": "verifier",
            "in": "query",
            "required": false,
            "description": "Filter by quest type.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "creator",
            "in": "query",
            "required": false,
            "description": "Creator address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asset",
            "in": "query",
            "required": false,
            "description": "Reward asset address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad status; bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad status"
                }
              }
            }
          }
        }
      }
    },
    "/rewards/lp/claims": {
      "get": {
        "operationId": "listLpRewardClaims",
        "tags": [
          "LP rewards"
        ],
        "summary": "Reward claims of an owner",
        "description": "Newest first.",
        "security": [],
        "parameters": [
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "description": "Owner address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "owner must be an address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "owner must be an address"
                }
              }
            }
          }
        }
      }
    },
    "/rewards/lp/eligibility": {
      "get": {
        "operationId": "getLpRewardEligibility",
        "tags": [
          "LP rewards"
        ],
        "summary": "Which positions can earn",
        "description": "Per position, with the reason when one cannot.",
        "security": [],
        "parameters": [
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "description": "Owner address.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "owner must be an address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "owner must be an address"
                }
              }
            }
          }
        }
      }
    },
    "/rewards/lp/positions": {
      "get": {
        "operationId": "listLpRewardPositions",
        "tags": [
          "LP rewards"
        ],
        "summary": "Reward positions of an owner",
        "description": "Positions enrolled for rewards.",
        "security": [],
        "parameters": [
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "description": "Owner address.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "owner must be an address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "owner must be an address"
                }
              }
            }
          }
        }
      }
    },
    "/rewards/lp/stats": {
      "get": {
        "operationId": "getLpRewardStats",
        "tags": [
          "LP rewards"
        ],
        "summary": "Liquidity reward totals",
        "description": "Funding, claims and an hourly series.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/rewards/lp": {
      "get": {
        "operationId": "getLpRewards",
        "tags": [
          "LP rewards"
        ],
        "summary": "Liquidity reward programs",
        "description": "Programs and their pools.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/stats/analytics": {
      "get": {
        "operationId": "getAnalytics",
        "tags": [
          "Chain stats"
        ],
        "summary": "Activity summary",
        "description": "Trades, traders, launches and volume for the range.",
        "security": [],
        "parameters": [
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "Time range.",
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "30d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/stats/chain-tvl": {
      "get": {
        "operationId": "getChainTvl",
        "tags": [
          "Chain stats"
        ],
        "summary": "Bridged and DeFi value (older shape)",
        "description": "Kept for pages that still read it. New code reads /stats/chain.",
        "deprecated": true,
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/stats/chain": {
      "get": {
        "operationId": "getChainStats",
        "tags": [
          "Chain stats"
        ],
        "summary": "Gully Chain in numbers",
        "description": "The one stats answer every Gully surface shows. The headline is all value bridged in, in USD, counted once; DeFi value is a part of it and is never added on top. Assets with no price are listed as unpriced and are not counted. On testnet the answer says so: test funds have no real value. Method: https://docs.gullychain.xyz/stats-methodology",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChainStats"
                }
              }
            }
          }
        }
      }
    },
    "/stats/fees/series": {
      "get": {
        "operationId": "getFeeSeries",
        "tags": [
          "Fees"
        ],
        "summary": "Fees over time",
        "description": "Fee points per hour or day. Amounts are in wei.",
        "security": [],
        "parameters": [
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "Time range.",
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "30d",
                "90d",
                "all"
              ]
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "description": "Bucket size.",
            "schema": {
              "type": "string",
              "enum": [
                "hour",
                "day"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/stats/fees": {
      "get": {
        "operationId": "getFees",
        "tags": [
          "Fees"
        ],
        "summary": "Fee totals",
        "description": "Fees by category with 24 hour and 7 day windows.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/stats/flywheel": {
      "get": {
        "operationId": "getFlywheel",
        "tags": [
          "Fees"
        ],
        "summary": "Fee table and buyback flows",
        "description": "The fee table and, once live, the flows it funds.",
        "security": [],
        "parameters": [
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "Time range.",
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "30d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/stats/mirror-hook": {
      "get": {
        "operationId": "getMirrorHookStats",
        "tags": [
          "Mirrors"
        ],
        "summary": "Mirror pool fees",
        "description": "Fees and volume of mirror pools on other chains. Empty until those pools exist.",
        "security": [],
        "parameters": [
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "Time range.",
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "30d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/stats/origin": {
      "get": {
        "operationId": "getOriginStats",
        "tags": [
          "Mirrors"
        ],
        "summary": "Gully Chain as the home chain",
        "description": "Launches and volume of Gully Core coins, and mirrors per destination chain.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/stats/tvl": {
      "get": {
        "operationId": "getTvl",
        "tags": [
          "Chain stats"
        ],
        "summary": "DeFi value over time",
        "description": "Value in pools, locks and vaults in USD, with daily history (`days`) or a chart series (`range`).",
        "security": [],
        "parameters": [
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "Time range.",
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "30d",
                "90d",
                "all"
              ]
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "How many days of history.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "range must be one of 24h, 7d, 30d, 90d, all",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "range must be one of 24h, 7d, 30d, 90d, all"
                }
              }
            }
          },
          "503": {
            "description": "TVL is not available right now",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "TVL is not available right now"
                }
              }
            }
          }
        }
      }
    },
    "/stats/volume": {
      "get": {
        "operationId": "getVolume",
        "tags": [
          "Chain stats"
        ],
        "summary": "Trading volume over time",
        "description": "USD volume in hourly or daily buckets.",
        "security": [],
        "parameters": [
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "description": "Bucket size.",
            "schema": {
              "type": "string",
              "enum": [
                "hour",
                "day"
              ]
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": false,
            "description": "Time range.",
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "30d",
                "90d",
                "all"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "503": {
            "description": "volume is not available right now",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "volume is not available right now"
                }
              }
            }
          }
        }
      }
    },
    "/streaks/{a}": {
      "get": {
        "operationId": "getStreak",
        "tags": [
          "Accounts"
        ],
        "summary": "Check-in streak of a wallet",
        "description": "The streak and the last 60 check-ins.",
        "security": [],
        "parameters": [
          {
            "name": "a",
            "in": "path",
            "required": true,
            "description": "Account address.",
            "schema": {
              "type": "string"
            },
            "example": "0x1111111111111111111111111111111111111111"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/{addr}/candles": {
      "get": {
        "operationId": "getCandles",
        "tags": [
          "Tokens"
        ],
        "summary": "Price candles",
        "description": "Open, high, low, close and volume per timeframe, oldest first.",
        "security": [],
        "parameters": [
          {
            "name": "addr",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "tf",
            "in": "query",
            "required": false,
            "description": "Candle timeframe.",
            "schema": {
              "type": "string",
              "enum": [
                "1m",
                "5m",
                "15m",
                "1h",
                "4h",
                "1d"
              ],
              "default": "1m"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "description": "Bucket size.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2000,
              "default": 300
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Candles"
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/{addr}/holders": {
      "get": {
        "operationId": "listHolders",
        "tags": [
          "Tokens"
        ],
        "summary": "Holders of a coin",
        "description": "Largest first, with a tag for pools and lockers. Indexed for launched coins.",
        "security": [],
        "parameters": [
          {
            "name": "addr",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          },
          "404": {
            "description": "unknown token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unknown token"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/{addr}/mirrors": {
      "get": {
        "operationId": "listTokenMirrors",
        "tags": [
          "Mirrors"
        ],
        "summary": "Mirrors of one coin",
        "description": "Every route of the coin, by destination.",
        "security": [],
        "parameters": [
          {
            "name": "addr",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/{addr}/trades": {
      "get": {
        "operationId": "listTokenTrades",
        "tags": [
          "Tokens"
        ],
        "summary": "Trades of a coin",
        "description": "Newest first. Page with `before`.",
        "security": [],
        "parameters": [
          {
            "name": "addr",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "description": "Return rows older than this block number.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Trades"
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/{addr}": {
      "get": {
        "operationId": "getToken",
        "tags": [
          "Tokens"
        ],
        "summary": "One coin",
        "description": "The coin, its pools, fees and launch details.",
        "security": [],
        "parameters": [
          {
            "name": "addr",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenDetail"
                }
              }
            }
          },
          "400": {
            "description": "bad address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "bad address"
                }
              }
            }
          },
          "404": {
            "description": "unknown token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unknown token"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/kinds": {
      "get": {
        "operationId": "getTokenKinds",
        "tags": [
          "Tokens"
        ],
        "summary": "Coin counts by kind",
        "description": "How many listed coins there are of each kind.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          }
        }
      }
    },
    "/tokens": {
      "get": {
        "operationId": "listTokens",
        "tags": [
          "Tokens"
        ],
        "summary": "Coins with price and market data",
        "description": "Every listed coin with USD price, market cap, liquidity and 24 hour volume. A coin with thin liquidity is flagged; a coin with no price has null USD fields. Test coins are left out.",
        "security": [],
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "Comma separated coin kinds: movie, music, series, short, creator.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deprecated",
            "in": "query",
            "required": false,
            "description": "`1` to include coins from retired launchpads.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from the previous page (its `next` or `nextCursor` field).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenList"
                }
              }
            }
          }
        }
      }
    },
    "/trending/onchain": {
      "get": {
        "operationId": "getTrending",
        "tags": [
          "Tokens"
        ],
        "summary": "Trending coins",
        "description": "Coins ranked by recent on-chain activity.",
        "security": [],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many rows to return.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tokens",
            "in": "query",
            "required": false,
            "description": "Comma separated token addresses to rank.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "503": {
            "description": "trending is not available right now",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "trending is not available right now"
                }
              }
            }
          }
        }
      }
    },
    "/v1/accounts/{addr}/editions": {
      "get": {
        "operationId": "listAccountEditions",
        "tags": [
          "Creators"
        ],
        "summary": "Editions an account holds",
        "description": "Holdings by edition.",
        "security": [],
        "parameters": [
          {
            "name": "addr",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "addr must be an address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "addr must be an address"
                }
              }
            }
          }
        }
      }
    },
    "/v1/creators/{addr}/royalties": {
      "get": {
        "operationId": "getCreatorRoyalties",
        "tags": [
          "Creators"
        ],
        "summary": "Royalties of a creator",
        "description": "Royalties earned from edition resales.",
        "security": [],
        "parameters": [
          {
            "name": "addr",
            "in": "path",
            "required": true,
            "description": "Address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "addr must be an address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "addr must be an address"
                }
              }
            }
          }
        }
      }
    },
    "/v1/editions/{id}/market": {
      "get": {
        "operationId": "getEditionMarket",
        "tags": [
          "Creators"
        ],
        "summary": "Listings of one edition",
        "description": "The id is a number, or `v1:<n>` / `v2:<n>` for a specific contract version.",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Id.",
            "schema": {
              "type": "string"
            },
            "example": "12"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "id is 12, v2:12 or v1:12",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "id is 12, v2:12 or v1:12"
                }
              }
            }
          },
          "404": {
            "description": "Unknown edition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Unknown edition."
                }
              }
            }
          }
        }
      }
    },
    "/v1/works/{coin}/earnings": {
      "get": {
        "operationId": "getWorkEarnings",
        "tags": [
          "Creators"
        ],
        "summary": "Edition earnings of a work",
        "description": "Primary sales and royalties.",
        "security": [],
        "parameters": [
          {
            "name": "coin",
            "in": "path",
            "required": true,
            "description": "Coin (token) address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "coin must be an address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "coin must be an address"
                }
              }
            }
          }
        }
      }
    },
    "/v1/works/{coin}/editions": {
      "get": {
        "operationId": "listWorkEditions",
        "tags": [
          "Creators"
        ],
        "summary": "Editions of a work",
        "description": "Editions tied to the coin of a work.",
        "security": [],
        "parameters": [
          {
            "name": "coin",
            "in": "path",
            "required": true,
            "description": "Coin (token) address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "description": "JSON object. Fields are stable for the pages that read them; the full shape is not specified here yet."
                }
              }
            }
          },
          "400": {
            "description": "coin must be an address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "coin must be an address"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "headers": {
      "Cache-Control": {
        "description": "How long the answer may be reused.",
        "schema": {
          "type": "string"
        }
      },
      "ETag": {
        "description": "Version of the answer, for `If-None-Match`.",
        "schema": {
          "type": "string"
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "What went wrong, in plain words."
          }
        }
      },
      "Head": {
        "type": "object",
        "required": [
          "chainId",
          "block",
          "timestamp"
        ],
        "properties": {
          "chainId": {
            "type": "integer",
            "examples": [
              485590
            ]
          },
          "block": {
            "type": "integer",
            "description": "Newest indexed block, -1 before the first."
          },
          "timestamp": {
            "type": "integer",
            "description": "Unix seconds of that block."
          }
        }
      },
      "Trade": {
        "type": "object",
        "required": [
          "id",
          "token",
          "trader",
          "isBuy",
          "ethAmount",
          "tokenAmount",
          "price",
          "source",
          "blockNumber",
          "logIndex",
          "timestamp",
          "txHash"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "token": {
            "type": "string",
            "pattern": "^0x[0-9a-f]*$"
          },
          "trader": {
            "type": "string",
            "pattern": "^0x[0-9a-f]*$"
          },
          "relayer": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "isBuy": {
            "type": "boolean"
          },
          "ethAmount": {
            "type": "string",
            "description": "Integer as a decimal string."
          },
          "tokenAmount": {
            "type": "string",
            "description": "Integer as a decimal string."
          },
          "price": {
            "type": "number"
          },
          "source": {
            "type": "string"
          },
          "pool": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "quote": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "quoteAmount": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "volumeUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "priceUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "blockNumber": {
            "type": "string",
            "description": "Integer as a decimal string."
          },
          "logIndex": {
            "type": "integer"
          },
          "timestamp": {
            "type": "string",
            "description": "Integer as a decimal string."
          },
          "txHash": {
            "type": "string",
            "pattern": "^0x[0-9a-f]*$"
          }
        },
        "additionalProperties": true
      },
      "Token": {
        "type": "object",
        "required": [
          "address",
          "source",
          "name",
          "symbol",
          "decimals",
          "createdBlock",
          "createdAt",
          "createdTx",
          "totalSupply",
          "holders",
          "complete",
          "graduated",
          "txns"
        ],
        "properties": {
          "address": {
            "type": "string",
            "pattern": "^0x[0-9a-f]*$"
          },
          "source": {
            "type": "string"
          },
          "launchpad": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "launchpadVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "decimals": {
            "type": "integer"
          },
          "metadataURI": {
            "type": [
              "string",
              "null"
            ]
          },
          "creator": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "createdBlock": {
            "type": "string",
            "description": "Integer as a decimal string."
          },
          "createdAt": {
            "type": "string",
            "description": "Integer as a decimal string."
          },
          "createdTx": {
            "type": "string",
            "pattern": "^0x[0-9a-f]*$"
          },
          "totalSupply": {
            "type": "string",
            "description": "Integer as a decimal string."
          },
          "holders": {
            "type": "integer"
          },
          "priceE18": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "realEth": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "tokensSold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "ethReserve": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "tokenReserve": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "progressBps": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "complete": {
            "type": "boolean"
          },
          "graduated": {
            "type": "boolean"
          },
          "pool": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "graduatedBlock": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "graduatedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "graduatedTx": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "gradEth": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "gradTokens": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "lpLocker": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "lpTokenId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "lpLiquidity": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "txns": {
            "type": "integer"
          },
          "lastTradeAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "lastPriceEth": {
            "type": [
              "number",
              "null"
            ]
          },
          "lastPriceUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "iconCid": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": [
              "string",
              "null"
            ]
          },
          "tenant": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "integrator": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "launcher": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^0x[0-9a-f]*$"
          },
          "startTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "legCount": {
            "type": [
              "integer",
              "null"
            ]
          },
          "seedSupply": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "launchFeeWei": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "integratorFeeWei": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "firstBuyQuote": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "firstBuyTokens": {
            "type": [
              "string",
              "null"
            ],
            "description": "Integer as a decimal string."
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "xHandle": {
            "type": [
              "string",
              "null"
            ]
          },
          "telegram": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": true
      },
      "Trades": {
        "type": "object",
        "properties": {
          "head": {
            "type": "object",
            "required": [
              "block",
              "timestamp"
            ],
            "properties": {
              "block": {
                "type": "integer",
                "description": "Newest indexed block, -1 before the first."
              },
              "timestamp": {
                "type": "integer",
                "description": "Unix seconds of that block."
              }
            }
          },
          "trades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trade"
            }
          }
        }
      },
      "AccountTrades": {
        "type": "object",
        "properties": {
          "head": {
            "type": "object",
            "required": [
              "block",
              "timestamp"
            ],
            "properties": {
              "block": {
                "type": "integer",
                "description": "Newest indexed block, -1 before the first."
              },
              "timestamp": {
                "type": "integer",
                "description": "Unix seconds of that block."
              }
            }
          },
          "account": {
            "type": "string"
          },
          "trades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trade"
            }
          }
        }
      },
      "TokenList": {
        "type": "object",
        "properties": {
          "head": {
            "type": "object",
            "required": [
              "block",
              "timestamp"
            ],
            "properties": {
              "block": {
                "type": "integer",
                "description": "Newest indexed block, -1 before the first."
              },
              "timestamp": {
                "type": "integer",
                "description": "Unix seconds of that block."
              }
            }
          },
          "now": {
            "type": "integer"
          },
          "tokens": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Token"
                }
              ],
              "description": "The coin plus market fields (USD price, market cap, liquidity, 24 hour volume and change)."
            }
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "description": "Cursor of the next page; null on the last page. Present when `limit` or `cursor` was sent."
          },
          "total": {
            "type": "integer",
            "description": "Rows that match the filters."
          }
        }
      },
      "TokenDetail": {
        "type": "object",
        "properties": {
          "head": {
            "type": "object",
            "required": [
              "block",
              "timestamp"
            ],
            "properties": {
              "block": {
                "type": "integer",
                "description": "Newest indexed block, -1 before the first."
              },
              "timestamp": {
                "type": "integer",
                "description": "Unix seconds of that block."
              }
            }
          },
          "now": {
            "type": "integer"
          },
          "token": {
            "$ref": "#/components/schemas/Token"
          }
        },
        "additionalProperties": true
      },
      "Candle": {
        "type": "object",
        "properties": {
          "t": {
            "type": "integer",
            "description": "Bucket start, unix seconds."
          },
          "o": {
            "type": "number"
          },
          "h": {
            "type": "number"
          },
          "l": {
            "type": "number"
          },
          "c": {
            "type": "number"
          },
          "v": {
            "type": "number",
            "description": "Volume."
          },
          "buys": {
            "type": "integer"
          },
          "sells": {
            "type": "integer"
          }
        }
      },
      "Candles": {
        "type": "object",
        "properties": {
          "head": {
            "type": "object",
            "required": [
              "block",
              "timestamp"
            ],
            "properties": {
              "block": {
                "type": "integer",
                "description": "Newest indexed block, -1 before the first."
              },
              "timestamp": {
                "type": "integer",
                "description": "Unix seconds of that block."
              }
            }
          },
          "tf": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "15m",
              "1h",
              "4h",
              "1d"
            ]
          },
          "candles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Candle"
            }
          }
        }
      },
      "ChainStats": {
        "type": "object",
        "properties": {
          "chainId": {
            "type": "integer"
          },
          "network": {
            "type": "string",
            "enum": [
              "testnet",
              "mainnet"
            ]
          },
          "testnet": {
            "type": "boolean"
          },
          "label": {
            "type": [
              "string",
              "null"
            ],
            "description": "\"testnet, no real value\" on a testnet."
          },
          "updatedAt": {
            "type": "integer",
            "description": "Unix seconds."
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "stale",
              "partial"
            ]
          },
          "totalValueUsd": {
            "type": [
              "number",
              "null"
            ],
            "description": "All value bridged in, USD, counted once. null when it could not be read."
          },
          "defiTvlUsd": {
            "type": [
              "number",
              "null"
            ],
            "description": "Value in DeFi. A part of totalValueUsd, never added to it."
          },
          "defiRawUsd": {
            "type": [
              "number",
              "null"
            ],
            "description": "The DeFi figure before it is clipped to the total."
          },
          "walletsOtherUsd": {
            "type": [
              "number",
              "null"
            ],
            "description": "totalValueUsd minus defiTvlUsd."
          },
          "byAsset": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "symbol": {
                  "type": "string"
                },
                "amount": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "usd": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "null = unpriced, not counted."
                },
                "priced": {
                  "type": "boolean"
                },
                "share": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Share of the total, 0 to 1."
                }
              }
            }
          },
          "unpricedAssets": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "volume": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "h24": {
                    "type": "number"
                  },
                  "d7": {
                    "type": "number"
                  },
                  "all": {
                    "type": "number"
                  }
                }
              }
            ],
            "description": "USD volume: last 24 hours, 7 days, all time."
          },
          "txs": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "h24": {
                    "type": "number"
                  },
                  "d7": {
                    "type": "number"
                  },
                  "all": {
                    "type": "number"
                  }
                }
              }
            ],
            "description": "Transaction counts."
          },
          "activeWallets": {
            "type": "object",
            "properties": {
              "d1": {
                "type": "integer"
              },
              "d7": {
                "type": "integer"
              }
            }
          },
          "newWallets": {
            "type": "object",
            "properties": {
              "d7": {
                "type": "integer"
              }
            }
          },
          "feesUsd": {
            "type": "object",
            "properties": {
              "d7": {
                "type": "number"
              }
            }
          },
          "coinsLaunched": {
            "type": "integer"
          },
          "apps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "bridgeFlows": {
            "type": "object",
            "properties": {
              "inUsd7d": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "outUsd7d": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "status": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              }
            }
          },
          "history": {
            "type": "object",
            "properties": {
              "days": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "string",
                      "description": "UTC day, YYYY-MM-DD."
                    },
                    "volumeUsd": {
                      "type": "number"
                    },
                    "txs": {
                      "type": "integer"
                    },
                    "activeWallets": {
                      "type": "integer"
                    },
                    "newWallets": {
                      "type": "integer"
                    },
                    "feesUsd": {
                      "type": "number"
                    }
                  }
                }
              },
              "defiTvlUsd": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "string"
                    },
                    "usd": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "methodUrl": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-rate-limit": {
    "headers": [],
    "note": "No per-key limit yet. Answers are cached for a few seconds; use ETag and If-None-Match."
  },
  "x-errors": [
    {
      "code": "error",
      "http": 400,
      "meaning": "A parameter is missing or malformed. The `error` text says which."
    },
    {
      "code": "error",
      "http": 404,
      "meaning": "No such token, pool, quest or record."
    },
    {
      "code": "error",
      "http": 503,
      "meaning": "The figure is not available right now. Retry shortly."
    }
  ],
  "x-try-it": {
    "keyless": true,
    "operations": [
      "getAccountQuests",
      "getAccountXp",
      "getAnalytics",
      "getCandles",
      "getChainStats",
      "getChainTvl",
      "getCreatorEarnings",
      "getCreatorRentals",
      "getCreatorRoyalties",
      "getEdition",
      "getEditionMarket",
      "getEditionSeries",
      "getFeeSeries",
      "getFeed",
      "getFees",
      "getFlywheel",
      "getHead",
      "getHolderRewardAccount",
      "getHolderRewardCoin",
      "getHolderRewardStats",
      "getLpRewardEligibility",
      "getLpRewardStats",
      "getLpRewards",
      "getMirror",
      "getMirrorHookStats",
      "getMirrorSeries",
      "getName",
      "getOriginStats",
      "getPassAccount",
      "getPassCreator",
      "getPassStats",
      "getPool",
      "getQuest",
      "getQuestAnalytics",
      "getQuestLeaderboard",
      "getQuestStats",
      "getRevshare",
      "getSplit",
      "getStreak",
      "getToken",
      "getTokenKinds",
      "getTrending",
      "getTrendingQuests",
      "getTvl",
      "getVolume",
      "getWorkEarnings",
      "listAccountEditions",
      "listAccountTrades",
      "listBadges",
      "listDropClaims",
      "listDrops",
      "listEditions",
      "listHolders",
      "listLocks",
      "listLpRewardClaims",
      "listLpRewardPositions",
      "listMemberships",
      "listMirrorHookPools",
      "listMirrors",
      "listPools",
      "listPositions",
      "listQuestCompletions",
      "listQuests",
      "listSplits",
      "listTokenMirrors",
      "listTokenTrades",
      "listTokens",
      "listWorkEditions",
      "lookupNames"
    ],
    "note": "Testnet data. Runs without any key."
  }
}
