Skip to content

Quick Start

This path gets you from clone to first simulated swap quickly.

Terminal window
# from your cloned repository root
pnpm install
Terminal window
cp examples/simple-swap/.env.example examples/simple-swap/.env

Set these in examples/simple-swap/.env:

  • SOLANA_RPC_URL
  • WALLET_PRIVATE_KEY
Terminal window
pnpm --filter @stendar/example-simple-swap build
cd examples/simple-swap
node dist/index.js

The example runs with dryRun: true, so it simulates and does not broadcast a transaction.