NEAR-ecosystem affiliate earnings
Explorer API
NEAR Earnings
Affiliate fees collected by leodex.near from the NEAR Intents ecosystem
GET
NEAR-ecosystem affiliate earnings
Endpoint
Overview
leodex.near is the LeoFinance fee-collection account for NEAR Intents. Incoming fungible-token (FT) transfers from intents.near to leodex.near represent affiliate fee payments. This endpoint aggregates all such transfers from NearBlocks (paginated until exhausted) and groups them by token contract.
USD value is computed for stablecoin contracts (USDT, USDC). Other tokens have usd_value: 0 since their on-chain price is not resolved here.
Response
Field Reference
| Field | Description |
|---|---|
generated_at | When this snapshot was built (ISO-8601) |
total_usd | Sum of usd_value across all token entries |
total_incoming_txs | Count of qualifying FT transfers (across all tokens) |
tokens[] | Per-token aggregation, sorted by usd_value descending |
tokens[i]
| Field | Description |
|---|---|
token | Token symbol from NearBlocks metadata |
contract | NEAR account ID of the token contract |
amount | Total received in human-readable units |
decimals | Token decimals |
usd_value | USD value (only computed for stablecoins; 0 otherwise) |
tx_count | Transfer count for this token |
latest_tx | Most recent transaction hash |
latest_date | Timestamp of latest_tx (ISO-8601) |
Caching
X-Cache: HIT|MISS. TTL 10 minutes.
Errors
| Status | Description |
|---|---|
500 | NearBlocks API failure |
Notes
- The cache key is shared with
/leokit/explorer/stats(near_ecosystem_fees_usd) and/leokit/explorer/analytics(summary.near_ecosystem_fees_usd). - Pagination uses NearBlocks’
pageparameter; the loop stops when a page returns fewer than 100 results. - Only
cause === "TRANSFER"events frominvolved_account_id === "intents.near"are counted as fee transfers.
Response
200 - application/json
Aggregated FT transfers from intents.near to leodex.near.