Quote
Input, expected output, minimum received, fee components, expiration, and assumptions.
Quote fieldsModel liquid staking tokens, protocol deposits, swaps, wraps, quotes, contract registries, accounting rates, withdrawal queues, and claims without hiding route-specific risk.
A liquid staking position may be represented by a rebasing token, a fixed-share token whose exchange rate changes, or another protocol-specific claim. The API should return both token units and underlying-equivalent units, including decimals, rate, observation block, and calculation method.
Use a versioned token metadata resource. Ticker symbols are presentation, not identity. Identity requires network, canonical contract address, token standard, decimals, accounting behavior, and the verified source of that metadata.
Direct protocol deposits, token wraps, and secondary-market swaps can lead to the same asset but use different contracts, approvals, costs, slippage, and settlement guarantees.
Input, expected output, minimum received, fee components, expiration, and assumptions.
Quote fieldsApprovals, swaps, deposits, wraps, and destination transfers with contract roles.
Step fieldsNetwork, allowlisted addresses, registry version, simulation, and intent digest.
Verification fieldsEach step names the economic operation. The user or policy system can review the route before a wallet signs it.
{
"route_type": "protocol_deposit_and_wrap",
"network": "ethereum-mainnet",
"input": {"asset":"ETH","amount_raw":"..."},
"output": {"asset":"wrapped-LST","minimum_raw":"..."},
"steps": [
{"type":"deposit","contract_role":"staking_pool"},
{"type":"wrap","contract_role":"token_wrapper"}
],
"registry_version": "contracts-2026-10",
"expires_at": "2026-10-23T20:20:00Z"
}Give each withdrawal its own resource and event history. Preserve the token burn or lock evidence, request amount basis, queue observations, claim eligibility, destination, claim transaction, and final receipt.
Return route-specific smart-contract, validator, liquidity, oracle, governance, concentration, and approval warnings with the same preview that contains the numbers.
Preserve raw token balances, rates, claims, transfers, fees, and valuation inputs so reports can distinguish earned value from market movement.
The journal article covers token behavior, quote paths, contract verification, accounting, withdrawals, and limits in depth.