All Questions

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

Standard way for creating token ID in ERC 721

Is there a standard way for geneting token Id in ERC 721. Most of the tutorials which i went through, they are generating a number sequence starting from 1 and incrementing it. Example: tokenID is ...
user avatar
  • 103
0 votes
0 answers
4 views

ERC721 transferring NFTs and currency

I have a contract that I want to use as an NFT marketplace. It extends ERC721URIStorage contract NftMarketplace is ERC721URIStorage ... In on function I use _transfer() to move an NFT from the seller ...
user avatar
0 votes
0 answers
8 views

Withdrawal transaction reverted by EVM

I have set up this contract which has deposit and withdrawal functions. Everythings looks good when testing with Truffle, but I keep on getting a revert on the withdrawal function from the .js on the ...
user avatar
0 votes
0 answers
4 views

Get Limit Price from thegraph limit price order

Trying to get price from limit order that was been summited to contract but when call theGraph query: https://api.thegraph.com/subgraphs/name/gelatodigital/limit-orders-fantom-ii/graphql, I getting ...
user avatar
  • 101
0 votes
1 answer
3 views

What if I as a miner , include some wrong transactions in the block and push it . What is the process so that other nodes get notified about it?

Also give tips to sail easily through the ethereum yellow paper
user avatar
0 votes
1 answer
7 views

Smart contract using WETH

I am looking for info regarding WETH and what it allows. From what I understand, by using WETH a smart contract is able to process payment while the user is "offline". In other words, a ...
user avatar
0 votes
0 answers
5 views

How to generate and remember, or to be able to deduce, the private keys of a few millions of addresses?

Goal: generate a few millions addresses and remember or store the private keys of each of them in an easy manner. Using the most straighforward approach, that is, storing all of the addresses as &...
user avatar
0 votes
0 answers
3 views

How to upload folder of images using pinata - ipfs?

How to upload a folder of images, by giving only path using npm's pinata sdk ? I only want to give folder's path. using javascript.
user avatar
0 votes
0 answers
4 views

"Error": "Failed to decode output: Error: data out-of-bounds

I've got this strange error in Solidity's Remix: "error": "Failed to decode output: Error: data out-of-bounds (length=36, offset=64, code=BUFFER_OVERRUN, version=abi/5.5.0)" It ...
user avatar
  • 101
0 votes
1 answer
9 views

swapExactTokensForTokens estimateGas fails with execution reverted

I'm trying to swap a pair not having wbnb on pancakeswap. For ex. BUSD -> LUNA. As far as the pair doesn't have wbnb I use swapExactTokensForTokens (meanwhile WBNB -> BUSD with ...
user avatar
0 votes
0 answers
4 views

Pancakeswap multihop how is it implemented

On Pancakeswap it uses multihop functionality when swapping a pair with no direct swap path. The v2 router does not support multihop and was wondering how PCS has this implemented? As an example on ...
user avatar
  • 101
0 votes
0 answers
4 views

TypeError: ethers.Contract is not a constructor

I am using ethers.js library. I used the following line to create a contract. I used the same line previously without any issue. contract = new ethers.Contract(address, ERC20_ABI, provider); however,...
user avatar
0 votes
0 answers
6 views

How many methods do we have to keep String type in Solidity?

How many methods do we have to keep String type in Solidity? Explain the Visibility Quantifiers in Solidity language in detail
user avatar
0 votes
0 answers
4 views

How do I recover Wormhole Terra Bridge UST that I was sending to Metamask

I made the mistake of using Wormhole instead of Shuttle option on Terra Bridge to try to transfer my UST from my Terrastation Wallet to Metamask through the Etheruem mainet. It never showed up in my ...
user avatar
0 votes
1 answer
4 views

How do I construct/get the calldata of a mere call that a web3 client produces?

I have the methodID, I have the "to"... what else do I need? How is it generated by the packages/clients, and how does it get broadcasted? I seem to find myself in a layer-hell where nobody ...
user avatar
0 votes
0 answers
4 views

Deployed debug Gnosis Safe Guard example can't be added to my Gnosis Safe Wallet

I deployed the Gnosis Safe Guard example (https://github.com/safe-global/safe-contracts/blob/v1.3.0/contracts/examples/guards/DebugTransactionGuard.sol) on rinkeby network using remix. Then I followed ...
user avatar
0 votes
1 answer
6 views

How to reduce amount in Contract and not from Account

I have a fallback function like this. So I am able to send and increase the amount in "contract address". Assume I sent 2 transactions like 10 and 20, the sum is 30 is successfully shown. I ...
user avatar
  • 103
0 votes
0 answers
3 views

Problems with find a compiler version matching 0.8.13 with truffle compile

Im very lost with this issue. Im trying to make a dap but when i run truffle compile i get the error that i post on title. Next i run truffle compile --list and a recive this: $ truffle compile --list ...
user avatar
0 votes
0 answers
6 views

Error when calling factory.methods.getPair with PancakePair (BSC)

After doublechecking all addresses over and over; I'm still running into this error trying to instantiate a contract for CELT_USDT: Error: Returned values aren't valid, did it run Out of Gas? You ...
user avatar
  • 1
0 votes
0 answers
3 views

How to upload NFT Metadata of multiple images after you get base-URI of folder using coding instead of manually doing it?

How to upload NFT Metadata of multiple images after you get base-URI of folder using coding instead of manually doing it ? So, After I upload my Image through Pinata/IPFS, I get a Base-URI. Now I want ...
user avatar
0 votes
1 answer
5 views

Get an NFT's last sale price

How can I fetch the last sale price for an NFT? Basically need to do this for all the NFTs in a collection. Finding out the real cost price of all owners in the collection at this moment. What's the ...
user avatar
0 votes
0 answers
5 views

Smart contract compile with empty bytecode when using Interface

Given Solidity ^0.8.13 file X.sol, contains an interface of contract Y and contract X // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface YI{ // This is the interface of contract Y ...
user avatar
  • 101
0 votes
0 answers
3 views

NFT collection revealed but not shown on opensea

I am very experienced artist but non skill on programing, in writing you that, I just launched my 10k nft collection on opensea by using Hashlips nft-erc721-collection-2.3.0 fork. First I have added ...
user avatar
0 votes
0 answers
2 views

I use the Wormhole redeem to transfer tokens to the xanchor wormhole bridge, How can i get it back?

I withdraw ust on Xanchor to my meta mask wallet 3 days ago, but ust doesn’t appear on my wallet. Then I go to wormhole bridge to check, I find the transaction didn’t finish there, then I made a big ...
user avatar
  • 1
0 votes
0 answers
9 views

How to create using Mnemonic in Web3.js?

I want to create an account with mnemonic in WEB3.JS I tried using web3.eth.accounts.create() but the only argument is entropy and it returns only { address: "", privateKey: "", ...
user avatar
0 votes
0 answers
3 views

Progressive Property Reveals - are they possible?

I'm currently building an NFT collection and I'm just planning out the release/minting process. I'm looking to basically create an NFT with all but one property revealed, i.e. using all the character ...
user avatar
0 votes
1 answer
9 views

Multi Contract Interaction / Contract interacting with another contract / Contract using another contract without Inheritance

My question is what are the limitations of one contract using another contract ? When I'm using another contract as shown below, What is the another contract storing ? e.g: If contract B calls ...
user avatar
0 votes
0 answers
7 views

TypeError:member add not found or not visible after argument-dependent lookup in uint256

Smart contract code: pragma solidity ^0.8.0; import "https://github.com/kklau2013/HelloFlashLoan/blob/main/contracts/v1/aave/FlashLoanReceiverBaseV1.sol"; import "https://github.com/...
user avatar
0 votes
0 answers
10 views

[SOLVED]Uniswap addLiquidityETH failing with hardhat

i'm trying to fork the UniswalV2 contracts. I've already deployed on Mumbai testnet the core and periphery contracts, these are the addresses: Core: 0xeBF7c7d1b9704516d7e0660BE568945D0bBb1aAc Router: ...
user avatar
0 votes
1 answer
10 views

Can gas limit get increased while transaction is executing?

Suppose that we have a transaction that calls a contract method with an i.e. 200,000 gas limit. While the transaction is mining, the called contract finds out that it will run out of gas before ...
user avatar
0 votes
0 answers
14 views

I want mint N-number of NFT's to N-number of people using ERC1155

E.G: 1-NFT minted sent to 1-person, But in a broader perspective. e.g: 100 NFT's to 100 people, In the same function using ERC1155. I want to mint and transfer those 100 nfts in the same function. To ...
user avatar
0 votes
1 answer
8 views

hardhat beginner "Nothing to compile" error

following hardhat beginner tutorial. This is how I did it, first run "npx hardhat " command and created basic sample project. After that run following command npm install --save-dev @...
user avatar
0 votes
0 answers
4 views

Mint an NFT in the "backend" and let user claim it in the frontend

I have users coming to my frontend, connecting with their wallet, and authenticating with Twitter (using OAuth). The next step is to let them mint an NFT with their Twitter name (extracted on the fly ...
user avatar
0 votes
0 answers
7 views

How can I fix "Stack too deep, try using fewer variables" error?

Every time I try to run this solidity code, I get the Stack Too Deep error. I know what the error means but I do not know how to make it go away. And I also do not know how to transform this code with ...
user avatar
0 votes
1 answer
9 views

How to get events and decode them with http provider instead of web-sockets?

I used to listen to some token events with websockets similar like following example: // This filter could also be generated with the Contract or // Interface API. If address is not specified, any ...
user avatar
  • 208
0 votes
1 answer
6 views

Is it possible to buy NFTs on opensea using web3py

Is it possible to buy NFTs on opensea using web3py, if so is there any good resources ? I would imagine it would be interacting with opensea's smart contract right ?
user avatar
0 votes
0 answers
8 views

When I change supply on a V2 contract how do I calcualte the new price

V1 contract has 100 Quadrillion with 50% burnt and current token price 0.000000005 Looking at a V2 with supply lowered to to 10 billion and 50% was burnt If the current V1 price is 0.000000005 with ...
user avatar
  • 1
0 votes
0 answers
5 views

Automating dapp connection with python

I want to automate the connection to a site such as this one using python: https://www.premint.xyz/login/?next=/happy-heads-x-droplets/ My first thought was to use selenium but I got kind of stuck ...
user avatar
0 votes
0 answers
2 views

Trouble in testing cryptozombie project

I am following https://cryptozombies.io/ lessons. In testing smart contract on local, I met any problems. On testing contract, I used follow code. const CryptoZombies = artifacts.require("...
user avatar
0 votes
1 answer
5 views

Trouble deploying an ERC20 contract remix

Hi so some assistance would be greatly appreciated. I am able to successfully deploy my contract when my ether is set to 0. It will go through MM and everything looks solid. By the way I am using test ...
user avatar
  • 1
0 votes
0 answers
6 views

event from ChainLinkClient does not emit properly

The events emitted from the requestRobotUrlBytes function which is directly called by me seems to work fine but those emitted from fulfillBytes which is called by the oracle are not emitted. I'm using ...
user avatar
  • 3
0 votes
0 answers
4 views

Testing require failures and events with HardHat

There are two things I want to do with Hardhat that I cannot figure out. The first is having a test pass when the "require" logic inside my contract causes a transaction to fail. As a ...
user avatar
0 votes
0 answers
10 views

How can I transfer this ROI value inside RateOI function value to the contract itself and the contract Balance gets updated

contract RATE { function contractBalance() public returns(uint){ return address(this).balance ; // store = address(this).balance; // console.log(store); // store =...
user avatar
0 votes
0 answers
18 views

Depositing Weth ERC20 from Brownie into Aave Pool in contract

I am tying to do a simple deposit into an Aave V2 pool with Python Brownie and Solidity on a mainnet-fork but my transaction keeps getting reverted and I dont know why. In brownie, I call my function ...
user avatar
0 votes
1 answer
13 views

Is it possible to generate reports in a dapp the way you would in a regular PHP app

Is it possible to query the blockchain to give you certain transactions that have been made in a particular time frame the same way you can generate reports in a php app? For example, in the contract ...
user avatar
0 votes
1 answer
10 views

Can I store ether and ERC-20 tokens in one contract?

I am trying to create a contract to store ether and two ERC-20 tokens. People will transfer ether and the other two ERC-20 tokens to this contract and when the time comes, the owner of this contract ...
user avatar
  • 121
0 votes
1 answer
18 views

Does an ETH purchase on a CEX result in creation of a Tx on the ETH network?

I'm trying to get a better understanding of the nuts and bolts of Ethereum, and I understand that every simple ETH transfer from an EOA to an EOA requires a Tx. But I also now realize that Ethereum ...
user avatar
  • 101
0 votes
1 answer
24 views

Ether.js BigNumber overflow when I use a contract with wei

I made a page where you can enter an amount of token and it gets swapped to another token. It works until I use a number above 999. My smartcontract gets wei, so I have to transform the normal number ...
user avatar
0 votes
0 answers
9 views

Where does the yield for staked eth before the merge come from?

After the merge it is clear where the yield comes from, but right now I do not understand where the approx. 4.4% come from? Is the supply of eth simply inflated by the beacon chain in order to pay out ...
user avatar
0 votes
0 answers
12 views

create two nft collections from one smart contract in OpenSea

I want to list two collections on Opensea but instead of creating two smart contracts for that, I want to create only one (to save gas fees of uploading a contract). the only two ways I found to ...
user avatar
  • 1

15 30 50 per page
1
2 3 4 5
898