
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@txkit/react
Advanced tools
React components for Web3 - connect, transact, display.
v0.1.0-alpha - core primitives and transaction flow are stable. v0.2 adds
<TxApproval />(review-before-sign),<AllowanceGrant />, and<TxHistory />.
ConnectWalletnpm install @txkit/react @txkit/themes
Peer dependencies: react >= 18, wagmi >= 3, viem >= 2, @tanstack/react-query >= 5.
import { TxKitProvider, ConnectWallet } from '@txkit/react'
import '@txkit/themes'
import { mainnet } from 'viem/chains'
import { http } from 'viem'
function App() {
return (
<TxKitProvider
config={{
chains: [ mainnet ],
transports: { [mainnet.id]: http() },
}}
>
<ConnectWallet />
</TxKitProvider>
)
}
Already using RainbowKit, AppKit, or another wagmi-based connector? Use embedded mode - no need to replace your wallet connection:
import { TxKitProvider, TransactionButton, txStep } from '@txkit/react'
import { parseEther } from 'viem'
import '@txkit/themes'
// Inside your existing WagmiProvider
function MyComponent() {
return (
<TxKitProvider embedded>
<TransactionButton
steps={[
txStep('send', 'Send ETH', { to: '0x...', value: parseEther('0.01') }),
]}
label="Send 0.01 ETH"
/>
</TxKitProvider>
)
}
| Component | Description |
|---|---|
ConnectWallet | Multi-wallet connection with ENS, balance, chain switching |
TokenBalance | Native + ERC-20 balance display with fiat pricing |
TransactionButton | Multi-step transaction flow with simulation and approval |
FlowSteps / FlowProgress / FlowToast | Compound components for transaction flow UI |
Every component has a corresponding headless hook for full control:
import {
useWalletState,
useTokenBalance,
useTokenBalances,
useTokenPrice,
useTransactionFlow,
useFlowState,
} from '@txkit/react'
Multi-step flows compose from txStep, approveAndExecute, signAndSubmit helpers:
import { TransactionButton, FlowSteps, FlowToast, approveAndExecute } from '@txkit/react'
import { parseUnits } from 'viem'
const USDC = '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
function SwapButton() {
return (
<>
<TransactionButton
steps={approveAndExecute({
token: USDC,
spender: '0xRouter...',
amount: parseUnits('100', 6),
tx: { to: '0xRouter...', data: '0x...' },
})}
/>
<FlowSteps />
<FlowToast />
</>
)
}
Visit txkit.dev for full documentation, guides, and examples.
FAQs
React components for Web3 - connect, transact, display
The npm package @txkit/react receives a total of 3 weekly downloads. As such, @txkit/react popularity was classified as not popular.
We found that @txkit/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.