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
vote
0answers
4 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
5 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 :
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 ...
2
votes
1answer
44 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
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
313 views

Is it possible to get transaction history on a wallet address from inside a smart contract in solidity?

I'm hoping to implement something like this, for even external tokens: transaction_details(address, token_contract) which will return the transaction history, i.e. sender, receiver, amount, ...
0
votes
2answers
103 views

How can I make my contract send out my tokens?

I've been experimenting with some generic copy-paste codes on the Ropsten Test Net and I am able to create a token and have the creator receive all the tokens. However, when I try to buy these test ...
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
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,...
1
vote
2answers
170 views

OpenSea to ERC 721 (NFTs)

I'm a mere mortal in the coding world (e.g. a complete noob). I'm an NFT artist that has an increasingly popular collection on OpenSea. The collections on OpenSea, however, uses a system called 'Lazy ...
2
votes
3answers
11k views

Can I receive ERC20 tokens on my address hosted on Coinbase

I have an account on Coinbase and have an ETH Wallet with them. If someone sends their ERC20 token, will there be any issues receiving it?
4
votes
1answer
1k views

how to call smart contract function in C#.net core

protected async void Page_Load(object sender, EventArgs e) { var senderAddress = "0x605a1f8d368cbdd4d0a5cbad74f75c428660f17b"; var password = "zxcasdqwe123"; ...
2
votes
2answers
1k views

How to transfer Ether to ERC20 token contract?

I have a function that needs to make transfers to a token smart contract as well as personal accounts upon satisfaction of some conditions. function completeSale() onlyOwner public { if (...
0
votes
2answers
2k views

Metamask (and other wallets) don't show tokens on balance despite of transactions are in blockchain

I've generated thousands of addresses with my seed phrase and deposited some USDT tokens to one of them (m/44'/60'/0'/267) and ensured that I'm able to spend that tokens. But after I've imported this ...
0
votes
1answer
93 views

How to view or transfer initial ethereum smart contract balance?

I created a new smart contract token with initial supply and deployed it via MetaMask. Then I added this token into MetaMask but token balance is Zero. Now, My question is when we create a new ...
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
2answers
412 views

How do you reduce the supply?

I can add a mint to increase the supply but how do I decrease the supply of my token? I can send it to 0x0000000000000000000000000000000000000000 or create a contract which immediately self destructs ...
1
vote
0answers
97 views

What is the best secured way to let users interact with a tokens minting function?

I have an ERC20 tokens contract with a function to mint tokens. This function allows users to mint tokens after performing specific actions or activities on a website. If a user performs the action ...
0
votes
1answer
911 views

ERC20 tokens in Metamask suddenly not showing

I've been using Metamask in Chrome for a while and had a list of ERC20 tokens in Ropsten network already added in the Assets section through their contract addresses: DAI address: ...
0
votes
0answers
52 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
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 ...
2
votes
1answer
449 views

How do I find my DBET tokens in MyEtherWallet?

I mistakenly bought DBET tokens directly from my Exodus wallet. I used the public key of Decent.bet (DBET). I assume I should be able to find/see my DBET tokens in MyEtherWallet, but I do not know ...
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
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 ...
1
vote
1answer
121 views

Token migration and IDEX smart contract problem

During a recent token migration from token A to token B, a large number of token A were held by a number of people in an IDEX address (where it was ready to trade). The IDEX address is part of a smart ...
1
vote
1answer
48 views

Is there any version of AAVE protocol deployed on polygon/matic testnet?

As AAVE documentation suggests, there is a deployed version of the protocol on matic/polygon mainnet. However, it does not make any mention of those smart contracts on Mumbai testnet which I need to ...
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 { ...
2
votes
2answers
85 views

Ethereum Mist crashes when reopening

The setup of Ethereum Mist worked like a charm (MacOS). Then, I tried to connect to a test Network but the program crashed and continues to do so. How can I fix this issue? Node type: geth Network: ...
1
vote
1answer
445 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.
2
votes
1answer
136 views

Ether in ERC-20 transactions?

I have one contract that I give tokens from a ERC20 contract implemantation. When I call the balanceOf function from the Token conract. Response me that I have x Tokens. Nice !! But when I try to ...
1
vote
1answer
19 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
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
2answers
1k views

transferFrom function doesn't work

I have made a simple ERC20 token smart contract, but my transferFrom function does not work. I keep getting "Note: The constructor should be payable if you send value." even if I declared it as ...
7
votes
2answers
5k views

Why does my smart contract tokens not show up in MyEtherWallet or MetaMask?

I have deployed a very basic smart contract to the Rinkeby test network. The contract's address is 0xb145b6d8757b40ac80b5fe2a98ab6c8450a54585. I have made transactions to it using MetaMask, and they ...
1
vote
2answers
99 views

Help with ERC20 Contract

I sent tokens to my contract address instead of to my myetherwallet address from an address that the tokens were previously sent some time ago. Now I have no access to the amount sent to this address. ...
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 ...
2
votes
1answer
604 views

Fail to “buy” from Crowdsale contract wrapping an already deployed contract

Hi I am a newbie to the Ethereum development. I have successfully deployed a burnable, pausable, capped token contract (TC) on rinkeby test network, and was able to interact with it - minted and ...
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
1answer
146 views

How to Burn Tokens from someone wallet

Like e.g I created a token and sent it to the wrong contract address how to burn the token from the wrong contract address
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
1answer
2k views

Automatic buying and selling of created tokens not working. What am I missing?

Created token using example code from etherum.org for automatic buying and selling but can't buy or sell from another account. What am I missing? https://ethereum.org/token#automatic-selling-and-...
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
148 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
2 3 4 5
35