К основному содержанию
скилл CX Codex

edge — скилл для Claude Code: что делает и как установить

Помогает настраивать RPC-эндпоинты Goldsky Edge для EVM-сетей, выбирать лимиты запросов и устранять ошибки вызовов нод.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add goldsky-io/goldsky-agent --skill edge -a claude-code
Открыть на GitHub

Что делает edge

Скилл даёт агенту инструкции по работе с Goldsky Edge — прокси-сервисом для EVM RPC на базе eRPC. Он объясняет структуру URL для сетей вроде Ethereum, Base или Arbitrum, а также подключение через библиотеки viem и ethers.js.

Внутри описаны параметры авторизации, сетка лимитов RPS на ключ или IP, а также протокол x402 с оплатой за каждый запрос в USDC на сети Base. Для отладки скилл помогает разбирать специфические коды ошибок JSON-RPC от -32005 до -32016 и разделять объёмные запросы eth_getLogs.

Передача ключа через query-параметр годится только для быстрых тестов, потому что секрет gs_edge_ неизбежно оседает в логах серверов и прокси. Для надёжной работы инструкция требует заголовок X-ERPC-Secret-Token.

Какие задачи решает

  • подключить клиент viem или ethers.js к RPC-нодам Goldsky
  • выбрать бюджет rate limiting для эндпоинта в панели управления
  • разобрать причины ошибок JSON-RPC от -32005 до -32016
  • настроить оплату запросов по протоколу x402 в сети Base

Примеры запросов агенту

  • Подключи клиент viem к Goldsky Edge для сети Base с chainId 8453
  • Какой лимит RPS выбрать для эндпоинта с умеренной нагрузкой на один IP?
  • Почему RPC возвращает ошибку -32005 при вызове eth_getLogs?

Как установить edge

1Через Skills CLI (Vercel)

npx skills add goldsky-io/goldsky-agent --skill edge -a claude-code

2Вручную: положить файлы

~/.claude/skills/edge/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/edge/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора15

compose-doctor Скилл разбирает сломанные приложения Goldsky Compose: падающие задачи, crashloop, пропущенные события, ошибки бандлера и кошельков. Пригодится, когда приложение уже развёрнуто и что-то в нём не работает. CX Codex +1 3 500установок compose Скилл для работы с Goldsky Compose: помогает писать и деплоить TypeScript-задачи, которые срабатывают по cron, HTTP или событию в сети. CX Codex +1 3 500установок mirror-doctor Разбирает, почему пайплайн Goldsky Mirror упал, завис или не стартует, и доводит до рабочего состояния. CX Codex +1 3 500установок turbo-operations Справочник по операциям с Turbo-пайплайнами: пауза, перезапуск, удаление, состояния, чекпоинты и разбор ошибок. Пригодится, когда пайплайн сломался или нужно понять, что значит ошибка. CX Codex +1 3 500установок secrets Скилл ведёт агента через создание, просмотр, ротацию и удаление секретов Goldsky — именованных объектов с учётными данными для sink пайплайнов. CX Codex +1 3 600установок turbo-doctor Интерактивная диагностика сбоев в пайплайнах Goldsky Turbo. Помогает найти причину ошибок по логам, проверить секреты и вернуть поток данных в строй. CX Codex +1 3 500установок auth-setup Ставит Goldsky CLI, проводит через goldsky login и проверяет, что проект подключён. Пригодится, когда команды отвечают «unauthorized». CX Codex +1 3 600установок turbo-transforms Помогает писать и отлаживать трансформации для Turbo-пайплайнов: декодирование EVM-логов, фильтры, TypeScript-скрипты, динамические таблицы. CX Codex +1 3 600установок

Похожие

mcp-builder официальный anthropics Скилл проводит через создание MCP-сервера на TypeScript или Python: от изучения протокола до тестов и оценки качества. 130 949установок claude-api официальный anthropics Справочник по Anthropic SDK и API Claude для генерации кода без устаревших параметров и выдуманных методов. 74 198установок lark-im larksuite Скилл подключает Lark IM к агенту: он отправляет сообщения, ищет историю, управляет чатами и файлами. Подойдёт для задач вокруг командных коммуникаций. CX Codex +1 472 900установок lark-event larksuite Слушает события Lark/Feishu и отдаёт их потоком NDJSON. Подходит для ботов, обработчиков сообщений и долгих подписчиков. CX Codex +1 466 800установок caveman-discover JuliusBrussee Находит точки вызова LLM в репозитории и размечает их воркфлоу для Caveman Cloud, чтобы расходы на токены не сливались в одну общую кучу. CX Codex +1 104 400установок migration JuliusBrussee Скилл задаёт правила безопасных миграций схем, данных и API с обязательным откатом. Пригодится при изменениях, где нельзя терять данные или ломать совместимость. CX Codex +1 103 900установок

Рядом в теме «Бэкенд и API»

Всё по теме «Бэкенд и API» →

Вопросы о edge

Как установить edge в Claude Code?

Выполните команду npx skills add goldsky-io/goldsky-agent --skill edge -a claude-code. Файл навыка будет сохранён в ~/.claude/skills/edge/SKILL.md.

Что делает скилл edge?

Он предоставляет агенту готовые примеры интеграции с Goldsky Edge, параметры лимитов запросов и правила обработки блокчейн-ошибок.

Как безопасно передавать секретный ключ в Goldsky Edge?

Передавайте токен через HTTP-заголовок X-ERPC-Secret-Token. Параметр URL ?secret=YOUR_SECRET оставляет ключ в логах промежуточных прокси.

Исходный текст

SKILL.md · MIT
---
name: edge
description: "Configure and troubleshoot Goldsky Edge, Goldsky's managed EVM RPC endpoint service. Use for Edge RPC, Goldsky RPC endpoints, edge.goldsky.com, slow eth_getLogs, rate limits, hedged requests, flashblocks, HyperEVM system transactions, x402 pay-per-request RPC, pricing, the Edge dashboard, gs_edge_ keys, rpc-edge, and errors -32005/-32012/-32014/-32015/-32016. Covers resilient low-latency EVM endpoints and provider comparisons. For self-hosted eRPC configuration, consult docs.erpc.cloud/llms.txt. To keep an existing provider and reduce its bill through caching, or for x-cache / x-edge-billable / goldsky boost, use /boost. Pipeline and Subgraph questions have separate skills."
---

# Goldsky Edge (RPC Endpoints)

Goldsky Edge is a managed, high-performance RPC endpoint service for EVM blockchains, built on eRPC — an open-source fault-tolerant EVM RPC proxy. It provides globally-distributed, low-latency RPC access with intelligent routing, caching, failover, and built-in observability.

## What Edge Does

Edge sits between your application and blockchain RPC providers. It adds:

- **Performance**: Global edge infrastructure across 8+ regions, sub-100ms latency, tip-of-chain CDN caching
- **Resiliency**: Automatic failover across multiple providers for 99.9% uptime, hedged parallel requests
- **Data Integrity**: Cross-validates responses from multiple nodes, tracks block heights, enforces consensus checks
- **Cost Control**: Request deduplication, intelligent routing, configurable rate limiting
- **Indexing Optimizations**: Auto-splits large `eth_getLogs` requests, routes historical queries to archive nodes

## Quickstart

### Endpoint Format

```
https://edge.goldsky.com/standard/evm/{chainId}?secret=YOUR_SECRET
```

Replace `{chainId}` with the chain ID (e.g., `1` for Ethereum, `8453` for Base, `42161` for Arbitrum).

### Authentication

Three options:
- **Header (recommended)**: `X-ERPC-Secret-Token: YOUR_SECRET` — keeps the secret out of URLs, which are commonly logged by proxies, CDNs, and server access logs.
- **Query parameter**: `?secret=YOUR_SECRET` — convenient for quick tests, but the secret leaks into any log that records the full URL. Prefer the header for production traffic. The examples below use the query param for brevity.
- **x402 (pay-per-request)**: Clients without a secret receive an HTTP 402 response with payment requirements. An x402-compatible client signs a USDC payment and retries; Edge settles via a facilitator before forwarding the request upstream. Payment is settled on **Base** (chain `8453`) in USDC. Pricing is `$0.000005` per request (same as the standard `$5 per million` rate). See https://www.x402.org/ for the protocol spec.

### Example (curl)

```bash
curl -s "https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
```

### Example (viem)

```typescript
import { createPublicClient, http } from "viem";
import { mainnet } from "viem/chains";

const client = createPublicClient({
  chain: mainnet,
  transport: http("https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET"),
});
```

### Example (ethers.js)

```typescript
import { JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(
  "https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET"
);
```

## Managing Edge Endpoints in the Webapp

Edge endpoints are created and managed in the Goldsky webapp at `/dashboard/rpc-edge`.

### Creating an Endpoint

1. Navigate to the Edge RPC page (`/dashboard/rpc-edge`)
2. Click "Create endpoint"
3. Enter a name (lowercase letters, numbers, hyphens; must start with a letter; 3-50 chars)
4. Optionally select a rate limit budget
5. An API key is generated automatically (format: `gs_edge_...`)

### Endpoint Management

- **View metrics**: See request counts, error rates, and response times on the endpoint detail page
- **View logs**: Searchable, filterable logs for debugging
- **Reveal API key**: View your secret key (click to copy)
- **Rate limiting**: Update the rate limit budget for an endpoint
- **Pause/Resume**: Toggle an endpoint on or off
- **Delete**: Remove an endpoint permanently

### Plan Limits

- **Free (Starter)**: 1 endpoint, subject to free-tier request limits
- **Scale**: Multiple endpoints, pay-as-you-go
- **Enterprise**: Unlimited endpoints

## Rate Limiting

Rate limits are configured per secret in the Goldsky Dashboard. Pick one of the following named tiers (source: https://docs.goldsky.com/edge-rpc/platform/security#rate-limiting):

| Budget ID | Total RPS | Per-IP RPS | Use case |
|-----------|-----------|------------|----------|
| `None (Unlimited)` | Unlimited | Unlimited | No rate limiting |
| `edge-tier-6krpm-total-unlimited-per-ip` | ~100 | Unlimited | Low volume |
| `edge-tier-60krpm-total-unlimited-per-ip` | ~1,000 | Unlimited | Medium volume |
| `edge-tier-180krpm-total-unlimited-per-ip` | ~3,000 | Unlimited | High volume |
| `edge-tier-360krpm-total-unlimited-per-ip` | ~6,000 | Unlimited | Very high volume |
| `edge-tier-600krpm-total-unlimited-per-ip` | ~10,000 | Unlimited | Enterprise volume |
| `edge-tier-6krpm-total-500rpm-per-ip` | ~100 | ~8 | Low volume + per-IP protection |
| `edge-tier-60krpm-total-500rpm-per-ip` | ~1,000 | ~8 | Medium volume + per-IP protection |
| `edge-tier-180krpm-total-500rpm-per-ip` | ~3,000 | ~8 | High volume + per-IP protection |
| `edge-tier-360krpm-total-500rpm-per-ip` | ~6,000 | ~8 | Very high volume + per-IP protection |
| `edge-tier-600krpm-total-500rpm-per-ip` | ~10,000 | ~8 | Enterprise volume + per-IP protection |
| `edge-tier-unlimited-total-100rpm-per-ip` | Unlimited | ~1.7 | Strict per-IP only |
| `edge-tier-unlimited-total-500rpm-per-ip` | Unlimited | ~8 | Moderate per-IP only |

- **Total RPS** = max requests/sec across all IPs using this secret
- **Per-IP RPS** = max requests/sec from a single client IP

Rate limit budgets internally define rules with:
- **method** — which RPC method(s) the limit applies to (supports wildcards)
- **maxCount** — maximum number of requests
- **period** — time window (e.g. per second, per minute)

## Supported Networks

**Live registry** (authoritative — always check this before recommending a chain): `GET https://edge.goldsky.com/`

Returns JSON with a `standard` array of every network Edge serves. Each entry has:
- `id` — e.g. `evm:1` (prefix + chain ID)
- `alias` — human name (e.g. `mainnet`, `base`, `polygon`)
- `blockTimeMs` — average block time
- `state` — `OK` when operational

```bash
# List all supported chain IDs
curl -s https://edge.goldsky.com/ | jq '.standard[].id'

# Find a specific chain
curl -s https://edge.goldsky.com/ | jq '.standard[] | select(.id=="evm:8453")'
```

Highlights include Ethereum, Arbitrum One, Base, Optimism, Polygon zkEVM, BSC, Avalanche, Berachain, HyperEVM, Monad, Sei, Sonic, Unichain, zkSync, plus their testnets — but the registry above is the source of truth and includes many more.

For the human-readable docs page: https://docs.goldsky.com/chains/supported-networks

## Special Capabilities

### Flashblocks

Faster block confirmations on OP Stack chains (Base, Optimism, Unichain and their testnets). Enable by adding:
- Query parameter: `use-upstream=flashblocks*`
- Or header: `X-ERPC-Use-Upstream: flashblocks*`

### HyperEVM System Transactions

Two distinct node pools for HyperEVM:
- `use-upstream=systx*` — Archive nodes with system transactions (for indexing)
- `use-upstream=standard*` — Realtime nodes without system transactions (for frontend dApps)

## Pricing

- **$5 per million requests** — all RPC methods priced equally (no surcharges for `eth_getLogs` or trace methods)
- **Up to 500M requests/month** at $5/million
- **500M+**: Volume discounts available (contact sales)

## Monitoring

Each endpoint has a built-in Grafana dashboard showing:
- Total RPC requests and requests per second
- Network and method usage breakdowns
- Response time percentiles (P50/P90/P99)
- Error rates and detailed error logs
- Rate-limited request tracking
- Multiplexed and hedged request metrics

## Error Codes

Edge normalizes errors from upstream providers:

| Code | Meaning |
|------|---------|
| -32005 | Rate limit exceeded |
| -32012 | Range too large (eth_getLogs) |
| -32014 | Missing data |
| -32015 | Node timeout |
| -32016 | Unauthorized |

Plus standard JSON-RPC errors (-32700, -32600, -32601, -32602, -32603) and EVM-specific errors (-32000, -32003, 3).

## Supported RPC Methods

Full coverage of standard EVM JSON-RPC methods across five namespaces (60+ methods). Each method has its own docs page at `https://docs.goldsky.com/edge-rpc/evm/methods/{method_name}` — use it to confirm params, return shape, and any Edge-specific behavior before constructing a call.

**Method index**: https://docs.goldsky.com/edge-rpc/evm/methods

### `eth_*` — core chain queries and transactions
`eth_accounts`, `eth_blobBaseFee`, `eth_blockNumber`, `eth_call`, `eth_chainId`, `eth_createAccessList`, `eth_estimateGas`, `eth_feeHistory`, `eth_gasPrice`, `eth_getBalance`, `eth_getBlockByHash`, `eth_getBlockByNumber`, `eth_getBlockReceipts`, `eth_getBlockTransactionCountByHash`, `eth_getBlockTransactionCountByNumber`, `eth_getCode`, `eth_getFilterChanges`, `eth_getFilterLogs`, `eth_getLogs`, `eth_getProof`, `eth_getStorageAt`, `eth_getTransactionByBlockHashAndIndex`, `eth_getTransactionByBlockNumberAndIndex`, `eth_getTransactionByHash`, `eth_getTransactionCount`, `eth_getTransactionReceipt`, `eth_getUncleByBlockHashAndIndex`, `eth_getUncleByBlockNumberAndIndex`, `eth_getUncleCountByBlockHash`, `eth_getUncleCountByBlockNumber`, `eth_maxPriorityFeePerGas`, `eth_newBlockFilter`, `eth_newFilter`, `eth_newPendingTransactionFilter`, `eth_pendingTransactions`, `eth_sendRawTransaction`, `eth_subscribe`, `eth_syncing`, `eth_uninstallFilter`, `eth_unsubscribe`

### `debug_*` — raw block/receipt data and EVM tracing
`debug_getRawBlock`, `debug_getRawHeader`, `debug_getRawReceipts`, `debug_getRawTransaction`, `debug_traceBlockByHash`, `debug_traceBlockByNumber`, `debug_traceCall`, `debug_traceTransaction`

### `trace_*` — OpenEthereum-style tracing
`trace_block`, `trace_call`, `trace_callMany`, `trace_filter`, `trace_get`, `trace_rawTransaction`, `trace_replayBlockTransactions`, `trace_replayTransaction`, `trace_transaction`

### `net_*` — network metadata
`net_listening`, `net_peerCount`, `net_version`

### `web3_*` — client metadata
`web3_clientVersion`, `web3_sha3`

### Request shape

All methods use the standard JSON-RPC 2.0 envelope. Example for `eth_getLogs`:

```bash
curl -s "https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_getLogs",
    "params": [{
      "fromBlock": "0x1000000",
      "toBlock": "0x1000064",
      "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
    }]
  }'
```

Before using trace methods (`debug_trace*`, `trace_*`), check the per-method page — not every chain supports every tracer, and some methods have chain-specific quirks documented there.

---

# eRPC (Open-Source)

Edge is built on **eRPC**, an open-source fault-tolerant EVM RPC proxy. For capabilities beyond what Goldsky Edge exposes (self-hosting, custom cache drivers, custom selection policies, multi-provider failover, etc.), users may want to run eRPC directly.

For full eRPC reference (features, config, APIs), fetch the LLM-optimized docs bundle: **https://docs.erpc.cloud/llms.txt**

## Edge or Boost?

They share the `edge.goldsky.com` host and get confused constantly:

- **Edge** (this skill) is Goldsky's own managed RPC. The user buys it *instead of* a provider. Many chains, configurable rate-limit budgets, hedging, failover, x402.
- **Boost** (`/boost`) is a free CDN in front of the provider the user **already has**. Cacheable reads come from Goldsky's indexed data; everything else forwards to their endpoint unchanged. Only genesis-covered chains, HTTP only, Goldsky-managed rate limits.

"I want to spend less with Alchemy" is Boost. "I want to stop using Alchemy" is Edge. A user can also point Boost's upstream at an Edge endpoint.

## Goldsky Documentation Links

- Edge Introduction: https://docs.goldsky.com/edge-rpc/introduction
- Edge Quickstart: https://docs.goldsky.com/edge-rpc/quickstart
- Why Edge: https://docs.goldsky.com/edge-rpc/why-edge
- Security & Rate Limiting: https://docs.goldsky.com/edge-rpc/platform/security
- Monitoring: https://docs.goldsky.com/edge-rpc/platform/monitoring
- Flashblocks: https://docs.goldsky.com/edge-rpc/capabilities/flashblocks
- HyperEVM System Tx: https://docs.goldsky.com/edge-rpc/capabilities/hyperevm-system-transactions
- Error Codes: https://docs.goldsky.com/edge-rpc/evm/error-codes
- RPC Methods Index: https://docs.goldsky.com/edge-rpc/evm/methods
- Pricing: https://docs.goldsky.com/pricing/summary
- Supported Networks: https://docs.goldsky.com/chains/supported-networks

© goldsky-io · MIT · goldsky-io/goldsky-agent

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой