All Questions

0
votes
0answers
9 views

How to mine ether on private network with CPU?

I have a private ethereum network and connected my own pool to it. Now I want to test the mining process with my CPU, what are some the ethereum mining software that support CPU mining and stratum ...
0
votes
1answer
10 views

Getting Fatal: Error starting protocol stack: Genesis not found in chain

I am getting the following error in one of the nodes, I have a quorum network running. Fatal: Error starting protocol stack: Genesis not found in chain DEBUG[02-19|08:37:08] FS scan times ...
0
votes
1answer
17 views

I am following Ethereum Book, but I am getting errors in the Terminal

I am learning Ethereum Development from the Ethereum Book by Andreas. I have stumbled on the first error trying to do $ cargo install . I will post the instructions as an image and the errors I got. ...
0
votes
0answers
7 views

Transfering tokens from Mulisignature wallet

I have a multisignature address, say X. This multisignature is done by a contract for transferring eth. But I have purchased some tokens(ERC20), how can I transfer tokens. I am confused because I ...
0
votes
0answers
15 views

Token transfer failed - Reverted

i trying transfer tokens ERC20, but all my transactions failed - Reverted. Example "0x4fe5b29d3fabaac6bc7b82574ab7f2a6d024134ca927fa9315e824c74c3d1364" But i trying with "MetaMask" and transaction ...
0
votes
0answers
15 views

Web3js: How to check the progress sendSignedTransaction()?

Im using a job queue for the transactions. I need to know progress to inform the users the status of their transaction. I've just tweak this code https://github.com/ethereum/web3.js/issues/1151#...
0
votes
0answers
11 views

Difference between Recursive Linear Prefix or Recursive Length Prefix? Vs Google Protocol Buffer (Protobuf)

Like to know what is the difference between Recursive Linear Prefix and Recursive Length Prefix? I have seen both around Are there they same? Or different? Also would like to know the reason why RLP ...
0
votes
0answers
13 views

Unable to transfer token from one personal account to another

I have created two personal account on private blockchain with geth. This is the balance of one account web3.fromWei(eth.getBalance(eth.accounts[0]), "ether"); 100000000000 And this is of the ...
0
votes
0answers
11 views

How to properly stop and restart docker for geth node?

I am trying to run geth testnet(ropsten) node using docker container. At first, it runs find, but when I stop and restart the container, I got bunch of warning like WARN [02-19|04:01:19.459] ...
0
votes
1answer
15 views

Block header hash calculation [duplicate]

What inputs go into the RLP and Keccak function to calculate the block header hash? I looked up the header struct. Which of those values are fed into the RLP, Keccak? Were nonce and mixed hash left ...
1
vote
1answer
14 views

block hash from block-header rlp [duplicate]

Given the RLP of a block header, how do i get the block hash? https://github.com/ethereum/go-ethereum/blob/master/core/types/block.go#L99 The above link says: Hash returns the block hash of the ...
0
votes
1answer
17 views

Import geth account into metamask

How do I import a keystore file generated in geth into Metamask? Is there a simple way for me to convert the ciphertext into a private key, can I decrypt it with my passphrase somehow?
0
votes
1answer
6 views

Private chain, metamask, accounts

I am wondering how a private chain can communicate through Metamask. My biggest concern is the HttpProvider and accounts. Aren't accounts accessed through the web3 instance? Since accounts aren't ...
1
vote
1answer
15 views

Can abstract contracts in solidity have state variables?

I want to have one deployed contract with my data structure and all data and another separate contract with functions that calls the deployed contract. If i've understood things correctly, one should ...
1
vote
2answers
15 views

Help with signTransaction

i need help com many parameters for sign a transaction. What is "nonce"? How i calculte gas value? How i calculate gasPrice? what is data field? Chain ID 1 is a Mainnet? I will using infura. $...
0
votes
0answers
14 views

unable to deploy contract on rinkeby network

I am trying to deploy my contract to rinkeby test network but unable to do so here is my contract code. pragma solidity ^0.4.17; contract Inbox { string public message; function Inbox(string ...
1
vote
1answer
9 views

How to resolve 'ethereumjs-testrpc@beta' error while using 'npm –g install ethereumjs-testrpc@beta' in Nodejs command prompt

While setting up my Solidity Environment Using NodeJS, Node Package Manager (NPM) and Truffle which was successfully installed. But at the point of running "npm –g install ethereumjs-testrpc@beta" I ...
0
votes
1answer
21 views

How to compare two bytes32?

I was using strings before I read that using bytes is gas cheaper. Now I changed my strings to bytes32 but I don't know how to compare them. I need to check if two bytes32 are equal in the require ...
0
votes
0answers
14 views

network eth and network Ropsten

in the network of the ether , i sent eth 2.62 but on the network ropsten eth of0xe2fcd50EfdD674C26f894aB5ad71fEcB14b7cDA4 = Ropsten wallet. money did not come, but they can be seen in the same ...
0
votes
1answer
12 views

change algoritm eth

how to find a file that is responsible for searching for a hash in the go-ethereum folder? and where to find it in the standard GPU miner from ethminer? (cuda) I want to change a little https://...
0
votes
0answers
35 views

I can't get ERC20 token sweep from a contract to work

I wrote this contract below that would create a factory contract which generates user deposit addresses. the user addresses would forward any deposit to the authorized caller on the factory contract, ...
0
votes
0answers
2 views

Getting return data from a transaction hash using Nethereum

I'm using Nethereum to call a non-view/non-constant function of a smart contract that modifies the state of the smart contract and returns a boolean value. The result of submitting this transaction ...
0
votes
1answer
17 views

How to run a contract in specific time? [duplicate]

I am developing a simple application that should work only in a specific time, lets say between 0800 hrs and 1600 hours. How can I do it. That means. The contract should start by itself at 0800 and ...
0
votes
2answers
8 views

Making a data Registry - does reading from other contract view function cost gas?

As known, reading view functions is free, but is it also free if I use it between two contract? Let's say I have a contract Registry which has mapping that stores string => uint, nextly I pay some ...
1
vote
1answer
11 views

Costs in gas of changing the value of a variable

Maybe a little bit weird question, but can the amount of gas, when: SSTORE is used(for changing an existing variable), be lesser than 5000 gas? If no, are there discussions in community to reduce ...
0
votes
0answers
9 views

Syncing from hardcoded block in parity light client?

I need to sync my parity light client from a hardcoded block. I synced the light client fully in a Debian image and exported the hardcoded sync. I then pasted it in the chain spec file of a desired ...
0
votes
1answer
14 views

web3 reading memory string gives error

i have declared a string variable in struct like struct test{ string testString; } I have written a function to access the variable like function getteststring(uint256 index)public ...
0
votes
1answer
17 views

Can transaction fail after being sent?

I wonder what would happen in following hyphotwtical scenario. Transaction is being sent with blockchain state A. In this state transaction consume 100_000 gas and sender has enough funds to pay for ...
0
votes
0answers
13 views

TypeError: Cannot read property 'slice' of undefined

web3.eth.accounts.signTransaction(transactionObject, process.env.WALLET_PRIVATE_KEY, function (error, signedTx) { if (error) { log(`${error}`.red); } else { web3.eth....
0
votes
1answer
19 views

How to wait until transaction is confirmed web3 0.20.3?

I am new to web3. I am trying to connect UI with web3. Metamask version is 6.0.1 and web3 version injected by (don't know who), but it is 0.20.3. Following is my code to send ethers to a function of ...
0
votes
0answers
6 views

how to call function in proxy contract

https://github.com/rayonprotocol-research/solidity-upgradable-contracts/blob/master/contracts/Proxy.sol I'm practicing proxy pattern but i dont know how to call function at logic contract from proxy ...
1
vote
1answer
22 views

How to compile solidity files in nodejs using solc@0.5.4?

I am using node@10.14.2 and solc@0.5.4 to compile solidity files using the following code: var solc = require('solc'); var input = { language: 'Solidity', sources: { 'Bon.sol':{ content:...
0
votes
0answers
9 views

New account geth [duplicate]

Is there a way to generate a new account with ether in a private chain. Or is possible to add new ether to a existing account?
0
votes
1answer
21 views

Balance always 0

I synced my node and still the balance of my account "0x296A36E8E5A164FB91c96CBDFA7E92dCdA29805C" keeps returning 0. The block that my transaction was made is 7227432 and the block I am currently on ...
0
votes
1answer
15 views

Can be fix our token price to a stock?

For example can we create a pepsi token which is fix to pepsi stocks? Do you think that is useful?
1
vote
2answers
22 views

Does any reverting instruction (assert, require, revert, throw, etc) undo ETH transfer?

I have code which transfer the ether to another address. And below that, I have require() condition will be failing. so will that execute the ether transfer or it will not transfer? function ...
0
votes
0answers
16 views

Is it dangerous for my geth node to accept connections from random IP addresses?

I am running a geth node with a number of RPC and WS options available. In looking at the logs, I am seeing attempted connections from random IP addresses. They look as follows: TRACE[02-17|22:19:32....
0
votes
1answer
12 views

Cannot see account created when using getAccounts

i have setup private blockchain on vm using geth and i have created personal account for deployment of contract on private blockchain. Now, when i try to create new account, i am able to do so but i ...
1
vote
0answers
16 views

How is the block interval constrained in Ethereum 2.0

Sorry if i get any of the terminology wrong here, i'm no expert when it comes to PoS protocols. How does Ethereum 2.0 control for blocktime, typically we have the idea of a function that can be ...
0
votes
0answers
36 views

Infinite gas cost when trying to use transfer()

I tested the contract using Remix Javascript VM, Injected Web3(Ropsten) and in-built Ganache client from Embark Framework(4.0). Always getting infinite gas usage. Can someone please help me? This is ...
1
vote
0answers
9 views

How the following scenario be achieved using smart contracts?

Assuming we have two parties (A & B). How the following scenario be achieved using smart contracts? User A will deposit some funds (x coins). user A can receive penalty funds from user B, So user ...
0
votes
0answers
18 views

How does new block propagation, step by step, work in Ethereum?

I'm trying to understand how nodes propagate new valid blocks in Ethereum. Here's my attempt at a step by step how description of the process: 1. Miner constructs a new block and starts iterating ...
1
vote
0answers
28 views

Function call always returns 0

Working with a simple contract to get the hang of this. I can't seem to get the correct value back from my contract function. It always outputs 0. Truffle version: 4.1.15 Contract: pragma solidity ...
0
votes
1answer
22 views

Pushing a stuct into an array

What i am attempting to do is elementary, adding a struct to a storage array. But for some reason I am getting the following error TypeError: Indexed expression has to be a type, mapping or array (...
0
votes
0answers
17 views

How to use latest web3 version from metamask?

Im new to web3 and Im using following code to connect my UI to web3. // Modern dapp browsers... if (window.ethereum) { window.web3 = new Web3(ethereum); try { // ...
0
votes
0answers
17 views

Web3 vs. web3.js

Experienced iOS developer here - but very new to Ethereum Smart Contract development. I'm trying to figure out why the web3 version that gets loaded by MetaMask into my browsers when I run my app (...
0
votes
0answers
16 views

Errors when trying to Compile & Deploy Election Smart Contract

Cloned a project from a tutorial from here which is a voting dapp on etherum https://github.com/dappuniversity/election. When i try to compile the contract i get the following error project/...
0
votes
1answer
16 views

Pushing constructor result to contract member array

I'm trying to do the following operation in Solidity: BetCampaign memory newCampaign = BetCampaign(id, new Bet[](0), betEndTime, false); betCampaigns.push(newCampaign); With the following member ...
1
vote
1answer
16 views

How to make transactions real-time for Dapps

I am intrigued how exactly an Ethereum transaction's "state changing" works. I have read about the Bitcoin transactions, and so understand how the basics of validation and propagation through the ...
0
votes
0answers
19 views

CORS policy error while connect to test-rpc

I'm trying to build my first dapp using test-rpc and web3js. I deployed a smart contract (with remix ide) to the testrpc (on linux ubuntu), when executing the following line: web3 = new Web3(new Web3....

15 30 50 per page