The TypeScript SDK for Building on Cardano
Mesh is an open-source Cardano SDK that gives you a transaction builder, wallet connectors, React components, and smart contract tools. Start building dApps in minutes.
Less than 60kB
AI Integration
Production Ready
1M+ Downloads
Everything You Need to Build Cardano dApps
Wallets, transaction builders, data utilities, smart contract libraries, and blockchain providers in one SDK

Why Developers Pick Mesh
Built by developers who ship Cardano apps every day
TypeScript-First
Full type definitions for every API. Catch errors at compile time, get autocomplete in your editor, and skip the guesswork. No separate type packages needed.
Small and Fast
The core package is under 60kB. Tree-shakeable imports keep your bundle lean. No bloated dependencies dragging down your app's load time.
Works With Every Provider
Swap between Blockfrost, Koios, Maestro, Ogmios, and UTxO RPC with one line. Same API, different backend. Run offline for testing with the built-in offline fetcher.
Agent Skills
AI-Powered Development
Give your AI coding assistant deep knowledge of Mesh SDK. Agent Skills work with Claude Code, Cursor, Codex, and 37+ tools so your AI already knows the API, patterns, and common errors.
terminal
# Install all Mesh skills
npx skills add MeshJS/skills
# Install for a specific agent
npx skills add MeshJS/skills -a claude-code
npx skills add MeshJS/skills -a cursor
npx skills add MeshJS/skills -a codexTransaction Builder
Cardano Transaction Builder in TypeScript
MeshTxBuilder is a chainable API for constructing any Cardano transaction. Build simple ADA transfers, Plutus script interactions, token minting, governance votes, and staking operations with automatic UTXO selection and fee calculation.
sendAda.ts
import { MeshTxBuilder } from '@meshsdk/transaction';
const txBuilder = new MeshTxBuilder();
const unsignedTx = await txBuilder
.txIn(txHash, txIndex)
.txOut(recipientAddress, [
{ unit: 'lovelace', quantity: '5000000' },
])
.changeAddress(senderAddress)
.selectUtxosFrom(utxos)
.complete();connectWallet.tsx
import { CardanoWallet } from '@meshsdk/react';
export default function Page() {
return (
<>
<CardanoWallet
label={"Connect a Wallet"}
persist={true}
onConnected={()=>{console.log('on connected')}}
/>
</>
);
}React Components
Cardano React Components and Wallet Hooks
Drop in pre-built React components for Cardano wallet connections and use hooks to read balances, addresses, and assets. Works with Next.js, Vite, and any React setup.
Wallet Integration
Cardano Wallet Integration for Browser and Server
Connect CIP-30 browser wallets like Nami, Eternl, and Lace, or create server-side wallets with seed phrases and private keys. Build multi-signature apps, minting backends, and automated scripts with one unified API.
meshWallet.tsx
import { MeshWallet } from '@meshsdk/core';
const wallet = new MeshWallet({
networkId: 0, // 0: testnet, 1: mainnet
fetcher: provider,
submitter: provider,
key: {
type: 'mnemonic',
words: ["solution","solution",...,"solution"],
},
});Smart Contracts
Production-Ready Smart Contracts
Skip writing boilerplate. Mesh ships open-source smart contracts for common use cases: NFT marketplaces, token vesting, escrow, asset swaps, payment splitting, and more. Each contract comes with full TypeScript SDK integration, documentation, and live demos.
Start Building in Three Steps
Install
npm i @meshsdk/corePick a Provider
Blockfrost, Koios, Maestro, Ogmios, or offline
Build
Transactions, wallets, minting, smart contracts