v0.1.0-alpha.0
Pre-release
Pre-release
·
166 commits
to main
since this release
First public alpha of txKit. API may change before v0.1.0 stable.
Packages
@txkit/core- framework-agnostic types and utilities@txkit/react- React components: ConnectWallet, TokenBalance, TransactionButton, FlowSteps, FlowProgress, FlowToast@txkit/themes- CSS themes (light/dark, soft/sharp/rounded variants)@txkit/tx-protocol- PreparedTransaction envelope (CAIP-2, EIP-5792 aligned, ERC-7730 clear-signing)@txkit/tx-decoder- calldata decoder with ERC-7730 registry support@txkit/ows-adapter- bridge to MoonPay Open Wallet Standard@txkit/x402-adapter- bridge to x402 HTTP payments
Anti-phishing patterns built in
- Pre-sign transaction simulation through
eth_call - Decoded calldata in human-readable form
- Bounded approvals by default (no
MAX_UINT256) - Address-poisoning detection
- Risk-provider slot ready for Blowfish / Blockaid integration
- Confirmation friction with countdown on flagged operations
Install
npm install @txkit/react@alpha @txkit/themes@alpha viem wagmi @tanstack/react-queryCoexistence
txKit works alongside RainbowKit, AppKit, and ConnectKit through a shared
wagmi config. RainbowKit owns the connect modal, txKit owns the
transaction UX. See embedded mode in the docs.
Links
- Docs: https://docs.txkit.dev
- Playground: https://story.txkit.dev
- Protocol spec:
packages/tx-protocol/spec/v0.1/prepared-transaction.md
Known limitations
- ENS resolution requires mainnet (testnet preset injects mainnet for lookups)
- CSS-only theming (no runtime theme API yet)
- No SSR helpers; relies on wagmi
ssr: true+cookieStorage