Skip to main content

Envelope fields

FieldTypeNotes
versionstringEnvelope version (v1)
successbooltrue on success, false on error
dataanyCommand payload (array/object depending on command)
errorobject or nullPresent on failures
warningsstring[]Optional warnings
metaobjectExecution metadata

meta

FieldTypeNotes
request_idstringUnique per invocation
timestampRFC3339 timestampUTC
commandstringNormalized command path
providersarrayProvider statuses and latencies
cacheobjectCache status metadata
partialboolIndicates partial aggregation

cache

FieldTypeValues
statusstringbypass, miss, hit, write
age_msintAge of cached response in milliseconds
staleboolWhether served cache entry is stale

Key payload models

  • Market commands: ChainTVL, ChainAssetTVL, ProtocolTVL, ProtocolCategory, AssetResolution
  • Lending: LendMarket, LendRate
  • Yield: YieldOpportunity
  • Bridge: BridgeQuote, BridgeSummary, BridgeDetails
  • Swap: SwapQuote

Payload notes

  • LendMarket, LendRate, and YieldOpportunity include provider, provider_native_id, and provider_native_id_kind for provider-scoped identity.
  • BridgeQuote may include fee_breakdown with lp_fee, relayer_fee, gas_fee, and aggregate totals.
For practical examples, see Quickstart.