gitlab.com/aquachain/aquachain@v1.17.16-rc3.0.20221018032414-e3ddf1e1c055/Documentation/node-operator-guide/ConsoleCheatcheat.md (about) 1 # Console Cheatsheet 2 3 ### Node Operators 4 5 read aquachain help to see all flags 6 7 use `aquachain [your flags] dumpconfig > /tmp/aqua.config` to create a new config that shows additional options. 8 9 make sure you somehow send SIGINT to your aquachain node before system shutdown. 10 otherwise, your node will have to resync a number of blocks. 11 12 with your node running, even without -rpc flag, 13 you can run `aquachain attach` and connect to your instance through ipc socket. 14 15 here are some useful snippets 16 17 ``` 18 // use now() anywhere you need a timestamp 19 now = function () { return Math.floor(new Date().getTime() / 1000)} 20 21 // for example exporting chain to a timestamped file 22 admin.exportChain('aquachain-bootstrap'+now()+'.dat') 23 ``` 24 25 26 ### Mining Node Operators 27 28 sometimes you'd like to change something without restarting the server 29 30 ``` 31 // change minimum gas price for inclusion (local txs can still be 0) 32 // use -gasprice flag, example 1000000000 33 miner.setGasPrice(web3.toWei(1, 'gwei')) 34 35 // change the extradata included in block 36 // use -extra flag 37 miner.setExtra("hello world") 38 ``` 39