Skip to Content
DocsAtlas APIContracts

Contracts API

List contracts with indexed activity and fetch contract details.

List contracts

GET /v1/contracts

Query parameters

ParameterTypeDescription
networkstringRequired. testnet or mainnet
pageintPage number (default 1)
page_sizeintPage size (default 20, max 100)
searchstringSearch by contract ID
schema_statusstringdecoded or raw_only

Example

curl "http://localhost:8080/v1/contracts?network=testnet&page=1&page_size=20"

Response item fields

FieldDescription
contract_idSoroban contract address
display_nameOptional friendly name
event_countTotal indexed events
first_ledgerFirst seen ledger
last_ledgerMost recent ledger
last_seenLast activity timestamp
schema_statusSchema decode status

Get contract detail

GET /v1/contracts/{id}?network=testnet

Returns activity summary, type breakdown, and schema info.

List contract events

GET /v1/contracts/{id}/events?network=testnet&page=1&page_size=20

Supports the same filters as /v1/events (search, event_type, decode_status).

Last updated on