Accounts
Define externally owned and contract accounts with explicit balances, nonces, and roles.
Accounts in a NOME environment are fully under your control. Each account has an address, a balance, a nonce, optional code, and optional metadata such as a human-readable id and role.
Declaring accounts
accounts:
- id: deployer
balance: 1000 ether
role: admin
- id: treasury
balance: 12400 ether
- id: relayer
balance: 40 ether
nonce: 12Ids are stable references you can use in operations (from: deployer) instead of raw addresses. Addresses are derived deterministically from the environment seed, so the same specification always yields the same addresses.
Environment-authorized execution
Inside an environment, you can execute from any account without holding its private key. This is what makes it possible to reproduce a transaction from a specific address in a controlled setting. Authorization is scoped to the environment and never extends to any live network.
Importing state
An account's balance, nonce, and code can be imported from a public network at a given block, letting you reproduce a real account's state inside your environment.
nome env import env_7f3a2c --account 0x71b6…10f8 --at-block 18204113