Skip to main content
POST/info

Request Headers

string
required
Must be application/json
string
Signature proving you own user. Without it, data is 20 seconds old.

Request Body

string
required
Must be "userEarnHistory".
string
required
User wallet address.
integer
Inclusive start of the selected period, in Unix milliseconds.
integer
Inclusive end of the selected period. Omit both bounds for all available history.
object
Pass the entire returned snapshot for every subsequent page and day detail. The initial summary selects the serving node’s committed head.
string
UTC calendar day in YYYY-MM-DD format. Provide asset and snapshot to request individual credits.
string
Supply USDC or pUSD together with day for detail.
string
Use the opaque nextCursor from the preceding page with the same wallet, period, view, and snapshot.
integer
Page size from 1 to 100, default 30.

Response

Response Fields

object
Committed blockNumber and blockHash, plus a reportHash that detects differences in retained history across replicas.
object[]
Each pool’s native asset, interest, tradingFees, and combined total for the entire selected period. Amounts are decimal strings.
object[]
Missing evidence intersecting the selected period. Each entry gives the asset, reason, and inclusive time bounds in milliseconds (null for an unknown boundary). When gaps exist, the affected totals cover only verified credits.
object[]
Summary rows, newest UTC day first, with an asset and the same amount fields as totals.
object[]
Detail rows, newest first, with a stable id, asset, kind (interest or tradingFee), amount, commit time in milliseconds, and sourceTransactionId. Credits increase the value of pool shares.
string | null
Present on every response. A null cursor means the selected view has no more pages.

Retry and refresh

A 409 response means the pinned block or retained earnings evidence changed. Request a new summary without a snapshot or cursor, then use its returned snapshot for subsequent pages. A 503 response means this node cannot currently serve the requested history. Retry after the interval in the Retry-After response header.