OpenAPI 3.1 Testnet where marked
Build on Gully
Every public Gully API in one place: what each endpoint takes, what it returns, its limits and its errors. Try the open reads here without a key.
APIs
Testnet
Gully Chain API
Etherscan-compatible reads: balances, transactions, logs, tokens and published contract sources.
Testnet and mainnetsTry it, no key
Gully RPC
JSON-RPC for every chain Gully RPC serves, with a keyless endpoint for Gully Core chains.
TestnetTry it, no key
Gully Chain Indexer API
Coins with USD prices, trades, candles, pools, quests and chain stats. No key.
Live
Gully Pay API
Hosted checkout, subscriptions, refunds, x402 and agent payments, with signed webhooks.
TestnetTry it, no key
Swoop Ads API
Prices and ad spots, offers, campaigns and earnings for creators and sponsors.
LiveTry it, no key
Gully AI
Ask questions about Gully products and read what the assistant knows.
LiveTry it, no key
Gully ID
Sign in with Gully ID (OpenID Connect), connected accounts and the wallet chip.
TestnetTry it, no key
kre8 Social API
Public reads: profiles, posts, music, podcasts, calls and feeds.
Keys and sign-in
One Gully RPC key works on RPC and on the Gully Chain API. Gully Pay has its own store keys. Swoop Ads and Gully ID use Sign in with Gully ID. Keep keys on your server: this site never asks for one, and the examples use placeholders.
| API | How you authenticate | Where to get it |
|---|---|---|
| Gully Chain API | apikey query parameter, X-API-Key header, Authorization: Bearer | Get it |
| Gully RPC | X-ERPC-Secret-Token header | Get it |
| Gully Chain Indexer API | No credential | Nothing to get |
| Gully Pay API | x-api-key header, Authorization: Bearer, X-Checkout-Token header, x-agent-key header | Get it |
| Swoop Ads API | Authorization: Bearer | Get it |
| Gully AI | No credential | Nothing to get |
| Gully ID | OpenID Connect, Authorization: Bearer | Get it |
| kre8 Social API | No credential | Nothing to get |
Rate limits
Over a limit, every API answers HTTP 429. Where an API sends limit headers they are listed here; read them and back off before you are stopped.
| API | Headers | Notes |
|---|---|---|
| Gully Chain API | X-RateLimit-Limit X-RateLimit-Remaining X-RateLimit-Reset X-RateLimit-Tier X-RateLimit-Daily-Limit X-RateLimit-Daily-Remaining | Free: 5/s, Starter: 15/s, Pro: 30/s, Business: 100/s. |
| Gully RPC | None yet | See the API page. |
| Gully Chain Indexer API | None yet | No per-key limit yet. Answers are cached for a few seconds; use ETag and If-None-Match. |
| Gully Pay API | X-RateLimit-Limit X-RateLimit-Remaining X-RateLimit-Reset Retry-After | See the API page. |
| Swoop Ads API | None yet | Limits apply per visitor and per account. No rate-limit headers are sent yet. |
| Gully AI | Retry-After | No X-RateLimit-* headers are sent. Retry-After (seconds) comes with a 429 on questions and explanations. Defaults: 6 questions a minute and 60 a day from one place. |
| Gully ID | Retry-After | Only Retry-After is sent, with a 429. There are no remaining-calls headers, so space your calls by the limits below. |
| kre8 Social API | X-RateLimit-Limit X-RateLimit-Scope | Per-minute limits; these are the defaults in the code and GET /v1/developers/limits reports the numbers in force. No remaining-count header and no Retry-After are sent. |
Error format
Errors are JSON with plain words. Each API page lists its codes.
| API | Shape | Codes |
|---|---|---|
| Gully Chain API | { "status": "0", "message": "NOTOK", "result": "...", "error": { "code": "RATE_LIMITED" } } | 15 documented |
| Gully RPC | { "jsonrpc": "2.0", "id": 1, "error": { "code": -32602, "message": "..." } } | JSON-RPC error object |
| Gully Chain Indexer API | { "error": "..." } | 3 documented |
| Gully Pay API | { "statusCode": 400, "message": ["..."], "error": "Bad Request" } | 6 documented |
| Swoop Ads API | { "error": "...", "code": "invalid" } | 6 documented |
| Gully AI | { "error": "..." } | 18 documented |
| Gully ID | { "error": "..." } | 12 documented |
| kre8 Social API | { "error": "..." } | 7 documented |
SDKs and tools
- @gullylabs/core-sdkGully Core SDK: pools, launches, swaps and addresses on every Gully Core chain.
npm i @gullylabs/core-sdk - @gullylabs/core-cliGully Core from the terminal: swap, pool, liquidity, fees.
npx @gullylabs/core-cli - @gullylabs/create-core-appStarter app wired to Gully Core.
npm create @gullylabs/core-app - @gullylabs/chainGully Chain definitions and helpers for viem.
npm i @gullylabs/chain - @gullylabs/idSign in with Gully ID.
npm i @gullylabs/id - @gullylabs/payGully Pay checkout and webhooks.
npm i @gullylabs/pay - Gully MCP server Coming soonRead-only tools for AI coding assistants: chain data, contracts, tokens and docs search.
- Gully CLI and editor extension Coming soonProject checks and chain tools from the terminal and the editor.
Machine-readable
Each API is an OpenAPI 3.1 document, generated from the code of the service it describes. Use them to generate a client.
- gully-chain-api.json Gully Chain API, OpenAPI 3.1.0
- gully-rpc.json Gully RPC, OpenAPI 3.1.0
- gully-indexer.json Gully Chain Indexer API, OpenAPI 3.1.0
- gully-pay.json Gully Pay API, OpenAPI 3.1.0
- swoop.json Swoop Ads API, OpenAPI 3.1.0
- gully-ai.json Gully AI, OpenAPI 3.1.0
- gully-id.json Gully ID, OpenAPI 3.1.0
- kre8-social.json kre8 Social API, OpenAPI 3.1.0