Reference
CLI
Every command of cuckoo.
node cli/cuckoo.mjs help lists them. Configuration: CUCKOO_RPC or --rpc, CUCKOO_NEST or --nest, CUCKOO_KEY or cuckoo-wallet.json.
| Command | What it does |
|---|---|
wallet new | Creates a key file. |
deploy | Deploys the contract. Needs a funded CUCKOO_KEY. |
block | The block number the contract reads, next to eth_blockNumber. |
status | Your escrow and the contract's balance. |
deposit <eth> / withdraw <eth> | Move ETH in and out of escrow. |
egg buy --curve --eth --block [--window] [--reward] [--file] | Signs an egg for a Pons-style buy. |
hatch <egg.json> | Carries an egg yourself. |
cancel <nonce> | Burns an egg. |
keeper <eggs.json> [--lead] [--poll] | Runs a keeper on a file of signed eggs. |
measure [--n] [--ahead] | Sends plain transactions aimed at a block and prints where they land. |
measure
This is how real precision is established. It needs a funded key (each trial costs a little gas) and, for a fair result, a private RPC. It prints a histogram of landed - target and the share within one block.