All Questions

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

Smart Contract - Simple to Dutch Auction [closed]

I am looking for a Dutch Auction smart contract where we use simple auction and convert it into a dutch auction. I have added simple auction but I want to know how to convert it to dutch auction ...
0
votes
1answer
15 views

How to determine the return address when we use CALL opcode?

I'm try to understand each opcode defined in Ethereum Virtual Machine. As for the opcode 'CALL' I find that it needs 7 arguments from the stack: gas, addr, value, argument addr, argument offset, ...
0
votes
1answer
22 views

Is it true that we can't make multiple Transfer() to the same address within a single transaction now?

The code below is for illustrative purposes only. Not the actual production code. function payCommission(address[] payee) public payable { for (uint i = 0; i < payee.length; i++) payee[...
0
votes
0answers
10 views

What would be good result measures in Ethereum

I'm thinking of a way to present relevant results measures for my blockchain. I can see how for hyperledger is interesting to present (transactions per second x block size) or (latency x block size). ...
-2
votes
0answers
8 views

ALERT: Transaction Error. Exception thrown in contract code [closed]

Please help!! https://github.com/Mahdi321/DCensus/issues/2 it happens when add a member using form
0
votes
1answer
14 views

Function not returning address when using web3 provider

I have a contract that works fine when only using remix. I needed to test the block size and block number. here someone suggested me to use ganache which I did but now I don't get the output I'm ...
1
vote
1answer
25 views

Are these two implementations of safe ERC-20 equivalent?

These implementations from Uniswap and Compound seem both to have been written to account for the missing return value bug - an issue with some ERC20 token contracts that don't return a boolean when ...
0
votes
0answers
9 views

Events stop triggering after a while

I created a script that subscribes to PairCreated event on Uniswap using Web3 and Infura API. The event works for a few minutes but stops working after a while (timeouts?). How can I make it watch the ...
0
votes
0answers
11 views

Can't unlock account with geth attached to parity on classic chain

I run parity 2.7.2 on Ubuntu with --jsonrpc-apis=all on the classic chain: #> parity --chain classic --light --jsonrpc-apis=all 2020-08-05 15:20:15 Starting Parity-Ethereum/v2.7.2-stable-2662d19-...
0
votes
0answers
12 views

ethers.js Why aren't logs filtering? (query returned more than 10000 results)

I'm building an API to scrape events from a contract suite deployed to Rinkeby. Here's an example function with some context: const network = getNetwork(parseInt(`${process.env.CHAIN_ID}`)); const ...
0
votes
1answer
20 views

Call private internal function from another contract

Is it possible for me to call from a contract B, that has an instance of A, a private or internal function of contract A?
0
votes
0answers
14 views

What is the word used around the DAO application rescue fork for making a record of state at a certain block height [closed]

The word was used frequently. Semantically similar to "state screen shot"
0
votes
1answer
19 views

uint256[] array formatting

I'm currently trying to enable zk-proof verification on Ethereum. The zk-proof I'm using is an array of uint256[8]. I manage to verify it locally, but if I want to submit it to the Rinkeby testnet ...
0
votes
0answers
21 views

No error message returned in Ropsten [closed]

I deployed my smart-contract in ropsten test net after successful testing in local test net. I have used a modifier that has following code require(taskFlag == false, "Task already created.")...
0
votes
0answers
24 views

Error: Returned error: gas required exceeds allowance (12487794) or always failing transaction

I am trying to use a script which uses web3.js to transfer a specific amount of ERC20 tokens .I have made this script in such a way that if account doesnt has ether value it will try again and again ...
1
vote
2answers
26 views

How does proof of stake prevent past blocks from being changed?

I have a question about Proof of Stake. Are there any protections against a user just creating an entirely new chain, since there is no computational penalty for creating a really long chain, couldn't ...
1
vote
1answer
31 views

Possible to transfer multiple tokens in one transaction?

Is it possible to transfer all / multiple ERC20 tokens to another wallet address in a single transaction?
0
votes
0answers
18 views

How do I put an Ethereum address in an HTML link?

I'm sure I've seen this done, but I cannot for the life of me remember where. I'm writing a simple HTML page, and on it I'd like to have an Ethereum address as a clickable link, so people with Web3.0-...
0
votes
1answer
28 views

Who gets the gas for smart contract execution?

When I deploy a contract by sending a new transaction, the miner who adds the transaction to the blockchain gets the gas, right? When I execute I contract by sending a new transaction, the miner who ...
0
votes
0answers
6 views

What is the address of EthereumDIDRegistry used for and where is it in a private network?

According to EIP-1056: Ethereum Lightweight Identity, the address for the EthereumDIDRegistry is 0xdca7ef03e98e0dc2b855be647c39abe984fcf21b on Mainnet, Ropsten, Rinkeby and Kovan. What is that address ...
2
votes
1answer
20 views

Create signed message without JSON RPC node in PHP

I am trying to recreate effect of web3's eth.accounts.sign in PHP and I struggle to find good resources how to do it properly. I have seen this (found it thanks to this thread) and based on what I ...
0
votes
1answer
9 views

Etherlime Infura Rinkeby deployment causing ECONNREFUSED 127.0.0.1:443

I’m trying to deploy to Rinkeby using Infura (using Etherlime), but am getting a strange error: 'Error: connect ECONNREFUSED 127.0.0.1:443\n' + ' at TCPConnectWrap.afterConnect [as oncomplete] (...
0
votes
0answers
26 views

TypeError: Expression has to be an lvalue

I have a parent contract: contract Transaction { enum C_facts { Inital, Requested, Promissed, Declared, Accepted, Declined, Rejected } C_facts public c_fact = C_facts....
0
votes
1answer
33 views

As of 2020, what are the community-trusted desktop cold storage wallets?

I'm looking to transfer some ETH from markets to a wallet. I see MyEtherWallet.com has a way to be run in a cold storage environment. However, the fact that they're Twitter account got hacked makes me ...
0
votes
1answer
10 views

Eth address created from an outdated version of MEW off line

Hello I have MEW off line client 3.7 (2018 version) on an airgapped computer Since the new client doesn't let me create new ethereum wallets offline (it blocks itself (idle) while creating it) can I ...
1
vote
1answer
31 views

MetaMask won't send txs on local dev chain

I'm running a local dev chain for development using Etherlime. When trying to interact with the chain using MetaMask, I get the following error: MetaMask - RPC Error: Error: [ethjs-rpc] rpc error with ...
0
votes
1answer
33 views

TX failed - Bad instruction - Funds not back

I sent some $link amount but TX failed due to Bad instruction error. Tx is https://etherscan.io/tx/0xa45e443c8cf310dbe69ab725358ac2da20afde33442a55ed7df985fe6645057d Have read that failed transactions ...
0
votes
0answers
6 views

block syncing current is smaller than starting why?

I'm sync the chain after a power cycle, so current is behind highest for sure, but I also saw that current is falling behind starting block number, how is this possible? starting is the highest on ...
3
votes
1answer
30 views

Transaction hash on a degree certifiate

About a week ago I completed an online course from a reputed university. When I got the certificate, at the bottom I noticed a 'Blockchain Hash' followed by a long string of characters. When I clicked ...
0
votes
0answers
14 views

Know which function was called [closed]

I'm using remix and i want to know which function was called so that I can update a state variable. Does anyone know how to do this?
0
votes
0answers
20 views

How can I pass an unsigned transaction to a smart contract?

I have an unsigned transaction that I got from the 0x API in my web3 app. I would like to pass it as an argument to a function within a smart contract, is this doable? how? I already read about a ...
0
votes
0answers
7 views

getTransactionReceipt() in JavaScriptVM Environment

Is it possible to get a transaction receipt using Remix in JavascriptVM Environment? If it is how can i do that? Thanks in advance
0
votes
0answers
11 views

Forgot to add gas before sending Crypterium. What can I do?

I tried to send about $120 worth of Crypterium from Etherscan to my wallet and forgot I didn’t have ETH to use for gas. The transaction has been stuck on “pending” for weeks now. Is there something I ...
1
vote
0answers
20 views

Non linear State Machine Pattern

The State Machine presented at solidity documentation shows a good way to implement the pattern in linear cases. However, when the states don't transact in a non-linear manner there is no example. ...
0
votes
0answers
10 views

Event listener works correctly from outside of the machine but not from inside the machine

I have created an event listener for my application. When I run the event listener from outside of the machine it listens correctly to all the events but when I run the same event listener (with ...
0
votes
1answer
37 views

What will happen to GETH node once Ethereum 2.0 releases?

I have a full GETH node running and looks like Ethereum 2.0 is about to release. My question is: Will I need to do tweak anything in my node once Ethereum 2.0 releases? Will my GETH full node be able ...
0
votes
0answers
36 views

Etherscan API for how to get pending transactions? [closed]

i want to get pending transaction from address with an etherscan API.
3
votes
1answer
34 views

Make an erc20 transfer with web3py

how to send an erc20 in web3py please, I have that : tx_hash = contract.functions.transfer(destination_address, value).transact({'from': myaddress }) and I get this error : ValueError: {'code': -32601,...
0
votes
0answers
8 views

Remix not loading in Chrome and Firefox

For some reason i cant access the online Remix IDE. http://remix.ethereum.org it gives me a blank page with a logo. Tried to access from Firefox, Chrome and Edge aswell as disabling all extensions ...
0
votes
0answers
15 views

What is the economic behaviour of a uniswap pool as all its members leave?

I bought some defi tokens using uniswap. As I understand it, my ETH is now part of a pool. The price of the token changes according to a*b=k as people swap in and out of it, or by arbitrage. Okay, but ...
0
votes
0answers
23 views

“in Process” Ran out of gas

Kyrptono Exchange Customer Support has refused to respond to my problem. The transaction failed, because it ran out of gas, I can still see a shadow of my DGX on Kyrptono account, but after 7 months ...
2
votes
0answers
14 views

Why does clef not implement ethereum's JSON-RPC

Assuming that the RPC standard still matches what is to be found today on the ethereum wiki, I was rather surprised to learn that the method calls provided by clef do not match the signer methods in ...
0
votes
0answers
13 views

the best way to monitor my own account transactions in openethereum

Please I want to know if I subscribe to pendingTransactions with web3 will it monitor and send notifications of accounts pending Transactions only or all pending transactions on Ethereum network. my ...
0
votes
0answers
20 views

Truffle console is hanging on function call

I have a contract deployed to ropsten. It has a function called enter: function enter() public payable { assert(msg.value == MINIMUM); assert(OPEN == true); players.push(...
0
votes
1answer
19 views

Transactions stuck at pending on ropsten test net from one day

I am Writing a simple script for ERC20 token transfer method. which sign transaction offline and then submit it to network. Transfer method encoded data : var encoded = await MyContract.methods ...
0
votes
0answers
18 views

is there a way to create a ens ethereum address to be readable one using cryptography? [duplicate]

I would like to generate address which are readable to people using cryptography and supporting ethereum transactions without problems, I don't want to use ens ethereum because I will have to pay for ...
0
votes
2answers
19 views

How concatenate encodeWithSignature with another data type to external call?

There are a abi.encodeWithSignature("foo((bytes))", info), but in addition to calling the function in another contract I want to send more data as an address to retrieve with msg.data, for ...
0
votes
0answers
8 views

All requests routed to submodule when changing its provider in web3js

Using web3.js 1.2.11, I expect the last part of the following code to route requests from the web3.eth.personal module to the IPC socket, and requests on web3.eth to TCP port 7545. let Web3 = require('...
0
votes
1answer
32 views

Piece of code with constructor [closed]

Can you explain me what this piece of code does please? i don't understand it at all. struct Candidate { uint id; string name; uint voteCount; } mapping(uint => ...
0
votes
0answers
13 views

How to get a public IP address with IPFS-JS

With IPFS JS when I run this: const ipfsNode = await IPFS.create(); const addresses = await ipfsNode.swarm.localAddrs(); console.log(addresses); I get this: Swarm listening on /ip4/127.0.0.1/tcp/4002/...

15 30 50 per page