All Questions
15,551
questions with no upvoted or accepted answers
22
votes
0
answers
791
views
E/Go: fatal error: thread exhaustion
I am experimenting with the geth-android library with light-client and in-process node from @karalabe. I could successfully sync with the testnet node from @phonikg, unfortunately this one is down now....
13
votes
1
answer
917
views
Trying to compile example code from pyethapp tutorial
I am trying to follow this example:
https://github.com/ethereum/pyethapp/wiki/The_Console
However, at the point where I should compile the code, I get an error:
In [34]: print c
contract NameReg{
...
12
votes
2
answers
3k
views
Geth State heal in process explanation
I had a synced geth node (syncmode default = snap).
After restarting the machine geth starts to sync again. Ten hours are passed but still syncing.
In the log file i see a lot of State heal in process....
10
votes
3
answers
1k
views
Running a geth light client, how do I resolve the error: "No trusted canonical hash trie"?
I've been running a geth light client to deploy smart contracts through Truffle Migrations to mainnet. I'm getting: "Error: No trusted canonical hash trie".
Any help in what this entails and how to ...
10
votes
2
answers
853
views
Error: "message":"function \"Ballot\" arguments must include \"proposalNames\""}
I am trying below code to write Voting Contract referring to Solidity documentation pdf.
Code compiles without error but I am getting below error while deploying.
writing Ballot to app\meta\Ballot\...
9
votes
4
answers
2k
views
Adding Wallet using web3.eth.accounts.wallet.add
On web3 0.20.1, I am using Infura to deploy a contract to Rinkeby. This probably requires me to add a wallet to web3.accounts to provide the gas needed.
When I ran the following nodejs code,
Web3 = ...
9
votes
0
answers
438
views
Peermanager is unable to connect to nodes
I'm following this guide and am trying to create a private network with its own block chain and peers.
I managed to install docker following this guide (I'm using a debian 8 jessie virtual machine) ...
8
votes
1
answer
901
views
How to use Nodejs/Javascript and LevelUp to read Blocks from local geth database files (.ldb)?
Here's what I've been able to get going to far. I can open the blockchain database but I can't seem to create a valid blockchain object (nor call the blockchain.getBlock() function successfully). I'...
8
votes
3
answers
1k
views
TestRPC and Metamask: hanging on pending transactions
I'm using Remix and connecting to Testrpc via Metamask.
I can successfully launch contracts to testrpc, but then it hangs on the subsequent calls that Remix makes to the public methods (Remix says "9 ...
8
votes
1
answer
1k
views
getting started with geth and ENS commands: Error: invalid address
I'm starting from square zero, sorry. I'm just trying to get a javascript console up and running so that I can learn more about ENS:
http://docs.ens.domains/en/latest/userguide.html#resolving
I've ...
8
votes
2
answers
806
views
Block header structure change under Proof of Stake?
The yellow paper describes the below block header structure:
This includes difficulty, beneficiary, mixHash and nonce values. Presumably these will be redundant under Proof-of-Stake. How will the ...
7
votes
1
answer
200
views
Are Ethereum 2.0 shards just disguised L2?
I've had talks with some colleagues of mine about Ethereum 2.0 shards, my problem is the following :
Given the definition of sharding :
sharding is a way of partitioning to spread out the ...
7
votes
1
answer
2k
views
hardhat mainnet forking and impersonating an account isnt working, help!
So I'm trying to fork the mainnet using hardhat, impersonate a Dai whale, and transfer its Dai to a hardhat wallet for testing a smart contract, but I'm running into problems.
My code looks like this:
...
7
votes
1
answer
878
views
How to get Truffle to generate artifacts for contracts outside of project?
Say I have a contract MyToken.sol which has already been deployed to a public Ethereum network. Its source is maintained in an external repository and is included in my package.json file so that it ...
7
votes
2
answers
803
views
What is the safest way to use WS-RPC server in geth?
In this answer, it is suggested that it is not safe to use --wsorigins="*" for security reasons. What are the security reasons?
=> How could I make WS-RPC server connection secure in geth?...
7
votes
0
answers
200
views
Quorum: Extending list of participants that can access private transactions post transaction creation?
According to the Quorum roadmap (which is over a year old now) the team at JPM was planning to add a feature whereby additional parties could be given rights to view private transactions after those ...
7
votes
2
answers
211
views
Receive deployed contract address by transaction hash with JSON-RPC request
I want to receive deployed contract address by transaction hash.
Transcation example - 0x996a683acd59a2ad17461f76ce0f387a89a5ac257ec5d667556219c6acc7f45a.
As you can see this contract was deployed by ...
7
votes
2
answers
628
views
Parity-like Solution for using Ledger Nano Anywhere
I'm looking for a "Parity-like" solution so that I'm able to use my Ledger Nano on any Ethereum-powered website that doesn't support a Nano natively (something like Radar Relay).
I know I can do this ...
7
votes
2
answers
360
views
Error importing transaction: Transaction(InvalidChainId) in Private POA
Problem
I am trying to send some transactions to my private chain, and all transactions are getting failed. I am receiving this error:
Error importing transaction: Transaction(InvalidChainId)
...
7
votes
1
answer
758
views
Parity Error: Account not found for the current chain (Kovan)
I am having problem starting Parity with a account that I created using Metamask. This account 0x76Eb17471A5fb78EF6768254D1dAEc528ec6b5a8 has received multiple ETH from Kovan faucets.
Running the ...
7
votes
1
answer
925
views
Deploy contract in web3j quorum problem
I'm trying to deploy a smart contract (7 nodes sample from Quorum) using web3j.
It fails at get() to get the contract wrapper object. If I check the logs, a new transaction will show up, but if I call ...
7
votes
1
answer
709
views
Submitted transaction not propagated to all nodes
I have a private ethereum blockchain network running set up in 3 nodes using geth.
If i submit a transaction(smart contract function call) to one node and go to another node and type in eth....
7
votes
1
answer
543
views
Installing go-ethereum nodes using docker swarm?
Has anybody installed and configured go-ethereum nodes using dockerswarm ?
Appreciate if anybody could share any docs or relevant information.
7
votes
0
answers
356
views
testrpc 2.0.0 - cannot find module 'memdown'
Trying to get testrpc (2.0.0) working on an ubuntu virtualbox, and getting this error when I run it:
mowliv@u4:~$ testrpc
module.js:341
throw err;
^
Error: Cannot find module 'memdown'
...
7
votes
2
answers
2k
views
Windows curl error with JSON-RPC
Using Windows, when I started Geth with:
geth --rpc --rpcaddr 192.168.1.9 --rpcport 8545 --rpcapi "eth,net,web3,personal" --datadir C:\Users\BulldogBud\AppData\Roaming\Ethereum\testnet\chaindata --...
7
votes
4
answers
4k
views
Sync done but latest block number 0
I am running geth 1.8.0
I have been running the node for over 24 hours
> eth.syncing
false
> eth.getBlock("latest").number
0
Is this a valid state?
Why is the number 0 even though syncing is ...
6
votes
0
answers
3k
views
SushiSwap - Inner workings?
I've been trying out in the past few days SushiSwap and lately SashimiSwap Contracts & Frontend and while I'm still getting familiar with the code. It turned out to be quite a challenge to make it ...
6
votes
0
answers
4k
views
Stack too deep when compiling inline assembly
I'm running into a YulException: Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack. using a smart contract that has this function. I took this ...
6
votes
0
answers
122
views
Is go-ethereum performance much affected by linux filesystem choice?
Storage performance often seems to be a bottleneck when running a geth node, even when running on SSDs.
Does anyone know of performance comparisons under different linux filesystem choices? By ...
6
votes
0
answers
64
views
How to Measure and Manage Witness Size
In https://ethresear.ch/t/the-eth1-eth2-transition, Vitalik wrote:
If you are a developer, you can eliminate the largest part of
disruption from gas cost changes by proactively making sure you ...
6
votes
1
answer
209
views
String Input of three numbers (comma seperated) doesn't work in Remix
So when I try to put in three numbers as a String in a usual setter-method, it doesn't work.
Does anybody know why?
function test(string memory x) public view returns(string memory){
return x;
}...
6
votes
1
answer
462
views
Native mobile Dapp - Sign transactions with user wallet
I'm starting a new project that involves a mobile Dapp and I have a question regarding signing transactions.
Every mobile Dapp post that I read about offered two solutions:
Use a Dapp browser, such ...
6
votes
0
answers
806
views
What are the ramifications of changing `--port` in geth?
If I'm running a full node with --lightserv enabled for several hundred clients, what are the ramifications of me running geth on a port other than 30303? If I change it to --port 2345 will I still be ...
6
votes
2
answers
110
views
Ethereum client implementation
I think to better my understanding of the EVM and underlying file system, I want to read through one or more ethereum client implementations and potentially build a client myself. So far I've been ...
6
votes
2
answers
620
views
creation ERC721 error: Transaction failed, invalid address,
I would like to learn how ERC721 token works. I found some sample contracts online and tried to use remix and Ethereum Wallet to deploy the contract. The compile was fine but failed in the creation.
...
6
votes
4
answers
3k
views
"Mock compiler : Source not found" Error in Remix online IDE
I haven't been able to compile any solidity code because of this error.
How do I solve this problem?
6
votes
2
answers
2k
views
Smart contract erc20 code snippet to prevent buyer token transfers
I´m going to start a token pre-sale and I want to be able to send the tokens to the buyer but prevent the buyer to send tokens to another wallet.
I tried the following in my ERC20 smart contract but ...
6
votes
1
answer
3k
views
Etherscan: Effectively paginate `Event Logs` result
I am using Etherscan API for various Ethereum details.
I need to find out the tokens transferred from a token original contract (let's say A) address to a particular address(let's say B).
For this ...
6
votes
1
answer
2k
views
API resource for determining all address holders of a contract
I would like a RESTful API for viewing all addresses which holds a balance of a specific contract.
It seems that etherscan.io deprecated this feature, or I'm looking at the wrong endpoints
Are there ...
6
votes
2
answers
1k
views
Where are DApps hosted?
Certain functionality of a DApp can be hosted on the blockchain as smart contracts. How about other resources such as HTML and JS files? Multiple places reference "Swarm" as the place to host these ...
6
votes
1
answer
829
views
Problem with start() in web3-provider-engine
While trying to connect to a provider(infura) I get the above error below is the full stack trace:
bundle.js:54318 Uncaught TypeError: this.provider.sendAsync is not a function
at Web3Subprovider....
6
votes
0
answers
151
views
EthereumJ IO Error Too many open files
While using EthereumJ: SocketException or leveldb.DBException are thrown:
leveldb.DBException: IO error: /data/bitgo/database/state/549361.ldb: Too many open files
6
votes
2
answers
203
views
Writing GBytes of data to disk, despite no network activity - what, precisely, is geth doing?
I'm watching geth 1.4.17 on Activity Monitor.
Judging by the Network page, it's not doing anything. Rcvd Bytes is 5.9MBytes, and Sent Bytes is 2.6MBytes, and it's been that way for a while now.
But ...
6
votes
1
answer
2k
views
Mist error: "unable to connect to socket:timeout"
In mist wallet i am getting an error of unable to connect to socket and couldn't compile source code.Do help me where i am doing the mistake.
5
votes
0
answers
2k
views
Merkle tree whitelisting
Ive been trying to whitelist huge amount of addresses with merkle tree.
Here is my json:
[
"0xb860BA0E67C8......5ca4b4720d49F549AE8faA",
"0xaF019d749865.......f044C1A534e1eC9F0D353"...
5
votes
3
answers
931
views
"TypeError: Cannot read property 'sendTransaction' of null" error when deploying to Ropsten testnet using hardhat
I am getting the error:
TypeError: Cannot read property 'sendTransaction' of null
at ContractFactory. (/Users/UserName/Downloads/nft-marketplace-ethereum/node_modules/@ethersproject/contracts/src.ts/...
5
votes
2
answers
1k
views
How to use a placeholder image during minting, and then only updating metadata with the actual URI after minting?
As per the title. I want to be able to have a placeholder image for my NFTs, something like this:
https://opensea.io/collection/thealcabones
Then subsequently, after launch, I then update the metadata....
5
votes
0
answers
2k
views
Can gas price and amount of gas be automatically set by metamask, or are they required to be set via code in web3.js (EIP-1559)?
I am using web3.eth.Contract to deploy a smart contract to the ropsten testnet. To interact with metamask I am using window.ethereum. I deploy the contract via the code below that I found on https://...
5
votes
1
answer
1k
views
What is the logic behind token reflections?
I've noticed that a lot of tokens that implement reflections come from safemoon. And I was curious about how safemoon did reflections. I expected to find a for loop somewhere where they are adding to ...
5
votes
0
answers
53
views
Is there a zk-rollup proof explorer?
With the rise of various L2 solutions I started wondering whether it's possible to inspect the transaction proofs which are sent to L1. Is there a tool with an interface a'la block explorer, but ...