> ## Documentation Index
> Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Voltaire

> High-performance, type-safe Ethereum primitives and cryptography

# Voltaire

**Modern, high-performance Ethereum library for TypeScript**

[Why Voltaire?](https://voltaire.tevm.sh/introduction.md)

[Get Started](https://voltaire.tevm.sh/getting-started.md)

[View on GitHub](https://github.com/evmts/voltaire)

Claude

Cursor

Codex

Amp

OpenCode

```bash theme={null}
claude mcp add --transport http voltaire https://voltaire.tevm.sh/mcp
```

```json theme={null}
// Add to .cursor/mcp.json
{
  "mcpServers": {
    "voltaire": {
      "command": "npx",
      "args": ["mcp-remote", "https://voltaire.tevm.sh/mcp"]
    }
  }
}
```

```toml theme={null}
# Add to ~/.codex/config.toml
[mcp_servers.voltaire]
url = "https://voltaire.tevm.sh/mcp"
```

```json theme={null}
// Add to ~/.config/amp/settings.json
{
  "mcpServers": {
    "voltaire": {
      "url": "https://voltaire.tevm.sh/mcp"
    }
  }
}
```

```json theme={null}
// Add to ~/.config/opencode/opencode.json
{
  "mcp": {
    "voltaire": {
      "type": "remote",
      "url": "https://voltaire.tevm.sh/mcp"
    }
  }
}
```

📐

### [Simple API](https://voltaire.tevm.sh/getting-started/llm-optimized.md)

Minimal API that removes maximum complexity from previous libraries in favor of skills

🛡️

### [Modern Type Safety](https://voltaire.tevm.sh/getting-started/branded-types.md)

Voltaire utilizes branded types to provide the best possible TypeScript type safety for Ethereum

⚡

### [High Performance](https://voltaire.tevm.sh/getting-started/wasm.md)

Supercharge your apps performance with WASM implementations of cryptography, encoding, and EVM execution written in Zig

🤖

### [AI-Native](https://voltaire.tevm.sh/getting-started/llm-optimized.md)

API and docs optimized for LLMs. Powerful MCP server to get started

📦

### [Powerful Features](https://voltaire.tevm.sh/getting-started/powerful-features.md)

Unique features such as EVM execution and bytecode analysis enable optimistic updates, instant gas estimation and more

🌐

### [Multi-Platform](https://voltaire.tevm.sh/getting-started/multiplatform.md)

Utilize Voltaire in the browser, mobile, Node.js, Bun, native environments, Zig, WASM or C-FFI to use in Swift or other languages that support C-FFI

## Type-Safe Primitives & Crypto

Branded types, denomination safety, ABI encoding, and WASM-accelerated cryptography.

```typescript theme={null}
import { Address, Wei } from '@tevm/voltaire'
import { Hex } from '@tevm/voltaire/Hex'
import { Keccak256 } from '@tevm/voltaire/Keccak256'
import { Rlp } from '@tevm/voltaire/Rlp'
import { Abi } from '@tevm/voltaire/Abi'

// Branded types - Address and Hash are distinct types
const addr = Address('0x742d35Cc6634C0532925a3b844Bc9e7595f51e3e')
console.log(addr.toChecksummed()) // "0x742d35Cc..."

// Denomination safety - Wei and Gwei can't be mixed
const value = Wei(1000000000000000000n)
console.log(Wei.toEther(value)) // "1"

// WASM-accelerated Keccak256
const hash = Keccak256('hello')
const selector = Keccak256.selector('transfer(address,uint256)')
// Uint8Array(4) [0xa9, 0x05, 0x9c, 0xbb]

// RLP encoding
const encoded = Rlp.encode([addr, Hex.fromNumber(42n)])

// ABI encoding with full type inference
const calldata = Abi.Function.encodeParams({
  type: 'function', name: 'transfer',
  inputs: [{ type: 'address', name: 'to' }, { type: 'uint256', name: 'amount' }],
  outputs: [{ type: 'bool' }], stateMutability: 'nonpayable'
} as const, ['0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 1000000000000000000n])
```

## Need Providers, Signers, or Contract Interactions?

Voltaire focuses on primitives and cryptography. For providers, signers, contract reads/writes, and composable Effect.ts operations, use `voltaire-effect`.

🌐

#### Providers

HTTP, WebSocket, and fallback transports with retry and rate limiting

🔑

#### Signers

HD wallets, private key signers, and EIP-712 typed data signing

📜

#### Contracts

Type-safe contract reads, writes, and event subscriptions

⚡

#### Effect.ts

Composable operations with typed errors, retries, and timeouts

[View voltaire-effect →](https://github.com/evmts/voltaire/tree/main/voltaire-effect)

[Learn Effect.ts](https://effect.website)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.