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
0
votes
0answers
6 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
0answers
13 views

Is It possible to create a token ERC20 it settles on date in another token ERC20?

Is It possible to create a token ERC20 it settles on date in another token ERC20? A token that when it arrives on a certain date automatically expires from the wallet and then a new token is delivered ...
0
votes
1answer
13 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
19 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
7 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 ...
1
vote
1answer
24 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
0answers
50 views

Copying a smart contract and deploying to Test [closed]

I copied the Safemoon contract and deployed it to BSC Testnet for study purposes. However, it does not work as expected. I used REMIX for the IDE. The TokenName does not appear as it usually does when ...
0
votes
1answer
19 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
8 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 ...
0
votes
0answers
8 views

How to presale your tokens to automatically switch tokens

I want to presale my token, but I don’t know how when a buyer transfers BNB to my address my token will automatically pass on to the buyer a preset amount. Help me
2
votes
1answer
39 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
7 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
24 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
8 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 { ...
1
vote
1answer
405 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
15 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
18 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
13 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 ...
5
votes
1answer
75 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. ...
0
votes
0answers
5 views

Sending my token when I receive ETH in my wallet [closed]

My idea is to create a token that can accept ETH or other currencies, as soon as my wallet receives the transfer send to the wallet that carried out the transfer X quantities of my Token. The idea is ...
0
votes
0answers
15 views

How did this come from? [closed]

I would like to ask how did this come from?? I am really looking forward to your answer
1
vote
0answers
9 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
14 views

Created an ERC20 token for someone, how should I go about handing him over the balance or keys? [closed]

The token is done and should be deployed on the mainnet. Deployment on the main net will cost some ether. Should the other person deploy it himself and pay for the fees? That might be too complicated ...
0
votes
0answers
21 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
13 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
135 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 ...
1
vote
1answer
174 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
9 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
12 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
27 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
24 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
0answers
8 views

Burning tokens before or after price and listing [closed]

Is it a good idea to burn tokens before you list your token on UniSwap or would you do that after you set price and list?
0
votes
1answer
27 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
24 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?
0
votes
1answer
59 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
6 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
52 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
26 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
38 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
15 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
15 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
66 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
15 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
1answer
22 views

HELP! Solidity-Contract in Vyper?

I need some help in translating a simple contract from Solidity into Vyper. contract myCoin { mapping (address => uint) coinBalanceOf; string coinName; constructor(uint _supply, ...
0
votes
0answers
41 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. ...
1
vote
1answer
40 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
13 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
25 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 ...
2
votes
0answers
37 views

Why do some contracts use multiple balance and supply variables?

I'm trying to understand smart contracts. Now I do understand the basic template. However, many token's I see on the internet use different code. Many of them have a different way of storing balances ...
1
vote
0answers
42 views

Permit pair on Uniswap for gasless swap on web3py

I've already successfully swapped tokens on uniswap using web3py so now i'm trying to use the permit function to approve my USDC via a signature, saving on gas fees for this approval state. I've ...

1
2 3 4 5
35