Gully Chain API
On this page
The Gully Chain API answers the familiar module=...&action=... calls and returns { status, message, result }, so existing tools and libraries work. It uses the same Gully RPC key as the JSON-RPC endpoint: create one at app.gullyrpc.xyz (opens in a new tab) with your Gully ID.
curl -s "https://api.gullyrpc.xyz/api?module=account&action=balance&address=0xYOUR_ADDRESS&apikey=hk_live_YOUR_KEY"
curl -s -H "X-API-Key: hk_live_YOUR_KEY" "https://api.gullyrpc.xyz/api?module=gastracker&action=gasoracle"// plain fetch; the answer is the same with viem or ethers helpers
const key = process.env.GULLY_RPC_KEY;
const r = await fetch("https://api.gullyrpc.xyz/api?module=proxy&action=eth_blockNumber&apikey=" + key).then((x) => x.json());
// { jsonrpc: "2.0", id: 1, result: "0x..." }A key is required. Calls without one answer HTTP 401 with error.code KEY_REQUIRED.
#What is supported
| Module | Actions |
|---|---|
account |
balance, balancemulti (20 addresses), tokenbalance, txlist, tokentx |
transaction |
getstatus, gettxreceiptstatus |
proxy |
eth_blockNumber, eth_gasPrice, eth_getBlockByNumber, eth_getTransactionByHash, eth_getTransactionReceipt, eth_getTransactionCount, eth_getCode, eth_getStorageAt, eth_call, eth_estimateGas |
contract |
getabi, getsourcecode (from the verified source on verify.gullychain.xyz) |
logs |
getLogs: an address or topic0 is required, at most 5,000 blocks and 1,000 results per call |
stats |
tokensupply |
gastracker |
gasoracle |
Not available: internal transactions, native supply and native price. Address history (txlist, tokentx) is available on testnet today.
#Limits
Your plan sets the limits for both RPC and this API:
| Plan | Calls per second | Calls per day |
|---|---|---|
| Free | 5 | 100,000 |
| Developer | 15 | 3,300,000 |
| Business | 30 | 16,000,000 |
| Enterprise | 100 | 50,000,000 |
Every answer carries X-RateLimit-Limit (per second), X-RateLimit-Remaining, X-RateLimit-Reset (unix seconds), X-RateLimit-Tier and, where the plan has one, X-RateLimit-Daily-Limit and X-RateLimit-Daily-Remaining. Over a limit the API answers HTTP 429 with Retry-After and:
{ "status": "0", "message": "NOTOK", "result": "Max rate limit reached (5/sec on tier tier-free)",
"error": { "code": "RATE_LIMITED", "message": "...", "retryAfter": 1 } }Error codes: RATE_LIMITED, DAILY_LIMIT, INVALID_KEY, KEY_REQUIRED, RANGE, UNSUPPORTED, UPSTREAM.
Limits are being measured first: for now they are reported in the headers and your usage, and calls over a limit are not blocked yet. The date they start blocking will be posted here.
See your calls per day and per endpoint under Usage in the portal.
#On the explorer
The testnet explorer answers the same calls on its own address, so tools that expect an Etherscan-style explorer API
can point at it: https://testnet.gullyscan.xyz/api?module=...&action=... goes to the Gully Chain API with the same
key, limits and headers as above.
curl -s "https://testnet.gullyscan.xyz/api?module=proxy&action=eth_blockNumber&apikey=hk_live_YOUR_KEY"