Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Network

port0.sh runs on Miden. Four networks are supported: the public testnet, the Miden partner mainnet, the public devnet, and a local node. The version a network runs is published at status.testnet.miden.io.

Facttestnetmainnetdevnetlocalnet
RPChttps://rpc.testnet.miden.iohttps://rpc.cedar.miden.iohttps://rpc.devnet.miden.iohttp://localhost:57291
Remote proverhttps://tx-prover.testnet.miden.iohttps://tx-prover.cedar.miden.iodevnetlocal
Note transporttestnethttps://transport.cedar.miden.iodevnetlocal
Chain fee faucet0x4cbdcaffe75f0a317482224dae64360xe69e6ca6e39df1b10c1e5399399feb(set explicitly)(set explicitly)
Explorerhttps://testnet.midenscan.com/accounthttps://explorer.cedar.miden.io/accounthttps://explorer.devnet.miden.io/account(none)

Each endpoint speaks gRPC (miden.node.v1.NodeService). The chain fee asset is USDCX, 6 decimals. Block time is about 3 seconds.

Fee factValue
Base fee (verification_base_fee)7 base units
Maximum transaction fee210 base units (7 x 30)
Pool note schedule price126 base units (mint, burn, swap, collect)
Registry note schedule price119 base units (register, registry-collect)
Launch note schedule price119 base units (launch)
Measured swap transactionabout 119 base units
Measured collect transactionabout 112 base units
Measured faucet deploy consume112 base units

Version rule

A client talks only to a node of the same major and minor version. A stale minor fails with errors that look like application bugs, such as a missing procedure root, a null pointer passed to Rust, or a missing account header record.

Pin every @miden-sdk/* and miden-node-proto dependency to the version the network runs, and bump them together. The manifests carry the current pins: package.json and package-lock.json in the SDK and the app, Cargo.toml and Cargo.lock in the contracts and the indexer.

Fees and notes

Notes carry a fee, and the executing account pays it from its own vault. The emitter prepays it with a FEE_SPONSORSHIP note, at the schedule price for the note kind. The remainder stays with the account and a later collect sweeps it. A pool’s fee faucet must equal the chain’s fee faucet, or the node never consumes the pool’s notes. The fee asset comes from the network faucet. Do not mint it.

Node state window

The node serves account state for the last 50 blocks. Anchors and block numbers older than that fail with a pruned-block error. A network-note-emitting transaction expires 20 blocks after its reference block, which is about one minute, so slow proving can outrun the window.

Numeric bound

Every pool amount, reserve, and lp_supply is bounded by MAX_AMOUNT = 2^57. The bound keeps the u128 intermediates inside u128::MAX.