Skip to main content
If you don’t want to work with main or/and test nets, you can also run your own chain fork and use the local faucet service to smothly test the SDK during the local development

Run the local chain setup

Prerequisites:
  • Installed Foundry and Anvil for a local fork
  • Installed Alto bundler for processing UserOperations
1

Run fork

You can run the chain fork using Anvil directly or you can run script for Alto bundler and fork
2

Run bundler

You can run a bundler via Alto open sourced script. Chek the link above
3

Clone SDK repo

git clone https://github.com/MyceliumSDK/mycelium-sdk.git
4

Install al dependencies

cd mycelium-sdk
pnpm run build
5

Setup variables

Setup all env variables for:
  • packages/blockchain
  • packages/sdk
  • packages/cli
All variables can be found on the Variables section
6

Run services

Run the facuet service:
cd packages/blockchain
pnpm run dev
Run the CLI (SDK will be buildautomatically):
cd packages/cli
pnpm run start