All Questions

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

Insufficient funds for gas*price+price error, How to solve this problem and find the best price for gas? [closed]

Why am I getting the Insufficient funds for gas*price+price error? Hi! I am having a problem with framework. I am using a simple collection implementation. Where there is an implementation of saving ...
0
votes
1answer
12 views

Why do `view` methods revert without a reason when deployed to test networks, yet work fine on localhost?

I have been developing with Hardhat without problem. When I deploy my smart contracts to a test network (Ropsten or Rinkeby), none of my view methods work. For example: function testView() public ...
0
votes
1answer
13 views

How can i create a token ERC20 with a customized function

I want to create a and ERC20 token with a specially function. The question is the following: PERSON A: Create 1000 example Tokens. PERSON B: Execute a function that mint 10 of that example Tokens. Im ...
0
votes
1answer
34 views

Integrating MetaMask function into Wix Website

I am currently working in part on an NFT project, and I am the web designer for it. Most things are coming together nicely, yet I am now experiencing issues with MetaMask integration. I'm not a ...
0
votes
0answers
5 views

How instant and up to date are the wesocket event logs when using a light client?

I am trying to listen for event logs from a geth light node hooked up to the BSC mainnet. my observation is that i keep getting events with old block numbers that range from 100 to a 1000 old. My ...
0
votes
0answers
19 views

How do you deploy a smart-contract's constructor arguments with Hardhat?

Trying to launch an ERC-721 contract, no idea where or how to pass args in. Not finding it in the Hardhat Docs neither. I'm assuming it's a flag like npx hardhat run scripts/deploy.js --network ...
0
votes
0answers
18 views

Lost Eth, Sent from coinbase to metamask, anybody can help? [closed]

I have purchased ETH using my bank account on coinbase, then I sent the ETH to my metamask wallet though the transaction shows that it sent but then 1 min later sent to a different address ? what is ...
1
vote
1answer
11 views

bscscan contract argument data decoding

Let's take a look at this tx: https://bscscan.com/tx/0x9b7cde866e9fe9b9a1c636d0f9686ea5b1920c875d7fcd973baf847bc359c8a9 as you can see it's buying token through pancake swap: ...
1
vote
1answer
17 views

0x API swap destination address

Looks like there is no way to specify destination address for the swap function, is it so? Is there a way such that the swapped to tokens will be sent to another address, but not the original sender's?...
1
vote
0answers
8 views

My Metamask Wallt just spins when clicked and doesnt connect

I have an old version of metamask 4.1?? on a computer running windows 7. When i click on metamask, it just spins. My last login was about 2 yrs ago. What do i need to do to login to wallet? ...
1
vote
0answers
17 views

VM revert on Multiplication

This method is reverting for me at the first line, I'm sending sufficient value, price is uint and set to 20 and the contract has a sufficient amount of tokens to send function buyToken(address ...
1
vote
1answer
11 views

Mining causes nodes to stop syncing on Besu

I am trying to test my private network by running multiple nodes at one time. I am using a config file that lists the boot node as well as the same genesis file. The boot node is on a linux server, ...
1
vote
0answers
12 views

Display nfts in OpenSea

Hey guys I'm trying to display my ERC1155 collection in the open sea and i have few issues. My NFT's are deployed on ipfs but i really having issue setting uri in the constructor and then when i'm ...
1
vote
0answers
29 views

Sign ERC20 transaction by wallet A and broadcast by wallet B [duplicate]

I have 2 wallets: wallet A and wallet B where wallet A holds some amount of an ERC20 token. I would like to be able to transfer some of those ERC20 tokens from wallet A to wallet B in a way that ...
0
votes
0answers
8 views

Mystery MetaMask Wallet on Mobile (wallet exists that I did not create myself)

Every time I create a new MetaMask account, it works fine on the chrome extension, but the mobile app shows suspicious things. It creates a second wallet within my account that I did create or name, ...
0
votes
0answers
15 views

0x Kovan API returning 503 responses?

We have been using the Kovan 0x endpoint (https://kovan.api.0x.org/swap/v1) for a few months without trouble, but just started receiving HTTP 503 responses back today. Is the endpoint still supported ...
0
votes
1answer
11 views

what is the gas cost PER entry in storage?

So I just recently found out that 2^261 bytes can theoretically be stored on the Ethereum Blockchain. So this means 2^256 key-value mappings. My question is, what is the gas cost per NEW key-value ...
0
votes
0answers
7 views

How to mine only on transaction or reduce the disk storage used by HyperLedger Besu IBFT 2.0?

I have been following the tutorial for creating a private IBFT 2.0 network using Hyperledger Besu. The issue is that the blocks are created every 2 seconds and many blocks are created with no ...
0
votes
0answers
11 views

Storage working concept in practical application scenario for ethereum blockchain platform?

As per my understanding there are mainly 4 types of storage for ethereum smart contract namely 1. Memory 2. Stack 3. Storage and 4.calldata. NOW I would like to know about all these above four in ...
3
votes
0answers
27 views

Does anything change on getGasPrice( ) in Web3js after EIP-1559?

Using getGasPrice in web3js returns the last few blocks median gas price. After EIP-1559, the fees system is divided into Base + Tip. My question is, what is returned using getGasPrice after EIP1559? ...
0
votes
0answers
9 views

Check ERC20 or BEP20 token for fees with web3

A lot of BEP20 and ERC20 tokens today have fees on swaps. Is there a way to figure out if a certain token has fees on transfers with web3?
0
votes
0answers
18 views

Transaction status is Success 9 hours ago but ether is not in my wallet [closed]

I sent eth from one wallet to another over 9 hours ago but I have not received the eth in my wallet but the transaction says success. I have never had to wait more than 5 or 6 minutes. Is there ...
0
votes
1answer
39 views

Is there a way to programmatically set gas limit?

My smart contract has a centralized web app as front end using Ethers.js to communicate (in a Flutter app). When I'm executing a function, I need to pass the gas limit. How can I know what is a good ...
0
votes
1answer
10 views

SLOAD opcode working in ethereum virtual machine

How SLOAD opcode works in ethereum virtual machine and why it is one of the most computationally expensive and time consuming process. vm stats for different opcodes of evm
0
votes
1answer
26 views

Move ERC 721 Tokens to a different contract

imagine that I've a contract with 200 token already minted, now I see a mistake in the contract or I want to add a new functionality, how could I move all those tokens to a new contract? Thank you
0
votes
1answer
17 views

AnyswapV5ERC20 deployment - set totalSupply

I have some questions about the anyswapV5ERC20.sol contract. First of all, are there some more detailed docs than the guide of andre cronje? My main question is: How can I set the totalSupply or mint ...
0
votes
0answers
24 views

Is there any way to call metamask from my own chrome extension?

I'm trying to build myself a little expension to help me deal with my transactions and I can't figure out how to send transactions to metamask or open it from the chrome extension. Apparently you need ...
0
votes
1answer
48 views

metamask insufficient funds for gas how do i fix this?

metamask insufficient funds for gas, i'm currently using the bsc and I have 18usdt there that I want to send to binance
0
votes
0answers
15 views

Web3js: getPastEvents returns wrong transaction hash and blockhash

I 'd like to get all past events of a ERC20 token contract using web3js getPastEvents method. On my local testnet it worked but including some invalid values in response. Here is my JS code. var ...
0
votes
1answer
10 views

What were the changes included in the Berlin/London fork?

For Berlin there's EIP-2070 but it is an empty draft, and there's no spec for London.
1
vote
0answers
8 views

Is there a Java equivalent of estimateGas?

I read from many questions (example: How to estimate the cost to call a Smart Contract method?) that web3.eth has a method estimateGas that can provide an estimate of the gas usage of a transaction/...
0
votes
1answer
23 views

How to get pendingTransactions for a specific tokenId on ERC-721 contract (NFTs)

I want to block users from performing certain actions on my platform when the NFT token they own is under an active transaction i.e., pending transaction. The reason is simple because we don't know ...
1
vote
0answers
17 views

Examples of Token Vesting logic for ERC20 Token Launch

We are trying to implement a token contract in ethereum which will have some tokenomics strategies built-in, for eg. Some tokens will be pre allocated to certain addresses on contract deployment ...
0
votes
1answer
12 views

Moonbeam Testnet Deploy - Error: Returned error: submit transaction to pool failed: Pool(InvalidTransaction(InvalidTransaction::ExhaustsResources))

Below is my project structure: contracts ├── CExampleToken.sol ├── compile.js ├── create-eth-wallet.js ├── deploy.js ├── package-lock.json ├── package.json └── node_modules This is my code: ...
1
vote
0answers
11 views

How to read the excess (non-burned) tip fee for a transaction after EIP-1559?

I'm trying to understand the programming capabilities of Solidity with the new model of base fee and tip. Pls correct me if I'm wrong, from my understanding, the base fee is setup by the network based ...
0
votes
2answers
29 views

I`ve sent ETH to the wrong address

I`ve sent ETH from my gate.io to my metamask and I wrong the last number from metamask, is there any chance to get them back ? In the etherscan.io still shows available. This is good one: ...
0
votes
1answer
14 views

Overriding a function does not work as expected

I'm not sure I understand how overriding a function works in solidity. I am working on an ERC721 token based on the OpenZeppelin implementation. OpenZeppelin's ERC721.sol contains the following ...
0
votes
0answers
16 views

how to create a ethereum miner?

how to create an ethereum miner? I know there are a lot of etherum miners, I still want to create my own. I can also host a web page so that they download the miner. What do miners software have, any ...
0
votes
1answer
19 views

Is it safe to deploy a 8,000,000 gas contract?

8,000,000 gas seems to be the maximum gas allowed when deploying a contract on mainnet. My question is, is it even safe to do so or do I have a bigger risk that my deployment tx fails ? If so I would ...
0
votes
1answer
24 views

How can I measure the safeness of a price feed in Chainlink?

I want to know how to measure the safeness of a special price feed. As far as I understand, this price feed is not the official price feed of Chainlink in BSC (based on documents). Also, its nodes are ...
0
votes
0answers
5 views

Is it possible to check if a contract has an event?

I'm iterating through different blocks with the intent of finding every block in which an nft is deployed. I plan on doing this by checking for openzepplines ERC721 event. How do I check if a contract ...
1
vote
1answer
10 views

Sign Contract Call in Ethers.js

I want to get the approve signature for the user's erc20 token. But I will not send this signature directly to the network. I'll send it whenever needed. How can I do that?
0
votes
0answers
10 views

Can the price of a token be set based on the price of other tokens?

I recently stumbled upon CRYPTO20 (https://crypto20.com/en/). It is a form of tokenized cryptocurrency fund where they issue a single C20 token that tracks the performance of the underlying crypto ...
0
votes
0answers
19 views

How to test with existing ERC20 tokens on local tests

I have a Solidity smart contract for NFTs that I need to test using Truffle Suite. While deploying the contract on Rinkeby, I provide it with an existing ERC20 token contract address that I use for ...
0
votes
1answer
12 views

Error: overflow

I am trying to mint a nft token from my test using a tokenId number like this: 123456789123456789123456 a very big number, but when I try to mint I get the following error: { Error: overflow (fault=&...
0
votes
0answers
14 views

Is there a way to force a transaction to execute sonner within a block?

I'm building a DAPP game that would require users to submit a transaction after a specific block. The first one to have a transaction submitted and processed wins the round. As soon as the first ...
1
vote
0answers
18 views

Web3j - How to read the contract without credentials?

I'm using Web3j to interact with my deployed smart contract. I've deployed my contract onto the testnet and can interact with it, however using the generated wrapper code, it requires my wallet. Web3j ...
1
vote
1answer
10 views

How to access a Solidity mapping from HardHat

I have a mapping: mapping(bytes32 => string) requestToCharacterName; I am trying to access it from HardHat as such: contract.requestToCharacterName(bytes32) And receiving the following error: ...
0
votes
1answer
23 views

Hardhat Test returns transaction instead of return value

I just came from truffle to hardhat. Like the title says, I have a return value (address) of a contract and getting the transaction back. Any idea what I can do about that? it("Check all tested&...
0
votes
1answer
51 views

Start API Network timeout

I am trying to start local 0x-api(https://github.com/0xProject/0x-api). I first tried starting the api setting Infura Rpc Url in .env . Everything worked great. But I want to use my Local Ethereum ...

15 30 50 per page