{
  "id": 22111360,
  "title": "devnet-fixtures: funded wallets, mints and token balances from a YAML file",
  "url": "https://urgent.news/2026/11/27/devnet-fixtures-funded-wallets-mints-and-token-balances-from-a-yaml",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-27T04:20:25.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/abdeldjalilchougui/devnet-fixtures-funded-wallets-mints-and-token-balances-from-a-yaml-file-4kb4"
  },
  "original_language": "en",
  "account": "Devnet-fixtures is a small command-line interface (CLI) designed to simplify end-to-end testing of Solana applications. The tool generates a starting state for a test by creating wallets, mints, and token balances from a YAML configuration file. Users can specify the needed wallets, mints, and token balances in the YAML file, and devnet-fixtures handles the rest, including creating them on a cluster and printing their addresses as .env lines or JSON.\n\nThe YAML spec consists of various sections for cluster selection, key management, airdrops, accounts, mints, and token accounts. Users can customize the configuration to suit their testing needs. Some key features of devnet-fixtures include:\n\n1. Testing on multiple networks: devnet-fixtures supports localnet, devnet, testnet, and can also be used with a custom URL. It falls back to a local validator if the specified network is not available.\n2. Automated airdrops: The tool handles airdrops with caution, splitting requests into chunks and retrying with exponential backoff. If airdrops still fail, it can use a configured funder wallet to transfer SOL.\n3. Token minting: devnet-fixtures supports creating SPL Tokens and Token-2022 mints using the default token program or Token-2022, respectively. It ensures exact amounts are used to avoid float drift.\n4. Idempotent runs: The keypairs are reused from the keysDir, and mints are remembered per cluster genesis hash in keysDir/state.json. This allows for idempotent runs without creating duplicate transactions.\n5. Environment variables: The tool outputs public keys and keypair file paths in .env lines or JSON format, which can be used as environment variables in subsequent test steps.\n\nTo use devnet-fixtures, users need Node.js 20 or later and a solana-test-validator running locally. The tool can be cloned, built, and executed from the checkout directory with various flags to customize the output format and how the generated environment variables are handled.",
  "summary": "An end-to-end test for a Solana app needs a starting state before it can check anything. There must be a wallet with some SOL to pay fees, a second wallet to receive, a mint with known decimals, token accounts, and balances the test can assert on. Most projects build that state with a setup script: a few airdrops, a mint creation, some mintTo calls, then a list of addresses copied into…",
  "key_points": [
    "Devnet-fixtures simplifies Solana app testing with YAML config",
    "Supports localnet, devnet, testnet, custom URLs",
    "Handles airdrops with retries and fallback funders"
  ],
  "editors_take": "Automating the creation of wallets and token balances through configuration files streamlines the end-to-end testing process for Solana developers by replacing manual setup with predictable, idempotent environment states.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}