1

The best method is to keep your private keys off the Go Ethereum (geth) server and sign transactions locally. Namely, there are a lot of stateless Ethereum node services like Infura and QuikNode that do not support accounts. Import your private key and create web3.eth.acccounts.Account object. https://web3js.readthedocs.io/en/v1.2.7/web3-eth-accounts.html#...


1

Smart contracts can not autoexecute, they should always be triggered by a transaction. In your case you have a contract A and a contract B. When contract B balance is below a particular values you want contract A to do something. The easiest way to do this is to write a function in contract B to call contract A everytime that contract B is called. Like ...


1

Literals refer to fixed values that the program may not alter during its execution. These fixed values are also called constants. Generally, both terms, constants and literals are used interchangeably.


1

When you start geth node, by default it connects to mainnet. If you want to setup a private network, you should set --networkId to some random number and should not belong to any existing network. You can refer to following tutorial for setting up a private network. https://medium.com/coinmonks/ethereum-setting-up-a-private-blockchain-67bbb96cf4f1 You can ...


Only top voted, non community-wiki answers of a minimum length are eligible