Skip to content

/moria/v11 Endpoints

Base URL: /moria/v11

Available Endpoints

/allowances/<owner_hash>

Endpoint: GET /allowances/<owner_hash>

Status: Unstable

Description: Live allowance UTXOs for an owner NFT hash (salvage feed — dead-loan deposits included).

  • owner_hash: 64-character hex string (borrower / owner P2NFTH)

/bar/history?<since>&<limit>

Endpoint: GET /bar/history

Status: Unstable

Description: Bar (single-asset MUSD staking) state history, newest first.

  • since: only rows with mtp > since (indexed block MTP seconds)
  • limit: max rows to return (default 100, max 1000)

Example URI: /bar/history

/crankable?<now>

Endpoint: GET /crankable

Status: Unstable

Description: Loans that are currently legal and funded to crank.

Optional now query overrides the clock used for cadence checks (unix seconds). Defaults to wall-clock time.

Example URI: /crankable

/history?<offset>&<limit>&<nfth>

Endpoint: GET /history

Status: Unstable

Description: Get global moria v1-1 action history with pagination and optional nfth filter.

  • offset: Number of entries to skip (default: 0)
  • limit: Maximum entries to return (default: 50, max: 200)
  • nfth: Comma-separated list of borrower NFT hashes (64-char hex each)

Example URI: /history

/loan/<borrower_hash>/history

Endpoint: GET /loan/<borrower_hash>/history

Status: Unstable

Description: Get full loan history for a given borrower NFT hash (v1-1).

  • borrower_hash: 64-character hex string (32-byte P2NFTH hash)

Returns an array of all actions for this loan, sorted by timestamp ascending.

/loans/active

Endpoint: GET /loans/active

Status: Unstable

Description: List all active (live loan UTXO) v1-1 loans, including delegate hash.

Example URI: /loans/active

/pool/history?<since>&<limit>

Endpoint: GET /pool/history

Status: Unstable

Description: Liquidation-pool state history, newest first.

  • since: only rows with mtp > since (indexed block MTP seconds)
  • limit: max rows to return (default 100, max 1000)

Example URI: /pool/history

/staking/apr?<window>

Endpoint: GET /staking/apr

Status: Unstable

Description: Realized bar + pool NAV-growth APR over a trailing window, GROSS of any exit fee (a continuing-holder figure, never a redemption/exit rate). The pool figure is xMUSD-terms only (excludes the BCH pot — see excludes_bch_pot on the response). bar/pool are independently null when there's no history yet or the window has insufficient coverage (see db::moria_v11::staking module docs for the exact rule).

  • window: window length in seconds (default 604800 = 7 days)

Example URI: /staking/apr

/stats

Endpoint: GET /stats

Status: Unstable

Description: Get Moria v1-1 protocol statistics.

Example URI: /stats


← Back to Index