All Questions

0
votes
0answers
3 views

What is the “kovan address”?

I want to get ETH for test with Kovan. I wrote my account in the Kovan Testnet/faucet. (https://gitter.im/kovan-testnet/faucet) It took around 3 hours, but I didn't get anything. (I checked metamask,...
1
vote
1answer
7 views

How to build a contact that allow rating?

If I have a contract that has a list of sellers, how would I code a simple contract that if some condition applies, the contract in an automatic way will increase the reputation/rating of the sender ??...
0
votes
0answers
5 views

How much money was spent on gas for CryptoKitties transactions?

Just the main NFT contract for CryptoKitties, not the auction sale or other helper contracts. Bonus points if you can also include billable transactions that started from another contract and then ...
1
vote
1answer
10 views

Sending hundreds of signed transactions with web3js which succeed but can only find a couple on Etherscan

I am using web3js to send hundreds of transactions to Ropsten (will eventually change to mainnet) and I am getting a tx hash for all of them, which means that supposedly, all the transactions have ...
1
vote
1answer
8 views

Balance should not be zero on this address I suppose

for address https://ropsten.etherscan.io/address/0x00916c608868c68f4cd8bea6786ab40b24b55392 balance is shoving 0 but from transactions it should be little more than one ether I believe there is ...
0
votes
0answers
8 views

How to get gasPrice from API and use it in truffle.js mainnet network?

I'm fairly new to javascript and I'm trying to automate pulling the gas price from an api and using it into the truffle.js used to execute via truffle. Basically, I can pull the gasprice via the API ...
1
vote
0answers
6 views

Create Accounts Using Web3.js in Browser

TL;DR - Replicated Ethereum Blockchain. Running Local Node. Connecting Local Node to Web3.js in browser using RPC. Want to create addresses & send transactions Details - I have a blockchain that ...
1
vote
0answers
11 views

Error: Returned error: Transaction nonce is too low. Try incrementing the nonce

I receive an error when sending raw transactions. I get the following error message. Error: Returned error: Transaction nonce is too low. Try incrementing the nonce. I get my nonce this way: ...
0
votes
1answer
14 views

Should Solidity interfaces always specify return types?

I've seen interfaces in which the function definitions specify a return type, ie: (from openZepplin's IERC721.sol) function balanceOf(address owner) public view returns (uint256 balance); and ...
1
vote
1answer
10 views

Uncaught Error: Returned values aren't valid, did it run Out of Gas?

I'm listening to events of my deployed contract. Whenever a transaction gets completed and event is fired receiving the response causes following error: Uncaught Error: Returned values aren't valid,...
0
votes
0answers
10 views

Deploying fails with different compile version

I'm trying to implement a simple card game. Actually, everything is working fine. Until I tried to move from 0.4.0 to 0.4.22. Any idea what is going wrong? Thanks a lot. And here the code: pragma ...
0
votes
0answers
10 views

Events show up on mined, disappear after

I have a function that fires an event at the end, I have more than one that works like this to create some kind of lifecycle through events. I get the full event history for every event as excpected,...
1
vote
2answers
78 views

How is it possible for 0x0000000000000000000000000000000000000000 to send out ERC-20 tokens?

Isn't 0x0000000000000000000000000000000000000000 a burn address where no one has private key? If that is the case, how can this address send tokens to other addresses? If you look at Etherscan's ERC-...
1
vote
0answers
13 views

Issue trying to mine solo with Geth and ethminer

I am trying to use ethminer in combination with Geth to solo mine with GPU, but ethminer fails to get work. Here is how I do. Geth is running in full sync mode and seems to be properly synchronized ...
2
votes
2answers
31 views

Payable function not being called when ether is sent to the contract address

So I modified the ERC20 token a little bit added two extra functions so that my ICO token contract can call it to send some tokens to the people. This is my erc20 token code. pragma solidity ^0.4.24;...
0
votes
1answer
14 views

How to prevent a token from being exchanged freely

Let's say that I have created a token and this is distributed through a smart contract. Let's assume that this token is not on any exchange and whenever a transaction is executed using this token a ...
0
votes
1answer
12 views

How to use specific version of web3

I have listed the versions of web3 versions installed in my system npm ls web3 inbox@1.0.0 /home/mdvenkatesh/Desktop/etherium solidity programes/inbox +-- truffle-hdwallet-provider@...
0
votes
0answers
8 views

How Blockapps's REST-API work?

I am new to Blockapps. I am figuring out what is blockapp rest api? There github repo blockapp-rest In the repo the repository they referred were removed. My question is if I write the below code in ...
1
vote
1answer
8 views

Set method name for MetaMask history

I have a question about the Metamask UI. Is it possible to set custom transaction method name for metamask history to make it more user-friendly? I want to rename "Bid" (default method name) to "Made ...
1
vote
0answers
10 views

TypeError: Cannot read property 'call' of undefined

I am trying to read a mapping inside my smart contract that looks like this: mapping(address => User) public users; My web3js code looks like this. I am trying to read mapping users inside the ...
0
votes
1answer
6 views

Implementing function to transact with other ERC-20 tokens in smart contract?

A while back I saw an example contract which allowed users to send any ERC-20 tokens through one of its functions, but I can't seem to find anything about this anywhere anymore. So, what is the ...
1
vote
1answer
18 views

Is there a way to test an onlyOwner function from a Truffle/Solidity unit test?

I have a contract with a function marked as onlyOwner (from OpenZeppelin, so only the address that deployed the contract can call it). pragma solidity ^0.4.17; import "./Ownable.sol"; contract ...
0
votes
0answers
20 views

constructor is not getting initialized when deployed contract using truffle-hdwallet-provider on rinkeby test network

My contract is getting successfully deployed on the Rinkeby test network using truffle-hdwallet-provider but, the value I gave to the constructor (string a) while deployment is not getting initialized ...
0
votes
1answer
14 views

Error: Cannot find module 'ethereumjs-wallet'

A truffle test needs ethereumjs-wallet const wallet = require('ethereumjs-wallet'); I tried npm install ethereumjs-wallet and even npm uninstall ethereumjs-wallet npm install --save ethereumjs-...
1
vote
2answers
12 views

Syncing with Mainnet/Ropsten blockchain

If use gethcommand,then the node starts to sync with Ethereum Mainnet by default.If usegeth --testnet --networkid 3 --datadir <testnetdatapath>,then the node will connect to Ropsten. How does ...
1
vote
1answer
12 views

Starting multiple private network in one computer causes Fatal: Error starting protocol stack: Access is denied

Question: How to fix Fatal: Error starting protocol stack: Access is denied? Here is the steps that I try: geth --datadir block1 init /d/nodes/_ethereum/genesis.json geth --datadir block1 --...
0
votes
0answers
10 views

failed to connect Localhost/Infura

I am trying to access a smart contract method through web3.js, but while a request, i am getting a following error in the console. web3.min.js:1 Failed to load https://rinkeby.infura.io/v3/...
0
votes
1answer
13 views

Access private blockchain from another PC/Laptop?

I have private block chain on my PC.The private blockchain is configured and deployed using geth. I want to connect to that blockchain from another node(my laptop) to access the smart contract ...
1
vote
0answers
5 views

Re-setting file permissions on IPC file on Parity re-start?

Can anyone think of a clever way to re-set the IPC file permissions on a Parity re-start? I'm using systemd to control Parity.
0
votes
0answers
18 views

Truffle Flattener creates empty flat file

Using trufffle-flattener, I am trying to create a flat file merging all the related solidity based codes. After executing the flattening scripts, I see only the empty flat file getting created. Could ...
1
vote
0answers
14 views

Retrieve event args from getPastLogs

When we use web3.eth.getPastLogs it returns topic and data properties together with rest data. Does it possible to retrieve event args parsing just data and topic as filter? Without to make additional ...
0
votes
0answers
9 views

How do I access my mined ethereum if my google cloud platform account is suspended? [on hold]

I developed with sql, mysql, ethereum mining kit, nodejs, ubuntu and I was trying to link a wallet to it somehow and I messed something up because they suspended my account due to "suspicious activity....
1
vote
0answers
11 views

Geth RPC send_transaction error -32000

How do you calculate how much gas to use in a send_transaction? Amount: 0x670479cb5385800, // (decimal: 463949500000000000 wei 0.4639495 eth) Gas price: 0x6ddd00 // (decimal: 7200000 wei) Gas: ...
1
vote
1answer
16 views

How to encrypt a string with a smart-contract private-key and decrypt that offline

Say I want to make a smart contract that is able to save secret messages (strings). The messages should be stored only in encrypted form so no one can read them, but should be decrypt-able by a couple ...
0
votes
0answers
6 views

Testing on Truffle: call back was already called

I am trying to test a contract using truffle. My contract code is: pragma solidity ^0.4.22; contract MyContract5{ uint public mynumber; constructor ( ) public { mynumber = 24; } ...
0
votes
1answer
18 views

Writing contract for airdrop distribution

I have a problem. we have an ico. I would like to use the selfdrop method for airdrop distribution. While the superskynet's ico continued, they also wrote a selfdrop contract. can you tell me how I ...
0
votes
0answers
12 views

Remix error: the constructor should be payable if you send value

I have custom token code which extends the implementation of the standard ERC20 Token code. It has approveAndCall() function which sends token to another service contract code address. But I get the ...
0
votes
1answer
16 views

Golang binding - call contract method and get its return value or tuple?

Suppose i have contract like: pragma solidity ^0.4.11; contract MyToken { uint256 a; function SimpleGetter() returns(string) { return "something"; } function DoTheGreat(address _to) ...
0
votes
0answers
12 views

Do uncles have any influence for consesus algorithm

Based on this question: What is the exact "longest chain" rule implemented in the Ethereum "Homestead" protocol? Is the situation still the same and uncles not counted for ...
0
votes
0answers
14 views

Variables are not parsed through a Web3js function

I have a React component that implements a function to parse some public variables of a contract: getData() { const contract = require("truffle-contract"); const contractone = contract(...
1
vote
1answer
11 views

CUDA device Quadro K620 has insufficient GPU memory

I am new to Ethereum and wanted to clarify whether mining is possible if the graphics card has below the required amount of stated memory and it is part of a mining pool? I use ethminer and the ...
1
vote
2answers
25 views

Display Array of struct within array of struct in react

I'm trying to create 2d array of different types, one of the users have suggested to use struct within a struct method -> 2d array of different types? Now I run into problem how to display it in my ...
1
vote
2answers
23 views

ERC20 totalSupply not returning the correct value

I am testing an ERC20 contract based on Openzeppelin-solidity template. But I am observing a curious behavior with reading a global variable. Here is the contract: pragma solidity ^0.4.24; import ".....
0
votes
1answer
11 views

How to get the POW-Hash of a specific block?

I am trying to obtain the pow-hash of a block. Is there a way of doing this easy? Thanks in advance :)
0
votes
1answer
23 views

Can i receive/use an already existing ERC 20 token in a new smart contract?

If i already have an ERC20 tokens created and has basic functionalities of a token sat at contract address A, can i start to develop a new smart contract which can make use of the ERC20 token at ...
1
vote
1answer
34 views

How to get private keys on Truffle from Ganache accounts

Doing some ERC-735 tests on truffle+ganache I got stuck when creating claim signatures. They need to be signed from my ganache account, but I don't know its private key. The code to be used is this: ...
0
votes
1answer
17 views

How to sign a transaction using web3 1.0?

When trying the following code I will get an an wrong JSON RPC response. const fnc = myContract.methods.transferToken(...).encodeABI(); const tx = Object.assign({ nonce: nonce, ...
0
votes
1answer
16 views

Are there UI-builders or automated UIs based on an ABI + contract address?

In order to demonstrate a contract, I want to use a generated UI, based on the ABI. The contract runs on local network, or on one of the testnets. Two options that I am aware of, and that work, but ...
0
votes
0answers
19 views

I am confused with the outcome below

Two contracts (code are for illustrative purposes only. Assume all syntax are correct): contract CA { function FA() public { // Invoke CB.FB() multiple times } } And contract CB ...
1
vote
0answers
10 views

Error Ganache: Run out of gas - Works in Remix/Not from dApp

I am working on an application that stores and retrieves personal data on/from the ethereum blockchain. Just working on this to improve my Solidity and SC expertise and get comfortable with the ...

15 30 50 per page