Installation
Install @slicekit/erc8128 — the official ERC-8128 implementation for signing HTTP requests with Ethereum accounts.
Install
Add the package using your preferred package manager:
bun
bun add @slicekit/erc8128Requirements
- Bun 1.0+ (recommended), Node.js 18+, or modern browser with Web Crypto API
- TypeScript 5.0+ (recommended, but not required)
Exports
Everything is available from the main entry point — client functions, server functions, utilities, types, and error classes.
import {
// Client
createSignerClient,
signRequest,
signedFetch,
// Server
createVerifierClient,
verifyRequest,
// Utilities
formatKeyId,
parseKeyId,
// Types
type EthHttpSigner,
type SignOptions,
type VerifyPolicy,
type VerifyResult,
type NonceStore,
type VerifyMessageFn,
// Errors
Erc8128Error,
} from '@slicekit/erc8128'TypeScript
@slicekit/erc8128 is written in TypeScript and ships with full type definitions. No additional @types/* packages needed.
Types are exported directly from the main entry point:
import type {
EthHttpSigner,
SignOptions,
VerifyPolicy,
VerifyResult,
} from '@slicekit/erc8128'Ethereum Signing
For producing Ethereum signatures, any library or wallet that supports personal_sign (EIP-191) will work. The examples in this documentation use viem.
Next Steps
- Quick Start — Sign your first request in 5 minutes
- Concepts — Understand the security model