Most Popular

1500 questions
14
votes
4 answers

What Hierarchical Deterministic (HD) wallets are available for Ethereum?

A Hierarchical Deterministic (HD) wallet has some nice features such as easier backup (instead of needing to backup multiple keystore files and the passwords for each of them). Are there any implementations of an HD wallet for Ethereum?
eth
  • 85,679
  • 53
  • 285
  • 406
14
votes
1 answer

Given a contract address, can I determine when the contract was deployed?

Ideally the solution would use web3, but other solutions are acceptable. Motivation: Event lookups can be passed fromBlock field. If I know the block a contract was created, I can more accurately do an event lookup (rather than searching the whole…
Akhil F
  • 1,928
  • 3
  • 19
  • 29
14
votes
3 answers

Error "Snapshot extension registration failed" when connecting nodes

Description. The error occurred during the process of building an Ethernet private chain, and I found that the node could not connect. The error message in the log is as follows. INFO [07-24|09:06:36.121] Generated state snapshot …
肖三之
  • 141
  • 1
  • 1
  • 3
14
votes
3 answers

How to set private key for Ethers Signer

I would like to invoke a smart contract function using Ethers library. Since I have my own node I'm connecting using RPC connection and now I would like to invoke a transfer function (of an ERC20 contract), which according to the documentation…
forhas
  • 785
  • 1
  • 7
  • 30
14
votes
3 answers

How can I test sending Ether to a contract with a `payable` receive function?

I've written Hardhat tests for a Solidity contract that contains a receive() external payable { ... } function. How can I call it within the test with an Ether amount?
vadersfather
  • 243
  • 1
  • 2
  • 8
14
votes
4 answers

How to run Ethereum Wallet on a custom chain?

So I downloaded the Ethereum Wallet I know you can use a custom directory by running geth first with the datadir flag set up, and then launching the wallet. But besides a custom directory, I want to use a private chain. I'm geth on a private chain…
Fernando Tiberti
  • 2,299
  • 1
  • 15
  • 28
14
votes
1 answer

At any given time, how many nodes is my node connected to? As the number of nodes in the network increases, will communication between them be faster?

I have been reading through the DEVp2p documentation and cannot seem to wrap my head around some aspects of the network. Specifically, how many nodes is my node connected to? Does this number change as I perform a transaction? As more nodes become…
user5135
14
votes
2 answers

What is the benefit of using create2() to create a smart contract?

Why would someone use create2() inline assembly code to create a child contract in factory pattern as opposed to using newContract() to create an instance of "newContract"? What are the upsides and downsides of using one over the other?
YulePale
  • 1,843
  • 3
  • 19
  • 46
13
votes
1 answer

oraclize 'VM Exception: invalid JUMP'

Here is my smart contract that uses oraclize to buy bitcoin with ether. pragma solidity ^0.4.0; import "https://github.com/oraclize/ethereum-api/oraclizeAPI_0.4.sol"; contract BuyBitcoin is usingOraclize { address owner; string public…
blue-sky
  • 261
  • 1
  • 10
13
votes
4 answers

Deploying a contract from a multisig wallet

I created a multisig wallet using Mist, but don't know how to deploy a contract from the wallet address. Is it even possible? If so, how to do this?
user4866
  • 131
  • 1
  • 3
13
votes
1 answer

How to interact with the functions of my smart contract in Hardhat?

I am learning to program in Solidity and have followed a basic tutorial on creating a smart contract from a number counter. The tutorial was followed by using Remix and I was very clear about the structure of the code, the deployment and most…
Diego Aaron
  • 255
  • 1
  • 2
  • 6
13
votes
3 answers

Is there a way to set up an Ethereum wallet without downloading the whole blockchain?

(noobie question) I've tried using Mist and/or Ethereum-Wallet, but the tried to node downloaded > 30GB of blockchain data. Thanks!
ronme
  • 1,035
  • 1
  • 9
  • 18
13
votes
6 answers

Is there a list of DAPPS that are already useable?

Is there a list of DAPPs that are already useable? Useable means there is an easy accessible GUI, that can interact with the contract.
mKoeppelmann
  • 7,616
  • 8
  • 36
  • 48
13
votes
1 answer

how to get list of transactions history about specific contract address using web3?

I really don't know how to get a list of transactions history about specific contract address using web3.py and I use Infura HTTPProvider I just have only one 'contract address'. Can i get information about this contract address using web3.py?
juwon
  • 133
  • 1
  • 1
  • 4
13
votes
2 answers

How do I send multiple transactions as one transaction?

Say I need a user to approve a contract with an erc20 token balance and then the contract can execute it's function after. Typically, I would have to do an approve transaction with a nonce of 1 and then call the contract after that with a nonce of…
Dylan Kerler
  • 416
  • 1
  • 3
  • 16