All Questions

0
votes
0answers
3 views

ERC721, Token name and symbol not shown in etherscan

I have created a simple token with ERC721, but etherscan not show my token name and symbol, why? this is my contract I deploy with this code Result on etherscan No token name and symbol showed, is ...
0
votes
0answers
4 views

Importing Ethereum Account Private Key and Using on Different Servers

Let's suppose i have a wallet on one remote server, R-1. Is it possible to get the private key of that wallet/account and use it on different remote server R-2? I know, i can copy/paste files under ...
0
votes
0answers
5 views

MetaMask - RPC Error: Error: WalletMiddleware - Invalid “from” address

I'm trying to create a simple Dapp (via tutorial) which would allow me to send Ether from sender to receiver (via a contract with an address that automatically approves the transaction). The truffle ...
0
votes
0answers
4 views

web3 ens library - purpose of setText, getText against ENS name

I am looking at web3.eth.ens library, I can see methods setText and getText, which allows you to set and get key value pairs against an ENS name. What is the purpose of this? Also is there a way to ...
-1
votes
0answers
6 views

Ethereum Private network . Commit new minning work stuck

I am trying to build an ethereum private network. Here is my genesis.json file { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "nonce": "0x0000000000000042", "...
0
votes
0answers
17 views

sendRawTransaction insufficient funds while there is enough balance

Sorry I probably create a topic that was answered multiple times but unfortunately I couldn't find a solution. I'm trying to use RPC server of Geth to send a raw transaction. I've an address with a ...
0
votes
0answers
7 views

Why does the error Invalid response received: 403;?

Develop a java project to connect to ethereum blockchain and until now no error has been presented, but now this error appeared:   org.web3j.protocol.exceptions.ClientConnectionException: Invalid ...
0
votes
0answers
11 views

Metamask transactions keep stack at the txpool of a Quorum Private Network

System information Geth version: 1.7.2-stable-0905eda4 OS & Version: Ubuntu 16.04 Branch, Commit Hash or Release: HEAD detached at v2.2.1 Actual behaviour and Steps to reproduce the behaviour ...
0
votes
1answer
26 views

Random number generation in certain range

I need to add a random number function in my smart contract. Is it best to use Oraclize and e.g. random.org? It's not a lottery which means the random number generation does not require heavy security....
0
votes
2answers
22 views

How to access content of mapping in a struct?

I'm aware of this post: Accessing a mapping within a struct via Truffle console However, it seems to me, it does not provide a clear answer. Also, my question is more generic and not just for ...
0
votes
2answers
12 views

Transaction Ordering doubt for msg.sender.balance

I searched for SE and google, but did not find answer to this simple doubt. If I include two transactions (state changing ones which cost gas) in same block for execution. Then my question is: will ...
1
vote
0answers
16 views

How to use web3-react with truffle Dapp? any sample code / tutorial?

I am new to react and finding issues with the front-end of the Dapp application. Especially in web3 version > web3 1.0.0 I just heard about the web3-react and I think it will be a lot easier. I ...
1
vote
1answer
22 views

where does the metamask fits in Dapps architecture?

i am learning building Dapps. And i got to know to know about metamask. I've read about metamask is an ethereum wallet which we can use to sign Tx's without running a full node and inject web3 to ...
0
votes
0answers
11 views

web3.eth.getBlock in order

I am a beginner for Javascript & web3(0.20). I am using Metamask for watching allevents, and I need to get timestamp. I use getBlock.timestamp. Due to Javascript, timestamps are not inorder. I ...
0
votes
1answer
18 views

How to withdraw from multiple contracts?

Thank you for watching this topic. I'm not sure how I can withdraw my balance from multiple contracts. The situation is like this. 1)People have rights to withdraw each fund. 2)funds are stored at ...
0
votes
0answers
19 views

Auction contract privacy

I have an auction contract, where bidders bid with Ether then me (owner) select which offer is most suitable and thus this bidder is contract winner. Once the winner is selected, I send him data as a ...
0
votes
1answer
15 views

My Withdraw function doesnt work

I'm writing my first contract and my withdraw function doesnt work. Eth doesnt move to my _withdrawAddr. Also can somebody explain why my function getBalanceThis returns 0 instead of amount I send to ...
0
votes
0answers
9 views

Instantiation of an EVM on goLang

I'm dealing with goLang on an go-ethereum fork. In order to query a contract endpoint I need to get a fresh EVM reference for properly call the contract. I've found there is a NewEVM function that ...
0
votes
1answer
15 views

Object to Hex function (like in sign transaction)

I am reading the Web3 documentation about signing transactions (see example below). As I understand it, the "transaction object" gets turned into a hex string and enveloped, this is the "message". The ...
0
votes
0answers
10 views

POA ethereum Add Authority Account Contract

Can someone point me right tutorial to understand the following 1) Genesis configuration for POA with pre-fund account 2) How to add Authority account at run time means once the blockchain is up ...
0
votes
2answers
15 views

Different events for revert types or one event and then on the client/backend figure the reason why it reverted from emitted data?

Let's say I have 3 conditions which can lead to revert(). which way should I handle it? 3 types of events or one event with extra parameters? 3 events types: if condition A: emit causeA(dataA1, ...
0
votes
1answer
13 views

Parser Error - Creating EIP20 Tokens

function transfer(address _to, uint256 _value) public returns (bool success) { require(balances[msg.sender] >= _value); balances[msg.sender] -= _value; balances[_to] += _value; emit ...
0
votes
1answer
9 views

Contracts interaction issue

I got stuck in making two contracts interact. The code for two contracts is as follows: Test1.sol pragma solidity ^0.5.8; contract Test1 { struct Car { string carCreationDate; ...
0
votes
1answer
12 views

Parity POA Smart Contract Method Always Fails

I have set up a private POA Network according to the tutorial from the parity homepage. I have two nodes running on localhost:8540 and localhost:8541. I have connected MetaMask to my first node and am ...
0
votes
1answer
26 views

Can anyone explain How smart contract gets validated?

Is there any validation process of smart contract's write operations ?
1
vote
1answer
23 views

Is there any way to only find blocks where state changes of a contract occurred?

I'm currently using the ethereumjs libraries (https://github.com/ethereumjs) to iterate over the blockchain, replay transactions and read the state trie of a contract from the geth leveldb. Currently ...
0
votes
1answer
19 views

How do I change the consensus algorithm for a network that i forked from github? [on hold]

can i change the consensus algorithm for a network that has forked from github? is there any link to understand how can make changes to consensus
0
votes
0answers
12 views

solcx compile_files Key error

I am using python package py-solc-x for compiling the smart contract. os.path.abspath("D:/new.sol") Gives path where my test contract exits. 'D:\\new.sol' Then i use compile_files to compile the ...
1
vote
1answer
18 views

Block Gas Limit Doubt

Suppose i have a loop. Here user is a struct of which player is an address. address[] memory addrs = new address[](n); for(uint i=0;i<n;i++){ addrs[i] = user.player; } return addrs; This is a ...
0
votes
1answer
36 views

How to hash multiple values including array keccak256 Solidity v5.0.x and web3 'Autodetection of array types is not supported.'

How can I receive the same hash in solidity and web3? Multiple values where one is a multi dimensional array. Solidity v0.5.x: pragma solidity 0.5.6; pragma experimental ABIEncoderV2; contract Hash{...
1
vote
2answers
26 views

Verify if an input is a hash

What is the best way to verify that a text I received in mu function is a valid hash? In other words, contains a specified length and is composed only by numbers and "a", "b", "c", "d", "e" or "f"?
0
votes
1answer
13 views

Gas requirement of function “testCompile.showString() high: infinite”

I have written simple function in remix. pragma solidity ^0.5.0; contract testCompile{ string myString = "Hello World"; function showString() public view returns (string memory){...
0
votes
0answers
34 views

Timestamp is giving wrong time in smart contract

Today is June 17. but when I execute my function and store the following arguments. WriterModel(owner,postID, _postContent, now); "now", It returns the July 20 timestamp. It perfectly working fine ...
0
votes
0answers
20 views

Web3 in the browser

Importing web3@1.0.0-beta.55 in a stencil+typescript file for a frontend application directly triggers an error, even without using the imported Web3 object whatsoever. import Web3 from 'web3'; -> ...
1
vote
0answers
16 views

What do I do to deploy my ERC 20 token [on hold]

I have a ERC 20 token platform the token: BTZ botztoken and what I am wanting to do is figure out what I can do with the tokens as utility tokens to accomplish teams mission which is: to help ...
0
votes
0answers
20 views

Is there any API for ether sent transaction in ethereum without using web3.js [on hold]

I want to do a transaction (sent ether or token) by API, not from web3.js I have tried etherscan, block cypher This is a get balance API code like this I want send transaction code ...
0
votes
0answers
21 views

Function returns always with the same input even it is in the loop..TRUFFLE+ANGULAR 7+WEB3

One of the function in Contract: function getPostCounts(uint _postID)public view returns(PostCountsModel memory postCounts){ return postCountOperations[_postID]; } This is the calling ...
-2
votes
1answer
11 views

Can't seem to find MetaMask

I've opened Chrome extension and downloaded the Brave search engine. However, even though I've selected to show MetaMask in my tool bar it's not showing anywhere and I don't know how to access it. So, ...
1
vote
0answers
31 views

exploiting keccak for random number generation?

Whenever a ticket will be purchased, a random number will be generated function _mightWin() internal { address _player = msg.sender; // players address uint256 ...
0
votes
1answer
38 views

Percentage calculation

I'm currently learning how to write smart contracts. While studying some code, I came across this line: ‭ uint256 a = value.ceil(basePercent); (with: uint256 public basePercent = 100;) Then one ...
0
votes
1answer
26 views

Value not pushing into array inside structure

pragma solidity ^0.5.0; contract Testing{ struct personalInfo { uint id; string[] colors; bool player; } mapping(uint=> ...
1
vote
0answers
19 views

How to upgrade this Crowdsale contract (from DappUniverse)

i'm trying to compile this code (from DappUniversity: https://github.com/dappuniversity/ico_irl/blob/master/contracts/DappTokenCrowdsale.sol) but with the new version of OpenZeppelin, that's use at ...
0
votes
1answer
12 views

Can I pass my mnemonic to ganache/ ganache-cli when it is starting up?

I am wondering if I can pass the mnemonic that I created using metamask to boot up my local ganache network so that I do not have to log out and login metamask with different mnemonic everytime for a ...
1
vote
1answer
41 views

Mapping with iterating uint as identifier - multiple transactions in the same block

I want to use an iterating uint as an identifying number, but I have a simple question to make sure I can do this safely on the mainnet. Here's a simple example to demonstrate the issue: pragma ...
0
votes
0answers
12 views

web3js batch execute method gives error

I have private/local network/chain setup. I'm building this with Nodejs-->expressjs. const contract = new web3.eth.Contract(abi, address); const batch = new web3.BatchRequest(); batch.add(contract....
1
vote
0answers
15 views

How to process null TransactionReceipt?

I have some transaction that is sent and from time to time when I call the eth_getTransactionReceipt I get a null. I see esentially two approaches for handling this: I could reiterate the call to ...
0
votes
2answers
25 views

Effective way to compare to arrays

What is the most cost effective way to compare to arrays eg. uint arrays in solidity. Running a for loop takes too much gas.
0
votes
2answers
31 views

Save all customers who buy an item online [on hold]

I am writing a contract where I am trying to save the account addresses of customers who buy an item online. I tried it with arrays but it did not work. Can anyone please suggest a way of doing this?
0
votes
0answers
13 views

Is there a way to import bulk private keys in geth or any other offline wallet?

I am running a test which involves creating several thousand ethereum wallets. Is there any way to import the private keys of these wallets in bulk in geth or any other offline wallet?
0
votes
1answer
27 views

TRUFFE MIGRATE: Saving migration to chain.Error: Error: Error: Returned error: VM Exception while processing transaction: invalid opcode

$ truffle migrate Compiling your contracts... =========================== > Everything is up to date, there is nothing to compile. Starting migrations... ====================== > Network name: ...

15 30 50 per page