Most Popular

1500 questions
13
votes
1 answer

What is actually Ropsten? What is a new "network"?

Where can we read about what exactly is Ropsten and it's influence to the Etherium in general?
Radmir
  • 131
  • 1
  • 1
  • 3
13
votes
3 answers

How to retrieve the Contract account balance in web3 or in geth command line?

I have created a private network with miner node using Ethereum. Then I deployed an Ethereum smart contract in the network. I have got the contract address as "0x045bfe22453a9ca06aff4bdc5d7f5870eba121bd" Now from my eth.coinbase I would like to…
Seetharaman GR
  • 851
  • 1
  • 7
  • 14
13
votes
4 answers

How can I split a Bytes32 source into two halfs and store them in Bytes16?

I want to split a 32 Byte source: first half in Bytes16 half1; second half in Bytes16 half2. My code works, however only for dynamic array, not with fixed size 16. pragma solidity ^0.4.8; contract cut { function cutSha(bytes32 source) constant…
floyd
  • 599
  • 1
  • 5
  • 9
13
votes
1 answer

Are internal functions in libraries not covered by linking?

According to the documenation when using a library with internal functions, the function's bytecode gets inlined into the calling contract's function. Can someone confirm if the following is therefore a correct observation? library A { function…
BTCETHswap
  • 376
  • 2
  • 6
13
votes
5 answers

Getting Uncaught Error: new BigNumber() not a number: [object Object]

I am quite new to this. Please help me out. I am trying to build a dapp using meteor. I am having a little trouble with calling a function of the contract using web3. Here's the code snippet that's trying to call the function of the…
Anki
  • 131
  • 1
  • 1
  • 5
13
votes
3 answers

How to check for valid contract address using web3?

I am simply trying to avoid the error: Error: invalid address web3 throws this error when the address to a contract is not valid. Is there a way to catch this error ? I am using web3 in a nodejs app.
0xtuytuy
  • 599
  • 1
  • 6
  • 21
13
votes
3 answers

What is BigchainDB and how can it be used with Ethereum?

BigchainDB says: It is complementary to decentralized processing platforms like Ethereum. In the Blockchain Stack it suggests that the Ethereum "decentralized processing" is above the File System and BigchainDB. How can BigchainDB be used in…
eth
  • 85,679
  • 53
  • 285
  • 406
13
votes
2 answers

How does Etherscan work?

From what I understand, blockchains are not optimised for searching for past transactions. Does Etherscan download the data into another database for more performant querying? If so, how can it download the data and what does it use the query it?
migu
  • 941
  • 2
  • 10
  • 18
13
votes
1 answer

Javascript Client for Light Client Protocol

Is there a Javascript client, even in beta, that implements the Light Client Protocol ?
Bruno Grieder
  • 656
  • 1
  • 7
  • 19
13
votes
2 answers

How to call a contract function/method using ethersjs

I for the life of me cannot figure out how to simply call a function from a smart contract when a button is pressed on the front end. I have been reading over the docs and watching countless tutorials over the past week and still cannot figure out…
Jabari Brown
  • 137
  • 1
  • 1
  • 5
13
votes
6 answers

Error: etherbase address must be explicitly specified

When I make a RPC to geth running remotely, I cannot get the account list / balance of the account. It also says that the coinbase is not set. But as far as I know, isnt the coinbase supposed to be the first account created if coinbase is explicitly…
radiopassive
  • 409
  • 1
  • 3
  • 8
13
votes
4 answers

How can I find out the token balance of some address?

How can I find out the token balance of some address using Solidity? For example, I have the address of another person, and I need to know the number of tokens on his account.
M.Sheremain
  • 511
  • 2
  • 6
  • 10
13
votes
1 answer

How many transactions per second can be processed by commodity hardware?

I am running geth on a private network with the following command: geth --datadir firstserver --mine --minerthreads 1 --networkid 1300 --rpcport 8000 --rpcaddr 127.0.0.1 --port 30303 --rpcapi="db,eth,net,web3,personal,admin" --rpc --maxpeers 3…
Himanshu sharma
  • 782
  • 7
  • 19
13
votes
3 answers

Will a higher stake make more money in PoS?

Since I'm very new to this I'm just going to assume I'm getting it wrong. But here it goes anyway... The higher my stake, the more money I make. This is my raw understanding of how proof of stake works. Say I have a good machine with a decent GPU…
Daniel
  • 231
  • 2
  • 5
13
votes
3 answers

Hardhat get last block timestamp, block number, block hash, nonce, gas limit, gas used

How to get last block information in a Hardhat Waffle test? I checked here https://hardhat.org/hardhat-network/#json-rpc-methods-support And here https://hardhat.org/hardhat-network/reference/ it seems eth_blockNumber is what I need, but how can I…
Russo
  • 1,784
  • 1
  • 21
  • 30