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
0
votes
2 answers
how to get test tokens on rinkeby and ropsten
I'm building some Wallet functionality for Ethereum ERC-20 Tokens. I just have a few questions:
Let's say I want to test an ERC-20 Token (BAT) for example. How can I send test BAT or AAVE or any other token to myself? I only have access to both…

magna_nz
- 1,243
- 5
- 23
- 42
0
votes
1 answer
Web3 Token Holder Requirement to Show Image
Is it possible, in Web3, to call a function which would require the user to first hold an ERC20 token before an image/text is visible? This would be similar to a password requirement, but instead of typing a password for the function to take effect,…

Brian Lee Victory
- 63
- 4
0
votes
1 answer
Identifier not found in new Solidity ERC20 contract
I am trying to use this guide to create a solidity contract on remix.ethereum however I get the following error when trying to compile:
DeclarationError: Identifier not found or not unique.
--> ACToken.sol:13:19:
|
13 | function burn(unint amount)…

Wayneio
- 3,466
- 7
- 42
- 73
0
votes
1 answer
Token gate with Ethereum ERC-20 token
I have to build a token gated page.
That means, only users that hold a specific ERC-20 in their MetaMask wallet, can access the page.
But how can I access the MetaMask wallet and check it for Token?

Nox21
- 49
- 4
0
votes
1 answer
Minting tokens on time base in ERC-20
I want to mint tokens on a time basis.
Eg: 1,000,000 tokens will be mint this year (1-Sep-2021)
1,000,000 tokens will be mint next year (1-Sep-2022)
and 1,000,000 tokens will mint on 1-Sep-2023.
How can I do that in the ERC-20 contract?

Umair Janjua
- 324
- 1
- 2
- 11
0
votes
1 answer
Execute raw transaction for ERC20 token 'transfer function' for smart contracts deployed on RinkeBy Testnet
I'm trying to transfer balance from contract deployer address to another address using ERC20 transfer function.
For local Ganache network transfer from deployer address is as simple as
await contract.transfer(receiverAddress, amount);
Since Rinkeby…

Paritosh
- 51
- 10
0
votes
1 answer
ERC20 transaction list with API
I want to create ERC20 token, and I need callbacks, but blockchain does not support callback's.
So I need to connect with API and get all transactions.
Example token:
https://etherscan.io/token/0x259153f56e7cab5c2c31575adae5e9da8ee68e69When (I want…

Giorgi
- 11
- 3
0
votes
2 answers
ERC 1155 Token Standard
I have read about ERC 1155 that how it can be used to mint both fungible(ERC20) and non-fungible(ERC721) tokens. So my question is:
Fungible tokens that we mint using ERC1155 will have exact same functions as a token minted from ERC20 contract will…

ZSA
- 85
- 1
- 13
0
votes
1 answer
How to deploy an ERC20 from within a contract
Is there a way to automate an ERC20 token deploy? Can a contract receive some parameters to configure the new token and then deploy it returning the new token address?
I'm trying to create a contract that speaks with a dapp which instructs the…

Caius
- 2,084
- 6
- 31
- 47
0
votes
1 answer
How to interact with the deployed ERC20(openzeppelin ERC20 contract) token and transfer token from user address X to address Y?
I've created a simple Contract extending openzeppelin ERC20.
I'm trying to transfer token from one address to another.
Contract code is as below:
File name: Token.sol
pragma solidity ^0.7.0;
import…

Paritosh
- 51
- 10
0
votes
1 answer
I'm trying to code a malicious ERC20 smartcontract approve function (for study purposes) but this does not work
Here is the partial source code of a smart contract that I deploy on the Binance Smart Chain. What I would like to demonstrate to my teacher (if this can be done) is the draining of all the ETH/BNB that is on the caller's wallet, when he/she calls…

KotlinIsland
- 799
- 1
- 6
- 25
0
votes
2 answers
ERC20 token transfer to smart contract
Hi I've written a simple smart contract to transfer erc20 token from user to smart contract and from smart contract to user. I'm approving it before calling the transferFrom function but the transactions fails. I've tried only calling approve and…

Im retarded but
- 15
- 1
- 6
0
votes
0 answers
Scanning for all smart contracts creation on Binance Smart Chain (nodejs + web3)
I am trying to scan for smart contracts creation on the BSC but the processing stops after some seconds/minutes. Sometimes it lasts longer. When it stops then the exit code is 0.
Could you know what I'm doing incorrectly in the following code (made…

KotlinIsland
- 799
- 1
- 6
- 25
0
votes
1 answer
How use walletconnect for tokens transaction
I'm using wallet connect for Eth transaction in my app.
but now need transact an ERC-20 token and don't know how do that
0
votes
1 answer
Erc20 token transferFrom
I created a token using openzepplin + remix, I want to link it to web3, when checking the balance, everything is fine, when I make transferFrom, an error pops up, as if the balance is zero. What could be the problem?
Error: Returned error: execution…

akolol40
- 3
- 2