Evolution SDK
Testing

Emulator

Use devnet as a local blockchain emulator for testing

Emulator

Evolution SDK's devnet acts as a local blockchain emulator — a complete Cardano node with Kupo and Ogmios running in Docker. No external services needed for development and testing.

How It Works

Devnet provides:

  • A local Cardano node producing blocks
  • Kupo for UTxO indexing and querying
  • Ogmios for protocol parameter queries and transaction submission
  • Configurable genesis with pre-funded addresses
  • Fast block times (20-100ms) for rapid testing

Quick Start

import { ,  } from "@evolution-sdk/devnet"

const  = await .({
  : "my-emulator",
  : { : 3001, : 3002 },
  : {
    ....,
    : 0.1,
    : {
      "your_address_hex": 1_000_000_000_000
    }
  },
  : { : true, : 1442 },
  : { : true, : 1337 }
})

await .()
// ... run tests ...
await .()
await .()

Advantages Over External Testnets

FeatureDevnet EmulatorPublic Testnet
SpeedMillisecond confirmations20+ second confirmations
CostFree, no faucet neededRequires testnet ADA
IsolationFresh state per testShared with other users
AvailabilityAlways available offlineDependent on network
ConfigurationCustom parametersFixed by network

Next Steps