All Questions

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

What token address do I use if I want to sell an ERC20 token on a different exchange? Its original address or its address on the other exchange

I really need help with this one to avoid logic errors. I am on the Kovan testnet. I bought 4 units of DAI token on Uniswap exchange(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D) for 0.111 Ether and ...
1
vote
1answer
17 views

How to cancel a pending transaction from command line?

I have a private key. I need to cancel a pending transaction sent from its address. How to do this from command line? Also: I need to do the exactly same thing if there are several such pending ...
0
votes
1answer
28 views

Can someone read this private variable?

my purpose is to generate a random key when the smart contract is created and save that key in a private variable. I don't what to know its value either. Let's take for example the code below: pragma ...
0
votes
0answers
14 views

how i send data from different account using web3.py to smart contract

The project is a group of Ethereum users, who wants to send their data to the blockchain network to be saved, this data is sent by these users by Python. My question, how is this data sent by users, ...
0
votes
0answers
22 views

How to mine without entire computer slowing down?

My computer is a dream machine with 64gb RAM and 28 cores operating at 4-5Ghz. Using Linux Mint. I also have a fairly modern Nvidia graphiques karrd with 8gb VRAM. I am mining XMR on 24 of my 28 cores,...
0
votes
1answer
9 views

array.push replacing last value instead of adding to the array

I am attempting to keep a log of when a user does certain things but when a new log event is reached the second log is overwritten instead of adding a new one to the array I am unsure as to why when ...
0
votes
0answers
8 views

Does Ganache Support Mappings?

I have a function where I am trying to compare the values of 2 mappings. However, I am receiving an invalid opcode error. Which has me confuzzled because I already set the values of both the mappings ...
0
votes
1answer
21 views

How can I calculate percentage of a number in solidity? [duplicate]

How can I calculate percentage of a number in solidity? say I want to calculate 95% of the number 200. How should I go about doing that ?
1
vote
0answers
17 views

debug_traceTransaction says tx failed, etherscan says passed

I was running debug_traceTransaction on the transactions in the first 100,000 blocks, and I came across 25 that were flagged as failed, but etherscan.io says they are fine. The gas used is below gas, ...
-1
votes
0answers
17 views

Python UserWarning [closed]

when I use stanfordnlp for Arabic language I keep having this errors ..\aten\src\ATen\native\BinaryOps.cpp:81: UserWarning: Integer division of tensors using div or / is deprecated, and in a future ...
0
votes
0answers
15 views

Insert data whithout overwriting the already stored whit the same address

i'm new to solidity and i'm developing an easy app. This is the contract i'm working on. It's all functioning but i need to: do some sort of function that return me all the array value whit the same ...
1
vote
0answers
16 views

Does the term “Ethereum ECDSA signature” have a consistent meaning?

If you were writing some instructions and one of them was: Provide the Ethereum ECDSA signature of the file using the person's Ethereum address. Would the above instruction have a consistent meaning ...
0
votes
0answers
14 views

GETH full node genesis mismatch

I was running a full node GETH client for main net Ethereum in a server. The server crashed and was shut for around 8 hours. But after fixing the server and running the full node the GETH doesnt run. ...
0
votes
0answers
24 views

debug_traceTransaction returns massive json of opcodes

I ran debug_traceTransaction on tx "0x7faf48b09018e507c49c1c44b139fa05c262fb1e3425a43ae80e6c9ccb3fcf0e" (block 1805546, txindex 1: contract creation), and I received back a massive 157MB ...
0
votes
1answer
12 views

How can the contract move funds from a user wallet to a contract address

We are creating a system where every month some ethers shall be transferred from user wallet to a contract wallet. We are focusing on creating a dapp too, so a user will initiate this request and once ...
0
votes
1answer
22 views

Can ERC-20 based stablecoins be confiscated or be subject to legal process?

Can ERC-20 based stablecoins be confiscated or blacklisted? Can I lose my stablecoins? What are differences between stablecoins out there?
0
votes
0answers
11 views

Parity Max Gas Limit dropping

When running my chain my gas limit drops drastically from the set limit of the genesis block "gasLimit": "0x3B9AC9FF" due to large gaps both in time and frequency between the ...
0
votes
0answers
19 views

file to byte array problem [closed]

Converting a file to a byte array to be stored as bytes[] in solidity I am able to convert the file using the following function, but when I send it to my smart contract I get error "TypeError: ...
3
votes
1answer
18 views

How is Chainlink decentralized? [closed]

I believe one of the main criticisms of chainlink is that it is not decentralized enough, adding more nodes would be a big step in a positive direction. When I pull data through a node, that node ...
0
votes
0answers
35 views

If I have several wallets with the same address, how to deal with nonces?

I access Ethereum from several wallets. Some of the addresses are present in several wallets at once. I discovered that nonces should always increase. (Right?) Then if I send transactions from several ...
0
votes
0answers
9 views

Peers attempting to connect to ports on my machine other than those used by geth

I have a geth node running on a linux machine, and have set up a firewall (UFW) to allow all outgoing connections, but inbound connections to 30303/udp and 30303/tcp only. I'm noticing in my system ...
0
votes
1answer
17 views

Error: Returned error: VM Exception while processing transaction: revert when using methods.MyMethods.Send

I am writing a simple betting application that will return double the ether deposited by the player, provided they guess correctly the random number generated by the virtual slot machine. it works ...
0
votes
0answers
10 views

Error: No Keyring found for the requested account

I am an student and in this moment practicing how to create a simple smart contract in remix.ethereum.org. I got compiled the small program with function get without problem. When I deploy the program ...
1
vote
1answer
32 views

Smart Contract Application in ASP>NET [closed]

I just have started to learn Smart Contract. I have to design front end in ASP.NET. Can I call Contract from it?
0
votes
1answer
17 views

Convert FIAT currency to ERC20 token [closed]

I want to create a crypto currency (ERC20 token) with truffle or solidity. Basically, i want to sell digital product that can cost as example 10$. I want to convert that 10$ into my currency (ERC20 ...
0
votes
1answer
15 views

Functions that are used for token transfers for ERC20 and ERC721 tokens

Let's suppose there is a contract address A of an erc721 token B. If I want to monitor all of its transfers from A to another address say C then should I only filter the Transfer function or should I ...
0
votes
1answer
18 views

When would one want to use a linked library?

My understanding is that if a smart contract consumes a library that only has internal functions, then the compiler will embed the library into the contract bytecode. At the lowest level, there is no ...
1
vote
1answer
20 views

The send transactions “from” field must be defined using Infura web3

when I try to send my transaction using infura I get this error "The send transactions "from" field must be defined" My problem is my web3 object. When I used Metamask and ...
1
vote
1answer
15 views

Web3 js and frontend frameworks [closed]

Will i need a front end framework like React, while using web3 to build Decentralized Applications?
0
votes
0answers
20 views

ERR_SSL_PROTOCOL_ERROR while connecting private blockchain

I'm working with private blockchain, and facing some issue with SSL configuration. The system has two components: The private blockchain that is configured on the VM. The web application that ...
0
votes
1answer
17 views

How can I prove my friend having changed just one word in the seed and have it lay around is super insecure?

My friend said to me that he has his seed saved in Google Drive and that he is absolutely safe even if someone found it out. He even gave me his seed to try to break it. I know that all I have to do ...
0
votes
1answer
19 views

How to withdraw Other ERC20 tokens besides Ethereum from my contract

I'm trying to implement something like this (which works) function withdraw() public { msg.sender.transfer(address(this).balance) } but I need to be able to withdraw ERC20 tokens other than ...
0
votes
0answers
17 views

Validating transactions with ZK methods

After reading some topics on the implementation of ZK methods in the Ethereum, how would this affect the PoW? Please have someone correct me if I am wrong (I started recently), but if the nodes need ...
0
votes
0answers
21 views

Runtime error - ganache_local network error

I can connect to web3. I am able to send ETH to another account using truffle develop and the sent ETH shows on my metamask account. I have installed truffle-hdWalletProvider as well Whenever I use ...
0
votes
1answer
13 views

Parameters on evm opcode create

Why the usual way to create a contract with evm opcodes use add and mload, for example: bytes memory bytecode = hex"600580600c6000396000b800602a600052b8"; ... assembly { _address := ...
0
votes
1answer
14 views

How do I get a list of tokens held by an Etehereum address?

TL;DR: wanted: a method that receives an address as a parameter and returns an array of token names/contracts/balances held by address. I'm aware of the fact that Etherscan API has a method allowing ...
0
votes
1answer
17 views

Cold wallets & dapps

I am new to ethereum and curious about interacting with dApps while keeping a private key in cold storage. I like the idea of keeping the private key for an Ethereum wallet on an air-gapped computer. ...
0
votes
1answer
21 views

Status is Successful but got internal transaction out of gas?

I call a function with the transaction like this https://ropsten.etherscan.io/tx/0x7d4dec3c0db2b700efae63ef3ffb5a33fc2335bd992fd37c48aa10560eb8156e this fuction is a call from other contract,I wrote ...
1
vote
1answer
24 views

How to deploy Smart Contract on Ethereum 2.0

I want to know how to deploy Smart Contract on Ethereum 2 Testnet using web3 ?
0
votes
0answers
10 views

Snapshot syncing proceeds but block number is still zero

I use OpenEthereum(v3.0.0) on warp sync. OS is ubuntu server 20.04. But its snapshot syncing is proceeding but block number is still zero(#0). Please see the following image. Is this proper condition?...
2
votes
1answer
17 views

When MetaMask removes the Cancel button for a transaction?

When I start a transaction, MetaMask shows it with Cancel button. When does this Cancel button disappear? Maybe after one confirmation? After N (what is N?) confirmations?
0
votes
2answers
19 views

web3js getPastLogs function returns error: query returned more than 10000 results

I have a local ethereum node and I am trying to filter an event for a contract address between a range of blocks. However it throws the following error: node:15689) UnhandledPromiseRejectionWarning: ...
-1
votes
1answer
20 views

i can't figure out why i keep getting this parser error

pragma solidity ^0.5.13; contract WorkingWithVariables { uint256 public myUint function setMyUint(uint_myUint) public { myUint = _myUint; } bool public mybool; ...
0
votes
0answers
22 views

How to know when a transaction is finished? (web3.js)

I make a contract method call using .send() method: contractInstance.methods.pay(itemId).send({from: defaultAccount, value: web3.utils.toWei(String(price*1.0000001)), gas: '1000000'}, ...
0
votes
0answers
12 views

How can I automize process of deploying my contract?

I am using following appoach How to deploy Ethereum Smart Contract through Brownie to the Private Network. I want to automate this process in order to capture the transaction hash and deployed ...
0
votes
0answers
13 views

Migrate from parity to geth

How do I migrate full node from PARITY to GETH ? So the easy part to tun geth I know, but How do i move all the keys from parity to geth? I've tried to copy the keystore folder from parity to geth, ...
0
votes
1answer
19 views

How to call “payable function” via interface in solidity [duplicate]

I have a function marked as payable in contract A and I want to call it from contract B so that msg.value in contract A can have its desired value and contract A must have balance of sent amount , how ...
0
votes
1answer
25 views

I have a Transaction Hash, how to get the readable Input Data?

i have a Transaction Hash: 0x9f46760404dd3075533e8360fe4beb0ba7210423af1f4a95a5c80defffe824b5, for how do i decode the "input data" easily? for example: https://www.blockchain.com/eth/tx/...
0
votes
0answers
29 views

How do I get the available reserve size for a given token on Kyber and Uniswap(V2)

I am doing arbitration with some measure of success; but I suspect I am running into edge cases where the available reserve size is less than what I am trying to buy or sell. Something like this: ...
0
votes
1answer
26 views

Deploying contract with web3. Two different methods fail

I tried this method to deploy a contract. It is described in the web3.eth.Contract documentation. var contract = new web3.eth.Contract (JSON.parse (abi_json_string)); contract.deploy ({ data: ...

15 30 50 per page