All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
219 views

Increase gas limit to allow larget contracts to be deployed

I'm working on a private blockchain and I found out that I cannot deploy a contract larger than 34Kb which is pretty limiting for me. For comparision, cryptokitties are 40-47Kb so I cannot even deploy ...
0
votes
0answers
2 views

Where to define the MetaMask window.ethereum.on Listener

I have tried to include the window.ethereum.on listener to detect account changes in MetaMask, in my mounted () {} method. When the listener is triggered, it itself triggers the location.reload() ...
1
vote
1answer
170 views

Error deploying smart contract with web3.js and Truffle HD wallet provider

My web3 version is 1.0.0-beta.41, node version is 10.15.1 solc compiler is 0.4.25 compile.js is successfully compiled with interface and bytecode exports. My deploy.js file const HDWalletProvider ...
1
vote
1answer
6 views

best way to get transaction timestamps?

I'm building an analytics app that tracks transactions on Ethereum and wondering how to get the most accurate timestamp for each transaction. Using the web3.js library I'm able to see the following ...
0
votes
1answer
513 views

I downloaded and built quorum from the official git repo but I dont see the QOURUM OPTIONS

git clone -b geth1.6 --single-branch https://github.com/jpmorganchase/quorum.git NAME: geth - the go-ethereum command line interface Copyright 2013-2017 The go-ethereum Authors USAGE: geth [...
0
votes
0answers
4 views

How to test your smart contract against currently existing ones on mainnet locally using Truffle?

Background I am fairly new to smart contracts and am currently experimenting using Ganache and Truffle to test on my local machine. My goal would be to have the smart contract interacting with other ...
1
vote
1answer
55 views

Solidity: Smart Contract, always get wrong result

I'm writing a token locker contract, code as following: pragma solidity ^0.4.24; import "./SafeMath.sol"; import "./ERC20.sol"; contract TokenLocker { using SafeMath for uint256; address ...
1
vote
0answers
12 views

Bundling two assets in a contract and issuing shares for them

Say you are tasked with coding a smart contract with the following features: Users can deposit token A and receive liquidity shares in return. The contract starts selling token A for token B ...
0
votes
1answer
506 views

Can't get the func in `web3.eth.getAccounts` to run

I'm trying to perform a simple balance check, but the code inside web3.eth.getAccounts doesn't run. I'm trying to get web3 from the instance injected by Metamask. myWeb3.eth.getAccounts(function(err,...
0
votes
3answers
289 views

condition check of struct mapping in solidity?

struct User { string username; string password; address userid; bool isAdmin; } mapping (uint => User) users; function checkIfUserExists(address userid) public ...
0
votes
0answers
9 views

Restoring a mnemonic seed with one missing word

I wrote my seed with one missing word (do not know exact position). Do you know any tool for recovering ethereum wallet? I found this one, bus its for monero. https://github.com/amustafa/recovering-...
1
vote
1answer
252 views

Metamask Signing gives different signature than web3.js

I have successfully been using metamask to sign EIP712 data. I am currently trying to write truffle tests and need to replicate the signing process outside the browser. The issue I am facing is that ...
0
votes
2answers
6 views

Returning ERC20 tokens accidentally sent to the DAI contract

I don’t know if it’s the right place for it, but I’m taking a chance. Despite several years of daily use of ERC20 tokens, I unfortunately managed to make a mistake and send some ERC20 tokens to the ...
7
votes
5answers
7k views

How to Fix “Stack Too Deep” Error?

I know that this has been covered in other questions here but I'm not sure what's happening in my case. My code is returning a compiler error "Stack too deep, try removing local variables." But I only ...
0
votes
1answer
8 views

Block gas limit lower than required to deploy a contract

I am trying to deploy a contract on ropsten network that requires ~7000000 gas, however the current gas limits are ~3.5mil on ropsten and I am unable to deploy the contract. What can I do about this?
1
vote
1answer
339 views

Manual TX over Testnet - Error: exceeds block gas limit

I was trying to follow: https://github.com/ThatOtherZach/Web3-by-Example/wiki/Send-Ether-Transaction to create and broadcast my first transaction on the ethereum testnet rinkeby. However, I am ...
0
votes
0answers
4 views

Issue about connecting with WalletConnect by using the example of Web3Modal

I have tried to run the example of Web3Modal on my local env, and then use IMToken to scan the QRcode showed by clicking the WalletConnect, but at last I just got an error which is showing below: ...
0
votes
1answer
5 views

Need of writing tests again and again

I started learning about ethereum and dapps just a week ago.I totally understand the need and importance of writing tests for an ethereum smart contract. But what I didn't understand is that I already ...
5
votes
1answer
700 views

Bootnode public address

I am trying to deploy an small private Ethereum network using geth. I have a server running geth configured as a miner in my local network. In the other side I have a droplet in DigitalOcean that I ...
0
votes
3answers
120 views

What parameter type should I use for contract methods that specify floating point amounts?

In my dApp the user sets the entry fee for the game they are creating. The entry fee for games will usually be between $5 USD and $50 USD. What unit should I use for the contract method that accepts ...
1
vote
2answers
65 views

Transfer ERC20 via onother smart contract (call transfer as delegate)

I want to deposit erc20 tokens to a smart contract. But when I just send it to he address, I can't handle the deposit. So I tried to use the delegatecall function to do the transfer. Basically I ...
0
votes
1answer
515 views

Web3j Signature and Solidity Ecrecover

I'm trying to understand how to sign a message in Java and recover the public key in a Solidity smart contract however my public keys don't seem to match. Here's my Java code to generate the signature:...
4
votes
1answer
29 views

Why did an Event Fire even though Etherscan suggests it failed?

I am attempting to count the number of DepositEvents in the Medalla Beacon Contract. At first, I attempted to do this by counting the number of Deposit Events, however, I noticed a Deposit Event that ...
0
votes
1answer
8 views

Why is my view function running out of gas when reading from mapping/HashMap?

I have the following vyper code: address_to_addresses: public(HashMap[address, address[2]) Vyper auto generates a view function called address_to_addresses(arg0: address, arg1: uint256) -> address ...
0
votes
1answer
14 views

Updating ERC-721 Token's Metadata after it was Minted

Is it possible to somehow update an existing ERC-721 Token's MetaData after it was already minted? Let's say we've created a Knight character for a game - by minting an NFT for it, and 3 months later ...
0
votes
0answers
8 views

infura return null when eth_getTransactionReceipt

I am trying to send some test ether on Rinkeby network using Infura, Im using some php library to make it. <?php use Web3p\EthereumTx\Transaction; use Web3\Web3; $valueSend = dechex(0.1 * 10**18); ...
0
votes
2answers
17 views

Front running, events, off-chain and on-chain

With frontrunning in the headlines these days due to raids on platforms like Uniswap I was wondering from a technical point of view how these guys are able to do it ? I'm still learning Ethereum with ...
0
votes
0answers
15 views
+50

How is address comparison done in Vyper?

In solidity, you can do this: address_1 < address_2 But the same code is not possible in vyper. How can I compare which address is larger than the other in vyper?
0
votes
0answers
12 views

How to solve gas problems for fomo3d similar games [closed]

For a game, each time an account deposit 1eth into the pool, every member in the pool will gain a part of this 1eth. For example. There are 100 accounts in the pool, a new account deposit 1 eth into ...
0
votes
1answer
16 views

Revert error on delegated transfer function

Here is my code base, first I am deploying the tokenPS contract on the tesnet which generates an addr(0xaddr) and then I am deploying the caller contract. In caller contract when I am trying to ...
0
votes
1answer
19 views

Why does geth (fast) sync beome slower?

I've been running geth 1.9.21-stable-0287d548 in Ubuntu 20.04 (VPS with 2CPU, 8G RAM, and 400G SSD) for close to 24 hours. geth is run in default fast sync mode -- geth --http --http.addr 0.0.0.0 --...
1
vote
1answer
250 views

How do I deploy a contract via a contract factory in truffle?

The code below does not set the simpleStorage instance's value to 55, but identical code works when the contract is not generated via a factory
0
votes
0answers
16 views

Error pointing to init() function of app.js file after running the dapp in browser

A dummy here trying to learn dapp. I referred to a similar issue post here: Cannot read property 'deployed' of undefined issue. But I couldn't understand why the error occurred in mine. App.js ...
0
votes
1answer
917 views

How to use not personal account web3

In my previous post I got answer but still I need some clarifications let say when deploying contract with node js we have this line try { web3.personal.unlockAccount(web3.eth.coinbase, ...
0
votes
2answers
8 views

How to check if a particular address is already present in an array

I know a similar question has been asked before but I want to understand where am I going wrong in terms of logic for the code below. I am building a lottery contract where if an address has been ...
1
vote
1answer
123 views

How to execute transactions of my Ethereum contract deployed on Rinkeby test client using REST apis?

I would like to build a UI on top of my ethereum contract and how can I get a use a REST API to execute transactions in my contract ? which one of Rinkeby etherscan API could be used ?
0
votes
1answer
8 views

how to crerte hierarchical blockchin using Geth, ethereum?

As of my plan (in the attached figure) there will be 2 levels of blockchain. The top level blockchain (yellow circles) consist of 4 participant, admin top & admins middle. The bottom levels ...
0
votes
0answers
9 views

Error syncing new node on private network:no peers available or all tried for download

I am currently trying to run a test node, which recently failed. I have deleted the directory and copied another node's AND tried a reset of the directory but at some point it freezes with this log ...
0
votes
2answers
49 views

web3 py - transact call with struct parameter

I am trying to call a smart constract function with the following abi with pragma experimental ABIEncoderV2: "constant": false, "inputs": [ { ...
0
votes
1answer
193 views

How can I transfer etherbase status to another account within mist?

After importing a wallet from JAXX to Mist, I wish to have the JAXX account having Etherbase status, instead of the default Geth one. However, I see no visual indications on how to do this within Mist....
0
votes
1answer
355 views

Quorum cakeshop - Error while starting up

I hava a question regarding Quorum cakeshop. Currently I am trying to get the cakeshop running, what i want to use to play a around with Quorum a little. More infos below: https://github.com/...
0
votes
1answer
8 views

Uncaught (in promise) Error: Returned error: oversized data when calling the set method for a very large cipher string

I am using a quorum 7 nodes example with IBFT genesis file. I have modified the maxCodeSizeConfig to 128KB (which is maximum). I have also increased the gas limit to 0x3B9AC9FFFFFF. But, when I am ...
0
votes
3answers
396 views

How do I transfer Ether from multiple account to one account?

I have a vast amount of Ethereum wallets, all packed with Ether. I need to transfer all the Ether to a single account. I don't want to do it manually. Is there a way to script it or use a smart ...
1
vote
0answers
25 views

Problem In Getting Rinkeby Test Ethers

I tried to get rinkeby ethers from https://faucet.rinkeby.io/ by creating a tweet but the website shows "insufficient funds for gas * price + value” error. I also tried the website faucets....
47
votes
3answers
33k views

How to select a network id or is there a list of network ids?

We're starting a new open network based on the Ethereum protocol. The question is how to allocate a network id for the new network. In Ethereum we have main net, four test networks, classic with test ...
97
votes
2answers
25k views

Comparison of the different TestNets

The Metamask client allows access to four test networks: Ropsten Kovan Rinkeby Goerli I'm curious: What are the similarities / differences between them? Which use cases are best for each network ...
1
vote
1answer
2k views

Ubuntu Mining RX570 4GB Claymore amd-gpu pro low hashrate

I've been able to get a much higher hashrate on other systems. These are the steps I've taken so far, getting ~ 17Mh/s. Description: Ubuntu 17.10 Kernel: 4.13.0-36-generic Install amdgpu-pro-17....
12
votes
2answers
6k views

What are the contract languages?

Besides Solidity and Serpent, what are the other (experimental) contract programming languages?
0
votes
1answer
18 views

Transaction “Revert” Error

The error I get when trying to make ethertoDai() run is: { "message": "VM Exception while processing transaction: revert", "code": -32000, "data": { "...
0
votes
1answer
62 views

How can I easily get the Ethereum 2.0 network's fork digest and fork version?

Ethereum 2.0 nodes communicate through a libp2p network. Two indicators of talking to "correct" nodes on the same network are the "fork digest" and the "fork version" ...

15 30 50 per page
1
2 3 4 5
605