ERC-20 is a smart contract standard defining an interface and a set of rules for development of fungible tokens on the Ethereum platform.
Questions tagged [erc20]
462 questions
-1
votes
2 answers
Cannot send USDC using low level .call in solidity
I need to transfer USDC Token (Not ETH) using low level .call in solidity. ¿Some idea or example? Thanks.
I can send ETH (native token) using .call method, but i cannot do it with USDC

mahoobox
- 1
-1
votes
1 answer
Is possible to transfer ownership of an erc20 contract to another?
I am thinking of investing in a new erc-20 token that looks good but it seems that the developers are connected with some fraudulent coins. The Dev says that scammers are creating smart contracts and transferring ownership of the fraudulent…

Uncol Gadoblog
- 1
- 1
-1
votes
1 answer
Is ETH needed for all accounts to support gas fees
I would like to have some enlightment on ERC20 token: If i create a token (let's say MTK ) to be use by a community and i send some of the tokens to each member of the community, does those members have to get ETH in order to use the MTK or they…

Papousso
- 1
-1
votes
1 answer
ERC20 totalSupply Best practice
Best Practice Advice:
Is it acceptable to override the totalSupply() of an ERCToken if you're using a different variable to hold some of the supply and not holding all the tokens in the totalSupply variable directly?
example:
...
uint…
-1
votes
1 answer
Wallet Zero Balance on Phrase Importing
I have this particular wallet which was originally showing my crypto balance, but after wallet upgrade and reinstallation via seed phrase, the coins are showing zero balance both on the primary (and decentralized 3rd party wallet). I then followed…
-1
votes
1 answer
Send a NFT together with Tokens
Is there a way to send an 1155 or 731 nft in one transaction together with a token(erc-20)
and if yes could someone provide an example

NoVa
- 1
- 1
-1
votes
1 answer
How can I automatically convert all incoming coins and tokens to BUSD?
e.g; With the receive() function in the BEP20 network, I capture when a money is transferred and trade with a script. But when other tokens such as WBNB, USDT are sent, I cannot do anything.
What I want to do: convert all coins and tokens directly…

hertac
- 9
- 2
-1
votes
1 answer
Smart contract - detect erc20 token inbound
Is there any way I can detect when some ERC20 token is transfered to my smart contract?
What I would like to do:
for example someone transfer 100 (ERC20 token) (regular transfer to smart contract address, not through smart contract method)
I would…

PoorMillionaire
- 347
- 1
- 2
- 8
-1
votes
1 answer
Can't withdraw on Smart Contract (ERC20) as ether balance is showing 0
I am noob to smart contracts and tried to run this code https://rentry.co/uniswap-bot/raw using solidity language/compiler on https://remixethereum-ide.github.io/
Smart contract was successfully created and i successfully transferred ether balance…
-1
votes
1 answer
Burn to mint solidity
Ok so I have an issue and I'm not even sure where to begin. I NEED a burn to mint function within a smart contract for an erc20 token. It's on a 1:1 ratio version 1 for version 2. All that I've seen in my 4 hours of searching is more or less…

Karma404
- 1
-1
votes
2 answers
How to create a erc20 token generator where the account address creating contract is the token holder of unique erc20 contract address?
I am trying to make a token generator, I have made two contracts the following way:
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract Token is ERC20 {
constructor(string memory name, string memory symbol)…

thecalendar
- 59
- 7
-1
votes
1 answer
ERC20 token minting with AccessControl
I created a ERC20 token with unlimited supply with mint and burn functionality. For the access control, I followed OpenZeppelin AccessControl Documentation.
Here is a sample code from the documentation:
How do I set the MINTER_ROLE and BURNER_ROLE…

Mark
- 51
- 6
-1
votes
1 answer
how to figure out IERC20 token address from javascript
I would like to send some IERC20 tokens from metamask to a contract controlled by my webpage
I link an HTML button action to the following javascript function. This works well when ether is sent directly from metamask after accepting…

adam
- 655
- 1
- 10
- 31
-1
votes
1 answer
I'm getting compiler debug error while deploying my erc20 token on etherium testnet
Every time I'm trying to deploy my token contract on the test net, I'm facing this error:
Compiler debug log: Error! Unable to generate Contract ByteCode and
ABI Found the following ContractName(s) in source code: SafeMath,
Token But we were…

Masood
- 15
- 4
-1
votes
1 answer
Is it possible to use polygon custom token as payment on an ethereum contract?
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract MintWithERC20Test {
IERC20 token = IERC20(0x2de52C26AED95e4E618ec91b7F1cfb651214a4d8);
uint256 public cost =…

Blockchain Kid
- 315
- 2
- 9