FAQ
Answers to common questions about Mesh SDK for Cardano development.
Getting started
What is Mesh?
Mesh is an open-source TypeScript SDK for building Cardano applications. It provides wallet integrations, transaction builders, React components, and smart contract tools to help you ship dApps faster.
Why use Mesh?
| Benefit | Details |
|---|---|
| Lightweight | Less than 60kB bundle size |
| Production-ready | 1M+ downloads, battle-tested |
| Developer-friendly | Intuitive APIs with TypeScript support |
| Comprehensive | Wallet integration, transactions, smart contracts |
| Always current | Updated with Cardano network changes |
Is Mesh free?
Yes. Mesh is open-source under Apache 2.0 and MIT licenses. Use it for personal or commercial projects without licensing fees. View the source on GitHub.
What are the requirements?
- Node.js 16+
- npm, yarn, or bun
- TypeScript 4.5+ (recommended)
- React 18+ (for React components)
Installation
How do I install Mesh?
npm install @meshsdk/coreFor React projects, also install the React bindings:
npm install @meshsdk/reactDoes Mesh work with Next.js?
Yes. Mesh supports both App Router and Pages Router. See the Next.js integration guide for setup instructions.
What frameworks are supported?
| Framework | Package |
|---|---|
| React | @meshsdk/react |
| Next.js | @meshsdk/react |
| Svelte | @meshsdk/svelte |
| Vue.js | @meshsdk/core |
| Node.js | @meshsdk/core |
| Vanilla JS | @meshsdk/core |
Wallets
Which wallets are supported?
Mesh supports all CIP-30 compliant wallets:
- Eternl
- Lace
- Yoroi
- Typhon
- Nami
- Flint
- And any other CIP-30 wallet
New CIP-30 wallets work automatically.
How do I connect a wallet?
Use the CardanoWallet component for the simplest integration:
import { CardanoWallet } from '@meshsdk/react';
export default function App() {
return (
<CardanoWallet
label="Connect Wallet"
onConnected={() => console.log('Connected!')}
/>
);
}See wallet hooks documentation for advanced patterns.
Can I build a wallet app?
Yes. The MeshCardanoHeadlessWallet class supports:
- Mnemonic phrase generation
- Private key import
- cardano-cli compatibility
- Multi-signature workflows
- Browser extension development
See the Wallet documentation.
Transactions
How do I build transactions?
Use MeshTxBuilder for intuitive transaction construction:
import { MeshTxBuilder } from '@meshsdk/core';
const txBuilder = new MeshTxBuilder({
fetcher: provider,
verbose: true,
});
const unsignedTx = await txBuilder
.txOut('addr1...', [{ unit: 'lovelace', quantity: '1000000' }])
.changeAddress(changeAddress)
.selectUtxosFrom(utxos)
.complete();
const signedTx = await wallet.signTx(unsignedTx);
const txHash = await wallet.submitTx(signedTx);See the MeshTxBuilder documentation.
Does Mesh support smart contracts?
Yes. Mesh provides full support for Plutus and Aiken smart contracts:
- Transaction building with script execution
- Datum and redeemer handling
- Script validation
- Multi-asset operations
See Smart Contracts guides and Aiken tutorials.
Can I mint NFTs?
Yes. Mesh supports:
- Single NFT minting
- Collection minting
- Multi-signature minting
- CIP-25 and CIP-68 metadata
See the Minting guide.
Development
How do I test my dApp?
| Environment | Use case |
|---|---|
| Preprod/Preview | Free test ADA, real network conditions |
| Yaci DevNet | Local development, fast iteration |
| Mainnet | Production deployment |
Where can I find examples?
- Documentation - Guides with code samples
- GitHub examples - Working projects
- API pages - Interactive demos
How do I get help?
| Channel | Best for |
|---|---|
| Discord | Real-time help |
| GitHub Issues | Bug reports, feature requests |
| Stack Overflow | Searchable Q&A |
| Updates and announcements |
Production
Is Mesh production-ready?
Yes. Mesh powers live Cardano applications with:
- 1M+ downloads
- Comprehensive error handling
- TypeScript type safety
- Less than 60kB bundle size
- Regular updates for network changes
How do I optimize bundle size?
Mesh supports tree-shaking. To minimize bundle size:
- Import only what you need
- Use code splitting
- Enable production builds
- Use Next.js automatic optimization
Does Mesh work offline?
| Feature | Offline | Online required |
|---|---|---|
| Transaction building | Yes | No |
| Address generation | Yes | No |
| Key management | Yes | No |
| Blockchain queries | No | Yes |
| Transaction submission | No | Yes |
| UTXO fetching | No | Yes |
Commercial use
Can I use Mesh commercially?
Yes. Mesh is dual-licensed under Apache 2.0 and MIT. Build and sell applications without licensing fees.
How can I contribute?
- Submit bug reports
- Open pull requests
- Improve documentation
- Help others on Discord
- Support financially
See the contributing guide.