v0.1 · open spec · Apache 2.0

Verify before you sign.

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.

Read the spec →

7 packages on npm · Built on viem + wagmi · Open spec

Decode

Calldata becomes a sentence. ABI lookups, ERC-7730 clear-signing, and a custom decoder registry.

decode(envelope) ⇒
  USDC.transfer(
    0x742d…7E91,
    250.00
  )

Preview

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

Simulate

Catch reverts before they cost gas. Forked-state simulation surfaces slippage and MEV exposure.

simulate(envelope) ⇒
  status: ok
  trace: 4 calls
  mev_risk: low
verify-tx.tsx
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>

Useful today

  • dApp developers Drop in TxApproval, SwapApproval, BridgeApproval
  • DAOs and multisigs Decode + preview before Safe co-signers vote
  • DeFi frontends CollateralRiskBadge, allowance hygiene, slippage
  • Wallets Drop-in transaction review surface

Built for the agent era

  • AI agents Propose tx with PreparedEnvelope + agentContext
  • Per-agent allowances Token + destination + function + amount + period
  • Stablecoin payments x402 (Coinbase), Skyfire, Lightspark Grid
  • ERC-7715 Scoped wallet capabilities + permission contexts

PreparedTx is an open standard.

Any wallet, any dApp, any agent.

CAIP-2 EIP-5792 EIP-712 ERC-7730 ERC-7715

12 transaction kinds · 3 implemented + 9 reserved · open SDK in Apache 2.0

Read the spec →

Verification primitives the protocols you already use.