Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cpp-ethereum]

The Ethereum C++ client.

0
votes
1answer
23 views

How can I parse internal transactions with light node?

is that possible to receive all transactions from new block with light node and parse all and even internal transactions with the help of its api?
0
votes
2answers
28 views

Cant send ether from one contract to another

I have 2 contract contract A{ uint bidValue; address bidder; function bid() public payable{ bidValue = msg.value; bidder = tx.origin; } } And contract B : import A.sol; ...
0
votes
1answer
27 views

plug our own consensus in any one of ethereum client? [duplicate]

Actually i try to add new consensus and will through modifying some consensus to see its effect on transaction throughput. so what platform should i use that provide me this facility or should i use ...
0
votes
0answers
24 views

What is the m_seal fields in the block header used for?

Can someone please explain what these extra fields in the block header are and what are they for? Edit: Oh, I just understood myself -- mixHash and nonse are stored here. But why is this data ...
0
votes
1answer
23 views

Ethereum receipts blockid and hashes

Preface: The question relates to the relationship between the content of the Ethereum's receipts and the hash of the block header. Problem description: I wonder, in Ethereum, blockid is based on the ...
0
votes
1answer
26 views

How to choose contract address and wallet address

When you start an ICO, to receive a fund from people for your ICO, how do you choose the contract address and your wallet address to receive ETH collected for your ICO? Thank you. And excuse me for my ...
0
votes
1answer
17 views

problem displaying ico

I created an ICO using ropsten (because I did not have an ETH) and when I search for my ICO on https://etherscan.io, I cannot find it. I can only find it here: https://ropsten.etherscan.io. Is it ...
-1
votes
1answer
34 views

How to create and manage a referral link on solidity Smart Contract (unique referral link)

I'm building a DApp in solidity where I want give a bonus to the users that wants promote it. My problem is that, to use my Referral system, now I need to insert manually the wallet address of the ...
0
votes
0answers
30 views

How to upgrade Solidity version in geth or ethereum private blockchain

I have built my private blockchain of ethereum and i'm curious to know that how can i upgrade to new version of solidity within geth so that we also can develop smart contract on newer version as ...
0
votes
0answers
16 views

ropsten eth что делать

I sent eth 2.62(NETWORK ETH) ON the eth ropsten wallet address 0xe2fcd50EfdD674C26f894aB5ad71fEcB14b7cDA4(BUT NETWORK ETH (myetherwallet.com)NOT ropsten eth). How to transfer to the wallet Eht ...
1
vote
0answers
39 views

ethereum wallet running a private net 0 peers 0 waiting for blocks

am using geth VRSION: 1.8.20-stable-24d727b6 and ethereum wallet Ethereum-Wallet-linux64-0-9-3 and i am using Ubuntu 18.04.1 LTS in the geth console i started the miner but either is not ...
0
votes
1answer
48 views

Metamask does not react on delivering gasPrice

I am using following code to generate a new transaction using web3.js & metamask: var web3dictdata = { gasPrice: web3.toHex(10), gasLimit: web3.toHex(210000), to: "...
1
vote
0answers
44 views

Parsing ethereum chaindata using leveldb

I'm new here :) I'm writing a c++ program that parses ethereum chain data. As of present I was able to get the key value pairs by using leveldb::ReadOptions command (as illustrated in the below code) ...
2
votes
2answers
44 views

Identify the block which contains a tx

I am deploying a Smart Contract to a private blockchain. Is it possible to get when your node receives the smart contract? Is it possible to identify the block which contains the smart contract? how?
0
votes
1answer
32 views

Where Can Find the Ethereum source code on Proof Of Stake

Looking to find the implementation of Ethereum Proof of Stake Source Code on GitHub.
2
votes
2answers
1k views

Any quick, easy ways to convert ERC-20 tokens?

Are there any quick ways to convert my Airdrop ERC-20 tokens from various old ETH wallets to ETH/BTC...? Looks like I've got a few hundred $ kicking around in old Airdrop tokens. I've seen a few ...
0
votes
1answer
25 views

is there any problem if i put GETH/PARITY and webserver in one server?

my website need to use something about ETH,so i have to setup a geth/parity rpc server. is there any problem if i set the geth/parity rpc in my webserver?
0
votes
2answers
29 views

Connecting to Ethereum Clients from C application

web3.js is a great library to communicate with client node. I have tried using socket programming from C application to first reach nodejs web app in order to make use of web3.js services to reach a ...
1
vote
1answer
52 views

When do you get eth when mining eth?

I ran Claymore's eth miner for 8 hours and got 200 shares. I set my eth address when I ran the miner, but no eth was deposited to my address. When I restarted the miner the shares were reset to 0. ...
0
votes
1answer
35 views

How is this possible from only one worker/PC?

So I was clicking around on the Ethermine.org site the other day to check out some folks's ETH performance levels and came across one that has me deeply pondering on how he is doing his mining. I ...
4
votes
2answers
346 views

How to exchange ETH to DAI with web3 and node.js

I looking for solution how to convert eth to dai with web3 api. something like https://kyber.network/swap/eth_knc (I can send eth to specyfic contract adress and I receive back DAI to the same ...
1
vote
1answer
42 views

What is a active wallet vs inactive

In Apr. empower had an airdrop that they said only wallets that had .1 ETH. would get it. Was that the customary requirement in Jan when the crypto blockchain was jammed?. And wasn't that lowered to ....
1
vote
1answer
39 views

Where is the state root being updated in Aleth CPP?

Can someone point me to where the state root is updated after each transaction is executed in the block? This is for Aleth
2
votes
1answer
171 views

How Do I take a Snapshot and Migrate Token Holders to a new ERC20 Contract?

I want to Migrate my ERC20 Contract to a new Address, How do I do this ?
1
vote
0answers
36 views

can erc20 token transaction work on Fast Sync-ed node ? OR it need Full node to transact any token?

I need help regarding couple doubts. Which sync method is good for me. My client is asking me to make an Exchange website. Also ERC20 tokens will get transacted in this exchange. Do I need a full ...
1
vote
1answer
54 views

How to use / see refunded gas in ETH blockchain?

I buy a GAStoken contract which requires say 21000 GAS at 1 Gwei and later when we delete/destroy the contract when the Gwei is around 50. I understand that we will get around 50% refund of GAS at the ...
1
vote
2answers
833 views

How do you create a new contract instance with an address *and* arguments?

There is the standard way of creating contract instances with the new keyword where you pass arguments like: MyContract mine = new MyContract(arg1, arg2); Then there is another way, like in this ...
1
vote
0answers
100 views

How do I get a merkle proof (stateHash) from the merkle patricia trie?

So I understand how a patricia trie works, it's a trie using 0 to f as root nodes, and it also removes empty nodes to make leafs and extensions. What I don't get is how the stateRoot hash is made. ...
1
vote
0answers
108 views

Setting up a server to run a geth node - what hardware would you recommend?

I am planning to run a geth node 24/7 on a server, what hardware specs would you recommend for this? I'd like to download the chain pretty fast and want the block download to be consistently quick. ...
0
votes
1answer
68 views

How make other machines join my private ethereum network.

I have created a private ethereum network in my machine, and now I want that other machines join my network. I think I have to send them the IP of the bootnode, but the question is : what about the ...
1
vote
1answer
40 views

Smart Contract Balance = 0

Ok, I am pretty new to developing contracts, and I did so by using dAPP and truffle. But when adding it to the chain, it says there is no balance to the contract. How can I add tokens to be bought? ...
1
vote
1answer
132 views

Best practice in 2018 to claim Ethereum presale purchase [duplicate]

I have the presale wallet and password, but went through a number of trials and just now trying to get back on my feet. I have yet to claim my presale and could really use it to help with medical ...
1
vote
2answers
651 views

How to fetch ETH/USD price from the coinmarketcap api

I want to fetch the current ETH-USD price from this api (https://api.coinmarketcap.com/v1/ticker/ethereum/?convert=USD). How do I fetch just the price into a variable in PHP for reuse on my ...
1
vote
1answer
265 views

Internal Token Transfer without ETH fee

Need to move all token from one address to another address(Internal) without fees. Could you please help me to solve this?
0
votes
1answer
38 views

Transaction Pending and Dropped

I have a transaction pending from 4 days. I have tried to unlock following this answer: MyEtherWallet is pending and dropping. It looks like it is stuck in a loop for 2 days? Now the current nonce is ...
2
votes
0answers
163 views

Hashing Algorithm Equality in zk-SNARK [closed]

I am looking to implement the zk-SNARK capabilities of Ethereum to allow a user to prove that they have all the components required ('a', 'b', 'c', 'd') to create a publicly known hash 'x'. My general ...
0
votes
0answers
26 views

Manually add peers in pyethapp

Is there a way to manually add peers on a pyethapp client? I am looking for an equivalent of geth console's admin.addPeers().
3
votes
1answer
217 views

Details about w3.eth.account.create()

I am currently getting started into developing involving Ethereum. I know what the function w3.eth.account.create() does and returns but I am unsure what happens behind the scenes. Specifically, ...
-1
votes
1answer
72 views

Generate ETH address with button on my website

I'd like to open a website that I can easily generate an ETH address like this website: http://taschh.com/microworkers/cv/generate/ Of course, I will have all of ETH address and its private key. I don'...
1
vote
0answers
49 views

Can the unitsOneEthCanBuy value be changed after Token creation? [closed]

How can I change the value of "unitsOneEthCanBuy" in the contract ? (As the Token is only created & ICO has n't happened)
5
votes
4answers
372 views

Why do you want to use different implementations of EVM?

Currently there are many implementations of EVM (Java, C++, Python, Go, etc). For example: I will be using Solidity to write DApp on the top of EVM-Java and EVM-Python, why would I want to use EVM-...
1
vote
1answer
125 views

how to batch send eth or erc20 from multiple address to one address?

How to batch send eth or erc20 from multiple address to one address? How to do it with code? For example, I have 30 eth address. I want to from 30 eth address Transferring to the one account in ...
1
vote
1answer
371 views

Does an ERC-20 token transfer cost more gas than an ETH transfer?

After messing around on the Remix IDE, I realized that initializing a uint (to any value other than 0) costs about 20,000 gas. Because of this, an ERC-20 token transfer to an account with balance 0 ...
2
votes
2answers
503 views

Decoding ethereum leveldb keys and values

I've created a simple script to read ethereum data from the leveldb using C++. Basically this testing program would print all keys in leveldb to the console. #include <cassert> #include <...
0
votes
2answers
2k views

How to listen to events generated by an existing contract in web3 1.x.x?

Currently I'm unable to find a working solution. Let's say I have the following smartcontract: contract Manufacturer { event LogNewOrder(string order); string[] public orders; function ...
1
vote
0answers
100 views

Library for create ethereum wallet

I want to create an ethereum wallet that is erc20 compatible on my client side. It should allow user to enter his own password and generate private key, recovery phrases and utc file. I try to ...
2
votes
2answers
392 views

Delete/hide ETH address on Ledger Nano S

Is it possible to delete / hide one of ETH addresses that my Ledger Nano S is providing after logging via MyEtherWallet? I know ledger is allowing me to use lots of addresses. It is displaying the ...
0
votes
2answers
311 views

Solidity Smart Contract auto withdrawal (ETH)

I'm kinda new to smart contracts, searched a lot, but hope someone here can help me out. I'll try to explain as good as I can. I'm mining Ethereum with a couple of rigs. Each individual rig auto-...
0
votes
1answer
18 views

tokens and coins based on ETH

I intend to trade tokens and coins using MyEtherWallet. Is it possible to use MEW to do Tx's between ALL coins and tokens, or is the wallet limit to a specific list?
3
votes
2answers
1k views

Invalid address error

I keep getting Error: Invalid address when trying to run the application. My current setup of web3 using infura node is if (typeof web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } ...