All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
36 views

How to make a snapshot of ERC-721 (NFT) token holders

What is the best way to create a snapshot of ERC-721 token holders? Maybe there is a tool for this purpose? I need to take a snapshot of holders of tokens for this NFT contract - https://etherscan.io/...
0
votes
0answers
17 views

Drizzle not automatically updating value of balanceOf() of an ERC20 contract

I'm using drizzleReactHooks.DrizzleProvider to get the drizzle provider which is being received properly: <drizzleReactHooks.DrizzleProvider drizzle={drizzle}> <drizzleReactHooks....
0
votes
0answers
22 views

ETH sent to an address that was generated for contracts, how can I recover?

I have transferred money to an ethereum address that belongs to the smart contracts. const priv = "0x" + crypto.randomBytes(32).toString("hex"); const pub = "0x" + util....
2
votes
1answer
29 views

How do large Ethereum dapps get iteratively developed?

There are some extremely large projects on the Ethereum blockchain, like Augur. These dapps aren't short 100-line smart contracts, and are not uploaded once to the blockchain and done. Question: how ...
1
vote
0answers
29 views

Cant find sushiswap router address for Kovan testnet

Can anyone get me a routerV2 address for sushiswap on Kovan? The address given on sushi page is incorrect.Thanks
1
vote
1answer
49 views

connecting to Metamask using React.js and Next.js without having to refresh the page each time

StackShare question Hello, I am having a problem with connecting to Metamask dynamically. I created a voting website using React.js and Next.js, and was using UseEffect() to connect to Metamask. ...
0
votes
1answer
14 views

After transfered the ownership to one contract, how to transfer it to others?

Here 2 contracts: contract A and contract B If I (deployer/owner) transferred the ownership of contract A to contract B, is there any solutions that can transfer the ownership of contract A from ...
0
votes
1answer
10 views

Promise Pending on Etherscan API

I am trying to pull normal transactions done by a wallet by using etherscan API. However, I am getting Promise { <pending> }. Can someone please tell how to solve this? Here is my code: require('...
0
votes
1answer
33 views

Adding element to mapping (solidity) is not working, even if the method is actually called in the transaction

I'm currently working (as a begineer) at a project involving ethereum blockchain and solidity. In my contract I have a mapping with addresses as key and the value of an array of a FileDetails ...
1
vote
1answer
58 views

Random distribution of large amount of NFT

I'm an beginner in solidity, and with a teamate we have a project for an NFT contract. I have a contract with 5000 NFT limite (cards, and 20 specific card form a familily, each family and cards are ...
0
votes
0answers
12 views

Ethereum NFT options

I am looking at producing a set of NFT's that are a set of 100, the item does not have an image, but is a token to run through an algorithm, I want them to be limited whole NFT's, not ERC-20s. I am ...
1
vote
0answers
17 views

GraphQl Query to get Uniswap OHLC data through The Graph

I tried searching through whole doc of The Graph but couldn't get a way to get OHLC data of Uniswap pair swaps. Where can I find such a query. Is this even possible? Thanks
0
votes
0answers
10 views

sent etc classic to my eth address on hotbit

i sent my etc classic on coinbase to my eth address on hotbit. hotbit is now trying to get money from me to try and help. is there any other way to recover these tokens? i've been researching for ...
0
votes
1answer
29 views

Uncaught (in promise) TypeError: work.methods.workCount is not a function

Describe the bug I am trying to call the public variable "workCount" from a smart contract using web3 Steps to reproduce: const work = new web3.eth.Contract(ABI,Address) const workCount = ...
1
vote
1answer
30 views

Uniswap: Fail with error ‘Dai/insufficient-allowance’

I am trying to deposit kovan DAI to my smart contract by using transferFrom of the ERC20 function, but I get an Dai/insufficient-allowance. So I tried approving it explicitly and then trying to ...
1
vote
0answers
27 views

MetaMask no longer working on my Chrome browser [closed]

I have learned that MetaMask no longer automatically links up to Web3 sites. Every time I now try to use my MetaMask to transfer fund from MyEtherWallet, I see that it is not connected to whatever ...
0
votes
1answer
16 views

Learning go-ethereum For Custom Chain

Is there a site to find out all about source code go-ethereum? I want to learn fully about the Ethereum blockchain.I want to learn private blockchain to learn more.
0
votes
0answers
17 views

ERC721 token transfer across private contracts

Using a token based model I have multiple privacy groups and using Quorum P1 - Participants A and B ( Private Contract ) P2 - Participants B and C ( Private Contract ) P3 - Participants C and D ( ...
0
votes
0answers
21 views

Cant receive wETH to my contract after swap on uniswap

I write a simple contract to do a flash loan from aave and interact with uniswap in it. I found out that no wETH is sent to my contract after swaping on uniswap. Transcations are here: https://kovan....
0
votes
2answers
46 views

how to interact with Back-end of a dapp?

I am trying to build a dapp but I am having problems. My idea is: I have a front-end written in html / css and a backend implemented with web3.js thanks to which it is possible to connect to a ...
0
votes
1answer
19 views

TypeError [ERR_INVALID_ARG_TYPE] web3.js error

Can anyone help me fix this problem? I keep getting 'throw new ERR_INVALID_ARG_TYPE( ^ TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or ...
3
votes
0answers
22 views

Metamask hangs while trying to decrypt a PDF file

I'm trying to encrypt a PDF file using the public key provided by metamask. The array buffer representing the file is converted to a Base64 string and encrypted using the eth-sig-util. The code is ...
0
votes
0answers
7 views

my python event listener create duplicates in case of multiple event in one transaction

I have an issue to manage with my listener in python, here is my code : def handle_event(event, log_index): receipt = w3.eth.waitForTransactionReceipt(event['transactionHash']) ...
0
votes
1answer
32 views

Gas fee optimization questions [duplicate]

Can some recommend a way to save gas fees? a = a + 1; a++; I heard about this; Pack struct tightly Mine looks like this. I am not sure about size of address, ENUM variables and array without length. ...
1
vote
1answer
103 views

Do call methods cost money?

I've been developing a smart contract on Kovan with no issue. I've deployed to Mainnet and the call methods (with 'external view') are returning insufficient funds for gas errors. I thought that call ...
1
vote
0answers
14 views

Calculate exponential growth using decimals

Is there any way to calculate the following in Solidity? 468750 * 2.718281828459045 ** (x * 0.003662040962) - 468750 Typically I would convert the decimals using decimal * 10 ** 18 but with the ...
1
vote
1answer
29 views

How to enforce that 1 copy of an NFT has a unique meta data that no other copies of that NFT can also have?

If I wanted to create an NFT that contains the Username of a person to prove their address ownership, what is the best practices or suggested ways to enforce that no 2 copies of that NFT can have the ...
0
votes
0answers
16 views

Architecture for a simple payment system - Wallet + Infura

I'm fiddling with Ethereum a bit. I'm trying to create a payment system using an external node provider such as Infura. Now, of course I wouldn't leave for an external provider to hold my private keys,...
0
votes
0answers
25 views

Issue sending ETH to smart contract with web3js/metamask

So I have a simple smart contract (shown below). // SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; contract Casino { function pay() external payable{ } ...
0
votes
0answers
36 views

Safe implementation on Solidity 0.8.0 of a withdrawal and a refund

I'm here for asking of a SECURE way to implement on solidity 0.8.0 two functions: 1-Withdrawal() which sends all the ether of the smart contract to the owner address. My current implementation is: //...
1
vote
0answers
19 views

Optimize geth speeding transaction

Is there anyway to broadcast transaction to all peers changing handler? I want to optimize and broadcast to all connected peers
0
votes
1answer
21 views

“Truffle Networks” spits out error and can't migrate to Mainnet

I'm trying to deploy to Mainnet (for the first time) but the initial migration (1_initial_migration) is getting stuck. Deploying to Kovan works fine and is super fast. I have enough Eth to deploy to ...
0
votes
1answer
39 views

Calling web3.eth.getAccounts() does nothing - no errors

I am trying to get all accounts using web3@1.3.3 and @truffle/hdwallet-provider@1.2.2. I am using HDWalletProvider with Infura. I am running this code on backend (Node.js v14.15.5). This is the code ...
1
vote
1answer
29 views

transactions are performed sequentially by the blockchain, but how are the waiting times managed?

I have a booking dapp where you can make reservations and call the bookRequest method. If many users call this method, it is not possible to know the order in which they will be performed and ...
0
votes
1answer
24 views

Where to report scammer Ether wallet addresses?

Bitcoinabuse.com is where we can report scammer addresses for Bitcoin wallets. What is the equivalent for Ether scammer addresses?
0
votes
2answers
19 views

Compile error on address.call

My syntax seems to be ok, so I do not understand this CompileError
0
votes
0answers
19 views

web3.eth.sendSignedTransaction returns undefined [duplicate]

Please look into the below Web3 script, this is returning undefined, but it must have returned the transaction hash and its related meta data. Code: const Tx = require('ethereumjs-tx').Transaction ...
1
vote
1answer
26 views

How does uniswap process so many transactions on the clogged ethereum network?

According to info.uniswap.org, the number of uniswap transactions in the last 24 hours was 136,383. This amounts to approximately 136383 / 24 / 60 / 4 = 24 transactions per block. It appears that with ...
0
votes
1answer
24 views

What decides about the position in the block? [duplicate]

All these transactions happened within the single block: Source: https://etherscan.io/defi?q=0x8a40c222996f9f3431f63bf80244c36822060f12#dextracker Right now it is still possible to get to the initial ...
1
vote
0answers
32 views

Issue in Integrating metamask to chrome browser in mobile

I am trying to create an DeFi app by integrating the MetaMask wallet. Desktop The DeFi app works fine with the MetaMask integration Mobile I have my MetaMask setup in my Android mobile. When I tried ...
0
votes
1answer
32 views

HDD full of files, any worth…?

Few years back, when the Ethereum started, I downloaded "geth" for Windows and started mining. I had it running 24/7 for several months with my (then) top of the line VGA. After noticing ...
0
votes
0answers
15 views

Presign transaction to later publish with aave

Is it possible to have pre-signed tx that I could publish to close a position with aave. Let's imagine I have 0.1 wbtc deposited with aave and I borrow 1000 usdt. I can close my position from the ...
0
votes
0answers
12 views

Old Geth wallet copied to Parity but doesn't show up in UI

I have an old Geth file from its keystore (the UTC-.... file), and I would like to migrate it to Parity. I have copied the file to wherever Snap stores Parity's keystore files, and I can see the ...
0
votes
0answers
112 views

How to convert my custom ERC20 token to BEP20?

I have my custom token on the Ethereum network and I want to send part of the tokens to the binance smart chain. That is, issue a wrapped token.For example: https://etherscan.io/token/...
0
votes
0answers
34 views

Buying directly from smart contract at the the same block the liquidity is provided

I am trying out buying new listing from uniswap but bots always rally the price so high that it just doesn't make sense to enter until the market is fully cooled off. I have found and application ...
0
votes
0answers
31 views

Problem reading chaindata that generated by ganacha gui

my intention is to write a script to analysis eth data from scratch. i run ganache gui in window with about 200 blocks up to now, and i quite sure that chaindata is keep growing big, then i simply run ...
1
vote
0answers
16 views

How does zero knowledge proof prevent frontrunning

I have learned about that zkp can hide the information of orders, e.g. the type and the number of assets, but it's still confusing. Is there any paper or project about using zero-knowledge proof to ...
0
votes
0answers
18 views

Geth Java Console

I know that we can use java console to send transactions. Can we pre-set a file that when we just double click the file, the users in ethereum wallet can automatically transfer money to other ...
0
votes
0answers
12 views

Installation problem with Embark

Going through the installation guide I'm at the last step to verify the Embark installation using the embark --version command and I get the embark: command not found message. npm list -g --depth=0 ...
0
votes
2answers
49 views

Web3 how to send ether from client Metamask to contract address native receive function?

I wonder how can I natively pop-up the MetaMask window to send specific amount of ether as a donation to already defined SC address and ABI? Short code intro: pragma solidity >=0.7.0 <0.8.6; [......

15 30 50 per page
1
4 5
6
7 8
650