Questions tagged [cpp-ethereum]

The Ethereum C++ client.

Filter by
Sorted by
Tagged with
1
vote
2answers
432 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
636 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
3k 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
104 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
479 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
392 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-...
1
vote
1answer
23 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); } ...
0
votes
2answers
372 views

How to make an action to send record to my database?

I want all transaction of the tokens send to my database through smart contract. For example, A send 10Token to B, it will show on blockchain, but I also want a function which smart contract will let ...
2
votes
3answers
318 views

Hi, is Ethereum MIt licensed?

is Ethereum MIt licensed? Can we use it for business purpose?
1
vote
1answer
169 views

Everyone is asking Now is Ethereum still ASIC Resistant? [duplicate]

According to Bitmain - plus other 3 company in china, that they will lunch Asic Miner Machine for Ethereum this 2nd Quarter 2018. My question is there any way that ethereum can prevent this to happen?...
0
votes
1answer
325 views

Convert contract arguments to ABI-encoded format

My Contract Source https://gist.github.com/munggo/ed25afb0aff9169a6c57f1d464d13177 Convert contract arguments to ABI-encoded format How???
0
votes
2answers
163 views

solidity - forever can't return the msg.sender balance

this is my contract code pragma solidity ^0.4.4; contract IamHongKongTokenBack_00{ // 現在我錢包的地址+Eth量 function SeeMyAddAndETHVar() public constant returns (address, uint) { address _myadd = msg....
0
votes
1answer
161 views

Verify Contract Code Eth

I'm trying to verify an erc20 Contract code for a few days. I have read a lot and tried but just can not get on. maybe someone can help me? Here are the dates: /* Implements EIP20 token standard: ...
1
vote
1answer
6k views

CUDA ERROR : Cannot allocate big buffer for DAG

Windows Config Windows 10 Ram 8GB DDR4 1TB HDD Vertual Ram set max at 20000mb Still having CUDA error. GPU GTX 1060 3 GB x 2 GPU GTX 1060 6 GB x 3 Total 5 GPU
1
vote
1answer
192 views

web3.admin.addpeers return BigNumber Error

When I using ethconsole to deal with a private chain. I hope it can connects to another node which I get the node information. But the command "web3.admin.addPeer("enode://...@192.168.1.29:30304",...
0
votes
1answer
130 views

cpp-ethereum Current block number is 0

I have using eth --private "customChain" --genesis-json genesis.json --db-path data" to create a private chain. and when I into ethconsole it shows: Connecting to node at \\.\pipe\geth.ipc Connection ...
0
votes
1answer
73 views

Feedback the cheat and fraud of etc eth on twitter. How can i recover my loss?

Eth and etc arg two great projects. As i can't find the etc email, hope you can kindly cc to etc too, thanks. A few days ago on Twitter to search for the etheric classic, found an account, and read ...
0
votes
1answer
39 views

What happens to the ETH if the contract is canceled?

I sent ETH to a company during their ICO. The contract, on Etherscan shows, Warning! Error encountered during contract execution [Bad instruction] and the contract was canceled. My question is what ...
2
votes
3answers
2k views

How store ETH in a smart contract

The question it's How store Ether in a smart contract. In first step, I try transfer the transaction value to the smartcontract address doing something y something like that: function storeETH() ...
1
vote
2answers
41 views

Is it possible to fork ethereum so that only specified account(s) can deploy new contract?

Blockchains supporting smart contract are sometimes compared with smartphones in the sense that it is an infrastructure opened to host an indefinite number of Apps, any participant can create and ...
-1
votes
1answer
79 views

Whats wrong with this?

I know I'm not actively mining eth but I can't figure out whats wrong: Found suitable OpenCL device [Turks ] with 2147483648 bytes of GPU memory m 19:19:56|main Getting work package... m 19:19:...
-2
votes
1answer
685 views

How to sent ETH from Parity command line

I was wondering if it is possible to send ETH using the parity command line, without opening the browser and going to the address 127.0.0.1:8080. I want to host my Parity instance on a headless ...
2
votes
0answers
3k views

How to send ERC20 Tokens to multiple addresses? [duplicate]

I've been 2 days trying to do it, with no success. I need to send Tokens to 1300 addresses that participated in the Bounty/Airdrop and I can't send manually one by one, that would take a lot of time ...
1
vote
1answer
267 views

How to invoke multiple oracaliszed queries from a single contract

I want to invoke 2 different orcalized queries from the same contract. I saw a few posts but none of the answer works. Is there any way we can do that? Here is my contract. I was expecting this ...
1
vote
1answer
382 views

I sent ETH to my receiving contract address [closed]

I sent ETH to one of my receiving address which is contract address. But this receiving contract address was my personal trading wallet address. But, no transaction I'd has been received. When will I ...
5
votes
1answer
406 views

Ethereum Merkle Patricia Trie and Hashes

In Ethereum, there's a hash of all of the 3 tries in each block. Out of curiosity. The docs state that the functionality is supposed to just provide a mapping between 160bit keys and values. I find ...
0
votes
1answer
79 views

Smart contract development

I have read at many places peoples require someone with an excellent experience to develop and deploy a smart contract for ICO Here my question is, what exactly smart contract is here? Does ...
5
votes
2answers
669 views

Ethereum Merkle Patricia Trie (Extension node)

I do not have time to look through the source code right now. My questions is: In Ethereum, when is the decision to replace part of a given path with an Extension-node made? I suppose the sole idea ...
1
vote
0answers
30 views

Calculating data amount being mined. Server

Does anyone know how to calculate hardware being used by mining activity on a blockchain? I'm curious what the equivalent hardware usage is in a blockchain. I'm looking for a formula of blockchain ...
0
votes
2answers
51 views

ETC transaction doesn't reflect in myetherwallet -help

I just transfer ETC from my POLO account to the ledger nano s using myetherwallet, Ans something wired happend : Here i dont see that i got anything https://etherscan.io/address/...
1
vote
1answer
44 views

I transferred coins to an address that belongs to ETH wallet instead of ETC [duplicate]

I have a problem. so, Ask for help. by mistake, I transferred coins to an address that belongs to ETH wallet instead of ETC. Is ther a solution for this? Pleas, see below.
1
vote
1answer
140 views

keep records of who did send tokens , smart contract

I am trying to create a contract that only allow people who did send amount of wei to the token , to access a get function by keeping a record of all address & amount . is it possible to do that ? ...
0
votes
1answer
25 views

Spool out result using solidity

Does Solidity have any keyword to spool out results into an external file like .txt or .csv or .dat?
1
vote
1answer
45 views

how to prevent spam block attacks in cpp ethereum?

it is really annoying. I'm running a sync with eth and every 1 or 3 hours there come giant spam block attacks, which slow down syncing dramatically. I delete network.rlp, restart eth and everything is ...
0
votes
1answer
41 views

strange log message in cpp-ethereum eth-log

I see a strange message in my eth-log: [35m⚙^[[97m ◌ ^[[35m07:26:46 AM.561^[[0m^[[30m|^[[34meth^[ [0m Paying 63 szabo^[[0m from sender for gas ( ^[[34m21000^[ [0m gas at 3 Gwei^[[0m ) (sorry for ...
-1
votes
2answers
1k views

Error: listen EADDRINUSE :::8545

C:\Users\Kane>testrpc EthereumJS TestRPC v6.0.3 (ganache-core: 2.0.2) C:\Users\Kane\AppData\Roaming\npm\node_modules\ethereumjs-testrpc\build\cli.node.js:74143 ... ... ******Error: listen ...
0
votes
2answers
419 views

geth attach issue between mac and windows

I am running geth on windows machine and try for geth attach in mac. I give below error: Fatal: Failed to start the JavaScript console: api modules: Post http://192.168.0.107:8545: context deadline ...
1
vote
2answers
874 views

ETH Block Rewards?

So, I'm still fairly new to ETH mining and I have recently heard about something called Block Rewards. I have read a bit on them via Googling, basically sounds like at some point, a miner can ...
1
vote
3answers
209 views

Unable to transfer entire balance? what is the minimun amount needed for transfer?

Trying to transfer from myEtherwallet and it says "insufficient funds" - I lowered the amount and it worked, but I can't get the rest out. I've been searching for several hours (I told you I'm a ...
1
vote
0answers
101 views

Can I use ethminer with just OpenGL

I have created a windows server EC2/GPU instance, downloaded the proper version of ethermine and tried to start mining. It says that it won't work thanks to no OpenCL or CUDa. This is confirmed by ...
0
votes
1answer
332 views

web3 contract TypeError: 'apply' is not a function

I'm Trying to call the apply function on the contract ABI but I'm getting: TypeError: 'apply' is not a function at :1:1 > myContract { abi: [{ constant: false, inputs: [{...}], ...
0
votes
0answers
105 views

ETH stuck after cancelled due to "out of gas

I have seen another questions with the same problem but the answers given there do not work for me and therefor put my question here again. I sent 0.5 ETH and 0.1 ETH from my Jaxx Wallet to Poloniex. ...
4
votes
1answer
3k views

The ERC-20 Token Transfer might have Failed (ErrCode: unable to locate corresponding Transfer event log), check with sender

EtherScan.io is showing error: The ERC-20 Token Transfer might have Failed (ErrCode: unable to locate corresponding Transfer event log), check with sender. Transactions are successful but users are ...
0
votes
2answers
94 views

Is there a way to use A Smart Contract to Read Memory and Write to the blockchain?

Could someone create a smart contract where the target would be to read kernel memory (using some exploit) and then at the end of the smart contact it would write the kernel memory to the blockchain?
0
votes
1answer
2k views

I sent ETH to ETC from coinbase to Bitsane how do I get my coins back? [closed]

I sent ETH from coinbase and received confirmation that they were sent, but It looks like I sent it to ETC from on Bitsane how do I get my coins back? I am very new to this process and very ...
0
votes
1answer
158 views

Is this laptop suitable for Ethereum mining?

I have a laptop with 4 GB of RAM, 1 TB HDD and an i3 processor running Windows 10 and Intel HD Graphics 520. Is there any chance I can mine Ethereum or Litecoin using this setup? If yes please someone ...
1
vote
1answer
377 views

How do I know which transaction generated a contract in Factory pattern?

By factory pattern I mean a contract able to deploy other contracts like in this question: simple bakery factory pattern Each time I trigger factoryInstance.newContract(args).then(promise); I get ...
1
vote
1answer
368 views

Profiling OpenCL Kernels on Linuix

I'm trying to carry out some reasarch on the performance of Ethminer, specifcally I'm looking to get data for any OpenCL kernels that are created during the mining process. I'm trying to assess the ...
0
votes
1answer
30 views

eth sent to non address due to 2 missing digits off the end of address, can it be retrieved? [duplicate]

Etherereum sent to non address due to 2 missing digits off the end of address, can it be retrieved?