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
| Feature | Devnet Emulator | Public Testnet |
|---|---|---|
| Speed | Millisecond confirmations | 20+ second confirmations |
| Cost | Free, no faucet needed | Requires testnet ADA |
| Isolation | Fresh state per test | Shared with other users |
| Availability | Always available offline | Dependent on network |
| Configuration | Custom parameters | Fixed by network |
Next Steps
- Devnet Getting Started — Full devnet setup guide
- Devnet Integration — Complete integration workflows
- Integration Tests — Test patterns with devnet