seismic-viem
TypeScript client library for Seismic, composing with viem to add shielded transactions, encrypted calldata, and signed reads.
npm install seismic-viem viemQuick Example
import { http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { createShieldedWalletClient, seismicTestnet } from "seismic-viem";
const client = await createShieldedWalletClient({
chain: seismicTestnet,
transport: http(),
account: privateKeyToAccount("0x..."),
});
// Shielded write — calldata encrypted automatically
const hash = await client.writeContract({
address: "0x...",
abi: myContractAbi,
functionName: "transfer",
args: ["0x...", 100n],
});
// Signed read — proves caller identity
const balance = await client.readContract({
address: "0x...",
abi: myContractAbi,
functionName: "balanceOf",
args: ["0x..."],
account: client.account,
});Architecture
Documentation Navigation
Getting Started
Section
Description
Client Reference
Section
Description
Contract Interaction
Section
Description
Infrastructure
Section
Description
Features
Quick Links
By Task
By Component
Comparison with seismic-react
Aspect
seismic-viem
seismic-react
Next Steps
Last updated

