Getting started
Get up and running with MeshSDK for Midnight Network development in minutes.
Installation
yarn add @meshsdk/midnight-setup
Basic usage
import { MidnightSetupAPI } from '@meshsdk/midnight-setup';
// Deploy a new contract
const api = await MidnightSetupAPI.deployContract(providers, contractInstance);
// Join an existing contract
const api = await MidnightSetupAPI.joinContract(providers, contractInstance, contractAddress);
// Get contract state
const state = await api.getContractState();
// Get ledger state
const ledgerState = await api.getLedgerState();
What's included
This monorepo contains everything you need to build Midnight Network DApps:
- @meshsdk/midnight-setup - Main npm package with API and types
- packages/ui - Example React application
- packages/cli - Command-line tools
- packages/api - Core API implementation