Hot answers tagged

2

What is the meaning of stipend if transactions are always have gas limit set by sender? Not really. When EOA calls contract A, the gas limit is set in the transaction, this is true. However, when contract A calls contract B, contract A may set limit on how much gas the contract B is allowed to spend. This limit may be lower than the remaining gas ...


1

The stipend is 2300, not 23000. A scenario where this stipend is not enough: Changing a state-variable from zero to non-zero.


1

Short answer The issue is in the line where you try to transact with the function. You should not be invoking call() before transact(). The following modification should fix it: tx_hash = contract.functions.send(address, 5).transact({"from": config.ADMIN_ADDRESS}) Explanation Given the wording of your question I think you maybe be unclear on the ...


1

A contract can't recieve funds by dafault. To make it possible you need to add a payable fallback function to the contract code. It should looks like this: function () external payable {}


1

how can i automatically generate bunch of eth accounts and export heir private key? You can generate eth account with private key using web3 API like: web3.eth.accounts.create()(demo code) how can i check for deposit/transactions in that address You can do this using RPC calls, using Etherscan API. By using below api you can get all transaction done by ...


1

This error happened because, in this case, S has leading zero bytes R: 4f 9d d7 50 69 b5 1d 36 .... S: 00 44 28 04 75 c3 d3 55 .... ↑ not allowed while RLP decoding While decoding, geth treated R & S as integer, meaning leading zero is not legal to process. In order to solve this issue, you simply have to remove leading zeros and RLP it. you ...


1

I Personally used the 2nd option enumerated by KanekiDev. When you start the console the first time the chain configuration is loaded from the genesis.json file, the best way is set a lot of eth in the alloc section: { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "difficulty": "20", "gasLimit": "2100000", "alloc": {...


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