All Questions

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

how do etherscan get all the token balance of particular address?

I want to create service where just by providing address i can fetch all the token (erc 20 & erc721) balance just like etherscan for a private network? is there any way to do it by writing for ...
0
votes
1answer
915 views

How to remotely import private key to geth with web3?

I'm running a geth node on a digitalocean droplet with: geth --light --rpc --rpcaddr "0.0.0.0" --rpcapi personal,web3,net,eth --rpccorsdomain "*" --rpcport "8545" console I'm trying to import a ...
0
votes
1answer
37 views

How to automatically identify which value is stored in specific location of transaction input , given a smart contract source code and ABI?

For example, a function's name and parameters are given as following: function batchTransfer(address[] _receivers, uint256 _value) public returns (bool); Then I want to get a python dictionary whose ...
0
votes
0answers
2 views

claymore dual ethereum v.15 …and AMD cards

It says automatically sets environment for amd ...but also in v14.7 says both amd and Nvidia card supported except radeon7 cards...I guess what I'm asking is why can't I use my r7 or r6 ? I'm new to ...
4
votes
1answer
352 views

Create new account over IPC

I want to create a new account over IPC so I have started private chain with the below command geth --networkid=5 --datadir DataDir --ipcapi "db,eth,net,web3,personal" --ipcpath "/Users/smartSense/....
2
votes
1answer
25 views

One general contract for all or spawn new one for each instance?

What be the advantages vs. disadvantages or running a general contract or spawning a new one for each instance. Let say, that I am providing a contract so people can create their own crowdfunding. ...
0
votes
2answers
29 views

Calling smart contract functions and submitting transacions in BACK-END in high level

I have read some references to create ethereum transactions by a BACK-END server, all in low level, for example, requiring that I control the nonce by myself. Are there safe ways to avoid this control ...
0
votes
2answers
86 views

miner.start() cannot deploy my contract

My environment: geth 1.8.11 Ethereum Wallet Mist Browser windows 10 I try to deploy a new contract in the Ethereum Wallet. I execute (miner.start();) in the Geth JavaScript console to get some ...
2
votes
3answers
150 views

Issuing bonds on Ether

Envisage the following scenario: You are running a business, which requires a float to operate. Your float is x amount of USD This float yields a annual revenue of a XXX amount of USD This float ...
0
votes
1answer
21 views

Is there any possibility to exclude one of MuliSig Wallet owners?

I mean not to exclude from already existin multi sig wallets, but create a wallet with such possibility. For example: The team of 4 people want to accept temporary 5th member (give him the right ...
1
vote
1answer
35 views

Vyper fundraising smart contract: 'Attribute' object has no attribute 'func'

[SOLVED]: See below. I am taking a blockchain and security class and we are working with vyper. We have been tasked with rewriting a fundraising smart contract. However, the compilers do not seem to ...
1
vote
1answer
78 views

Developer related changes to prepare for Ethereum hard fork - Constantinople

I am hosting my own ethereum node using geth and I have some simple dApps which make use of the web3.js library. I went through various documentations related to the hard fork, more specifically this ...
0
votes
1answer
437 views

Default account is not reflected in Web3 instance created from injected current provider

According to the MetaMask docs the recommended way to access the web3 is by creating a new instance of the Web3 class by passing the window.web3.currentProvider, which is injected by the MetaMask ...
2
votes
1answer
48 views

Ethereum Smart Contract deployed token not showing

pragma solidity ^0.4.24; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); ...
0
votes
1answer
23 views

how do I make users sign different strings with their private key separatelly

Here is the the scenario. Users come to my website and register(by using email and password). Then they login. After that, They add a new item(which has name and quantity fields). After Clicking ...
0
votes
1answer
15 views

Can I call a contract function in the “data” element via web3, especially when I am using conversion to bytes?

In other words, say In Python I have something like that: signed_txn = w3.eth.account.signTransaction(dict( nonce=w3.eth.getTransactionCount('0x0000000000000000000000000000000'), gasPrice = ...
0
votes
1answer
103 views

Unknown network “ganache”. See your Truffle configuration file for available networks

I am working windows 10 and have both truffle.js & truffle-config.js I am using command truffle migrate --reset --networks rinkeby Error produced: Unknown network "ganache". See ...
0
votes
1answer
15 views

CLI wallet where I can pass in a Private Key and send out ETH and then delete this key?

Is there a CLI command where I can pass in an ethereum private key and send some coins to another address? I'm trying to build out a reoccurring payment system where a user can send 1 eth to another ...
0
votes
1answer
26 views

Transaction values exchanged even if transaction rejected, and double values exchanged if transaction confirmed

I'm trying to perform a function that exchanges one token for another, but I'm getting a very strange bug. If I call the function in web3, I get the standard metamask popup asking whether to confirm ...
0
votes
1answer
12 views

Function Efficiency

Say I have a function that handles 4 cases via if statements. I could break that into 4 separate functions. The case for breaking it up is that each function call would use less gas. The case against ...
1
vote
1answer
37 views

How can I export/show private key on parity cli?

I did this command on parity parity --chain mainnet account new I got the address but, How can I export or see the private key?
0
votes
3answers
32 views

Could not assign contract state variable value to javascript variable

I want to retrieve and assign the value of my contract state variable to my javascript variable.I am doing as per guidlines provided on this community, but failed to assigned. my javascript code is ...
0
votes
0answers
9 views

0x event extra data fields

I'm looking at events on the exchange contract address: https://etherscan.io/address/0x61935cbdd02287b511119ddb11aeb42f1593b7ef#events with a topic_0 equal to ...
0
votes
1answer
12 views

TypeError: _getWeb3__WEBPACK_IMPORTED_MODULE_0__.default.eth is undefined

I'm not familiar with webpack, but after reading this error all I know that I import one module that is undefined by webpack. However, I don't know why export default new web3.eth.Contract(abi, ...
1
vote
2answers
507 views

Calling a function from a contract passed in as an argument

Im Trying to create a DAPP with two contracts generating assets. One is acting as the "factory" for the other contracts. From the latter I try to call a function in the factory without knowing its ...
0
votes
1answer
17 views

Transaction Timing Implications for Reentry Attacks

This is the classic reentry attack: function withdrawBalance() public { uint amountToWithdraw = userBalances[msg.sender]; (bool success, ) = msg.sender.call.value(amountToWithdraw)(""); ...
1
vote
1answer
34 views

Get transaction status

There is a code, the essence is this: I need to check the account balance for erc20 tokens, and if the balance is not zero, I need to send eth from another account to this one, after eth reaches the ...
0
votes
2answers
73 views

Massive Download [ETH] smart contracts

This question have just been published in StackOverflow as well, but you might be able to guide me on a better direction: I'm looking for the most valid path to download and keep downloading every ...
0
votes
0answers
15 views

No response from live networks except ganache when interacting with truffle-contract

I am developing a Web3 app for a private Ethereum network. Throughout the development I used ganache-cli and now I wanted to test in the private live network. I can successfully interact with the ...
0
votes
2answers
70 views

For production dApps, what kind of sync should be done on server node?

I plan to use web3 server side using NodeJs with geth. For production usage, should I do a full sync or fast sync is enough? Also, how much space do I need to store the blockchain data for each of ...
3
votes
1answer
87 views

How to get an evm reference inside go-ethereum GetBalance function?

In order to modify GetBalance function to fork go-ethereum, I find difficulties to get a reference of the running evm. The function has a reference for self *StateDB: func (self *StateDB) GetBalance(...
0
votes
1answer
53 views

Smart contract to send data to requested device

I have multiple Pi's connected to a miner in a private network, where one pi is collecting sensor data, and am able to send ether from all the devices and they are all synchronised with the private ...
1
vote
1answer
19 views

How to guarantee the order of transactions in MetaMask?

I create my transactions with ethers.js and push them into an array like this: const promises = []; promises.push(createTokenApprovalTx()); promises.push(createFooTx()); It's important that the ...
0
votes
0answers
10 views

Solc Compiler related Error in Nodejs

I have almost 800 .solc files of version ^0.5.12 (i am using also 0.5.13 compiler version), when i all give them to my input, to compile with following code; var walk = function (dir) { var ...
0
votes
2answers
354 views

Remix warning - Is constant but potentially should not be.

I am getting the warning on the code shown below. Could you please assist me know to resolve this warning ? warning message - "Is constant but potentially should not be"
3
votes
2answers
49 views

Which mnemonic generators exist or existed?

I am unable to open a wallet I created roughly 2 years ago. In that time I have been using MEW, MetaMask and something that I installed locally on Window, which I forgot the name of. Not sure which ...
0
votes
1answer
26 views

I am using already deployed tokens in my contract

My question is if I'm not implementing ERC-20 methods in my contract, but I'm using already deployed ERC-20 contract methods in my contract, so can we say this will be ERC-20 compliant contract? ...
1
vote
1answer
37 views

Zokrates backend “gm17” not supported

I am trying to experiment with ZoKrates library. When I use ./zokrates setup command, it warns me about gm16 malleability. So, I tried to change the proving scheme to gm17. But I keep getting the ...
1
vote
2answers
33 views

Unable to create a private chain

I am trying to create a private chain. this are my details { "nonce": "0x0000000000000042", "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "difficulty": "...
0
votes
1answer
16 views

Send eth to multiple addresses

I need to send eth to accounts that have erc20 tokens: foreth.forEach(function(item,i){ const balance = contractInstance.methods.balanceOf(item).call(function(err, result) { console.log(...
1
vote
1answer
19 views

Garbage in string parameters of events

I have an event defined like this: event Created( address indexed target, string indexed name ); I do emit Created(..., _name); // called function with _name = "comment" which gives ...
0
votes
0answers
10 views

How to import mySQL data to Solidity?

I have created a mySQL database through phpMyAdmin, storing health data. I would like to use Solidity to develop a smart contract which will implement access control to the data in the database. My ...
0
votes
0answers
7 views

Clef signer - standalone docker container

To automate the signing capabilities I'm happy how clef is working. I've a couple of concerns though. answering the commandline prompts on clef init, clef clef attest, and clef. I'm wondering how i ...
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?
0
votes
0answers
12 views

Arbitration and disputes in smart contarct [closed]

I am new in solidity and i want to know about arbitration and dispute functionality in smart contracts any help will be appreciated
1
vote
1answer
18 views

raw transactions to send ERC20 token fails on private network(POA)

I am trying to transfer ERC20 tokens on private ethereum network(POA) Transaction flow: raw tx object creation on backend. { "gasLimit": 37000, "gasPrice": 4000000000, "...
1
vote
1answer
106 views

Ethereum Puppeth private blockchain hosted in google cloud how to connect through rpc

I have deployed a priavate etheruem Poa bloackchain to google cloud using puppeth everything is working fine but i can't figure out how to connect throw rpc to the private network ! please help ! any ...
0
votes
0answers
7 views

Where can I get list of tokens that allow direct conversion to ether and not just from token to token?

Most tokens simply utilize the ERC20 functions transferfrom/transferto which just use some balances to add from one user to another - but what are the ones who allow you to: buy token cashout to ...

15 30 50 per page