New answers tagged

1

If you're connecting over RPC, you're limited to 1 ETH by default unless you include this flag when you start geth: --rpc.txfeecap value where value is the amount in ether. [Reference: https://geth.ethereum.org/docs/interface/command-line-options]


-3

Easy way: https://cointool.app Harder way: Source code: https://github.com/rstormsf/multisender/blob/master/contracts/contracts/multisender/UpgradebleStormSender.sol function multisendToken(address token, address[] _contributors, uint256[] _balances) public hasFee payable { uint256 total = 0; require(_contributors.length <= arrayLimit()); ERC20 erc20token ...


0

i tried - but geth 1.8.23 just stops working, other versions work - but not with Mist/Etherum Wallet .. greetings Clemens


1

You do not want either. You want a free Ethereum API node service like one from CloudFlare or others. Light nodes are not feasible for real applications, as they do not provide API services and data needed.


0

Just like all the others outputs, Web3.js handles the events.


0

It looks like you probably were mining. You should use a mining calculator to work out the likelihood of mining anything though. https://etherscan.io/ether-mining-calculator Does Mining require Good Internet (using Satellite) Mining is essentially a race against the other miners to find the solution to the next block. Anything that slows you down in this ...


4

First question - There are two options here: The backend forms a transaction, and geth signs and sends it to the Ethereum network The backend forms and signs the transaction, and the geth sends it to the network Second question - maybe 2 options: The backend requests new blocks from the geth, extracts events from them and selects the necessary ones The ...


0

I think you'll need to do it this way. const accounts = await web3.eth.getAccounts(); const src = accounts[0]; console.log("1st account: "+src); I hope this works. Edit: To provide more info. const Web3 = require('web3'); const web3 = new Web3(new Web3.providers.HttpProvider('<your_ganache or geth address>')); const accounts = await web3.eth....


0

First use Ethers.js to convert seed phrase into private key using this method: ethers.Wallet.fromMnemonic('Seed phrase here'). Afterwards use web3.js to discover address from private key using this method: web3.eth.accounts.privateKeyToAccount(privateKey).


1

It works the same as any other transactions: You can call a view or pure function in a transaction, and the transaction can be mined as usual. It just won't do anything of course, since it's a view or pure function.


0

Geth binds to localhost by default. To allow outside machines to connect, you can add something like this to the parameters: --http.addr "0.0.0.0" See the Geth documentation for all possible options.


1

geth/parity implement the functionality of the nodes of the blockchain network and actually constitute the blockchain network


0

The logic that I have used is as follows: web3j.transactionflowable.subscribe(tx -> { checkIfMyTransaction(tx.getTo, tx.getHash); }); public void checkIfMyTransaction(String toAddress, String txHash){ // check data base if the address belong to my application and then following logic. This can be contract address or wallet address. // if contract ...


1

It was a fork that was later replaced by the main chain. Fork may be more than one block.


0

In the first case (using is), codes of multiple "contracts" are merged into a single contract you're writing (you can think of it in this way, but there is more to it like order matters and more stuff, it's called "Inheritance"). For easy example taking an ERC20 example. Openzeppelin contracts contain building blocks functionality (like ...


0

Use the keccak algorithm the seed hash "0xf7f6e04564e6b37fb9017324dc2577bd24cd25977037cfe8cd95b590009e2391 for block_number 10757149 is correct. I have test it with python and goeth. And thanks for this Q&A, I also use the wrong hash algorithm: sha3_256 to generate two different seed hashes between the python example and goeth. And spent some hours ...


0

I assume the Ethereum Wallet and Mist are both dead projects? I tried downloading both of them, of course there is just an archive.zip in their respective directories, but even extracting out the archive (which is the 1.8.23) directly into the \binaries\Geth or creating a \binaries\Geth\Unpacked didn't work. Tried downloading the 'latest' which as of this ...


1

You can set the fast sync mode for the first time when starting from initialization. Since your node has already reached the state of synchronization with the chain, it has already been switched to full synchronization earlier. Therefore, no matter what, geth continues to run in full. Now, if you want to load the chain in fast mode, you need to completely ...


2

I know this is a very old post, but since the existing answer is not complete, I decided to post mine. The error listen tcp :30303: bind: address already in use is clearly telling you that the 30303 port is already being used by another program. You can use the following command to figure out what program is using it (it seems you're on a linux system): ...


1

You need to have keystore JSON file from the laptop, and then the password for it. Then you can import the keystore to MyEtherWallet.


0

use --syncmode fast to do a quicker sync


1

On chain a contract can only query the latest state. A contract can store the information it needs in a mapping and consult from there, but the storage isn't automatic it has to be done explicitly. Off chain commands like web3.eth.call and methods.myMethod.call accepts an extra parameter which indicates the block number to make the query from. The default ...


0

To access the name of the function that was called, the name of the parameters of the function, the types of the parameters (uint256, address, etc.) and the value of those parameters, you need to decode the "Input Data" field. An easy way to decode the input data is to use an already built decoder such as ethereum-input-data-decoder. Events are not ...


1

I find it very unnecessary to use an array and traverse over it.If you really want to do something like this, just don't use loop Question 1: Why don't use loops? Answer: Because Transaction fee will increase with each loop and will cost use alot of money. Plus it's the slowest method for searching method Question 2: Then what is other option to do code this ...


1

The EVM is ineffective for working with large arrays. Use mapping. Design your contract to avoid iterative processing of large arrays


1

You question same as this Geth client: how to disable ipv6?. Try swith off using of ipv6 maybe it helps localize problem. Geth hasn't special args to control version of used ipv.


0

Float*10^18 will overflow fairly quickly. I am using the following function: func FloatTo18z(amount float64) *big.Int { s := fmt.Sprintf("%f", amount) a := strings.Split(s, ".") for i := 0; i < 18; i++ { if len(a) > 1 && len(a[1]) > i { a[0] += string(a[1][i]) } else { a[...


1

Can you provide full runnable string the with geth and args? What geth version are you using? Check the all symbols in running string in notepad or other tools. It is look like as syntax error.


1

I have sync the Ethereum Geth node on my Raspberry PI 4B 8GB with 2TB SSD attached via USB 3.0. It took more than 3 months! After that, I have created solution, that can help anyone to start an Ethereum Geth node quickly. Just to download geth chaindata folder via HTTP and continue to sync your own node with defined --datadir key with pre-downloaded folder.


1

How do I connect my web application to my locally hosted geth node? You don't. You need to provide a public Ethereum node to your users yourself or with a service like Infura. Here is a service provider list: https://ethereumnodes.com/


1

There is no function symbol() in the contract at the specified address on Rinkeby. How do I know? Because the corresponding function selector does not exist in the bytecode at that address. Here is a short script (based on your script) to prove it: const Web3 = require("web3"); const web3 = new Web3(new Web3.providers.HttpProvider("https://...


0

You should look into a project called TurboGeth. It's derived from the Geth code base but has made various improvements (significant lowering of on-disc database size for one -- significant initial sync speed for another). They are working on a solution very similar to what you describe for the same reasons. One of their hoped-for future features is the ...


Top 50 recent answers are included