How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Surf Onchain API

Query blockchain data directly. Look up transaction details by hash, check gas prices, and run structured or raw SQL queries against indexed blockchain datasets spanning Ethereum, Base, Solana, and more.

Surf Onchain API is one of 16 APIs that Surf publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Onchain. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 8 operations across 8 paths, and defines 25 schemas. It is described by OpenAPI 3.2.0, at version sha-80d3407.

Requests are made against a single base URL, /.

8 operations 8 paths 25 schemas 6 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
sha-80d3407
Base URL
https://api.asksurf.ai/gateway/v1
Authentication
HTTP Bearer, API Key, API Key
Contact
Resource Areas
1

Authentication & Security 3

Surf Onchain API declares 3 security schemes for authenticating requests. It accepts HTTP bearer tokens (JWT) (AccessToken). An API key is passed in the header as X-Admin-Token (AdminToken). An API key is passed in the header as X-Internal-Key (InternalKey).

Paths & Operations 8

Across 8 paths, the API surfaces 8 operations — 6 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Onchain 8

Query blockchain data directly. Look up transaction details by hash, check gas prices, and run structured or raw SQL queries against indexed blockchain datasets spanning Ethereum,…

GET
/gateway/v1/onchain/bridge/ranking
Bridge Protocol Ranking
onchain-bridge-ranking 3 params → 200default
GET
/gateway/v1/onchain/dex/activity
DEX Protocol Activity
onchain-dex-activity 7 params → 200default
GET
/gateway/v1/onchain/gas-price
Current Gas Price
onchain-gas-price 1 param → 200default
POST
/gateway/v1/onchain/query
Blockchain Structured Query
onchain-structured-query body → 200default
GET
/gateway/v1/onchain/schema
On-Chain Table Schema
onchain-schema → 200default
POST
/gateway/v1/onchain/sql
Blockchain SQL Query
onchain-sql body → 200default
GET
/gateway/v1/onchain/tx
Transaction Details by Hash
onchain-tx 3 params → 200default
GET
/gateway/v1/onchain/yield/ranking
Yield Pool Ranking
onchain-yield-ranking 5 params → 200default

Schemas 25

The contract defines 25 schemas that model the data the API accepts and returns. The most detailed are OnchainTxItem (24 properties), YieldRankingItem (9 properties), OffsetMeta (8 properties), StructuredQuery (7 properties). Each schema is shown below with its type and property counts.

DataResponseOnchainSchemaTable
object
3 properties 2 required
DataAPIErrorDetail
object
2 properties 2 required
DataResponseBridgeRankingItem
object
3 properties 2 required
OffsetMeta
object
8 properties 4 required
DataResponseOnchainTxItem
object
3 properties 2 required
OnchainSchemaTable
object
3 properties 3 required
OnchainSchemaCol
object
3 properties 2 required
AccessListEntry
object
2 properties 2 required
WalletLabelInfo
object
2 properties 1 required
StructuredFilter
object
3 properties 3 required
DataResponseYieldRankingItem
object
3 properties 2 required
StructuredSort
object
2 properties 1 required
WalletLabelItem
object
4 properties 2 required
ObjectResponseMeta
object
3 properties 2 required
DataAPIError
object
2 properties 1 required
OnchainGasPriceItem
object
3 properties 3 required
DexActivityItem
object
5 properties 2 required
StructuredQuery
object
7 properties 1 required
HumaOnchainSQLInputBody
object
3 properties 1 required
DataResponseOnchainRow
object
3 properties 2 required
BridgeRankingItem
object
3 properties 3 required
YieldRankingItem
object
9 properties 9 required
DataResponseDexActivityItem
object
3 properties 2 required
DataObjectResponseOnchainGasPriceItem
object
3 properties 2 required
OnchainTxItem
object
24 properties 15 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

surf-onchain-api-openapi.yml Raw ↑

Other APIs Surf publishes across the network.

Surf Chat API
Surf DEX API
Surf Exchange API
Surf Fund API
Surf Hyperliquid API
Surf Market API
Surf News API
Surf Prediction Market API
Surf Project API
Surf Search API
Surf Signal API
Surf Social API
Where this information came from

This is an independent, third-party profile of Surf Onchain API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.