# Surf On Chain API

**Canonical:** https://apis.io/apis/surf/surf-on-chain-api/  
**Provider:** Surf — https://apis.io/providers/surf/  
**Base URL:** https://api.asksurf.ai/gateway/v1  
**Documentation:** https://agents.asksurf.ai/docs/chat/overview

Surf On Chain API is one of 16 APIs that [Surf](https://apis.io/providers/surf/) publishes on the [APIs.io](https://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.

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.

## Operations (8)

| Method | Path | Summary |
|---|---|---|
| GET | `/gateway/v1/onchain/bridge/ranking` | Bridge Protocol Ranking |
| GET | `/gateway/v1/onchain/dex/activity` | DEX Protocol Activity |
| GET | `/gateway/v1/onchain/gas-price` | Current Gas Price |
| POST | `/gateway/v1/onchain/query` | Blockchain Structured Query |
| GET | `/gateway/v1/onchain/schema` | On-Chain Table Schema |
| POST | `/gateway/v1/onchain/sql` | Blockchain SQL Query |
| GET | `/gateway/v1/onchain/tx` | Transaction Details by Hash |
| GET | `/gateway/v1/onchain/yield/ranking` | Yield Pool Ranking |

## Machine-readable artifacts (2)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/surf/refs/heads/main/openapi/surf-on-chain-api-openapi.yml
- **Documentation** — https://agents.asksurf.ai/docs/data-api/overview

## Other Surf APIs (12)

- [Surf Chat API](https://apis.io/apis/surf/surf-chat-api/)
- [Surf DEX API](https://apis.io/apis/surf/surf-dex-api/)
- [Surf Exchange API](https://apis.io/apis/surf/surf-exchange-api/)
- [Surf Fund API](https://apis.io/apis/surf/surf-fund-api/)
- [Surf Hyperliquid API](https://apis.io/apis/surf/surf-hyperliquid-api/)
- [Surf Market API](https://apis.io/apis/surf/surf-market-api/)
- [Surf News API](https://apis.io/apis/surf/surf-news-api/)
- [Surf Prediction Market API](https://apis.io/apis/surf/surf-prediction-market-api/)
- [Surf Project API](https://apis.io/apis/surf/surf-project-api/)
- [Surf Search API](https://apis.io/apis/surf/surf-search-api/)
- [Surf Signal API](https://apis.io/apis/surf/surf-signal-api/)
- [Surf Social API](https://apis.io/apis/surf/surf-social-api/)

## Tags

Onchain

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/surf/surf-on-chain-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/surf/.
