All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

getPastEvents cannot handle multiple requests?

When I send about 100-120 requests in async, it is fine, the event will give me a response. But above 150 or so, I get "Invalid JSON RPC response: "" Web3JS 1.2.1 Geth Info: Version: 1.8.12-stable ...
0
votes
2answers
10 views

Rinkeby not producing blocks

transactions are not getting mined on rinkeby testnet and last block time is almost 2 hours ago. How did such things happen in a decentralised network?
0
votes
0answers
12 views

How to check if a method exists for a contract with solidity (or inline assembly)?

For example I want to write a contract where when one passes the address of another contract to it, it will check whether this other contract has the name() function, and if the name() function exists,...
0
votes
1answer
8 views

Can someone explain to me how to add USDT support to my wallet? I use my own GETH node

How to listen USDT contract? How to transfer my USDT to another USDT wallet? How to use both ETH and USDT in the same service? Etc. As you can see, I am new to these issues and would be grateful for ...
0
votes
0answers
4 views

DAO that automatically renews its own Ethereum Name Service with ether generated from its Dapp?

Are you allowed/is it possible to create a DAO that automatically renews its own Ethereum Name system domain with ether collected from a dapp? Are we allowed to do this or does it have to be a human ...
1
vote
1answer
14 views

Different outputs for Keccak256(), which one is right?

To get a value from contract storage I used this geth code succesfully: var contractAddress = '0x88e726de6cbadc47159c6ccd4f7868ae7a037730' var index = '...
0
votes
1answer
7 views

Get array of structs by giving address as parameter

Here's my code: contract company { struct contractDetails { string contractId; string companyA; string companyB; address A; address B; uint256 ...
0
votes
1answer
7 views

How the consensus informations are transported across the network?

Lets consider the scenario, if one node in India, finds the nonce (in pow) and it will generate the block and propagate to the network. How the block will move across the each and every node of the ...
0
votes
1answer
17 views

Is Ethereum suitable as a store of value?

Say you bought some ether when ethereum was at 1.0. Most of the time Ethereum requires you to update (via a hard fork) to the latest software. This means you'd need to update your wallet every time ...
-1
votes
0answers
17 views

Geth - deploy smart contract in a private blockchain

storage.get.call() returns 0 Always for any integer value What may be the solution?
1
vote
2answers
18 views

Is Metamask (and other tools like it) a threat to decentralization?

The concept of cryptocurrencies were to remove trust but tools like metamask require you to trust them with your front end.
0
votes
2answers
17 views

How to cancel pending transaction of ethereum from exchange wallet?

How to cancel pending transaction of ethereum from exchange wallet? It is pending for around 36 hours now. There is no available tx hash.
0
votes
0answers
8 views

Error: IPFSInbox has not been deployed to detected network

It's my first time writing smart contract in solidity and using IPFS to develop my dapp. I don't know how to solve it and why it pops up this errorNo web3 instance injected, using Local web3. Error: ...
0
votes
2answers
11 views

Why would outside investors invest in a ethereum dapp?

I saw today that outside investors put millions into the Minds social network. I thought dapps had no real way of making money? What are the investors actually investing in? -the website that wraps ...
0
votes
1answer
13 views

What layers of a Dapp can be written in a regular high level language vs a niche one like Solidity?

I just saw that the Minds social network (a ethereum dapp I believe) is written in PHP. Their codebase is huge and I'm having trouble finding where their Smart contracts are written/how they are ...
0
votes
0answers
8 views

ERC930 and data upgradability

We are trying to create an upgradeable smart contract. Our first decision is to segregate data and rules. This post focus on data. I read about the ERC930 (https://github.com/ethereum/EIPs/issues/930)....
1
vote
0answers
16 views

Returned value arent valid did it run out of gas?

After migration command line (truffle migrate --reset --network rinkeby), it is deploy. However i couldnt see at etherscan website when i enter the contract address. Should i see? Whatever then i ...
0
votes
1answer
12 views

How can we create ethereum web wallets?

I am looking to create web wallets compatible with ethereum token standards, similar to this: https://wallet.callisto.network/ Can someone guide me to tutorials or guides as how to create this on my ...
0
votes
2answers
19 views

Why 51% hash power require to control the network?

Why 51% is explicitly mentioned to get control over the network?. Why not 50 or lesser ?. Anyway there is no central authority to decide, whether 51% is attained or not?.
1
vote
2answers
21 views

Is there any testnet faucet for ETC Ethereum Classic Coin?

Not able to get testing ETC from available faucet https://etcfaucet.info/, is there any other faucet or way to get ETC for tesing?
0
votes
1answer
23 views

“truffle init” problem

What to do to resolve below issue coming in initiating a truffle project? YuweideMacBook-Air:vantoken yuwei$ truffle version Truffle v4.1.4 (core: 4.1.4) Solidity v0.4.21 (solc-js) YuweideMacBook-...
0
votes
1answer
8 views

Subscribe to events using local geth in light mode?

I've followed this guide to subscribe to events. I succesfully subscribed to the new block headers using Infura provider. But when I try to use local geth node syncing in light mode, it connects, but ...
0
votes
1answer
14 views

web3, nodejs - How to put decimals values ​into the toBn function

I want the amount of tokens to be a decimal number. but i heard that toBn is not supported decimals number. When I put in a decimal number, I faced the following error: while converting number 0.15 ...
0
votes
0answers
12 views

migrating tokens from ethereum to binance [on hold]

i have a contract deployed over ethereum network and now i want to migrate all tokens from my contract and users to binance blockchain. What steps should i take to do so? I have used matic network for ...
0
votes
1answer
19 views

Conversion from calendar format into timestamp format

I see a lot of discussion about date and time, timestamp... But they don't answer to my question: How can i convert from calendar format into timestamp format for comparing datetime? e.g: I have this ...
0
votes
1answer
20 views

Can I use string(or any type) list as an argument of an event?

It`s my event. event Transfer(address sender, address receiver, string[] denoms, uint256[] amounts); And I view an Transfer event with watch() function, It`s the result. { address: "...
0
votes
0answers
10 views

Truffle Migrations run only if not dry run (different account0 in dry run)

I noticed that using HDWalletProvider using the account parameter in the migration you get random/unexpected accounts during dryRun. I added a safety line that an address should be as expected but ...
0
votes
0answers
10 views

Docker Image location

I creaed private network using puppeth. There is ethstate website that is running in docker container. But I don't know where the source file is located on host machine for ethstate or dashboard ...
1
vote
0answers
7 views

Deploy contract in py-evm

I have a pretty dummy contract: pragma solidity ^0.4.16; contract Ballot { struct Voter { uint weight; // weight is accumulated by delegation } } Compiled with remix I receive the ...
0
votes
1answer
29 views

How can you know the length of array of dyanmic strcutures?

pragma solidity ^0.4.24; contract online_shopping{ struct item { uint price; string name; //string seller; } struct soldItems{ address customer; ...
0
votes
1answer
20 views

Is it possible to use address you don't own while running ethereum RPC node (using geth)?

In other words, you start your own node and then somehow add accounts you don't own (aka - you don't have their private keys)? I'm asking because I wanted to make my own node exposed via RPC/...
0
votes
1answer
25 views

Factory for ERC1400, deployed contract not working

Hey I have written a factory for the ERC1400 Token by https://github.com/ConsenSys/ERC1400. When I run the test for issueByPartition I get a revert Error. Other tests like isIssuable works. If I ...
0
votes
1answer
17 views

Truffle migration takes too much time and dont migrate

0 Hi i am trying to migrate contract by using getch on oracle virtual box ubuntu. Although 1_initial_migration.js deploying it shows Block: 0 Seconds:16743 and it is not completed to deploy and also ...
0
votes
2answers
19 views

Transaction stuck in “Pending”

I've sent some ETH from the Ledger Live app to an exchange but I only used 1 Gwei and now the transaction is pending. It's been 20 hours. Will the transaction run out of gas eventually or will it go ...
3
votes
1answer
15 views

ShhFilter: ValueError: {'code': -32000, 'message': 'filter not found'}

For web3.py==v5.0.1: web3.geth.shh.newMessageFilter used to return the filter on v4.x.x but now it only returns the filter_id, so I received the filter object using w3.eth.filter(filter_id='0x'). ...
0
votes
1answer
18 views

Can I expose geth's rpc ONLY to Metamask connections?

I am building a private chain and rpcaddr is set to 0.0.0.0But recently I found out that this private chain has been attacked by a foreign IP, it kept trying to transfer those worthless ether out from ...
2
votes
0answers
41 views

MetaMask blocks Web3 requests

I just set up a Block Explorer to interact with my private blockchain. The private Blockchain runs in a VM. The host system connects to the Block explorer (also on VM). When I have meta mask ...
0
votes
0answers
13 views

How to signTransaction of a smart contract methods?

I have a smart contract contains this method: function addOneUser (User memory _user) public { bytes32 hash = keccak256(abi.encode(_user.name)); users[hash] = _user; } I want ...
0
votes
0answers
19 views

Is there any API to create Addresss and wallet as well as make transfer for ETC (Ethereum Classic)?

There is balance checking, transaction list and transaction receipt getting APIs available for Ethereum Classic (ETC)? Is ETC coin is only available on Ethereum Classic or its listed block explorer ...
0
votes
0answers
16 views

Payable function not working properly

Hi everyone hope I will be clear enough with the explanation because I couldn't find a proper solution. I am just trying to checkout an item with my buy function but it seems like I am stuck.Here is ...
0
votes
1answer
21 views

how to correct this code with pragma solidity^ 0.5.8? thx

pragma solidity ^0.5.8; contract HelloWorld { function test() pure returns (string) { return "HelloWorld"; } }
1
vote
2answers
30 views

Genesis.json in private (geth) network

My genesis.json { "config": { "chainId": 9731, "homesteadBlock": 0, "eip150Block": 0, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 0, "...
0
votes
1answer
63 views

I would like to 3 mappings

I am a beginner. I would like to 3 mappings I know 2 mapping looks like this: mapping (address => mapping (address => uint256)) public allowed; and my question is: is 3 mappings look like ...
1
vote
0answers
24 views

I am newbie here,I need some help in retrieving one particular use using a userid, how do we do that as per below code?

struct Rider{ //address riderAddr; uint rider_Id; bytes32 Rname; bool set; } mapping(address => Rider) public riders; function registerRider(address _riderAddr, uint _riderId, ...
0
votes
0answers
20 views

Changing proof of work algorithm

If I only want to replace the proof of work to use different algorithm in ethereum (specifically to solve puzzles in Conway's game of life instead in cryptography). What files should I change in go-...
0
votes
1answer
27 views

Contract ERC20 creation “pending”

I have created a new ERC20 contract using this generator https://vittominacori.github.io/erc20-generator/ The status is "pending" , 21 hours at this time. Some explanation? Previously, I tried it ...
0
votes
1answer
19 views

Are the timestamps of blocks for Ethereum only accepted when they are monotonically increasing?

Are the timestamps of blocks for Ethereum only accepted when they are monotonically increasing? If yes, why? And why other blockchains like Bitcoin and other blockchains with shorter block time can ...
0
votes
0answers
18 views

How to define non-exploitability in the difficulty update algorithm?

In enter link description here, it is said that "We have already determined that our current algorithm is highly suboptimal on low volatility and non-exploitability, and at the very least we plan to ...
1
vote
0answers
30 views

Why creating a block that has slightly higher difficulty can beat out any possible forks?

It is said that "The use of (block_timestamp - parent_timestamp) // 10 (* now 9)as the main input variable rather than the time difference directly serves to maintain the coarse-grained nature of the ...
0
votes
1answer
23 views

Apparently some people send transactions with zero gas and positive gas limit, how do they do this? (and I am NOT planning to this but how)

Have a look at this transaction for example: https://etherscan.io/tx/0x11d96986d36240a5e5e7eab78879aa841631705370e707f15f1488a0b9d6704a 0 gas, 0 ether but plenty of tokens transferred. Obviously the ...

15 30 50 per page