A modern React SDK for building decentralized applications with ease. Hyperkit provides high-level components and hooks for wallet connections, token swaps, bridging, staking, and more.
npm install hyperkit
# or
pnpm add hyperkit
# or
yarn add hyperkitWrap your application with HyperkitProvider and import the required styles.
import { HyperkitProvider } from 'hyperkit';
import 'hyperkit/dist/hyperkit.css';
function App() {
return (
<HyperkitProvider>
<YourAppContent />
</HyperkitProvider>
);
}Use the pre-built ConnectWallet component to handle wallet interactions.
import { ConnectWallet } from 'hyperkit';
function Header() {
return (
<header>
<ConnectWallet />
</header>
);
}Use the useWallet hook to access account information and provider details.
import { useWallet } from 'hyperkit';
function Profile() {
const { wallet } = useWallet();
if (!wallet.isConnected) return <p>Please connect your wallet</p>;
return <p>Connected as: {wallet.account}</p>;
}<ConnectWallet />: Interactive button for wallet connection and account management.<Bridge />: Cross-chain bridging interface.<Swap />: Token exchange interface.<Staking />: Yield and staking management.<Faucet />: Testnet token distribution.<Container />: Layout wrapper for kit components.<Alert />: Context-aware notification system.
Hyperkit comes with built-in configurations for multiple networks:
import { NETWORKS, TOKENS } from 'hyperkit';
// Access network details
console.log(NETWORKS.BASE_SEPOLIA);
// Access common token addresses
console.log(TOKENS.USDC);- Multi-Chain Support: Ready-to-use configurations for popular EVM chains.
- Modular Styles: Tailwind-compatible CSS that can be easily customized.
- Type Safe: Written entirely in TypeScript with full declaration support.
- Developer Friendly: Simplified
ethers.jsintegration.
ISC