Skip to main content
LakeQuery examplesFlowGatewayPricingConsole

Lake API overview

Lake exposes Stellar bronze, silver, semantic, and gold data through REST endpoints. Use silver endpoints for most application and analyst workflows.

Base URL

export API_KEY="your-api-key"
export BASE="https://gateway.withobsrvr.com/lake/v1/testnet"

Use /mainnet instead of /testnet for mainnet access.

Authentication

curl -H "Authorization: Api-Key $API_KEY" \
"$BASE/api/v1/silver/accounts/current?account_id=GAIH3ULLFQ4DGSECF2AR555KZ4KNDGEKN4AFI4SU2M7B43MGK3QJZNSR"

Response shape

List endpoints return data plus pagination or metadata fields when applicable.

{
"data": [],
"count": 10,
"cursor": "ODI5MDQ1OjE6ZGVzYw==",
"has_more": true,
"_meta": {
"scanned_ledger": 829045,
"available_ledgers": {
"oldest": 277,
"latest": 829045
}
}
}

Silver endpoints

Accounts

MethodEndpointDescription
GET/api/v1/silver/accountsList and search accounts
GET/api/v1/silver/accounts/currentCurrent account state
GET/api/v1/silver/accounts/historyHistorical account snapshots
GET/api/v1/silver/accounts/topTop accounts by XLM balance
GET/api/v1/silver/accounts/{id}/balancesXLM and trustline balances
GET/api/v1/silver/accounts/{id}/activityAccount activity feed

Transfers and operations

MethodEndpointDescription
GET/api/v1/silver/transfersUnified token transfers across classic and SAC activity
GET/api/v1/silver/paymentsPayment operations
GET/api/v1/silver/operations/enrichedOperations with transaction context
GET/api/v1/silver/operations/sorobanSoroban operations only

Assets and tokens

MethodEndpointDescription
GET/api/v1/silver/assetsList tracked assets
GET/api/v1/silver/assets/{code}:{issuer}/holdersAsset holders
GET/api/v1/silver/assets/{code}:{issuer}/statsAsset statistics
GET/api/v1/silver/tokens/{contract_id}SEP-41 token metadata
GET/api/v1/silver/tokens/{contract_id}/balancesToken holder balances
GET/api/v1/silver/tokens/{contract_id}/transfersToken transfer history

Soroban contracts and events

MethodEndpointDescription
GET/api/v1/silver/contracts/topMost active contracts
GET/api/v1/silver/contracts/{id}/analyticsContract-level analytics
GET/api/v1/silver/contracts/{id}/interfaceDetected contract interface
GET/api/v1/silver/eventsCAP-67 unified event stream
GET/api/v1/silver/events/genericRaw contract events with topic filters
GET/api/v1/silver/events/by-contractEvents for one contract
MethodEndpointDescription
GET/api/v1/silver/tx/{hash}/decodedHuman-readable transaction summary
GET/api/v1/silver/tx/{hash}/diffsBalance and state diffs
GET/api/v1/silver/tx/{hash}/fullFull transaction analysis
GET/api/v1/silver/searchSearch accounts, contracts, transactions, ledgers, and assets

Semantic endpoints

Semantic endpoints answer higher-level questions without requiring the caller to know every Stellar table.

MethodEndpointDescription
GET/api/v1/semantic/activitiesUnified on-chain activity feed
GET/api/v1/semantic/contractsContract registry with type classification
GET/api/v1/semantic/contracts/functionsFunction-level contract stats
GET/api/v1/semantic/accounts/summaryAccount activity summary
GET/api/v1/semantic/flowsNormalized value flows

Gold endpoints

MethodEndpointDescription
GET/api/v1/gold/compliance/balancesPoint-in-time balances
GET/api/v1/gold/compliance/supplySupply timeline with audit trail
GET/api/v1/gold/compliance/archivesCompliance archive index
GET/api/v1/gold/compliance/lineageAudit lineage and checksums

Pagination

List endpoints use cursor pagination.

curl -H "Authorization: Api-Key $API_KEY" \
"$BASE/api/v1/silver/transfers?asset_code=USDC&limit=100"

curl -H "Authorization: Api-Key $API_KEY" \
"$BASE/api/v1/silver/transfers?asset_code=USDC&limit=100&cursor=ODI5MDQ1OjE6ZGVzYw=="

Treat cursors as opaque strings. Do not parse or construct them.

Errors

{
"error": "invalid account_id"
}
Status codeMeaning
200Success
400Invalid parameter
401Missing or invalid API key
404Resource not found
429Rate limit exceeded
500Server error

Next steps