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
2answers
96 views

MEW says not a valid erc20 token but don't see errors

I created a token prior to this one that is fine. I used the same template, followed the same exact steps to create another token but getting the not valid erc20 error. https://ropsten.etherscan.io/...
0
votes
0answers
2 views

Build with Library IterableMapping

I'm trying to compile my contract, which uses the IterableMapping library. IterableMapping is being created in the file itself, but even so, apparently an error is being raised, saying that I should ...
0
votes
1answer
11 views

Setting token price on a Dex

There are various opinions and parameters when it comes to the setting of a token price. What are the best practices when setting the token price on a Dex?
0
votes
1answer
9 views

How to remove Fake token contact signed

I participated in multiple airdrops and recently checked the account on etherscan which was showing multiple Coins in my wallet... I approved one of them and got some sort of "sign" pop up ...
0
votes
1answer
193 views

Prevent Transfer of ERC20 token to contract address?

I want my ERC20 contract to be transferred to EOA addresses only and some specific contract address only. I don't want to lose my tokens by mistakenly transferring to a contract address that cannot ...
0
votes
1answer
15 views

Verify and Publish in BSC Scan not working

I have a contract, where I compiled it optimized in 200. When I go to publish in BSC Scan, it gives me some messages as attached. I'm informing in bsc scan the optimization in 200. It points out ...
0
votes
2answers
115 views

connect users to the sidechain SKALE

SKALE is Ethereum Dapps to run high speed, Low cost smart contract layer. I wish to connect users to the sidechain SKALE,from their browser. automatically without the manual change as necessary for ...
0
votes
0answers
6 views

ERC 721 Token to Ledger “Swap Only”

Attempting to sent ERC 721 token to Ledger and am only given the option to "swap" the token not "send" Anyone else seen this issue with tokens?
0
votes
1answer
195 views

ERC20 token not showing up in search

I just created a new ERC20 token on the ropsten testnet. The contract is verified and can be seend here. However when I try to search for AtariToken or ATAR I don't get any results on ropsten....
3
votes
2answers
1k views

How to generate a new token for ERC1155?

Developing an ERC1155 contract, how to generate an address for a new token? I need to create an API function like function createToken() returns (address). How? Should I just use an incrementing-by-...
0
votes
0answers
11 views

Wierd exploit in auto-liquidity token

i dont know if this is a known exploit or not, but this caught my attention. It seems that address on mainnet is a contract (unverified of course) that takes advantage of a vulnerability somewhere ...
1
vote
1answer
83 views

personal_sendTranaction for token tranfer return hash but transaction isn't found in the blockchain

I am using Geth as a provider to the blockchain. I perform JSON-RPC method send_Transaction to transfer tokens, it returns me hash of the transaction but I can't see this transaction in the Etherscan. ...
3
votes
1answer
44 views
+50

Limiting operator transactions in ERC-1155

ERC-1155 has an API for somebody other to be allowed to transfer somebody's funds. Is there any "standard" extension of ERC-1155 allowing to limit which tokens and in which amounts can be ...
1
vote
1answer
113 views

Static Analysis raised 9 warning(s) that requires your attention. Click here to show the warning(s)

I receive these warnings in REMIX so the question is: Can I compile my contract and then verify it regardless of these warnings? pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a,...
0
votes
1answer
12 views

Metamask Chrome extension can't send deployed ERC721?

I deployed an ERC721 token on bsc testnet, added it to Metamask Chrome extension. It shows up correctly, but the button "send" is faded out. Am I missing something?
0
votes
2answers
134 views

sent 500 lend tokens to my ETH crypto wallet in error

Hi there I hope you can help. I have mistakenly sent 500 Aave (Lend) tokens to my ETH wallet address on crypto.com. Please can you advise what I can do to get back into my orginal wallet? Below is the ...
0
votes
0answers
23 views

Token contract can't retrieve the allowance

https://ethereum.org/en/developers/tutorials/transfers-and-approval-of-erc-20-tokens-from-a-solidity-smart-contract/ I was trying this tutorial in Remix IDE. But I couldn't get the sell function to ...
0
votes
0answers
9 views

How to identify transactions that create a token?

I need to identify when a transaction is creating a token, and in that case the address of the token being created. I have an example of tx and output: tx = w3.eth.get_transaction('...
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
1answer
16 views

What happens to coins located in contract address(BEP-20/ERC-20 token)

Let's say that I created a token using remix, and this token has an initial supply of 1 million, and half of that is sent to the contract address. Those 500k on the contract address should become ...
0
votes
1answer
120 views

Attempting to transfer erc20 elrond to elrond gold in trust wallet - error insufficient funds

Does anyone have a step by step guide to transfer my 7566 elrond to elrond gold? My elrond is in Trust Wallet and tried to send to my elrond gold wallet but network said I have insufficient funds and ...
0
votes
1answer
718 views

Error in creating instance of deployed contract using truffle console

I deployed Token and Crowdsale contract in separate migration files. During Migration, there was no error. Migration logs are share: Running migration: 2_deploy_token.js Deploying DappToken... ......
0
votes
1answer
71 views

How to get your smart contract to accept UNI Token?

I'm working on creating a simple contract which will receive UNI tokens from an external account and swap it for ether from UniSwap. I'm having a very hard time understanding the documents. Can anyone ...
0
votes
1answer
36 views

Failing to fill 0x quote

I'm trying to fill a quote that I get from the 0x API: const qs = createQueryString({ sellToken: 'TUSD', buyToken: 'WETH', sellAmount: BigInt(882693 * 10 ** 18) }); ..but the transaction ...
0
votes
1answer
11 views

Can I get ETH in redistribution wallet

I am trying to create a token on Ethereum, basic one like usual redistribution tokens that sends a percentage to my wallet on sells. I am receiving tokens in the wallet, but I want to use that wallet ...
0
votes
1answer
20 views

How to change the bet of ether into bep-20 token?

The link of Betting Contract:https://github.com/laronlineworld/Voting-Betting-Smart-Contract/blob/main/Voting-Betting-Smart-Contract.sol How to change the bet ether into token(BEP20) function ...
0
votes
0answers
10 views

What is your opinion for decentralized social media for cryptocurrency users should be

Vitalik has talked about the potential of decentralized social media for cryptocurrency users. So, I would like to ask cryptocurrency users what is your opinion for decentralized social media for ...
0
votes
1answer
29 views

Accepting multiple ERC20 tokens

I've been doing a little project of mine where users could donate ether to a certain campaign to reach a certain goal, but I wanted to extend this project a little further and wanted to allow the ...
0
votes
0answers
9 views

How to use CHI gas? Any documentation on their method?

Right now the only information I can find for Chi gas is their contract code/methods and their calculation. I also found a snippet around that look like this but I have no idea where the numbers are ...
1
vote
1answer
269 views

Etherscan shows my contract has RPC errors

I deployed my token contract using Remix. I tested it in Ropsten several times and all was well. When I finally went to deploy it on the mainnet it deployed fine so it seemed. But in etherscan it ...
0
votes
0answers
12 views

Is it possible to use ethereum smart contracts for cryptocurrency exchange

I know ether can easily be accepted by smart contracts, however, would it be possible to exchange ether sent to the contract for another cryptocurrency? Wouldn't a private key need to be stored in the ...
0
votes
0answers
15 views

How to choose number of decimal places for token

What should I consider when choosing the number of decimal places for an ERC20 token/stablecoin? My first thought was to just use 18 which seems to be the standard because Ether uses 18. However ...
0
votes
0answers
364 views

Accept popular ERC20 tokens and auto-convert them to ETH in a smart contract

As an intermediate in smart contract development, I'm now facing the challenge where I would like to unify payment on the Ethereum ecosystem in a way that holders of popular ERC20 tokens can pay my ...
0
votes
1answer
243 views

Ethereum Smart Contract with Custom Fee and Percentage of the collected Fee Distrusted token holder

I wanted to know is there a possibility to create a smart contract for a token wherein the transaction fee could be overridden with the network fee and the fee collected on the transaction can be ...
0
votes
1answer
238 views

How to pass IERC20 as argument in solidity?

i'm trying to deploy sushiSwap on my local machine. but i don't know what should i pass a argument in constructor... code is like... pragma solidity 0.6.12; import "./IERC20.sol"; import &...
3
votes
4answers
2k views

Return a struct from a mapping in test truffle

I want the information stored in each struct inside the mapping. This is my struct: struct BurnApply { address applicant; uint amount; string btcAddress; uint8 flag; uint ...
0
votes
1answer
340 views

Cannot figure out how to set constructors and ABI for a contract

So I've been breaking my head over this for the last 2 days. I cannot seem to figure out how to get the constructors and ABI set up properly. I'm testing smart contracts by copying Sushi contract from ...
0
votes
1answer
449 views

Get ERC20 balance of token holder as of block number with C# Nethereum and Infura

When this code runs, it throws an error "RpcResponseException: header not found", and I don't understand why or how to fix it. Any advice? Notes: I am using Nethereum in C#.net and using ...
0
votes
1answer
13 views

Is there a smart contract that rewards someone who has held a token for a certain amount of time with additional tokens?

Basically if someone holds a token for a given time "x" amount then they are rewarded extra tokens? Is there a smart contract that can do this or is it even possible? Thank you.
0
votes
0answers
13 views

tx.wait() never resolves using ethers library

I am using ethers library in my nodejs , and trying to call a function in smartcontract which looks like: const tx = await router.swapETHForExactTokens( amountOut, [bnb,...
0
votes
1answer
244 views

Smart Contract Transfer Event Log Data & transfer _value [Rust]

I'd like to have a better understanding of events and logs data, more specifically when it comes to interacting with ERC20 tokens smart contracts and their Transfer events. I'm looking for a way to ...
0
votes
1answer
143 views

Is it possible to work with stable coin currency in Ethereum smart contracts using solidity?

I know in solidity you can use identifiers like ether and wei. For example, I can do something like if (msg.value == 1 ether) { //do something } Is it possible for me to use stable coins as a type ...
0
votes
1answer
103 views

A contract inherit from a token contract

I have a token contract(ERC20) A, then another contract B inherited from A (B is A). A contract C imported B. questions are: if I deployed B alone, is the address of this contract B represent the ...
0
votes
1answer
474 views

Whitelisting all addresses for a fallback function

I'm working on a contract that pays a percentage of interest of a token. The idea is to enable the fallback function only once for an address, and then it can access again to the function when it is ...
0
votes
1answer
338 views
0
votes
1answer
44 views

How can I get the token symbol from the token contract address using Node.js?

PLEASE DO NOT HELP ME BY SUGGESTING PYTHON CODE. I'M ONLY INTERESTED IN SOLUTIONS THAT RELY EXCLUSIVELY ON NODE.JS. I am trying to build out a sniping bot in Node.js using a snippet from EatTheBlocks ...
1
vote
2answers
199 views

Advantages of using Tokens?

Why should I use a (ERC 20) Token instead of just using Ether? What advatages does it have, besides making money out of nothing?
0
votes
1answer
211 views

Unable to verify if a contract's tokens is greater than the requested amount by ther buyer

I want to explain you the problem so that you don't need to read the whole files. BirTokenSale contract is trying use the tokens given to it by another contract ,BirToken contract, and send the money ...
0
votes
1answer
133 views

Cap is not showing actual amount after deploying contract on Main Ethereum network

I have deployed a crowdsale contract with bonus stages on Main Ethereum Network using remix.ethereum.org. I have set a Cap amount of ether in wei as my goal. After deploying contract, I looked into ...
0
votes
1answer
669 views

How to Transfer And TransferFrom On The Tether Smart-contract from another smart-contract? It uses onlyPayloadSize?

Hi I'm trying to call transfer and transferFrom on the Tether smart-contact token located at 0xdAC17F958D2ee523a2206206994597C13D831ec7. It is the only token I have a problem with transferring from ...

1
2 3 4 5
38