{"openapi":"3.1.0","info":{"title":"Dotlake API","description":"Polkadot, Kusama, & Substrate data on demand to compliment the [data.parity.io](https://data.parity.io) website.\n\n**Authentication Required:** All API endpoints require a valid API key.\n\nYou can authenticate using Bearer token by providing the following header:\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\nSign in with your Polkadot wallet to get an API key.\n\nAttribution required by any public use.\n\nAll information provided in this API is obtained from sources believed to be reliable and accurate at the time of publication. However, no guarantee is made as to the accuracy, completeness, or timeliness of the data. Users should independently verify the information and assume full responsibility for its use. This API is provided 'as is,' without warranties of any kind, either express or implied.","version":"0.1.1"},"paths":{"/api/daily-uptime":{"get":{"tags":["Reliability metrics"],"summary":"Uptime statistics on a rolling 1-day, 7-day, and 30-day basis","description":"Calculates daily uptime metrics for a specified relay chain, chain, and date range. Uptime is defined as the proportion of blocks produced within 60 seconds. For example, any block taking longer than 60 seconds to produce is considered a deviation from uptime.","operationId":"daily_uptime_endpoint_api_daily_uptime_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot, kusama, or solo)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot, kusama, or solo)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name or ecosystem for an aggregated value","examples":["acala"],"title":"Chain"},"description":"The specific chain name or ecosystem for an aggregated value"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2026-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DailyUptime"},"title":"Response Daily Uptime Endpoint Api Daily Uptime Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/daily-tps":{"get":{"tags":["Transaction metrics"],"summary":"Daily Transactions Per Second (TPS)","description":"Fetches daily aggregated metrics for a specified relay chain, chain, and date range. Includes over 25 metrics like total transactions, fees, and more. Use this endpoint to analyze trends or perform comparisons across different chains.","operationId":"daily_tps_endpoint_api_daily_tps_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot, kusama, or solo)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot, kusama, or solo)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name or ecosystem for an aggregated value","examples":["acala"],"title":"Chain"},"description":"The specific chain name or ecosystem for an aggregated value"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2026-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DailyTps"},"title":"Response Daily Tps Endpoint Api Daily Tps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/daily-fees":{"get":{"tags":["Revenue metrics"],"summary":"Daily Fees","description":"Fetches daily fees metrics for a specified relay chain, chain, and date range. Includes aggregate values for the past 30 days.","operationId":"daily_fees_endpoint_api_daily_fees_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot or kusama, or westend for test network, or solo)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot or kusama, or westend for test network, or solo)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name or ecosystem for an aggregated value","examples":["acala"],"title":"Chain"},"description":"The specific chain name or ecosystem for an aggregated value"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2026-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DailyFees"},"title":"Response Daily Fees Endpoint Api Daily Fees Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/daily-opengov-referenda-results":{"get":{"tags":["Governance metrics"],"summary":"OpenGov stats such as referendum_index, track, and origin","description":"Calculates OpenGov stats such as referendum_index, track, and origin.","operationId":"daily_opengov_referendum_results_endpoint_api_daily_opengov_referenda_results_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name","examples":["polkadot"],"title":"Chain"},"description":"The specific chain name"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2026-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenGovReferendumResult"},"title":"Response Daily Opengov Referendum Results Endpoint Api Daily Opengov Referenda Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/daily-staking-participation":{"get":{"tags":["Staking metrics"],"summary":"Staking participation statistics","description":"Calculates daily staking participation statistics for Polkadot. Includes metrics such as number of validators, nominators, pool members, and total staked DOT.","operationId":"daily_staking_participation_endpoint_api_daily_staking_participation_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name","examples":["polkadot"],"title":"Chain"},"description":"The specific chain name"},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2022-01-01","examples":["2024-12-31"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2022-01-01"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2025-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DailyStakingParticipation"},"title":"Response Daily Staking Participation Endpoint Api Daily Staking Participation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/daily-staking-rewards":{"get":{"tags":["Staking metrics"],"summary":"Staking rewards for specific account(s)","description":"Calculates daily staking rewards metrics for a specified relay chain, chain, account(s), and date range. Includes reward amounts in native tokens.","operationId":"daily_staking_rewards_endpoint_api_daily_staking_rewards_get","parameters":[{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name","examples":["polkadot"],"title":"Chain"},"description":"The specific chain name"},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2024-01-01","examples":["2025-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2024-01-01"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2025-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"},{"name":"accounts","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Account address(es) to filter by","examples":["12x3EG6dvZv9h3sLNaEFd4z2q8259tNgiEU6vismjrEZjbzN"],"title":"Accounts"},"description":"Account address(es) to filter by"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DailyStakingRewards"},"title":"Response Daily Staking Rewards Endpoint Api Daily Staking Rewards Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/daily-summary":{"get":{"tags":["Summary metrics"],"summary":"Daily Summary Metrics","description":"Fetches daily aggregated metrics for a specified relay chain, chain, and date range. Includes over 25 metrics like total transactions, fees, and more. Use this endpoint to analyze trends or perform comparisons across different chains.","operationId":"daily_summary_endpoint_api_daily_summary_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot, kusama, or solo)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot, kusama, or solo)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name or ecosystem for an aggregated value","examples":["acala"],"title":"Chain"},"description":"The specific chain name or ecosystem for an aggregated value"},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2025-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2025-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DailySummary"},"title":"Response Daily Summary Endpoint Api Daily Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/daily-usdc":{"get":{"tags":["Transactions metrics"],"summary":"Amount of USDC held by chains","description":"Calculates amount of USDC held by chains. For Polkadot, use polkadot_asset_hub as the chain name.","operationId":"daily_usdc_endpoint_api_daily_usdc_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name, or polkadot_asset_hub for polkadot","examples":["polkadot_asset_hub"],"title":"Chain"},"description":"The specific chain name, or polkadot_asset_hub for polkadot"},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2025-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2025-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DailyUSDC"},"title":"Response Daily Usdc Endpoint Api Daily Usdc Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/daily-usdt":{"get":{"tags":["Transactions metrics"],"summary":"Amount of USDt (Tether) held by chains","description":"Calculates amount of USDt (Tether) held by chains. For Polkadot, use polkadot_asset_hub as the chain name.","operationId":"daily_usdt_endpoint_api_daily_usdt_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name, or polkadot_asset_hub for polkadot","examples":["polkadot_asset_hub"],"title":"Chain"},"description":"The specific chain name, or polkadot_asset_hub for polkadot"},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2025-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2025-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DailyUSDT"},"title":"Response Daily Usdt Endpoint Api Daily Usdt Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/monthly-active-validators":{"get":{"tags":["Validator metrics"],"summary":"Monthly Active Validators","description":"Calculates monthly active validators for a specified relay chain, chain, and date range. Includes metrics such as total validators, active validators, and their distribution across different categories.","operationId":"monthly_active_validators_endpoint_api_monthly_active_validators_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot, kusama, or solo)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot, kusama, or solo)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name or ecosystem for an aggregated value","examples":["acala"],"title":"Chain"},"description":"The specific chain name or ecosystem for an aggregated value"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2026-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MonthlyActiveValidators"},"title":"Response Monthly Active Validators Endpoint Api Monthly Active Validators Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/monthly-opengov-participation":{"get":{"tags":["Governance metrics"],"summary":"OpenGov stats such as voter type, number of voters, and number of referenda","description":"Calculates OpenGov stats such as voter type, number of voters, and number of referenda.","operationId":"monthly_opengov_participation_endpoint_api_monthly_opengov_participation_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name","examples":["polkadot"],"title":"Chain"},"description":"The specific chain name"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2026-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MonthlyOpenGovParticipation"},"title":"Response Monthly Opengov Participation Endpoint Api Monthly Opengov Participation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/monthly-opengov-tokens":{"get":{"tags":["Governance metrics"],"summary":"OpenGov stats such as voter type, number of DOT tokens voted, and number of referenda","description":"Calculates OpenGov stats such as voter type, number of DOT tokens voted, and number of referenda.","operationId":"monthly_opengov_tokens_endpoint_api_monthly_opengov_tokens_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name","examples":["polkadot"],"title":"Chain"},"description":"The specific chain name"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2026-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MonthlyOpenGovTokens"},"title":"Response Monthly Opengov Tokens Endpoint Api Monthly Opengov Tokens Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/monthly-percent-staked":{"get":{"tags":["Staking metrics"],"summary":"Staking information such as total DOT staked and percentage staked","description":"Calculates monthly percent staked for the Polkadot relay chain. Includes total DOT issuance, total staked DOT, and the percentage of DOT that is staked.","operationId":"monthly_percent_staked_endpoint_api_monthly_percent_staked_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name","examples":["polkadot"],"title":"Chain"},"description":"The specific chain name"},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2022-01-01","examples":["2024-12-31"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2022-01-01"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2025-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MonthlyPercentStaked"},"title":"Response Monthly Percent Staked Endpoint Api Monthly Percent Staked Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/monthly-treasury-balances":{"get":{"tags":["Treasury metrics"],"summary":"Monthly Treasury Balances","description":"Calculates monthly treasury balances for a specified relay chain, chain, and date range. Includes metrics such as total balance, balance distribution, and their values in both native tokens and USD.","operationId":"monthly_treasury_balances_endpoint_api_monthly_treasury_balances_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot, kusama, or solo)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot, kusama, or solo)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name or ecosystem for an aggregated value","examples":["acala"],"title":"Chain"},"description":"The specific chain name or ecosystem for an aggregated value"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2026-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MonthlyTreasuryBalances"},"title":"Response Monthly Treasury Balances Endpoint Api Monthly Treasury Balances Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/monthly-unique-accounts":{"get":{"tags":["Account metrics"],"summary":"Monthly Unique Accounts","description":"Calculates monthly unique accounts for a specified relay chain, chain, and date range. Includes metrics such as total accounts, active accounts, and their distribution across different categories.","operationId":"monthly_unique_accounts_endpoint_api_monthly_unique_accounts_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"The relay chain name (polkadot, kusama, or solo)","examples":["polkadot"],"title":"Relay Chain"},"description":"The relay chain name (polkadot, kusama, or solo)"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"The specific chain name or ecosystem for an aggregated value","examples":["acala"],"title":"Chain"},"description":"The specific chain name or ecosystem for an aggregated value"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01","examples":["2026-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD) since 2023-01-01"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MonthlyUniqueAccounts"},"title":"Response Monthly Unique Accounts Endpoint Api Monthly Unique Accounts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contracts-deployed-heatmap":{"get":{"tags":["Contracts metrics"],"summary":"Contracts deployed heatmap data","description":"Returns count of contracts deployed per date and chain on AssetHub.","operationId":"contracts_deployed_heatmap_endpoint_api_contracts_deployed_heatmap_get","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD)","examples":["2025-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContractsDeployedHeatmap"},"title":"Response Contracts Deployed Heatmap Endpoint Api Contracts Deployed Heatmap Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contract-calls-heatmap":{"get":{"tags":["Contracts metrics"],"summary":"Contract calls heatmap data","description":"Returns count of contract calls per date and chain on AssetHub.","operationId":"contract_calls_heatmap_endpoint_api_contract_calls_heatmap_get","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD)","examples":["2025-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContractCallsHeatmap"},"title":"Response Contract Calls Heatmap Endpoint Api Contract Calls Heatmap Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contracts-search":{"get":{"tags":["Contracts metrics"],"summary":"Search contracts by address","description":"Search for contract instances by H160 contract address on AssetHub.","operationId":"contracts_search_endpoint_api_contracts_search_get","parameters":[{"name":"addresses","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Contract address(es) in H160 hex format","examples":["0x1234567890abcdef1234567890abcdef12345678"],"title":"Addresses"},"description":"Contract address(es) in H160 hex format"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Not used for this endpoint","title":"Start Date"},"description":"Not used for this endpoint"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Not used for this endpoint","title":"End Date"},"description":"Not used for this endpoint"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContractInstance"},"title":"Response Contracts Search Endpoint Api Contracts Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contract-transactions-search":{"get":{"tags":["Contracts metrics"],"summary":"Search contract transactions by address","description":"Search for transactions involving an address (as from, to, or contract) on AssetHub.","operationId":"contract_transactions_search_endpoint_api_contract_transactions_search_get","parameters":[{"name":"addresses","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Address(es) in H160 hex format","examples":["0x1234567890abcdef1234567890abcdef12345678"],"title":"Addresses"},"description":"Address(es) in H160 hex format"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date in ISO 8601 format (YYYY-MM-DD)","examples":["2025-01-01"],"title":"Start Date"},"description":"Start date in ISO 8601 format (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date in ISO 8601 format (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date in ISO 8601 format (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContractTransaction"},"title":"Response Contract Transactions Search Endpoint Api Contract Transactions Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/code-by-owner":{"get":{"tags":["Contracts metrics"],"summary":"Search code info by owner address","description":"Search for uploaded code info by owner SS58 address on AssetHub.","operationId":"code_by_owner_endpoint_api_code_by_owner_get","parameters":[{"name":"addresses","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Owner address(es) in SS58 format","examples":["12x3EG6dvZv9h3sLNaEFd4z2q8259tNgiEU6vismjrEZjbzN"],"title":"Addresses"},"description":"Owner address(es) in SS58 format"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CodeInfo"},"title":"Response Code By Owner Endpoint Api Code By Owner Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contracts-with-code":{"get":{"tags":["Contracts metrics"],"summary":"Contracts with code owner, type, and length","description":"Returns contracts joined with code info (owner, code_type, code_len) from the latest snapshot. Filter by relay_chain, contract_address, or owner.","operationId":"contracts_with_code_endpoint_api_contracts_with_code_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name (polkadot, kusama, paseo, westend)","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name (polkadot, kusama, paseo, westend)"},{"name":"contract_address","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by H160 contract address","examples":["0x1234567890abcdef1234567890abcdef12345678"],"title":"Contract Address"},"description":"Filter by H160 contract address"},{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by code owner (SS58 address)","examples":["12x3EG6dvZv9h3sLNaEFd4z2q8259tNgiEU6vismjrEZjbzN"],"title":"Owner"},"description":"Filter by code owner (SS58 address)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContractWithCodeInfo"},"title":"Response Contracts With Code Endpoint Api Contracts With Code Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contract-call-details":{"get":{"tags":["Contracts metrics"],"summary":"Contract transaction details","description":"Returns individual contract transactions with full details (gas, value, addresses, etc.).","operationId":"contract_call_details_endpoint_api_contract_call_details_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name (polkadot, kusama, paseo, westend)","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name (polkadot, kusama, paseo, westend)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContractCallDetail"},"title":"Response Contract Call Details Endpoint Api Contract Call Details Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/coretime-sales":{"get":{"tags":["Coretime metrics"],"summary":"Coretime sale cycles","description":"List all Coretime sale cycles with pricing parameters, capacity, and burn. Each sale cycle is identified by its region_begin timeslice.","operationId":"coretime_sales_endpoint_api_coretime_sales_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name (e.g. polkadot, kusama)","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name (e.g. polkadot, kusama)"},{"name":"region_begin","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by sale cycle (region begin timeslice)","title":"Region Begin"},"description":"Filter by sale cycle (region begin timeslice)"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD)","examples":["2024-01-01"],"title":"Start Date"},"description":"Start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoretimeSale"},"title":"Response Coretime Sales Endpoint Api Coretime Sales Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/coretime-sale-metrics":{"get":{"tags":["Coretime metrics"],"summary":"Coretime sale cycle aggregated metrics","description":"Aggregated metrics per sale cycle including bulk purchases, renewals, spend breakdown, and total burn.","operationId":"coretime_sale_metrics_endpoint_api_coretime_sale_metrics_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name"},{"name":"region_begin","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by sale cycle (region begin timeslice)","title":"Region Begin"},"description":"Filter by sale cycle (region begin timeslice)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoretimeSaleMetrics"},"title":"Response Coretime Sale Metrics Endpoint Api Coretime Sale Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/coretime-purchases":{"get":{"tags":["Coretime metrics"],"summary":"Coretime purchases","description":"List Coretime purchases (bulk and/or renewal). Filter by sale cycle, buyer account, purchase type, or date range.","operationId":"coretime_purchases_endpoint_api_coretime_purchases_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name"},{"name":"region_begin","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Sale cycle (region begin timeslice)","title":"Region Begin"},"description":"Sale cycle (region begin timeslice)"},{"name":"who","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Buyer account address","title":"Who"},"description":"Buyer account address"},{"name":"purchase_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by purchase type: 'bulk' or 'renewal'","title":"Purchase Type"},"description":"Filter by purchase type: 'bulk' or 'renewal'"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD)","examples":["2024-01-01"],"title":"Start Date"},"description":"Start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoretimePurchase"},"title":"Response Coretime Purchases Endpoint Api Coretime Purchases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/coretime-renewals":{"get":{"tags":["Coretime metrics"],"summary":"Coretime renewals","description":"List Coretime renewal events with old/new core mapping, workload, and pricing. Filter by sale cycle, buyer, or date range.","operationId":"coretime_renewals_endpoint_api_coretime_renewals_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name"},{"name":"region_begin","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Sale cycle (region begin timeslice)","title":"Region Begin"},"description":"Sale cycle (region begin timeslice)"},{"name":"who","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Buyer account address","title":"Who"},"description":"Buyer account address"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD)","examples":["2024-01-01"],"title":"Start Date"},"description":"Start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoretimeRenewal"},"title":"Response Coretime Renewals Endpoint Api Coretime Renewals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/coretime-account-spend":{"get":{"tags":["Coretime metrics"],"summary":"Coretime spend per account","description":"Aggregated Coretime spend per account across all purchases and renewals, including first/last purchase timestamps.","operationId":"coretime_account_spend_endpoint_api_coretime_account_spend_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name"},{"name":"who","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Account address to filter","title":"Who"},"description":"Account address to filter"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoretimeAccountSpend"},"title":"Response Coretime Account Spend Endpoint Api Coretime Account Spend Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/coretime-total-burn":{"get":{"tags":["Coretime metrics"],"summary":"Coretime total lifetime burn","description":"Total lifetime burn across all Coretime purchases and renewals, grouped by relay chain.","operationId":"coretime_total_burn_endpoint_api_coretime_total_burn_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoretimeTotalBurn"},"title":"Response Coretime Total Burn Endpoint Api Coretime Total Burn Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/coretime-regions":{"get":{"tags":["Coretime metrics"],"summary":"Coretime regions (current state)","description":"Current state of Coretime regions including owner, assigned task, and duration. Filter by region ID components or owner.","operationId":"coretime_regions_endpoint_api_coretime_regions_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name"},{"name":"region_begin","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Region begin timeslice","title":"Region Begin"},"description":"Region begin timeslice"},{"name":"r_core","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Region core index","title":"R Core"},"description":"Region core index"},{"name":"r_mask","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Region mask (hex, e.g. 0xffffffffffff)","title":"R Mask"},"description":"Region mask (hex, e.g. 0xffffffffffff)"},{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by current owner account","title":"Owner"},"description":"Filter by current owner account"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoretimeRegion"},"title":"Response Coretime Regions Endpoint Api Coretime Regions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/coretime-region-events":{"get":{"tags":["Coretime metrics"],"summary":"Coretime region events","description":"Append-only log of region events: Transfer, Partition, Interlace, Assign. Filter by event type, region ID, or date range.","operationId":"coretime_region_events_endpoint_api_coretime_region_events_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name"},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Event type: Transfer, Partition, Interlace, or Assign","title":"Event Type"},"description":"Event type: Transfer, Partition, Interlace, or Assign"},{"name":"region_begin","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Region begin timeslice","title":"Region Begin"},"description":"Region begin timeslice"},{"name":"r_core","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Region core index","title":"R Core"},"description":"Region core index"},{"name":"r_mask","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Region mask (hex)","title":"R Mask"},"description":"Region mask (hex)"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD)","examples":["2024-01-01"],"title":"Start Date"},"description":"Start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoretimeRegionEvent"},"title":"Response Coretime Region Events Endpoint Api Coretime Region Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/coretime-region-history":{"get":{"tags":["Coretime metrics"],"summary":"Coretime region history","description":"Full event history for a specific region. Requires region_begin and r_core to identify the region.","operationId":"coretime_region_history_endpoint_api_coretime_region_history_get","parameters":[{"name":"region_begin","in":"query","required":true,"schema":{"type":"integer","description":"Region begin timeslice (required)","title":"Region Begin"},"description":"Region begin timeslice (required)","examples":[{"value":289855}]},{"name":"r_core","in":"query","required":true,"schema":{"type":"integer","description":"Region core index (required)","title":"R Core"},"description":"Region core index (required)","examples":[{"value":55}]},{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain name","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain name"},{"name":"r_mask","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Region mask (hex)","title":"R Mask"},"description":"Region mask (hex)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoretimeRegionEvent"},"title":"Response Coretime Region History Endpoint Api Coretime Region History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/opengov-voter-history":{"get":{"tags":["Governance metrics"],"summary":"OpenGov voter history per referendum","description":"Returns per-referendum voter records including conviction, vote direction, capital, votes, and delegated votes. Filter by referendum_index or voter address.","operationId":"opengov_voter_history_endpoint_api_opengov_voter_history_get","parameters":[{"name":"referendum_index","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Referendum index to filter by","examples":["100"],"title":"Referendum Index"},"description":"Referendum index to filter by"},{"name":"voter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Voter address to filter by","title":"Voter"},"description":"Voter address to filter by"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenGovVoterHistory"},"title":"Response Opengov Voter History Endpoint Api Opengov Voter History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/opengov-parent-bounty-summary":{"get":{"tags":["Governance metrics"],"summary":"OpenGov parent bounty summary","description":"Aggregated parent bounty metrics including child bounty counts, total claimed amounts, average claimed, and beneficiary statistics.","operationId":"opengov_parent_bounty_summary_endpoint_api_opengov_parent_bounty_summary_get","parameters":[{"name":"parent_bounty_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Parent bounty ID to filter by","examples":["1"],"title":"Parent Bounty Id"},"description":"Parent bounty ID to filter by"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenGovParentBountySummary"},"title":"Response Opengov Parent Bounty Summary Endpoint Api Opengov Parent Bounty Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/opengov-child-bounties":{"get":{"tags":["Governance metrics"],"summary":"OpenGov child bounties","description":"Individual child bounty records including parent bounty info, status, claimed amounts (native and USD), and beneficiary details. Filter by chain or parent_bounty_id.","operationId":"opengov_child_bounties_endpoint_api_opengov_child_bounties_get","parameters":[{"name":"chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Chain name to filter by","examples":["polkadot"],"title":"Chain"},"description":"Chain name to filter by"},{"name":"parent_bounty_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Parent bounty ID to filter by","examples":["1"],"title":"Parent Bounty Id"},"description":"Parent bounty ID to filter by"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD) filters on parent_bounty_start_date","examples":["2024-01-01"],"title":"Start Date"},"description":"Start date (YYYY-MM-DD) filters on parent_bounty_start_date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD) filters on parent_bounty_start_date","examples":["2026-01-31"],"title":"End Date"},"description":"End date (YYYY-MM-DD) filters on parent_bounty_start_date"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenGovChildBounty"},"title":"Response Opengov Child Bounties Endpoint Api Opengov Child Bounties Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/explorer/network-stats":{"get":{"tags":["Explorer"],"summary":"24-hour network statistics","description":"Aggregated stats for the explorer dashboard: transaction count, active accounts, success rate, and latest block number over the last 24 hours.","operationId":"explorer_network_stats_endpoint_api_explorer_network_stats_get","parameters":[{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"Chain to query (statemint = Asset Hub)","examples":["statemint"],"default":"statemint","title":"Chain"},"description":"Chain to query (statemint = Asset Hub)"},{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"Relay chain filter","examples":["polkadot"],"default":"polkadot","title":"Relay Chain"},"description":"Relay chain filter"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExplorerNetworkStats"},"title":"Response Explorer Network Stats Endpoint Api Explorer Network Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/explorer/recent-extrinsics":{"get":{"tags":["Explorer"],"summary":"Recent extrinsics with domain classification","description":"Returns the most recent extrinsics from the last 24 hours, classified into functional domains (Assets, Staking, Governance, Compute, Consensus, System). Optionally filter by signer address.","operationId":"explorer_recent_extrinsics_endpoint_api_explorer_recent_extrinsics_get","parameters":[{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"Chain to query (statemint = Asset Hub)","examples":["statemint"],"default":"statemint","title":"Chain"},"description":"Chain to query (statemint = Asset Hub)"},{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"Relay chain filter","examples":["polkadot"],"default":"polkadot","title":"Relay Chain"},"description":"Relay chain filter"},{"name":"address","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to extrinsics signed by this address","title":"Address"},"description":"Filter to extrinsics signed by this address"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max results to return (1-100)","default":20,"title":"Limit"},"description":"Max results to return (1-100)"},{"name":"exclude_domains","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated domain names to exclude (e.g. 'System,Consensus')","examples":["System,Consensus"],"title":"Exclude Domains"},"description":"Comma-separated domain names to exclude (e.g. 'System,Consensus')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExplorerExtrinsic"},"title":"Response Explorer Recent Extrinsics Endpoint Api Explorer Recent Extrinsics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/explorer/domain-activity":{"get":{"tags":["Explorer"],"summary":"Hourly activity by functional domain","description":"Extrinsic counts grouped by functional domain and hour over the last 24 hours. Used for the domain cards on the Network Pulse page.","operationId":"explorer_domain_activity_endpoint_api_explorer_domain_activity_get","parameters":[{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"Chain to query (statemint = Asset Hub)","examples":["statemint"],"default":"statemint","title":"Chain"},"description":"Chain to query (statemint = Asset Hub)"},{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"Relay chain filter","examples":["polkadot"],"default":"polkadot","title":"Relay Chain"},"description":"Relay chain filter"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExplorerDomainActivity"},"title":"Response Explorer Domain Activity Endpoint Api Explorer Domain Activity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/explorer/block/{block_number}":{"get":{"tags":["Explorer"],"summary":"Block detail with extrinsics","description":"Returns block metadata (hash, timestamp, validator) and all extrinsics for a given block number.","operationId":"explorer_block_endpoint_api_explorer_block__block_number__get","parameters":[{"name":"block_number","in":"path","required":true,"schema":{"type":"string","title":"Block Number"}},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"Chain to query","examples":["polkadot"],"default":"polkadot","title":"Chain"},"description":"Chain to query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplorerBlockDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/explorer/extrinsic/{extrinsic_hash}":{"get":{"tags":["Explorer"],"summary":"Extrinsic detail","description":"Returns full extrinsic detail including args, events, nonce, tip, and block index.","operationId":"explorer_extrinsic_endpoint_api_explorer_extrinsic__extrinsic_hash__get","parameters":[{"name":"extrinsic_hash","in":"path","required":true,"schema":{"type":"string","title":"Extrinsic Hash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplorerExtrinsicDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/explorer/account/{address}/summary":{"get":{"tags":["Explorer"],"summary":"Account summary stats","description":"Aggregated stats for an account: total transactions, first/last seen timestamps, and top 3 most-used pallets.","operationId":"explorer_account_summary_endpoint_api_explorer_account__address__summary_get","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"Chain to query","examples":["polkadot"],"default":"polkadot","title":"Chain"},"description":"Chain to query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplorerAccountSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/explorer/search":{"get":{"tags":["Explorer"],"summary":"Search blocks, extrinsics, and accounts","description":"Classifies a query string (block number, extrinsic hash, or account address) and returns typed results with existence checks against the database.","operationId":"explorer_search_endpoint_api_explorer_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"Search query: block number, extrinsic hash (0x...), or account address","title":"Q"},"description":"Search query: block number, extrinsic hash (0x...), or account address"},{"name":"chain","in":"query","required":false,"schema":{"type":"string","description":"Chain to search in","examples":["polkadot"],"default":"polkadot","title":"Chain"},"description":"Chain to search in"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExplorerSearchResult"},"title":"Response Explorer Search Endpoint Api Explorer Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/xcm-transfers":{"get":{"tags":["XCM metrics"],"summary":"List XCM transfers with filters","description":"Returns XCM transfer rows from daily_etl.xcm_transfers. Supports filtering by relay/origin/dest chain, account (origin or dest), asset symbol, xcm type, outcome, message hash/id, origin extrinsic, and date range. Ordered newest first.","operationId":"xcm_transfers_endpoint_api_xcm_transfers_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Relay chain (polkadot, kusama)","examples":["polkadot"],"title":"Relay Chain"},"description":"Relay chain (polkadot, kusama)"},{"name":"origin_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Origin chain name","examples":["statemint"],"title":"Origin Chain"},"description":"Origin chain name"},{"name":"dest_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Destination chain name","examples":["hydration"],"title":"Dest Chain"},"description":"Destination chain name"},{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to messages where this address is origin or destination (raw or SS58)","title":"Account"},"description":"Filter to messages where this address is origin or destination (raw or SS58)"},{"name":"asset_symbol","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Asset symbol (e.g. DOT, USDT)","examples":["DOT"],"title":"Asset Symbol"},"description":"Asset symbol (e.g. DOT, USDT)"},{"name":"xcm_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"XCM type (e.g. xcmTransfer, ump, hrmp)","title":"Xcm Type"},"description":"XCM type (e.g. xcmTransfer, ump, hrmp)"},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Outcome filter (e.g. Complete, Incomplete, Error)","title":"Outcome"},"description":"Outcome filter (e.g. Complete, Incomplete, Error)"},{"name":"message_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact message_hash","title":"Message Hash"},"description":"Exact message_hash"},{"name":"message_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact message_id","title":"Message Id"},"description":"Exact message_id"},{"name":"origin_extrinsic_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Origin extrinsic hash","title":"Origin Extrinsic Hash"},"description":"Origin extrinsic hash"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD)","examples":["2025-01-01"],"title":"Start Date"},"description":"Start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date (YYYY-MM-DD)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max results (1-500)","default":50,"title":"Limit"},"description":"Max results (1-500)"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Pagination offset","default":0,"title":"Offset"},"description":"Pagination offset"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/XcmTransfer"},"title":"Response Xcm Transfers Endpoint Api Xcm Transfers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/xcm-transfers-count":{"get":{"tags":["XCM metrics"],"summary":"Count XCM transfers matching filters","description":"Returns {count: int} for the same filter set as /xcm-transfers. Used for paginated tables that need a total count.","operationId":"xcm_transfers_count_endpoint_api_xcm_transfers_count_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relay Chain"}},{"name":"origin_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Chain"}},{"name":"dest_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Chain"}},{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account"}},{"name":"asset_symbol","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Symbol"}},{"name":"xcm_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xcm Type"}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"}},{"name":"message_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Hash"}},{"name":"message_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"}},{"name":"origin_extrinsic_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Extrinsic Hash"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Xcm Transfers Count Endpoint Api Xcm Transfers Count Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/xcm-transfer":{"get":{"tags":["XCM metrics"],"summary":"XCM transfer detail by message hash, message id, or origin extrinsic","description":"Returns full detail for a single XCM message including raw xcm_msg and origin/dest event payloads. At least one of message_hash, message_id, or origin_extrinsic_hash must be provided.","operationId":"xcm_transfer_detail_endpoint_api_xcm_transfer_get","parameters":[{"name":"message_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Message hash (preferred lookup)","title":"Message Hash"},"description":"Message hash (preferred lookup)"},{"name":"message_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Message id","title":"Message Id"},"description":"Message id"},{"name":"origin_extrinsic_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Origin extrinsic hash","title":"Origin Extrinsic Hash"},"description":"Origin extrinsic hash"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XcmTransferDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/xcm-summary":{"get":{"tags":["XCM metrics"],"summary":"Aggregate XCM stats over a recent window","description":"Returns total/completed/failed/matched message counts, success rate, and latency statistics for the last N hours. Used by the explorer Network Pulse XCM sidebar.","operationId":"xcm_summary_endpoint_api_xcm_summary_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"Relay chain (polkadot, kusama)","examples":["polkadot"],"default":"polkadot","title":"Relay Chain"},"description":"Relay chain (polkadot, kusama)"},{"name":"window_hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"description":"Window size in hours (1-720)","default":24,"title":"Window Hours"},"description":"Window size in hours (1-720)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/XcmSummary"},"title":"Response Xcm Summary Endpoint Api Xcm Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/xcm-daily-stats":{"get":{"tags":["XCM metrics"],"summary":"Daily XCM message counts and value","description":"Per-day XCM message counts and USD value for a relay chain. With group_by_route=true, aggregates by (date, origin_chain, dest_chain) instead of just date.","operationId":"xcm_daily_stats_endpoint_api_xcm_daily_stats_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"Relay chain (polkadot, kusama)","examples":["polkadot"],"default":"polkadot","title":"Relay Chain"},"description":"Relay chain (polkadot, kusama)"},{"name":"origin_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by origin chain","title":"Origin Chain"},"description":"Filter by origin chain"},{"name":"dest_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by destination chain","title":"Dest Chain"},"description":"Filter by destination chain"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD)","examples":["2025-01-01"],"title":"Start Date"},"description":"Start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD)","examples":["2026-01-31"],"title":"End Date"},"description":"End date (YYYY-MM-DD)"},{"name":"group_by_route","in":"query","required":false,"schema":{"type":"boolean","description":"If true, group by (date, origin_chain, dest_chain)","default":false,"title":"Group By Route"},"description":"If true, group by (date, origin_chain, dest_chain)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/XcmDailyStats"},"title":"Response Xcm Daily Stats Endpoint Api Xcm Daily Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/xcm-top-routes":{"get":{"tags":["XCM metrics"],"summary":"Top XCM routes by message count","description":"Top origin→destination routes by message count over a recent time window, with completion count, value, and average latency.","operationId":"xcm_top_routes_endpoint_api_xcm_top_routes_get","parameters":[{"name":"relay_chain","in":"query","required":false,"schema":{"type":"string","description":"Relay chain (polkadot, kusama)","examples":["polkadot"],"default":"polkadot","title":"Relay Chain"},"description":"Relay chain (polkadot, kusama)"},{"name":"window_hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"description":"Window size in hours (1-720)","default":24,"title":"Window Hours"},"description":"Window size in hours (1-720)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max routes to return (1-100)","default":10,"title":"Limit"},"description":"Max routes to return (1-100)"},{"name":"matched_only","in":"query","required":false,"schema":{"type":"boolean","description":"If true, restrict to matched messages (both origin and dest observed). Recommended for Sankey-style flow charts so unmatched routes (empty dest_chain) don't dominate.","default":false,"title":"Matched Only"},"description":"If true, restrict to matched messages (both origin and dest observed). Recommended for Sankey-style flow charts so unmatched routes (empty dest_chain) don't dominate."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/XcmRoute"},"title":"Response Xcm Top Routes Endpoint Api Xcm Top Routes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}}},"components":{"schemas":{"CodeInfo":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"code_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Hash"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"deposit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Deposit"},"refcount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refcount"}},"type":"object","required":["relay_chain","chain"],"title":"CodeInfo","description":"Model for code info from codeInfoOf"},"ContractCallDetail":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"extrinsic_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extrinsic Hash"},"sender_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Address"},"tx_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tx Hash"},"nonce":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nonce"},"gas_price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gas Price"},"gas_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gas Limit"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data"},"block_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Block Number"},"block_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Hash"},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Hash"},"transaction_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transaction Index"},"transaction_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Type"},"from_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Address"},"to_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Address"},"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"},"gas_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gas Used"},"gas_cost_native_token":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gas Cost Native Token"},"gas_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gas Cost Usd"}},"type":"object","required":["date","relay_chain","chain"],"title":"ContractCallDetail","description":"Model for individual contract transaction detail"},"ContractCallsHeatmap":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"contract_calls":{"type":"integer","title":"Contract Calls"}},"type":"object","required":["date","relay_chain","chain","contract_calls"],"title":"ContractCallsHeatmap","description":"Model for contract calls heatmap data"},"ContractInstance":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"contract_address":{"type":"string","title":"Contract Address"},"code_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Hash"},"trie_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trie Id"},"storage_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Storage Bytes"},"storage_items":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Storage Items"},"storage_byte_deposit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Storage Byte Deposit"},"storage_item_deposit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Storage Item Deposit"},"storage_base_deposit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Storage Base Deposit"}},"type":"object","required":["relay_chain","chain","contract_address"],"title":"ContractInstance","description":"Model for contract instance from accountInfoOf"},"ContractTransaction":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"block_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Block Number"},"extrinsic_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extrinsic Hash"},"sender_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Address"},"from_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Address"},"to_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Address"},"contract_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Address"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"gas_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gas Limit"},"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"}},"type":"object","required":["date","relay_chain","chain"],"title":"ContractTransaction","description":"Model for contract transaction from transactions_with_gas"},"ContractWithCodeInfo":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"contract_address":{"type":"string","title":"Contract Address"},"storage_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Storage Bytes"},"code_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Type"},"code_len":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Code Len"},"code_owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Owner"}},"type":"object","required":["date","relay_chain","chain","contract_address"],"title":"ContractWithCodeInfo","description":"Model for contract instance joined with code info (owner, type, length)"},"ContractsDeployedHeatmap":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"contracts_deployed":{"type":"integer","title":"Contracts Deployed"}},"type":"object","required":["date","relay_chain","chain","contracts_deployed"],"title":"ContractsDeployedHeatmap","description":"Model for contracts deployed heatmap data"},"CoretimeAccountSpend":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain"},"who":{"type":"string","title":"Who","description":"Account address"},"bulk_purchases":{"type":"integer","title":"Bulk Purchases"},"renewals":{"type":"integer","title":"Renewals"},"total_spend":{"type":"string","title":"Total Spend","description":"Total spend (Planck)"},"first_purchase":{"type":"string","title":"First Purchase","description":"Timestamp of first purchase"},"last_purchase":{"type":"string","title":"Last Purchase","description":"Timestamp of most recent purchase"}},"type":"object","required":["relay_chain","who","bulk_purchases","renewals","total_spend","first_purchase","last_purchase"],"title":"CoretimeAccountSpend","description":"Aggregated spend per account across all Coretime purchases and renewals."},"CoretimePurchase":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier (block_number_event_idx)"},"relay_chain":{"type":"string","title":"Relay Chain"},"region_begin":{"type":"integer","title":"Region Begin","description":"Sale cycle this purchase belongs to"},"who":{"type":"string","title":"Who","description":"Buyer account address"},"r_begin":{"type":"integer","title":"R Begin","description":"Region begin timeslice"},"r_core":{"type":"integer","title":"R Core","description":"Region core index"},"r_mask":{"type":"string","title":"R Mask","description":"Region mask (hex)"},"mask_label":{"type":"string","title":"Mask Label","description":"Human-readable mask (e.g. 'Full core', '40/80')"},"duration":{"type":"integer","title":"Duration","description":"Timeslice duration"},"price":{"type":"string","title":"Price","description":"Price paid (Planck)"},"purchase_type":{"type":"string","title":"Purchase Type","description":"'bulk' or 'renewal'"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"string","title":"Timestamp"},"date":{"type":"string","title":"Date"}},"type":"object","required":["id","relay_chain","region_begin","who","r_begin","r_core","r_mask","mask_label","duration","price","purchase_type","block_number","timestamp","date"],"title":"CoretimePurchase","description":"A single Coretime purchase (bulk or renewal) from the Broker pallet."},"CoretimeRegion":{"properties":{"r_begin":{"type":"integer","title":"R Begin","description":"Region begin timeslice"},"r_core":{"type":"integer","title":"R Core","description":"Region core index"},"r_mask":{"type":"string","title":"R Mask","description":"Region mask (hex)"},"mask_label":{"type":"string","title":"Mask Label","description":"Human-readable mask (e.g. 'Full core', '40/80')"},"relay_chain":{"type":"string","title":"Relay Chain"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner","description":"Current owner account"},"duration":{"type":"integer","title":"Duration"},"assigned_task":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assigned Task","description":"Assigned task/ParaId"},"source_event":{"type":"string","title":"Source Event","description":"Event that created this region state"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"string","title":"Timestamp"},"date":{"type":"string","title":"Date"}},"type":"object","required":["r_begin","r_core","r_mask","mask_label","relay_chain","duration","source_event","block_number","timestamp","date"],"title":"CoretimeRegion","description":"Current state of a Coretime region."},"CoretimeRegionEvent":{"properties":{"id":{"type":"string","title":"Id"},"relay_chain":{"type":"string","title":"Relay Chain"},"event_type":{"type":"string","title":"Event Type","description":"Transfer, Partition, Interlace, or Assign"},"r_begin":{"type":"integer","title":"R Begin"},"r_core":{"type":"integer","title":"R Core"},"r_mask":{"type":"string","title":"R Mask"},"mask_label":{"type":"string","title":"Mask Label","description":"Human-readable mask (e.g. 'Full core', '40/80')"},"old_owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Owner"},"new_owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Owner"},"duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration"},"new_region_ids":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Region Ids","description":"JSON array of child region IDs"},"task":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Task","description":"Assigned task/ParaId"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"string","title":"Timestamp"},"date":{"type":"string","title":"Date"}},"type":"object","required":["id","relay_chain","event_type","r_begin","r_core","r_mask","mask_label","block_number","timestamp","date"],"title":"CoretimeRegionEvent","description":"An append-only region event (Transfer, Partition, Interlace, Assign)."},"CoretimeRenewal":{"properties":{"id":{"type":"string","title":"Id"},"relay_chain":{"type":"string","title":"Relay Chain"},"region_begin":{"type":"integer","title":"Region Begin","description":"Sale cycle identifier"},"who":{"type":"string","title":"Who","description":"Buyer account address"},"price":{"type":"string","title":"Price","description":"Price paid (Planck)"},"old_core":{"type":"integer","title":"Old Core","description":"Previous core index"},"new_core":{"type":"integer","title":"New Core","description":"New core index"},"r_begin":{"type":"integer","title":"R Begin","description":"Region begin timeslice"},"duration":{"type":"integer","title":"Duration"},"workload_raw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workload Raw","description":"Raw workload/task JSON"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"string","title":"Timestamp"},"date":{"type":"string","title":"Date"}},"type":"object","required":["id","relay_chain","region_begin","who","price","old_core","new_core","r_begin","duration","block_number","timestamp","date"],"title":"CoretimeRenewal","description":"A Coretime renewal event with old/new core mapping."},"CoretimeSale":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain","description":"Relay chain (e.g. polkadot, kusama)"},"sale_start":{"type":"integer","title":"Sale Start","description":"Block number the sale started"},"leadin_length":{"type":"integer","title":"Leadin Length","description":"Length of the lead-in period in blocks"},"start_price":{"type":"string","title":"Start Price","description":"Starting price (Planck, returned as string)"},"end_price":{"type":"string","title":"End Price","description":"Ending price (Planck, returned as string)"},"region_begin":{"type":"integer","title":"Region Begin","description":"Region begin timeslice (sale cycle identifier)"},"region_end":{"type":"integer","title":"Region End","description":"Region end timeslice"},"ideal_cores_sold":{"type":"integer","title":"Ideal Cores Sold","description":"Ideal number of cores sold"},"cores_offered":{"type":"integer","title":"Cores Offered","description":"Number of cores offered"},"total_burn":{"type":"string","title":"Total Burn","description":"Total burn accumulated in this sale (Planck)"},"cores_sold":{"type":"integer","title":"Cores Sold","description":"Number of cores actually sold"},"block_number":{"type":"string","title":"Block Number","description":"Block number of the SaleInitialized event"},"timestamp":{"type":"string","title":"Timestamp","description":"Timestamp of the event"},"date":{"type":"string","title":"Date","description":"Date (YYYY-MM-DD)"}},"type":"object","required":["relay_chain","sale_start","leadin_length","start_price","end_price","region_begin","region_end","ideal_cores_sold","cores_offered","total_burn","cores_sold","block_number","timestamp","date"],"title":"CoretimeSale","description":"Model for a Coretime sale cycle from the Broker pallet SaleInitialized event."},"CoretimeSaleMetrics":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain"},"region_begin":{"type":"integer","title":"Region Begin","description":"Sale cycle identifier (region begin timeslice)"},"sale_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sale Start","description":"Block number the sale started"},"region_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Region End"},"cores_offered":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cores Offered"},"ideal_cores_sold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ideal Cores Sold"},"start_price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Price"},"end_price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Price"},"bulk_purchases":{"type":"integer","title":"Bulk Purchases","description":"Number of bulk purchases in this sale"},"renewals":{"type":"integer","title":"Renewals","description":"Number of renewals in this sale"},"bulk_spend":{"type":"string","title":"Bulk Spend","description":"Total spent on bulk purchases (Planck)"},"renewal_spend":{"type":"string","title":"Renewal Spend","description":"Total spent on renewals (Planck)"},"total_burn":{"type":"string","title":"Total Burn","description":"Total burn for this sale cycle (Planck)"}},"type":"object","required":["relay_chain","region_begin","bulk_purchases","renewals","bulk_spend","renewal_spend","total_burn"],"title":"CoretimeSaleMetrics","description":"Aggregated metrics per sale cycle: purchases, renewals, and burn."},"CoretimeTotalBurn":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain"},"total_burn":{"type":"string","title":"Total Burn","description":"Total lifetime burn (Planck)"},"total_purchases":{"type":"integer","title":"Total Purchases","description":"Total number of purchases"}},"type":"object","required":["relay_chain","total_burn","total_purchases"],"title":"CoretimeTotalBurn","description":"Total lifetime burn aggregation."},"DailyFees":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"total_fees":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Fees"},"total_fees_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Fees Usd"},"total_fees_usd_30d":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Fees Usd 30D"}},"type":"object","required":["date","relay_chain","chain"],"title":"DailyFees","description":"Model for daily fees data"},"DailyStakingParticipation":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"mininimum_nominator_active_stake":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mininimum Nominator Active Stake"},"number_of_addresses_staking":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Addresses Staking"},"number_of_nominators":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Nominators"},"number_of_pool_members":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Pool Members"},"number_of_pools":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Pools"},"number_of_validators":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Validators"},"staked_DOT":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Staked Dot"},"staked_DOT_in_pools":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Staked Dot In Pools"},"unbonding_DOT":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unbonding Dot"}},"type":"object","required":["date","relay_chain","chain"],"title":"DailyStakingParticipation","description":"Model for daily staking participation data"},"DailyStakingRewards":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"block_number":{"type":"integer","title":"Block Number"},"stash":{"type":"string","title":"Stash"},"payout_amount":{"type":"number","title":"Payout Amount"}},"type":"object","required":["date","relay_chain","chain","block_number","stash","payout_amount"],"title":"DailyStakingRewards","description":"Model for daily staking rewards data"},"DailySummary":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"fees":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fees"},"fees_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fees Usd"},"treasury":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Treasury"},"treasury_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Treasury Usd"},"evm_num_transactions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evm Num Transactions"},"unique_evm_to_addresses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unique Evm To Addresses"},"unique_evm_from_addresses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unique Evm From Addresses"},"unique_evm_addresses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unique Evm Addresses"},"num_accounts_active_signed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Accounts Active Signed"},"num_accounts_active_signed_plus_received":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Accounts Active Signed Plus Received"},"evm_active":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evm Active"},"num_accounts_active_signed_combined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Accounts Active Signed Combined"},"num_accounts_active_signed_plus_received_combined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Accounts Active Signed Plus Received Combined"},"num_events":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Events"},"num_transactions_signed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Transactions Signed"},"num_transactions_combined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Transactions Combined"},"num_transfers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Transfers"},"num_transfers_combined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Transfers Combined"},"transfer_amount_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Transfer Amount Usd"},"num_xcm_failed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Xcm Failed"},"num_xcm_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Xcm Messages"},"num_xcm_transferred":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Xcm Transferred"},"num_new_accounts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num New Accounts"},"num_killed_accounts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Killed Accounts"},"num_remarked":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Remarked"},"num_extrinsic_success":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Extrinsic Success"},"num_extrinsic_failed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Extrinsic Failed"}},"type":"object","required":["date","relay_chain","chain"],"title":"DailySummary","description":"Model for daily summary data"},"DailyTps":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"num_transactions_combined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Transactions Combined"},"transactions_per_second":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Transactions Per Second"}},"type":"object","required":["date","relay_chain","chain"],"title":"DailyTps","description":"Model for daily transactions per second data"},"DailyUSDC":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"sum_of_usdc":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sum Of Usdc"}},"type":"object","required":["date","relay_chain","chain"],"title":"DailyUSDC","description":"Model for daily USDC data"},"DailyUSDT":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"sum_of_usdt":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sum Of Usdt"}},"type":"object","required":["date","relay_chain","chain"],"title":"DailyUSDT","description":"Model for daily USDT data"},"DailyUptime":{"properties":{"date":{"type":"string","title":"Date","description":"Date in ISO 8601 format (YYYY-MM-DD)","examples":["2023-01-01"]},"relay_chain":{"type":"string","title":"Relay Chain","description":"Relay chain name (polkadot, kusama, or solo)","examples":["polkadot"]},"chain":{"type":"string","title":"Chain","description":"Specific chain name","examples":["acala"]},"target_block_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Block Time","description":"Target block time in milliseconds","examples":[12000]},"uptime_1day":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Uptime 1Day","description":"1-day uptime percentage","examples":[0.995]},"uptime_7days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Uptime 7Days","description":"7-day uptime percentage","examples":[0.992]},"uptime_30days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Uptime 30Days","description":"30-day uptime percentage","examples":[0.99]}},"type":"object","required":["date","relay_chain","chain"],"title":"DailyUptime","description":"Daily uptime metrics for a specified relay chain, chain, and date range.\nUptime is defined as the proportion of blocks produced within 60 seconds.","example":{"chain":"acala","date":"2023-01-01","relay_chain":"polkadot","target_block_time":12000,"uptime_1day":0.995,"uptime_30days":0.99,"uptime_7days":0.992}},"ExplorerAccountSummary":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"total_txs":{"type":"integer","title":"Total Txs","description":"Total extrinsics signed by this account"},"first_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Seen","description":"Earliest extrinsic timestamp"},"last_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Seen","description":"Latest extrinsic timestamp"},"top_pallets":{"items":{"type":"string"},"type":"array","title":"Top Pallets","description":"Top 3 most-used pallets"}},"type":"object","required":["chain","address","total_txs"],"title":"ExplorerAccountSummary","description":"Aggregated stats for a single account address."},"ExplorerBlockDetail":{"properties":{"chain":{"type":"string","title":"Chain"},"block_number":{"type":"string","title":"Block Number"},"block_hash":{"type":"string","title":"Block Hash"},"timestamp":{"type":"string","title":"Timestamp"},"validator":{"type":"string","title":"Validator","description":"Block author (authorId)"},"extrinsics":{"items":{"$ref":"#/components/schemas/ExplorerExtrinsic"},"type":"array","title":"Extrinsics"}},"type":"object","required":["chain","block_number","block_hash","timestamp","validator","extrinsics"],"title":"ExplorerBlockDetail","description":"Block metadata plus its extrinsics."},"ExplorerDomainActivity":{"properties":{"domain":{"type":"string","title":"Domain","description":"Functional domain name"},"hour":{"type":"string","title":"Hour","description":"Hour bucket (ISO timestamp)"},"tx_count":{"type":"integer","title":"Tx Count","description":"Extrinsic count in this hour"}},"type":"object","required":["domain","hour","tx_count"],"title":"ExplorerDomainActivity","description":"Hourly extrinsic counts grouped by functional domain."},"ExplorerExtrinsic":{"properties":{"chain":{"type":"string","title":"Chain"},"timestamp":{"type":"string","title":"Timestamp","description":"ISO timestamp"},"block_number":{"type":"string","title":"Block Number"},"extrinsic_hash":{"type":"string","title":"Extrinsic Hash"},"ex_pallet":{"type":"string","title":"Ex Pallet","description":"Pallet name (e.g. balances)"},"ex_method":{"type":"string","title":"Ex Method","description":"Method name (e.g. transferKeepAlive)"},"signer":{"type":"string","title":"Signer","description":"Signer address or empty for unsigned"},"success":{"type":"boolean","title":"Success"},"domain":{"type":"string","title":"Domain","description":"Functional domain: Assets, Staking, Governance, Compute, Consensus, System"},"summary":{"type":"string","title":"Summary","description":"Human-readable summary (e.g. 'Sent 50 DOT to 14Gjs...7xPQ')","default":""}},"type":"object","required":["chain","timestamp","block_number","extrinsic_hash","ex_pallet","ex_method","signer","success","domain"],"title":"ExplorerExtrinsic","description":"A single extrinsic for feed/list display."},"ExplorerExtrinsicDetail":{"properties":{"chain":{"type":"string","title":"Chain"},"timestamp":{"type":"string","title":"Timestamp","description":"ISO timestamp"},"block_number":{"type":"string","title":"Block Number"},"block_hash":{"type":"string","title":"Block Hash"},"extrinsic_hash":{"type":"string","title":"Extrinsic Hash"},"ex_pallet":{"type":"string","title":"Ex Pallet"},"ex_method":{"type":"string","title":"Ex Method"},"signer":{"type":"string","title":"Signer"},"success":{"type":"boolean","title":"Success"},"domain":{"type":"string","title":"Domain"},"summary":{"type":"string","title":"Summary","default":""},"nonce":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nonce"},"tip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tip"},"block_number_index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Number Index"},"args":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Args","description":"JSON-encoded call arguments"},"events":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Events","description":"JSON-encoded events array"}},"type":"object","required":["chain","timestamp","block_number","block_hash","extrinsic_hash","ex_pallet","ex_method","signer","success","domain"],"title":"ExplorerExtrinsicDetail","description":"Full extrinsic detail for the dedicated extrinsic page.","example":{"block_number":"24891100","chain":"polkadot","domain":"Assets","ex_method":"transferKeepAlive","ex_pallet":"balances","extrinsic_hash":"0xabc123...","signer":"1a2b3c...","success":true,"timestamp":"2026-04-10T12:34:56.000"}},"ExplorerNetworkStats":{"properties":{"chain":{"type":"string","title":"Chain","description":"Chain name","examples":["polkadot"]},"tx_24h":{"type":"integer","title":"Tx 24H","description":"Total extrinsics in the last 24 hours"},"active_accounts_24h":{"type":"integer","title":"Active Accounts 24H","description":"Unique signers in the last 24 hours"},"success_rate_24h":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Success Rate 24H","description":"Percentage of successful extrinsics (0-100)"},"latest_block":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Block","description":"Most recent block number"}},"type":"object","required":["chain","tx_24h","active_accounts_24h"],"title":"ExplorerNetworkStats","description":"Aggregated 24-hour network statistics for the dashboard."},"ExplorerSearchResult":{"properties":{"result_type":{"type":"string","title":"Result Type","description":"block, extrinsic, or account"},"value":{"type":"string","title":"Value","description":"The matched value (block number, hash, or address)"},"label":{"type":"string","title":"Label","description":"Human-readable display label"}},"type":"object","required":["result_type","value","label"],"title":"ExplorerSearchResult","description":"A single search result with type classification."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MonthlyActiveValidators":{"properties":{"month":{"type":"string","title":"Month"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"number_of_nominators":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Nominators"},"number_of_active_validators":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Active Validators"},"number_of_waiting_validators":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Waiting Validators"}},"type":"object","required":["month","relay_chain","chain"],"title":"MonthlyActiveValidators","description":"Model for monthly active validators data"},"MonthlyOpenGovParticipation":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"month":{"type":"string","title":"Month"},"vote_type":{"type":"string","title":"Vote Type"},"number_of_voters":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Voters"},"number_of_referenda":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Referenda"}},"type":"object","required":["relay_chain","chain","month","vote_type"],"title":"MonthlyOpenGovParticipation","description":"Model for monthly OpenGov participation data"},"MonthlyOpenGovTokens":{"properties":{"month":{"type":"string","title":"Month"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"vote_type":{"type":"string","title":"Vote Type"},"sum_of_tokens":{"type":"number","title":"Sum Of Tokens"},"number_of_referenda":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Referenda"}},"type":"object","required":["month","relay_chain","chain","vote_type","sum_of_tokens"],"title":"MonthlyOpenGovTokens","description":"Model for monthly OpenGov tokens data"},"MonthlyPercentStaked":{"properties":{"month":{"type":"string","title":"Month"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"block_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Block Number"},"total_dot_issuance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Dot Issuance"},"total_dot_staked":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Dot Staked"},"percentage_staked":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percentage Staked"}},"type":"object","required":["month","relay_chain","chain"],"title":"MonthlyPercentStaked","description":"Model for monthly percent staked data"},"MonthlyTreasuryBalances":{"properties":{"month":{"type":"string","title":"Month"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"asset":{"type":"string","title":"Asset"},"balance_token":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance Token"},"balance_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance Usd"}},"type":"object","required":["month","relay_chain","chain","asset"],"title":"MonthlyTreasuryBalances","description":"Model for monthly treasury balances data"},"MonthlyUniqueAccounts":{"properties":{"month":{"type":"string","title":"Month"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"number_of_unique_addresses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Unique Addresses"}},"type":"object","required":["month","relay_chain","chain"],"title":"MonthlyUniqueAccounts","description":"Model for monthly unique accounts data"},"OpenGovChildBounty":{"properties":{"chain":{"type":"string","title":"Chain"},"parent_bounty_start_date":{"type":"string","title":"Parent Bounty Start Date"},"parent_bounty_id":{"type":"string","title":"Parent Bounty Id"},"parent_bounty_proposer":{"type":"string","title":"Parent Bounty Proposer"},"proposer_identity":{"type":"string","title":"Proposer Identity"},"parent_bounty_name":{"type":"string","title":"Parent Bounty Name"},"child_bounty_id":{"type":"string","title":"Child Bounty Id"},"child_bounty_status":{"type":"string","title":"Child Bounty Status"},"amount_claimed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Claimed"},"amount_claimed_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Claimed Usd"},"beneficiary":{"type":"string","title":"Beneficiary"},"beneficiary_identity":{"type":"string","title":"Beneficiary Identity"},"status_block_number":{"type":"string","title":"Status Block Number"},"status_ex_hash":{"type":"string","title":"Status Ex Hash"}},"type":"object","required":["chain","parent_bounty_start_date","parent_bounty_id","parent_bounty_proposer","proposer_identity","parent_bounty_name","child_bounty_id","child_bounty_status","beneficiary","beneficiary_identity","status_block_number","status_ex_hash"],"title":"OpenGovChildBounty","description":"Model for OpenGov child bounty details"},"OpenGovParentBountySummary":{"properties":{"parent_bounty_id":{"type":"string","title":"Parent Bounty Id"},"parent_bounty_name":{"type":"string","title":"Parent Bounty Name"},"number_of_child_bounties":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Child Bounties"},"total_amount_claimed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Amount Claimed"},"child_bounty_claimed_average":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Child Bounty Claimed Average"},"distinct_beneficiaries":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Distinct Beneficiaries"},"distinct_beneficiaries_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distinct Beneficiaries Ratio"},"max_child_claimed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Child Claimed"},"min_child_claimed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Child Claimed"}},"type":"object","required":["parent_bounty_id","parent_bounty_name"],"title":"OpenGovParentBountySummary","description":"Model for OpenGov parent bounty summary"},"OpenGovReferendumResult":{"properties":{"start_date":{"type":"string","title":"Start Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"chain":{"type":"string","title":"Chain"},"end_date":{"type":"string","title":"End Date"},"end_block":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Block"},"referendum_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Referendum Index"},"submitted_block":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Submitted Block"},"support":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Support"},"track":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Track"},"ayes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ayes"},"nays":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nays"},"origin":{"type":"string","title":"Origin"},"outcome":{"type":"string","title":"Outcome"}},"type":"object","required":["start_date","relay_chain","chain","end_date","origin","outcome"],"title":"OpenGovReferendumResult","description":"Model for OpenGov referendum results data"},"OpenGovVoterHistory":{"properties":{"referendum_index":{"type":"string","title":"Referendum Index"},"identity":{"type":"string","title":"Identity"},"voter":{"type":"string","title":"Voter"},"conviction":{"type":"string","title":"Conviction"},"vote_direction":{"type":"string","title":"Vote Direction"},"capital":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Capital"},"votes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Votes"},"delegated_votes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delegated Votes"},"split_aye":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Split Aye"},"split_nay":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Split Nay"},"split_abstain":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Split Abstain"}},"type":"object","required":["referendum_index","identity","voter","conviction","vote_direction"],"title":"OpenGovVoterHistory","description":"Model for OpenGov voter history per referendum"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"XcmDailyStats":{"properties":{"date":{"type":"string","title":"Date"},"relay_chain":{"type":"string","title":"Relay Chain"},"origin_chain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Chain"},"dest_chain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Chain"},"total_messages":{"type":"integer","title":"Total Messages"},"completed_messages":{"type":"integer","title":"Completed Messages"},"failed_messages":{"type":"integer","title":"Failed Messages"},"total_value_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Value Usd"}},"type":"object","required":["date","relay_chain","total_messages","completed_messages","failed_messages"],"title":"XcmDailyStats","description":"Daily XCM message counts and value, optionally broken down by route."},"XcmRoute":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain"},"origin_chain":{"type":"string","title":"Origin Chain"},"dest_chain":{"type":"string","title":"Dest Chain"},"message_count":{"type":"integer","title":"Message Count"},"completed_messages":{"type":"integer","title":"Completed Messages"},"total_value_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Value Usd"},"avg_latency_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Latency Seconds"}},"type":"object","required":["relay_chain","origin_chain","dest_chain","message_count","completed_messages"],"title":"XcmRoute","description":"Top origin→destination route over a window."},"XcmSummary":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain"},"window_hours":{"type":"integer","title":"Window Hours","description":"Window size in hours (e.g. 1, 24)"},"total_messages":{"type":"integer","title":"Total Messages"},"completed_messages":{"type":"integer","title":"Completed Messages"},"failed_messages":{"type":"integer","title":"Failed Messages"},"matched_messages":{"type":"integer","title":"Matched Messages"},"success_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Success Rate","description":"Percentage of completed messages (0-100)"},"avg_latency_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Latency Seconds","description":"Mean origin→dest latency across matched messages"},"median_latency_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Latency Seconds"},"p95_latency_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P95 Latency Seconds"},"total_value_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Value Usd","description":"Sum of value * asset_price across all messages in window"}},"type":"object","required":["relay_chain","window_hours","total_messages","completed_messages","failed_messages","matched_messages"],"title":"XcmSummary","description":"Aggregate XCM stats over a recent time window."},"XcmTransfer":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain"},"origin_chain":{"type":"string","title":"Origin Chain"},"dest_chain":{"type":"string","title":"Dest Chain"},"origin_para_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Para Id"},"dest_para_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Para Id"},"xcm_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xcm Type"},"xcm_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xcm Version"},"message_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Hash"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"origin_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Account"},"dest_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Account"},"dest_ss58_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Ss58 Account"},"asset_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Symbol"},"asset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Name"},"asset_decimals":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Asset Decimals"},"asset_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Asset Price"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"Asset amount in human units (raw / 10^decimals)"},"value_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value Usd","description":"value * asset_price"},"raw_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Amount"},"origin_block_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Block Number"},"origin_timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Timestamp"},"origin_extrinsic_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Extrinsic Hash"},"dest_block_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Block Number"},"dest_timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Timestamp"},"dest_block_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Block Hash"},"dest_author_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Author Id"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"match_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Status"},"latency_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency Seconds","description":"dest_timestamp - origin_timestamp in seconds (None if unmatched)"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"}},"type":"object","required":["relay_chain","origin_chain","dest_chain"],"title":"XcmTransfer","description":"A single XCM transfer between chains.\n\nMirrors a row from daily_etl.xcm_transfers, with empty-string defaults\ncoerced to None and origin/dest timestamps formatted as ISO strings."},"XcmTransferDetail":{"properties":{"relay_chain":{"type":"string","title":"Relay Chain"},"origin_chain":{"type":"string","title":"Origin Chain"},"dest_chain":{"type":"string","title":"Dest Chain"},"origin_para_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Para Id"},"dest_para_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Para Id"},"xcm_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xcm Type"},"xcm_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xcm Version"},"message_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Hash"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"origin_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Account"},"dest_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Account"},"dest_ss58_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Ss58 Account"},"asset_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Symbol"},"asset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Name"},"asset_decimals":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Asset Decimals"},"asset_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Asset Price"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"Asset amount in human units (raw / 10^decimals)"},"value_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value Usd","description":"value * asset_price"},"raw_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Amount"},"origin_block_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Block Number"},"origin_timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Timestamp"},"origin_extrinsic_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Extrinsic Hash"},"dest_block_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Block Number"},"dest_timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Timestamp"},"dest_block_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Block Hash"},"dest_author_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Author Id"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"match_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Status"},"latency_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency Seconds","description":"dest_timestamp - origin_timestamp in seconds (None if unmatched)"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"xcm_msg":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xcm Msg"},"origin_event_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Event Data"},"dest_event_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Event Data"}},"type":"object","required":["relay_chain","origin_chain","dest_chain"],"title":"XcmTransferDetail","description":"Per-message detail including raw xcm_msg and event payloads."}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Bearer token authentication using API key"}}},"security":[{"BearerAuth":[]}]}