# Ink RPC and API Documentation

## Ink RPC plans and rate limits

- **Free plan:** 20 responses per second, up to 100,000 responses a day.
- **Plans:** $49/mo, $299/mo, $999/mo with 25M, 150M, and 500M included responses. Overages billed at $5/$3/$2 per million responses respectively.
- **Paid rate limits:** 100 to 5,000 responses per second (bursts from 500 to 10,000), no daily limit.
- **Billing:** 1 response = 1 API credit on every shared plan, over HTTPS or WebSocket (WSS) where Ink supports it.

Details: [Pricing](https://www.dwellir.com/docs/getting-started/pricing) · [Rate limits](https://www.dwellir.com/docs/getting-started/rate-limits) · [Authentication](https://www.dwellir.com/docs/getting-started/authentication) · [Archive nodes](https://www.dwellir.com/docs/getting-started/archive-nodes)

## Why Build on Ink?

Ink is an Ethereum Layer 2 built on the OP Stack and designed as a DeFi-focused home in the Optimism Superchain. It uses ETH for gas, supports standard EVM tooling, and gives Solidity developers a familiar path to deploy low-fee applications with fast confirmations.

### **DeFi-First L2**

- **Built for DeFi** - Designed for liquidity, trading, and onchain financial applications
- **Kraken-backed ecosystem** - Launched by Kraken with builder support and DeFi distribution in mind
- **Superchain alignment** - Built on the OP Stack for Optimism ecosystem interoperability

### **EVM-Compatible Infrastructure**

- **Standard JSON-RPC** - Use Ethereum RPC methods with existing tools and SDKs
- **Solidity support** - Deploy contracts built for Ethereum and other EVM L2s
- **ETH gas** - Keep familiar wallet and fee flows for users

### **Fast, Low-Fee Execution**

- **Chain ID 57073** - Ink mainnet
- **Fast blocks** - 1 second block times at launch
- **Lower fees** - OP Stack scaling with Ethereum settlement

## Quick Start with Ink

## Network Specifications

| Parameter | Value                                                       | Details             |
| --------- | ----------------------------------------------------------- | ------------------- |
| Chain ID  | 57073                                                       | Mainnet             |
| Currency  | ETH                                                         | Native gas token    |
| Stack     | OP Stack                                                    | Optimism Superchain |
| Explorer  | [explorer.inkonchain.com](https://explorer.inkonchain.com/) | Mainnet explorer    |

## API Methods

### Core Ethereum Methods

Ink supports standard Ethereum JSON-RPC methods:

- Transaction methods (`eth_sendRawTransaction`, `eth_getTransactionReceipt`)
- Block methods (`eth_getBlockByNumber`, `eth_blockNumber`)
- Account methods (`eth_getBalance`, `eth_getCode`)
- Event methods (`eth_getLogs`, `eth_newFilter`)

### Debug & Trace Methods

Dwellir's Ink endpoint exposes reth-backed debug and trace namespaces:

- `debug_traceTransaction` - Inspect transaction execution
- `debug_traceBlockByNumber` - Trace full blocks
- `trace_call` and `trace_filter` - Parity-style tracing workflows

## Developer Resources

### Ethers.js Example

```javascript
import { ethers } from 'ethers';

const provider = new ethers.JsonRpcProvider(
  'https://api-ink-mainnet.n.dwellir.com/YOUR_API_KEY'
);

const network = await provider.getNetwork();
console.log('Connected to Ink:', network.chainId === 57073n);

const blockNumber = await provider.getBlockNumber();
console.log('Latest Ink block:', blockNumber);
```

### viem Example

```typescript
import { createPublicClient, http } from 'viem';
import { defineChain } from 'viem';

const ink = defineChain({
  id: 57073,
  name: 'Ink',
  nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
  rpcUrls: {
    default: {
      http: ['https://api-ink-mainnet.n.dwellir.com/YOUR_API_KEY'],
    },
  },
});

const client = createPublicClient({
  chain: ink,
  transport: http(),
});

const blockNumber = await client.getBlockNumber();
```

## Resources & Support

- **Official Docs**: [Ink documentation](https://docs.inkonchain.com/)
- **Explorer**: [Ink Explorer](https://explorer.inkonchain.com/)
- **Status**: [Ink Status](https://status.inkonchain.com/)
- **Dashboard**: [dashboard.dwellir.com](https://dashboard.dwellir.com)
