API

Welcome to the ChainSkope API documentation. To access our services programmatically, each request must be authenticated using your project-specific API key. We recommend keeping your requests private to protect your API key from exposure and prevent unauthorized usage that could impact your usage plan.

ChainSkope metrics are updated hourly, and our APIs support ERC-20, ERC-721, ERC-1155, and other standards. We're happy to add support for additional standards, please reach out.

API Key

Your API key has to be sent as the value of the header x-api-key

// Example
const headers = { 
    "x-api-key": "2Gljlz9zHf1hwOMrHDmmb4Tm1OKdVU4HbX03cXsb" 
}

Contract API

Metrics API

Chart Data API

Request Metrics Data for your chart.

post

Retrieves chart data for contracts and its metrics. Each metric is a line on the chart and bucket size, time range and breakdowns are applied to all lines if available.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : modify contracts in your account
  • : read your contracts and metrics
Authorizations
OAuth2implicitRequired
Authorization URL:
Body
bucket_sizestring ยท enumRequiredExample: DAYPossible values:
Responses
chevron-right
200

Successful operation

application/json
successbooleanOptional
post
/chart

Custom Contract Data API

Aggregate custom data from your contract events.

post

Retrieves paginated data based on aggregations from a contract custom event.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : modify contracts in your account
  • : read your contracts and metrics
Authorizations
OAuth2implicitRequired
Authorization URL:
Body
pagenumberOptionalExample: 0
bucket_sizestring ยท enumOptionalExample: DAYPossible values:
contract_idstringOptionalExample: 0xa86a_0xa695ea0c90d89a1463a53fa7a02168bc46fbbf7e
fromnumberOptionalExample: 1606184371264
tonumberOptionalExample: 1798776371265
event_topicstringOptionalExample: 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62
grouping_fieldsstring[]OptionalExample: ["operator","to","from"]
Responses
chevron-right
200

Successful operation

application/json
successbooleanOptional
post
/data/metric

Get decoded custom events from your contract.

post

Retrieves paginated decoded custom events from a contract's custom event topic.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : modify contracts in your account
  • : read your contracts and metrics
Authorizations
OAuth2implicitRequired
Authorization URL:
Body
pagenumberOptionalExample: 0
contract_idstringOptionalExample: 0xa86a_0xa695ea0c90d89a1463a53fa7a02168bc46fbbf7e
event_topicstringOptionalExample: 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62
fromnumberOptionalExample: 1606184371264
tonumberOptionalExample: 1798776371265
Responses
chevron-right
200

Successful operation

application/json
successbooleanOptional
post
/data/events

Last updated