Mesh LogoMesh

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?

BenefitDetails
LightweightLess than 60kB bundle size
Production-ready1M+ downloads, battle-tested
Developer-friendlyIntuitive APIs with TypeScript support
ComprehensiveWallet integration, transactions, smart contracts
Always currentUpdated 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/core

For React projects, also install the React bindings:

npm install @meshsdk/react

Does 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?

FrameworkPackage
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?

EnvironmentUse case
Preprod/PreviewFree test ADA, real network conditions
Yaci DevNetLocal development, fast iteration
MainnetProduction deployment

Where can I find examples?

How do I get help?

ChannelBest for
DiscordReal-time help
GitHub IssuesBug reports, feature requests
Stack OverflowSearchable Q&A
TwitterUpdates 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:

  1. Import only what you need
  2. Use code splitting
  3. Enable production builds
  4. Use Next.js automatic optimization

Does Mesh work offline?

FeatureOfflineOnline required
Transaction buildingYesNo
Address generationYesNo
Key managementYesNo
Blockchain queriesNoYes
Transaction submissionNoYes
UTXO fetchingNoYes

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?

See the contributing guide.


Still have questions?

On this page