Decode
Calldata becomes a sentence. ABI lookups, ERC-7730 clear-signing, and a custom decoder registry.
decode(envelope) ⇒
USDC.transfer(
0x742d…7E91,
250.00
) Decode, preview, and simulate any Web3 transaction before it leaves the wallet. An open standard for transaction safety, built for the agent era, useful today for every dApp, multisig, and DAO.
7 packages on npm · Built on viem + wagmi · Open spec
Calldata becomes a sentence. ABI lookups, ERC-7730 clear-signing, and a custom decoder registry.
decode(envelope) ⇒
USDC.transfer(
0x742d…7E91,
250.00
) See every state change before signing. Token transfers, allowance grants, NFT moves, gas costs.
preview(envelope) ⇒ -250.00 USDC -0.00012 ETH gas +allowance: 0
Catch reverts before they cost gas. Forked-state simulation surfaces slippage and MEV exposure.
simulate(envelope) ⇒ status: ok trace: 4 calls mev_risk: low
import { TxKitProvider, TxApproval } from '@txkit/react'
import { verify } from '@txkit/sdk'
import '@txkit/themes/dark.css'
const result = await verify(preparedTx, { apiKey })
<TxKitProvider config={config}>
<TxApproval
envelope={preparedTx}
verification={result}
onApprove={(receipt) => console.log(receipt)}
/>
</TxKitProvider> Any wallet, any dApp, any agent.
12 transaction kinds · 3 implemented + 9 reserved · open SDK in Apache 2.0
Read the spec →Verification primitives the protocols you already use.
Compose-ready React components on top of the open spec.
<TxKitProvider /> Wraps your app with wagmi, viem, TanStack Query, and theme tokens.
Open in playground →<ConnectWallet /> Multi-wallet picker, ENS, balance, wrong-chain auto-switch.
Open in playground →<TokenBalance /> ERC-20 balance with decimals, polling, USD equivalent.
Open in playground →<TransactionButton /> Multi-step flow: approve, sign, wait. Compose any number of steps.
Open in playground →<FlowSteps /> Step indicator that reads tx state from TxKitProvider context.
Open in playground →<FlowToast /> Status toast with retry, explorer link, and reduced-motion support.
Open in playground →<TxApproval /> Review modal: decoded calldata, simulation result, risk badges.
v0.2 (forthcoming)<AllowanceGrant /> Grant a spending policy: token + destination + function + amount + period.
v0.2 (forthcoming)