---
name: chainstack
description: Use when deploying blockchain nodes, managing RPC endpoints,
  configuring access rules, integrating with web3 libraries, monitoring node
  performance, or troubleshooting blockchain API issues. Agents should reach for
  this skill when users need to set up infrastructure for blockchain
  development, migrate endpoints between providers, or manage multi-chain
  deployments.
metadata:
  mintlify-proj: chainstack
  version: "1.0"
---

# Chainstack Skill

## Product summary

Chainstack is a managed blockchain infrastructure platform supporting 70+ networks with JSON-RPC endpoints, WebSocket connections, and specialized APIs. Deploy nodes from the console at https://console.chainstack.com, get instant endpoints, and call them with standard web3 libraries (ethers.js, web3.js, web3.py). Key files and concepts: **Projects** organize networks and nodes; **Networks** are blockchain instances (Ethereum Mainnet, Solana Devnet, etc.); **Nodes** are your endpoints (Global Nodes for general use, Dedicated Nodes for high throughput, Trader Nodes deprecated Dec 2026). Endpoints use HTTPS, WSS, or gRPC protocols with auth tokens or basic auth. See [Chainstack platform overview](https://docs.chainstack.com/docs/platform-introduction) for the primary docs site.

## When to use

Reach for this skill when:
- **Deploying nodes**: User needs an RPC endpoint for a blockchain network (Ethereum, Solana, Polygon, etc.)
- **Managing endpoints**: Rotating credentials, adding access rules (IP/origin), viewing metrics, or switching between node types
- **Integrating with code**: Connecting ethers.js, web3.js, web3.py, or other libraries to a Chainstack endpoint
- **Troubleshooting**: Debugging rate limits, authentication errors, node sync issues, or API method failures
- **Migrating workloads**: Moving from another RPC provider (Infura, Alchemy, Syndica, etc.) to Chainstack
- **Monitoring**: Checking node performance, request metrics, or quota usage
- **Multi-chain setup**: Deploying nodes across multiple networks or using Multichain API for unified auth

## Quick reference

### Node types and billing

| Node Type | Best For | Billing | Deployment | Deprecation |
|-----------|----------|---------|------------|-------------|
| **Global Node** | Default choice, any traffic level | Per-request (RUs) | <1 second | None |
| **Dedicated Node** | Sustained heavy load, custom config | Monthly compute + storage | 2–5 min | None |
| **Trader Node** | Regional latency-critical workloads | Per-request (RUs) | 3–6 min | Dec 1, 2026 |
| **Unlimited add-on** | Predictable bill for high throughput | Flat monthly fee | N/A | None |

### Endpoint formats

```
HTTPS (key-protected):
https://ethereum-mainnet.core.chainstack.com/3c6e0b8a9c15224a8228b9a98ca1531d

HTTPS (password-protected):
https://user-name:pass-word@ethereum-mainnet.core.chainstack.com

WSS (WebSocket):
wss://ethereum-mainnet.core.chainstack.com/3c6e0b8a9c15224a8228b9a98ca1531d

gRPC (Solana, Sui):
sui-mainnet.core.chainstack.com:443
x-token: b2a7442099925280a3184aef2cedd3a1
```

### Common API errors

| Code | Meaning | Fix |
|------|---------|-----|
| -32700 | Parse error | Validate JSON syntax |
| -32600 | Invalid request | Check jsonrpc, method, id fields |
| -32601 | Method not found | Verify method is enabled; check protocol reference |
| -32602 | Invalid params | Check parameter types and values |
| -32005 | Rate limit exceeded | Implement backoff; check RPS/RU quota |
| -32000 | Server error | Check node logs; verify chain state |

### Authentication methods

| Method | When to use | Example |
|--------|------------|---------|
| **API token in URL** | Default, most secure | `https://...core.chainstack.com/TOKEN` |
| **Basic auth** | Legacy integrations, simple scripts | `-u username:password` in curl |
| **Multichain token** | Multiple nodes, unified auth | Single token across Global + Dedicated Nodes |

## Decision guidance

### When to use Global Node vs Dedicated Node

| Scenario | Global Node | Dedicated Node |
|----------|------------|----------------|
| Unpredictable traffic spikes | ✓ Auto-scales | ✗ Fixed RPS tier |
| Sustained 100+ RPS | ✗ Per-request cost high | ✓ Flat monthly cheaper |
| Custom node config (mempool, tracing) | ✗ Not available | ✓ Full control |
| Instant deployment needed | ✓ <1 second | ✗ 2–5 minutes |
| Budget-conscious, low traffic | ✓ Pay only for requests | ✗ Minimum monthly fee |

### When to use HTTPS vs WSS vs gRPC

| Protocol | Use case | Latency | Persistence |
|----------|----------|---------|-------------|
| **HTTPS** | One-off queries, batch requests | Low | Stateless |
| **WSS** | Real-time events, subscriptions, monitoring | Very low | Persistent connection |
| **gRPC** | Solana/Sui high-throughput, low latency | Very low | Persistent, binary |

### When to rotate credentials

- Quarterly security review
- Team member leaves
- Suspected compromise
- Before major deployment
- After security incident

## Workflow

### 1. Deploy a node and get an endpoint

1. Log in to [Chainstack console](https://console.chainstack.com/)
2. Click **Create project** (if needed); provide name and description
3. Click your project → **Add network** → select blockchain and network (e.g., Ethereum Mainnet)
4. Click **Add node** → select node type (Global Node recommended for most)
5. Wait for status to change from **Pending** to **Running** (seconds to minutes)
6. Click the node name → copy endpoint URL from **Access and credentials**
7. Test with curl: `curl -X POST "YOUR_ENDPOINT" -H 'Content-Type: application/json' --data '{"method":"eth_blockNumber","jsonrpc":"2.0","params":[],"id":1}'`

### 2. Integrate with web3 library

**ethers.js:**
```javascript
const { ethers } = require('ethers');
const provider = new ethers.JsonRpcProvider('https://ethereum-mainnet.core.chainstack.com/YOUR_TOKEN');
const blockNumber = await provider.getBlockNumber();
```

**web3.js:**
```javascript
const Web3 = require('web3');
const web3 = new Web3('https://ethereum-mainnet.core.chainstack.com/YOUR_TOKEN');
const blockNumber = await web3.eth.getBlockNumber();
```

**web3.py:**
```python
from web3 import Web3
w3 = Web3(Web3.HTTPProvider('https://ethereum-mainnet.core.chainstack.com/YOUR_TOKEN'))
block_number = w3.eth.block_number
```

### 3. Add access rules (IP/origin restriction)

1. Open node → **Access and credentials** → **Access rules**
2. Click **Add rule** → select **IP** or **Origin**
3. Enter IP address (e.g., `203.0.113.10`) or origin (e.g., `example.com` or `*.example.com`)
4. Rule starts **deactivated** — click **Activate** to enforce
5. Deactivating all rules lifts restrictions (open to any IP/origin)

### 4. Rotate credentials (zero-downtime)

1. Open node → **Rotate credentials** → **Generate new credentials**
2. Banner shows **New credentials (Active)** and **Old credentials (Active until rotation is completed)**
3. Update all applications to use new endpoint URLs
4. Click **Complete rotation** → confirm → **Deactivate old credentials**
5. Old credentials rejected immediately after deactivation

### 5. Monitor node performance

1. Open node → **Metrics** tab
2. View **Requests made** (HTTP + WebSocket over time)
3. View **Method calls** breakdown (HTTP only)
4. View **Response codes** (HTTP only)
5. Download aggregate data via hamburger menu
6. For Dedicated Nodes, see **Node performance** tiles (CPU, RAM, storage, block height)

### 6. Troubleshoot rate limiting

1. Check error response: `-32005 Rate Limit Exceeded` with details on which limit (RPS or RU quota)
2. View quota usage: [Billing](https://console.chainstack.com/user/settings/billing) → **Usage**
3. Implement exponential backoff: wait 1s, 2s, 4s, 8s before retry
4. Cap request rate client-side: use ratelimit decorator (Python), bottleneck (Node.js), or uber-go/ratelimit (Go)
5. If sustained high load, upgrade plan or add Unlimited add-on

## Common gotchas

- **Trader Nodes deprecated Dec 1, 2026**: Migrate to Global Nodes before then. Global Nodes match latency, add failover, and provision instantly.
- **New access rules start deactivated**: Create a rule, then activate it — it won't enforce until you do.
- **Rotating credentials is permanent**: Once you click **Deactivate old credentials**, old endpoints stop working immediately. Update all apps first.
- **gRPC uses x-token, not URL token**: Solana/Sui gRPC endpoints require x-token in request metadata, not in the URL.
- **WebSocket subscriptions consume RUs**: eth_subscribe, logs, newHeads all count toward quota. Monitor usage if you have many subscriptions.
- **Rate limit includes all protocols**: One node's RPS/RU quota covers HTTP, WebSocket, and gRPC together.
- **Multichain token doesn't change per-node tokens**: Multichain auth is separate; per-node tokens still work independently.
- **Access rules don't affect endpoint auth**: IP/origin rules restrict *who* can call; auth tokens restrict *what* they can do.
- **Dedicated Node metrics endpoint is rate-limited**: Scrape at 15–60 second intervals; 429 response means back off.
- **Missing trie node errors**: Node is syncing or behind. Wait for sync to complete or switch to a different node.

## Verification checklist

Before submitting work:

- [ ] Endpoint URL is correct (matches network and node type)
- [ ] Auth token or credentials are in place and not exposed in logs/code
- [ ] Test endpoint with a simple RPC call (eth_blockNumber, getBalance, etc.)
- [ ] If using access rules, confirm they are **activated** (not just created)
- [ ] If rotating credentials, confirm old endpoint is **deactivated** only after apps are updated
- [ ] Rate limiting is handled (backoff + client-side throttle for high-throughput apps)
- [ ] WebSocket subscriptions are closed properly (no resource leaks)
- [ ] Monitoring is set up (check Metrics tab or dedicated node performance tiles)
- [ ] Error handling covers -32005 (rate limit), -32601 (method not found), -32000 (server error)
- [ ] For Dedicated Nodes, confirm monthly cost is acceptable for your RPS tier

## Resources

- **[llms.txt](https://docs.chainstack.com/llms.txt)** — Compact index of all documentation sections
- **[Platform introduction](https://docs.chainstack.com/docs/platform-introduction)** — Overview of Cloud and Self-Hosted products
- **[Manage your node](https://docs.chainstack.com/docs/manage-your-node)** — View credentials, rotate, monitor, delete nodes
- **[Blockchain APIs reference](https://docs.chainstack.com/reference/blockchain-apis)** — JSON-RPC methods for all supported protocols
- **[Authentication methods](https://docs.chainstack.com/docs/authentication-methods-for-different-scenarios)** — Token, basic auth, multichain auth
- **[Error reference](https://docs.chainstack.com/docs/error-reference)** — Complete error code guide with fixes
- **[Best practices for securing endpoints](https://docs.chainstack.com/docs/best-practices-for-securing-your-chainstack-endpoint)** — Security guidelines
- **[Chainstack MCP server](https://docs.chainstack.com/docs/chainstack-mcp-server)** — Deploy and manage nodes from AI agents

---

> For additional documentation and navigation, see: https://docs.chainstack.com/llms.txt