Properties
| Name | Type | Description |
|---|---|---|
| generatedAt | string | |
| window | string | |
| from | stringnull | null for window=all. |
| to | string | |
| basis | string | |
| totals | object | |
| internalTests | object | |
| testModeSwaps | integer | |
| days | array | One entry per UTC day of the range, oldest first (from the first order for window=all). |
| byProduct | array | |
| byProvider | array | |
| byChannel | array | |
| byChain | array | By source chain. |
| topIntegrators | array | |
| topReferrers | array | Referred orders, self-referrals left out. |
| plansBilling | object | |
| selection | object | D-076 quote selection, from this API process's memory since it started (resets on deploy, not filtered by the window). `byReason`: `best-payout` (the highest time-adjusted payout won), `tie-margin` (a |
| partnerFees | object | |
| referralRewards | object | |
| pending | array | |
| launchFees | object | |
| settlementTable | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/layerhop-com/json-schema/layerhop-com-admin-revenue-schema.json",
"title": "AdminRevenue",
"x-generated": "2026-11-15",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/layerhop-com-openapi.json#/components/schemas/AdminRevenue",
"type": "object",
"required": [
"generatedAt",
"window",
"from",
"to",
"basis",
"totals",
"internalTests",
"testModeSwaps",
"days",
"byProduct",
"byProvider",
"byChannel",
"byChain",
"topIntegrators",
"topReferrers",
"plansBilling",
"partnerFees",
"referralRewards",
"pending",
"launchFees",
"settlementTable"
],
"properties": {
"generatedAt": {
"type": "string",
"format": "date-time"
},
"window": {
"type": "string",
"enum": [
"24h",
"7d",
"30d",
"90d",
"all",
"custom"
]
},
"from": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "null for window=all."
},
"to": {
"type": "string",
"format": "date-time"
},
"basis": {
"type": "string"
},
"totals": {
"allOf": [
{
"$ref": "#/$defs/AdminRevenueTotals"
},
{
"type": "object",
"required": [
"uniqueWallets",
"plansBillingUsd",
"revenueUsd"
],
"properties": {
"uniqueWallets": {
"type": "integer"
},
"plansBillingUsd": {
"type": "number"
},
"revenueUsd": {
"type": "number",
"description": "feesUsd + plansBillingUsd."
}
}
}
]
},
"internalTests": {
"allOf": [
{
"$ref": "#/$defs/AdminRevenueTotals"
},
{
"type": "object",
"required": [
"wallets"
],
"properties": {
"wallets": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
]
},
"testModeSwaps": {
"type": "integer"
},
"days": {
"type": "array",
"description": "One entry per UTC day of the range, oldest first (from the first order for window=all).",
"items": {
"allOf": [
{
"$ref": "#/$defs/AdminRevenueTotals"
},
{
"type": "object",
"required": [
"date",
"plansBillingUsd",
"internalTestSwaps"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"plansBillingUsd": {
"type": "number"
},
"internalTestSwaps": {
"type": "integer"
}
}
}
]
}
},
"byProduct": {
"type": "array",
"items": {
"allOf": [
{
"$ref": "#/$defs/AdminRevenueTotals"
},
{
"type": "object",
"required": [
"product"
],
"properties": {
"product": {
"type": "string",
"enum": [
"swap",
"limit_order",
"checkout",
"deposit_address",
"plans"
]
}
}
}
]
}
},
"byProvider": {
"type": "array",
"items": {
"allOf": [
{
"$ref": "#/$defs/AdminRevenueTotals"
},
{
"type": "object",
"required": [
"provider",
"settlement",
"providerCutBps",
"netFeesUsdEstimate"
],
"properties": {
"provider": {
"type": "string"
},
"settlement": {
"$ref": "#/$defs/AdminRevenueSettlement"
},
"providerCutBps": {
"type": [
"integer",
"null"
],
"description": "Share of our fee the provider keeps; null = not documented."
},
"netFeesUsdEstimate": {
"type": [
"number",
"null"
]
}
}
}
]
}
},
"byChannel": {
"type": "array",
"items": {
"allOf": [
{
"$ref": "#/$defs/AdminRevenueTotals"
},
{
"type": "object",
"required": [
"channel"
],
"properties": {
"channel": {
"type": "string"
}
}
}
]
}
},
"byChain": {
"type": "array",
"description": "By source chain.",
"items": {
"allOf": [
{
"$ref": "#/$defs/AdminRevenueTotals"
},
{
"type": "object",
"required": [
"srcChainId"
],
"properties": {
"srcChainId": {
"type": "integer"
}
}
}
]
}
},
"topIntegrators": {
"type": "array",
"items": {
"allOf": [
{
"$ref": "#/$defs/AdminRevenueTotals"
},
{
"type": "object",
"required": [
"partnerId"
],
"properties": {
"partnerId": {
"type": "string"
}
}
}
]
}
},
"topReferrers": {
"type": "array",
"description": "Referred orders, self-referrals left out.",
"items": {
"allOf": [
{
"$ref": "#/$defs/AdminRevenueTotals"
},
{
"type": "object",
"required": [
"referrer"
],
"properties": {
"referrer": {
"type": "string"
}
}
}
]
}
},
"plansBilling": {
"type": "object",
"required": [
"invoicesPaid",
"usd",
"unpricedInvoices",
"basis"
],
"properties": {
"invoicesPaid": {
"type": "integer"
},
"usd": {
"type": "number"
},
"unpricedInvoices": {
"type": "integer"
},
"basis": {
"type": "string"
}
}
},
"selection": {
"type": "object",
"description": "D-076 quote selection, from this API process's memory since it started (resets on deploy, not\nfiltered by the window). `byReason`: `best-payout` (the highest time-adjusted payout won),\n`tie-margin` (a quote within the tie band paying LayerHop more won), `own-source` (a LayerHop\nsource paying at least as much as the best partner won). `byClass` labels each request by which\nown sources could serve it. `tiesBroken` says what users gave up (always within the band) and the\nextra margin quoted (not filled).\n",
"required": [
"since",
"basis",
"responses",
"byReason",
"byClass",
"tiesBroken"
],
"properties": {
"since": {
"type": "string",
"format": "date-time"
},
"basis": {
"type": "string"
},
"responses": {
"type": "integer"
},
"byReason": {
"type": "object",
"required": [
"best-payout",
"tie-margin",
"own-source"
],
"properties": {
"best-payout": {
"type": "integer"
},
"tie-margin": {
"type": "integer"
},
"own-source": {
"type": "integer"
}
}
},
"byClass": {
"type": "object",
"required": [
"same-chain-own-router",
"cross-chain-solver",
"partners"
],
"properties": {
"same-chain-own-router": {
"type": "integer"
},
"cross-chain-solver": {
"type": "integer"
},
"partners": {
"type": "integer"
}
}
},
"tiesBroken": {
"type": "object",
"required": [
"count",
"avgBelowBestBps",
"maxBelowBestBps",
"extraMarginUsd"
],
"properties": {
"count": {
"type": "integer"
},
"avgBelowBestBps": {
"type": "number"
},
"maxBelowBestBps": {
"type": "number"
},
"extraMarginUsd": {
"type": "number"
}
}
}
}
},
"partnerFees": {
"type": "object",
"required": [
"windowUsd",
"owed",
"owedUsd",
"owedUnpricedTokens",
"basis"
],
"properties": {
"windowUsd": {
"type": "number"
},
"owed": {
"type": "array",
"items": {
"type": "object",
"required": [
"partner",
"owedUsd",
"tokens",
"unpricedTokens"
],
"properties": {
"partner": {
"type": "string"
},
"owedUsd": {
"type": "number"
},
"tokens": {
"type": "integer"
},
"unpricedTokens": {
"type": "integer",
"description": "Tokens owed without a known USD price (not in owedUsd)."
}
}
}
},
"owedUsd": {
"type": "number"
},
"owedUnpricedTokens": {
"type": "integer"
},
"basis": {
"type": "string"
}
}
},
"referralRewards": {
"type": "object",
"required": [
"enabled",
"rewardBps",
"accruedUsd",
"paidUsd",
"unpaidUsd",
"paidInWindowUsd",
"payoutsInWindow"
],
"properties": {
"enabled": {
"type": "boolean"
},
"rewardBps": {
"type": "integer"
},
"accruedUsd": {
"type": "number",
"description": "All time."
},
"paidUsd": {
"type": "number",
"description": "All time."
},
"unpaidUsd": {
"type": "number",
"description": "All time."
},
"paidInWindowUsd": {
"type": "number"
},
"payoutsInWindow": {
"type": "integer"
}
}
},
"pending": {
"type": "array",
"items": {
"type": "object",
"required": [
"settlement",
"windowFeesUsd",
"allTimeFeesUsd",
"pendingEstimateUsd",
"basis",
"providers"
],
"properties": {
"settlement": {
"$ref": "#/$defs/AdminRevenueSettlement"
},
"windowFeesUsd": {
"type": "number"
},
"allTimeFeesUsd": {
"type": "number"
},
"pendingEstimateUsd": {
"type": [
"number",
"null"
],
"description": "Estimate of fees accrued but not in our wallets yet; null = unknown."
},
"basis": {
"type": "string"
},
"providers": {
"type": "array",
"items": {
"type": "object",
"required": [
"provider",
"windowFeesUsd",
"allTimeFeesUsd",
"pendingEstimateUsd",
"unpricedSwaps"
],
"properties": {
"provider": {
"type": "string"
},
"windowFeesUsd": {
"type": "number"
},
"allTimeFeesUsd": {
"type": "number"
},
"pendingEstimateUsd": {
"type": [
"number",
"null"
]
},
"unpricedSwaps": {
"type": "integer"
}
}
}
}
}
}
},
"launchFees": {
"type": "object",
"required": [
"recorded",
"note"
],
"properties": {
"recorded": {
"type": "boolean"
},
"note": {
"type": "string"
}
}
},
"settlementTable": {
"type": "array",
"items": {
"type": "object",
"required": [
"provider",
"settlement",
"providerCutBps",
"note"
],
"properties": {
"provider": {
"type": "string"
},
"settlement": {
"$ref": "#/$defs/AdminRevenueSettlement"
},
"providerCutBps": {
"type": [
"integer",
"null"
]
},
"note": {
"type": "string"
}
}
}
}
},
"$defs": {
"AdminRevenueSettlement": {
"type": "string",
"description": "How the provider pays our fee: in the user's tx, claimable at the provider, paid out on a schedule, no fee, or not documented.",
"enum": [
"onchain",
"claimable",
"paid_periodically",
"none",
"unknown"
]
},
"AdminRevenueTotals": {
"type": "object",
"required": [
"swaps",
"pricedSwaps",
"unpricedSwaps",
"volumeUsd",
"feesUsd",
"partnerFeesUsd"
],
"properties": {
"swaps": {
"type": "integer",
"description": "Filled orders."
},
"pricedSwaps": {
"type": "integer",
"description": "Filled orders with a USD value at fill."
},
"unpricedSwaps": {
"type": "integer",
"description": "Filled orders without a USD value at fill (they add $0)."
},
"volumeUsd": {
"type": "number"
},
"feesUsd": {
"type": "number",
"description": "Estimated: USD at fill × our fee bps, gross of provider cuts."
},
"partnerFeesUsd": {
"type": "number",
"description": "Partner (integrator) fees on the same orders, owed to partners."
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/layerhop-com-admin-revenue"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.