Skip to content
🔑 DPX is in private beta. Settlement execution requires approval — request access. All other APIs are live and free to use in sandbox mode.

Stability Oracle API

No authentication required. All responses are JSON. All prices in USD.

Base URL: localhost:3000 (self-hosted) · production endpoint provided upon beta approval

All examples below use localhost:3000. Approved beta partners receive the hosted production URL directly.


Protocol discovery. Call once and cache. Changes only when the protocol is updated.

Terminal window
curl localhost:3000/manifest

Key response fields:

FieldTypeDescription
fees.coreBpsnumberCore fee in basis points (85)
fees.fxBpsnumberFX fee in basis points (40)
fees.licenseBpsnumberLicense fee in basis points (1)
fees.esgFormulastring"(100 - esgScore) / 200"
fees.typicalTotalBpsnumberTypical all-in (138.5)
contracts.tokenstringDPX token address on Base
onboarding.humanRequiredbooleanfalse

Full fee table with all tiers. Cache this.

Terminal window
curl localhost:3000/fee-schedule

Exact fee breakdown for a transaction. Returns a quoteId valid for 300 seconds.

Terminal window
curl "localhost:3000/quote?amountUsd=1000000&hasFx=true&esgScore=75"

Parameters:

ParameterTypeRequiredDefaultDescription
amountUsdnumberYesTransaction amount in USD
hasFxbooleanNofalseCross-currency? Triggers FX fee
esgScorenumberNo50ESG score 0–100
monthlyVolumeUsdnumberNo0For volume discount tier

Response — fees object:

FieldExampleDescription
fees.core.bps85Core fee basis points
fees.core.usd8500Core fee in USD
fees.fx.bps40FX fee basis points (0 if same-currency)
fees.esg.bps12.5ESG fee basis points
fees.esg.score75ESG score used
fees.esg.tier”Good”ESG tier label
fees.license.bps1License fee basis points
fees.total.pct1.385All-in percentage
fees.total.usd13850All-in USD amount
settlement.netUsd986150Amount received after fees
quoteId”dpx-…”Pass to settlement router
validForSeconds300Quote validity window

Same as GET, accepts JSON body:

Terminal window
curl -X POST localhost:3000/quote \
-H "Content-Type: application/json" \
-d '{"amountUsd": 1000000, "hasFx": true, "esgScore": 75}'

Confirms the on-chain DPXSettlementRouter.previewFees() returns the same number as the quote. If feesMatch: true, safe to proceed with settlement.

Terminal window
curl "localhost:3000/verify-fees?amountUsd=1000000&hasFx=true&esgScore=75"

Key response field: feesMatch: true means the on-chain and off-chain fee calculations agree.


Live stability and trust signals. Check before large settlements.

Terminal window
curl localhost:3000/reliability

Key fields:

FieldDescription
isHealthytrue if all systems nominal
stability.currentScore0–100, >= 90 is stable
peg.deviationBpsDeviation from target peg, < 50 is normal
confidence.scoreOracle confidence 0–100
oracle.uptimePctHistorical uptime %

Decision table:

ConditionAction
isHealthy: trueProceed
stability.currentScore >= 90Normal operations
stability.currentScore 75–89Proceed with caution
stability.currentScore < 75Defer large settlements
peg.deviationBps >= 50Hold — peg alert active

Liveness check.

Terminal window
curl localhost:3000/health
# {"status": "healthy", "oracle": "SUCCESS", "network": "base"}

Full raw oracle output from the latest run.


Array of last 24 oracle results.


Self-hosted paths — replace localhost:3000 with your production URL when deployed:

URLFormat
localhost:3000/openapi.jsonOpenAPI 3.0
localhost:3000/.well-known/ai-plugin.jsonAgent plugin manifest
localhost:3000/llms.txtLLM navigation index
localhost:3000/llms-full.txtFull docs for LLM context