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
3
votes
0answers
85 views

What are the mechanics of token reflection? [duplicate]

I'm trying to understand the mechanics behind token reflection. This bit here seems to be what most of the ERC20 Tokens having the reflection mechanic are using: https://github.com/reflectfinance/...
1
vote
0answers
43 views

Need advice on creating an nft smart contract which hatches/changes into a new final image after some time!

So I want an egg hatching nft, imagine a pokemongo egg and after some time has passed, the egg hatches into a new image which will be the final image of the nft. Does anyone know of any ideas of how ...
0
votes
0answers
22 views

Storing custom data in an ethereum based token?

I have an idea for a cryptocurrency with features that require storing and entering custom data related to accounts into the network. So the network would need potential to store balances/currency ...
2
votes
1answer
35 views

Transaction with multiple contract “send” requests

Recently we were trying to create an application that allows the user to buy an NFT using an ERC-20 token (let's say for these purposes it's a stablecoin like DAI or USDC). So from figuring everything ...
0
votes
0answers
46 views

How to get liquidity Address on panckswape

Im trying to learn about create token in BSC. Now Im trying to add liquidity by contract, but i dont know the address of my liquidity pool that I created in panckeswap. Where can i take it? Thanks
0
votes
2answers
55 views

Can an ERC20 Smart Contract prevent a wallet from holding more than a certain amount?

I'm looking into a bit of functionality for an ERC20 smart contract token that would prevent any one wallet to hold more than X percent of the token. Couple of questions: Is it possible? Is it ...
1
vote
0answers
66 views

Uniswap WETH_WBTC price is orders of magnitude off when using constant product market maker formula

I am trying to calculate the value of an exchange on Uniswap using Web3js and methods from the Uniswap smart contract. This is the Uniswap contract address for the WETH (Wrapped Ether) : WBTC (Wrapped ...
1
vote
1answer
25 views

If i can deploy an ERC 20 to an exchange and sell it is it technically free money?

Can you deploy an erc 20 token to an exchange? Can you sell your own erc 20 for money? Is this free money because when you deploy it, it gives you all the erc 20 to your address.
2
votes
0answers
27 views

Why is my rebasing token balance changing over time?

I bought some tokens for my wallet and noticed the quantity changes very slightly over time. I’ve seen this happen with several tokens, Im not sure why. Is this related to the way the getbalance ...
0
votes
0answers
12 views

EIP20 Token creation error in REMIX :Error encoding arguments: Error: invalid address

Im new to creating tokens and I'm having a problem with this code of EIP20 :
1
vote
0answers
28 views

parsererror source file requires different compiler version (current compiler is how to fix this error

I am new to this and was able to successfully compile and deploy a token onto the BSC mainnet using the following code but now I am trying to make some adjustments and re deploy but now I am not even ...
0
votes
1answer
28 views

Update Account Balances ERC20

Are there are any design patterns or gas efficient methods of mass updating user balances (for ERC20 tokens)? For instance, say I wanted to run a casino where, after Block number X, all of the ...
0
votes
1answer
28 views

Maximum allowed amount of tokens

I would like to create a token which any wallet cannot hold more than 100 of. Is this possible while this token, also is mintable?
1
vote
1answer
22 views

What happens to the ERC-20 tokens that are “migrated” (e.g. to VeChain); do the ERC-20 tokens remain at the original address?

I'm asking for the mechanical explanation of what happens to the ERC-20 token data at the original address; post migration to a new chain. For example, if I had 100 LivePeer (LPT) ERC-20 tokens at ...
2
votes
1answer
481 views

approve + safeTransferFrom ERC721 from existing smart contract

I am trying to call ERC721 from another smart contract, while calling function approveAndTransfer ,I am getting "ERC721: transfer caller is not owner nor approved", not sure reason behind it,...
0
votes
1answer
31 views

Tokens transferred to contract by mistake

I transferred some tokens to this contract 0xd0507b66A2d4C4593a54B0fa45cBAaAC2Bb04CEA and the creator of this contract is 0x102f8471d87d3Ef344af9Bd5c0845ca0A7a1d397, and I was wondering how to get my ...
0
votes
0answers
9 views

How to search for event in when an input should be the 5th topic in event

I want to query an ERC1155 token event where I know the token Id, there only can be 4 topics and tokenId would be the fifth,which means it's not an indexed input and goes to the data part. How can I ...
8
votes
1answer
1k views

Binance Smart Chain tokens: What are tTotal, rTotal, tSupply, rSupply, rOwned, tOwned which I see everywhere?

Looking at all the latest shitcoins' Smart Contract code on Binance Smart Chain, there's a lot of common,recurring themes because most of each project's code is mostly copy-pasted. The code is also ...
0
votes
0answers
12 views

Use ERC165Checker library function in web3

As I understand the ERC165Checker library provides the _supportsInterface function which takes a contract address and an interfaceId and returns whether that contract has the specific functions. How ...
1
vote
1answer
270 views

How to get same prices with Uniswap SDK & interacting directly with contract?

I am having difficulty understanding getting the price within the contract. So I created 2 different methods (one using SDK and other one using ethers.js) When I try the SDK, I get 3839.62 When I try ...
0
votes
0answers
10 views

Sending Token when the contract receives some value

I'm trying to make sure that, when my contract receives any token, send mine to the wallet of the person who sent it to the contract. event Received(address, uint); receive() external payable { ...
3
votes
2answers
7k views

How to know if Dev renounced ownership of smart contract?

Any help would be greatly appreciated. Also if someone can show the difference between a renounced and unrenounced coding that would be helpful.
0
votes
0answers
20 views

Add value to crypto token

Need help understanding how to add value to the token I made. I want to make it exchangeable for other tokens? I deployed token and added to wallet how do I set its value vs other tokens?
1
vote
1answer
82 views

Best way to lock tokens for investors vesting period

What would be the most convenient way for our team to lock tokens for a vesting period for a relatively large number of wallets? (30+) We've considered team.finance as well as writing our own contract ...
0
votes
0answers
20 views

Maintain two different token balances in a contract

How can we maintain the balances of two different bep-20 tokens in a single smart contract called Handler lets suppose? I am trying to write a function that transfers the second type and the first ...
7
votes
1answer
490 views

What is the best way to handle multiple NFTs of the same collection in ERC1155?

I'm learning ERC1155, and I'm a bit confused. This is OpenZeppelin's example of an ERC1155 Contract: They state that Thor's Hammer is an NFT (because only 1 was minted), while Gold is Fungible. ...
1
vote
0answers
12 views

What are holdings of a Contract?

When I check an NFT on eterscan.io I'm seeing that that contract has many holdings. I think that these are total ERC20 transfers that put in the contract. Probably from NFT consumers like Opensea or ...
0
votes
0answers
27 views

I tried to convert my Dexkit Tokens to Bep20, Transaction failed, but I lost my crypto?

This is the Hash: 0xb49d9f560980ec438a9ee6c370d4fff8261971c602338bc5d053d01006d71b34 Im not sure what I did, but I thought it cancelled. My Dexkit Tokens nevertheless are gone and don't show up in my ...
0
votes
1answer
68 views

BSC token , time delay tax

I’m trying to have a rolling tax on a coin based on the amount of time since the last buy I’m realizing that bots are buying and selling and scalping market cap due to low defi tax. So what I’m trying ...
0
votes
1answer
1k views

I want to convert/sell/trade my BEP20 Token to ETH

I'm quite new when it comes to Crypto. I recently bought ETH from Binance but it, unfortunately, became a token on the Binance Smart Chain network on Metamask. What should I do? I have about 0.006 ...
2
votes
1answer
676 views

Why is it considered a bad practice to burn tokens to 0x0 when creating an ERC20 token?

The Consensys Smart Contract Best Practices guide recommends to prevent transferring tokens to the 0x0 address. I understand that 80M or more is locked at this address, but so what? Why is that bad, ...
0
votes
0answers
12 views

Problems with ERC20 token [duplicate]

i trying to deploy an token on remix and i got this error message: CompilerError: Stack too deep, try removing local variables. --> bestTokenEver.sol:1027:80: | 1027 | (uint256 rAmount, uint256 ...
1
vote
0answers
48 views

Snapshot of balances of all token holders at a particular block

Is there any way to get a snapshot of balances of all the token holders or the holders list at particular block. Looking for some API or tool other than web3 way to iterate over all the Transfer ...
0
votes
1answer
353 views

What is it mean by minting token?

I've created a BEP20 token and I can't figure out some steps, I've created for about 21000000 total supply of token and why should I mint token after creating it? How much should I mint? How minted ...
0
votes
1answer
50 views

Fetching token metadata from token URI

Is there an efficient way to get the metadatas of a list of token uri's? Like, what if I have a list of 50 token Uris, would the only way be to send a different get request to each url?
0
votes
1answer
28 views

NFT's environmental/computational cost breakdown?

I've read the NFT and mining documentation on the Ethereum website, and I can't wrap my head around two things. If NFT's are not equivalent to Ethereum coins and therefore do not require solving hash ...
1
vote
0answers
35 views

How much total supply should I have to a newly created token? [closed]

I've created a BEP20 token and I can't figure out some steps. The total supply? How big the number must be?
1
vote
2answers
2k views

Can token liquidity be tracked?

I'm working on a personal project which tracks data of BTC token pairs. I'd like to do the same with BNB and liquidity tokens but I'm very ignorant about this subject. I'd like to know what's a ...
0
votes
0answers
10 views

Vesting contract is throwing an error 'subtraction overflow'

I scripted a contract for token vesting taking clue from VestingVault.sol But when I run function addTokenGrant(), it throws an error of subtraction overflow. I believe the error is coming from ...
0
votes
1answer
163 views

I added a charity address to my contract and now I have two, can I remove one?

The token in question is listed at the following url: https://bscscan.com/address/0x3656b9d510af37b22cc1a5c904eb90855f953fbe I had a charity address and fee address displaying ...
0
votes
0answers
32 views

HOW DO I TRANSFER MY VOX COIN FROM A CUSTOM ADDRESS WITH DECIMAL 6 TO A ADDRESS WITH DECIMAL 18

I have Vox coin but on a contract address and with decimal 6 and on Smart Chain Network.. I transferred my coin to another Vox coin wallet with Decimal 18 but show as 0.00, if I should add custom ...
0
votes
1answer
92 views

Unable to approve KNC token. Fails with error: “Error: Transaction has been reverted by the EVM”

I've tried approving with multiple different spender addresses but no luck. Token approval works fine when I try a different token, e.g. DAI. I've made sure I have the correct KNC contract address and ...
0
votes
0answers
17 views

How do get every token transfer for a token?

I initially thought this would be trivial, just using the tokens transfer event but this misses transactions done by disperse, multisend and I am sure there could be a few more methods I don't know ...
0
votes
0answers
16 views

I need help listing a erc20 token

Hello community i hope i am in the right place,if someone can help me i would deeply appreciate it. I have a erc20 ethereum based token with a maxium supply of 100,000,000,000,000. I do not have ...
0
votes
1answer
148 views

Token Tracker (list of all token)

Do I have some questions: Do I right understand that list contains all tokens of standard ERC-20? Or this list is not full? Can the token be sent to Ethereum addresses (for example ...
0
votes
0answers
28 views

BSC Wallet and all its token amounts/cash balance [duplicate]

Just started playing with the Blockchain overall. It's pretty hard to get into and understand but trying my best. I would like to know how I can get all the tokens that the BSC wallet had Contracted ...
0
votes
0answers
62 views

Trying to understand Uniswap liquidity and their API with autoliquidity, need some help

So I'm trying to understand liquidity and the API from Uniswap. I understand the initial liquidity provided by their interface, i.e. I add 1 eth and 1 of my tokens, it means that 1 token costs 1 eth. ...
2
votes
1answer
131 views

How to distinguish buy and sell?

I'm building a smart contract to learn solidity and I'm wondering how I can distinguish buy and sell functionalities. I want the contract to do different functionalities on a buy and other ...
0
votes
0answers
80 views

How to transfer Bep20 token using web3.js [duplicate]

I want to transfer a Bep20 custom token from a wallet to another using web3.js in Binance Smart Chain. I can transfer BNB using this code: // Create transaction const myTransfer = async () => { ...
0
votes
1answer
45 views

Is it possible to use smart contracts to do money transfers? If so, how?

I've recently gotten into blockchain and I was having trouble understanding smart contracts. Is it possible to use smart contracts to do money transfers? Something similar to Venmo I guess. when I ...

1 2 3
4
5
38