Skip to main content

Questions tagged [tokens]

A token is a transferable, divisible object on the blockchain, such as a subcurrency or a prediction market share.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
23 views

regarding the access of funds during an ongoing token presale of my token

we are planning a token presale for our crypto token with all the specific requirements but we are unclear about the control of funds raised while an presale is still live. can anyone please clarify ...
Socialnetworkkk's user avatar
0 votes
1 answer
27 views

How to embed information into an NFT of its type/class?

Let's say, I wanted to create an NFT collection such that there'll be 3 classes/types of NFTs: animals, humans and aliens. For this, will I then have to simply introduce a field for type in a contract ...
Nondi's user avatar
  • 49
1 vote
2 answers
201 views

Hardhat test error, missing argument in contract constructor

okay, I have edited my test file and now I am getting an entirely different error. ERROR 1) BCCasino tests "before each" hook for "..should deploy correctly": ...
Shawngilbert107's user avatar
0 votes
1 answer
58 views

How to get total assets value in dollars of a wallet via web3?

I want to check the total assets value in dollars of a wallet. For example, I just want to check how much asset (Ethers, erc20 tokens) does a wallet hold in form of dollars? e.g: 2000$ worth of assets ...
Fariha Abbasi's user avatar
0 votes
2 answers
154 views

on etherscan Why input Data amount value and ERC-20 tokens Transferred value are different

In this case https://etherscan.io/tx/0x9412e437f29fa5719de54c5374f0a89fbe78786060db05b2cb9a5ffb189e04d8 Why input Data amount value and ERC-20 tokens Transferred value are different?
Misck's user avatar
  • 1
2 votes
1 answer
71 views

Contract analysis - owner spawned 1000 billion tokens ($20 bounty)

I am currently writing a contract analysis tool (something similar to Token Sniffer) and there's one malicious contract that caught my attention. After the token's launch, contract owner somehow ...
shlx's user avatar
  • 31
0 votes
1 answer
64 views

Is there any way to interact with current status of a deployed contract from another smart contract?

Suppose a contract,which is working with ERC20, lets call it contract-1, is already deployed onchain and functioning properly in real world. I want to add some functionality in it. But as we know ...
Hacek 's user avatar
  • 677
1 vote
1 answer
196 views

Metamask - get value entered from calling ERC20 "approve()" method

When we're asking a user to approve() the spending of a proprietary ERC20 Token for the first time (like say DAI, or SUSHI, etc.), the user has to enter the amount they're willing to approve - like ...
Mark55's user avatar
  • 1,011
0 votes
1 answer
52 views

What are the pros and cons of using OpenZeppelin ERC20Votes?

I want to use this extension for an ERC20 token. What are the pros and cons (if any) of adding this to it?
Falcon Stakepool's user avatar
0 votes
2 answers
1k views

Token Swap from USDT (erc20) to eth

Can I swap my USDT (erc20) to ethereum with eth charges?
King David's user avatar
0 votes
1 answer
385 views

Using the _mint() function from an ERC20 contract marked 'internal virtual'

I have an existing ERC20 token / contract that I would like to be able to provide rewards that could be minted to the supply. The existing contract already has a _mint() function, but it's labeled as '...
ASumeet's user avatar
  • 15
0 votes
2 answers
33 views

How to change a pausable token-

i AM not a developer. Some time ago i asked somebody to create POLONICO token for our streaming media POLONICO TV. MintMe does not support pausable tokens - a lnybody can help me to convert them? ...
Anira Wojan's user avatar
1 vote
1 answer
185 views

Wrapping ETH into WETH via ethers -- WETH coins on my balance won't appear

I'm attempting to wrap ETH on Goerli into WETH by calling deposit function using ethers. Even though several TX already have been confirmed and successfully mined, nothing will appear on my WETH ...
Camila326's user avatar
  • 115
0 votes
1 answer
485 views

Does the specific ABI of a particular ERC20 token have to be used in order to interract with it?

....Or can the standard, static ERC20 ABI be used for any ERC20 token equally? Namely, in a custom ERC20 token (smart contract) there can exist any function(s) the author of a token may have ...
Kyell's user avatar
  • 91
1 vote
1 answer
925 views

How to get all token balances of an address on Ethereum

So I wanted to retrieve every token balance of one of my adress. I started by analysing all my transactions. But then I discovered that I could not trust the transactions's transfer events and that I ...
sliders_alpha's user avatar
0 votes
1 answer
68 views

What are some good strategies to launch a token in a DEX?

I have a project that has a token and I want to launch it in a DEX. How can I incentivise users to provide liquidity to the pool so the pool is backed by a fair amount of WETH? Do you know of some ...
Falcon Stakepool's user avatar
1 vote
1 answer
132 views

Does casting a Keccak256 hash to a uint256 increase likelihood of a collision?

I have a smart contract with 50+ trillion possible NFT names that could be minted (all have unique names), is there any chance that this method could cause a collision of token ID's? - uint256 tokenID ...
Vince Reid's user avatar
0 votes
1 answer
35 views

Polygon (MATIC) is a Coin or Token?

If polygon is a Layer-2 solution is built upon Ethereum then why it is listed as Coin in coinmarketcap intead of as Token ?
Surajkumarrr's user avatar
1 vote
1 answer
26 views

What blockchain is suitable for minting SoulBoundToken? [closed]

I am looking for a blockchain to mint SoulBoundToken. I would like to use a blockchain called Astar Network. (It's fast and has low GAS costs.) However, I've been told that the Ethereum main chain is ...
Osamu Sawada's user avatar
0 votes
1 answer
19 views

How to call a read function within "contract B1" when the function is defined in a higher contract that imports "contract B1" as an extension?

I want to use the totalSupply function within an extension contract, but the function is not declared within the contract and is added in from a different contract extension. Both extensions are ...
Nunber1's user avatar
0 votes
1 answer
18 views

General practice on reservation of deployment wallets

Is there a consensus (or a generally accepted recommended practice) about reserving a token contact deployer wallet (to avoid deployments on other production contracts, or even development deployments ...
Rego's user avatar
  • 111
2 votes
1 answer
323 views

Is there a tool to verify that the metadata of my NFT is correct?

I am creating a collection of NFTs and I want to test that the metadata and the media files are correct. I am setting tokenURI on chain. How can I do this? I am using Polygon Mumbai.
Falcon Stakepool's user avatar
1 vote
1 answer
40 views

What exactly is 'supply' on the 'supply vs demand' equation to determine the price of a token?

We know that the price of a token is always a balance between supply and demand. Whenever I check what supply is, I get vague definitions. So I would like to hear your opinions about what exactly ...
pellyadolfo's user avatar
0 votes
1 answer
40 views

how to receive values from openzeppelin royaltyInfo function

trying to implement like this uint[2] memory royalty = royaltyInfo(_tokenId, price); payable(royalty[0]).transfer(royalty[1]); but getting error TypeError: Different number of components on the left ...
soumyadeep.eth's user avatar
0 votes
1 answer
22 views

inherence variable call always return empty

I'm developing a marketplace to buy my own nfts on my website. I've the contract to create the nft and everything works very well. Now I want to create the buy() and sell() functions, but when ...
Shadow's user avatar
  • 1
0 votes
1 answer
162 views

How to approve my own token in a nft contract

I'm creating an NFT contract which can be bought with my token, when calling the approve function of the token to be able to buy the nft using the tokens, the msg.sender in this case is the nft ...
Shadow's user avatar
  • 1
1 vote
0 answers
2k views

Uniswap V3 Pool Token with Sell Taxes

Working on a new Token contract using a V3 Uniswap pool for Liquidity. The ERC20 token has the traditional taxes (reflection, buy,sell etc.) It seems that it's not possible to have a token with tax on ...
mrbmz's user avatar
  • 21
1 vote
1 answer
701 views

Restrict Uniswap Transactions to whitelisted Wallets

Is there anyway at all to be able to have a contract that would restrict a wallet from being able to use Uniswap for a token until the contract owner has set a value to allow public access? Every ...
mrbmz's user avatar
  • 21
1 vote
1 answer
280 views

How to transfer the whole balance of ERC20 token?

At the moment I have this code: //............ const contract = new ethers.Contract(smartContractAddress, ERC20_ABI, provider); const signer = new ethers.Wallet(prKey, provider); const txSigner = ...
Kyell's user avatar
  • 91
2 votes
1 answer
182 views

Fractional NFT Marketplace - Error with buy function - 'ERC20: insufficient allowance

I'm trying to build fraction NFT Marketplace, It's now working when I try to create a new NFT and show it in the frontend. I'm now facing an error in my buyNFT function and no matter what I try it ...
Abde's user avatar
  • 43
2 votes
1 answer
93 views

Fraction NFT Marketplace (ERC20) - error in buyNFT - Not enough Ether sent to buy the shares

I'm trying to build fraction NFT Marketplace, It's now working when I try to create a new NFT and show it in the frontend. I'm now facing an error in my buyNFT function and no matter what I try it ...
Abde's user avatar
  • 43
1 vote
1 answer
53 views

Wrong amount of transferred Babydoge BEP20 tokens when calling transfer()

I could create a transaction on bep20 using web3.js The result of my transaction is here: https://bscscan.com/tx/0xbe21da71e975cb1b092fc7838e9885704dc676b80f4decd089854f9759c1d633 The amount of asset ...
Salar's user avatar
  • 13
1 vote
0 answers
48 views

Max wallet is not implementing on transfer function

Transfer is working however max wallet limits are not applying. This is not the entire function, take fee part is next but I'm quite sure this is where the error lies. function _transfer(address ...
Jane's user avatar
  • 21
1 vote
0 answers
12 views

tracking Token holder throughout a value chain of product

my project is Value chain of product , so i need to track every single process in the chain of that product , from Farmer => Transportation => Manufacturer => Distribution => Retailer ...
Mohamed Khalil Rouissi's user avatar
1 vote
1 answer
37 views

how this following transaction trace generated?

i got one tx hash: 0x7d2296bcb936aa5e2397ddf8ccba59f54a178c3901666b49291d880369dbcf31 How is the following transaction trace generated?
smart contract_research_Rookie's user avatar
1 vote
0 answers
40 views

"How to limit the function call for all users except those who have a special token with the address 'X'?"

hi i'm continuing to explore solidity. I wrote a contract which contains 4 functions: addAuthorizedAddress, removeAuthorizedAddress, storeData, retrieveData. The last two: storeData and retrieveData ...
Lll Cilician's user avatar
1 vote
2 answers
317 views

What are the functions needed to create a pre-sale crypto coin? [closed]

What are the functions needed to create a pre-sale crypto coin?
jacobs david's user avatar
2 votes
2 answers
118 views

Best, free web3 tutorials? Basically how to learn building dapps

What are other resources ppl really like? Would love to learn what else is out there, particularly the free ones. [Edit] Adding a few of the most popular below: Ethereum.org's NFT series -- you'll ...
Alchemy Devs's user avatar
2 votes
1 answer
427 views

When would an ERC20 return false?

According to the ERC20: Token Standard: Callers MUST handle false from returns (bool success). Callers MUST NOT assume that false is never returned! In OpenZeppelin's ERC20 contract, running the ...
chriscrutt's user avatar
1 vote
3 answers
80 views

Can't set up basic token contract

I'm trying to set up a simple token contract and deploy it but i'm having some trouble. This is the token contract pragma solidity ^0.8.0; import "hardhat/console.sol"; contract Token { ...
Saujanya Verma's user avatar
1 vote
0 answers
23 views

How to get any token contract address via network request?

is it possible to get any token contract via network request? for now I've found this repo https://github.com/ethereum-lists/tokens/tree/master/tokens/eth but still the network request way would be ...
Eugene1111's user avatar
1 vote
1 answer
40 views

Having A problem with file directory

I want to verify the contract using the API etherscan token FundMe.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import"node_modules/@chainlink/contracts/src/v0.8/interfaces/...
Salma Sameer's user avatar
1 vote
1 answer
106 views

Subgraph returning null for some addresses

I have deployed a version of the open-zeppelin-subgraph (https://github.com/OpenZeppelin/openzeppelin-subgraphs) and I am tracking ERC20, ERC721 and ERC1155 tokens. I am using this query: { ...
Falcon Stakepool's user avatar
2 votes
1 answer
99 views

How can ERC20 tokens be obtained in a local hardaht forked environment?

I've been learning about ethereum for a short time, besides my English could be better; if I'm wrong about something, please correct me. 😁 I am trying to test the interaction of different contract ...
4nibhal's user avatar
  • 21
1 vote
1 answer
187 views

Transfer Token BSC Always Return Error

I use web3 php to connnect to BSC and it is work, unless one things that is to send BEP20 token to others wallet. I created some function like Get Balance of BNB, get Balance of BEP20 also transfer ...
Cloud Mining's user avatar
1 vote
0 answers
14 views

ritual function/destroying an NFT

As I am totally new to coding and NFTs and was researching about the topic, I was curious how the ritual-function in Mitchell Chans 'Digital Zones of Immaterial Pictorial Sensibility' exactly operates....
guest's user avatar
  • 11
6 votes
1 answer
759 views

Why is it called tokenURI instead of tokenURL?

Seems tokenURI always returns a URL, so why the name choice?
Dimitri Borgers's user avatar
1 vote
0 answers
33 views

Question re misplaced ZRX

Perhaps you can help me with an issue related to my previous purchase of ZRX. On 5/11/20 I purchased 570 ZRX @ $0.35 = $199.5 and stored it on MEW. On 4/30 I purchased 166 for a new total of 736 with ...
PAS-RKB's user avatar
  • 11
1 vote
0 answers
47 views

Confused about which smart contract command to use to transfer my tokens to my other wallet address

I'm not a dev, just a web3 enthusiast with a very basic knowledge of solidity. Recently, I found out that I'm eligible for the airdrop. However, my main wallet was compromised and I would like to ...
LadyS's user avatar
  • 11
3 votes
1 answer
1k views

My NFT image doesn't appear on etherscan

I've created a simple ERC721 contract and minted some NFTs, as I mint the images are visible on opensea but not on etherscan. here is my contract, https://goerli.etherscan.io/address/...
Nishant Pacharne's user avatar

1 2 3
4
5
50