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
2
votes
2 answers
Calling a solidity method from javascript
This is a pretty noob question which I thought wouldn't take too much time to answer through research. I am working on my first set of dapp building with basic javascript and solidity. Through it, I've been able to connect a wallet and send eth via…

DevSolidityDude
- 23
- 2
2
votes
1 answer
Get user's wallet address in web3.js
I need to call an API that requires the user's wallet address. However, I can only get wallet's accounts by web3.eth.getAccounts() but not the wallet address.
I am using WalletConnect and was able to create web3 instance.
Thanks!

agentp
- 335
- 4
- 17
2
votes
1 answer
How to create a custodial wallet per user on a plateform with Solidity?
I'm new in the blockchain community, and i have to realize a web 3.0 project.
In this project, we have an ERC20, and for each user who sign up on our platform, I have to create a custodial wallet attached to this user.
User A want to be able to send…

Boris Jerrar
- 29
- 3
2
votes
1 answer
Exchange ERC20 (Ethereum) with SPL (Solana) via DEX
I've been searching for a while, but I can't seem to find an answer to this so it would be very helpful if someone can clarify this .
Let's say i have TokenA as an ERC20 deployed to the Ethereum mainnet and I have TokenB as an SPL deployed in the…

Sergi Nogal
- 21
- 2
2
votes
1 answer
web3dart estimating gas fee exception
I'm trying to estimate the gas fee for the ERC20 token transaction - in this case transferring DAI from one address to another (on Mumbai).
The code for estimating the gas fee:
final contract = DeployedContract(ContractAbi.fromJson(abi, token.id), …

Tom
- 1,516
- 1
- 14
- 34
2
votes
0 answers
How can I get "Event Name & Method Name" via Polygonscan API?
Currently, the company which I am working in, they want to make a statistics system for P2E games which have (or will have) ERC-20 tokens based on Polygon.
I have to accumulate the logs came from blockchain networks and game servers to know how much…

user3741031
- 226
- 2
- 11
2
votes
1 answer
How to modify a transfer function of an ERC20 token so that it takes a fee equal to 0.0004 ether for every token transfer
As I understand I should make transfer function payable but it says "Overriding function changes state mutability from "payable" to "nonpayable".

wladknd
- 21
- 3
2
votes
2 answers
How to transfer ETH on Rinkeby using ethers.js
Is there anybody who can help me with transfer ETH programmatically using ethers.js?
I have some ETH on Rinkeby and want to transfer it to any address programmatically.
Please let me know the address of ETH contract and how to transfer using…

Bikas Lin
- 689
- 5
- 16
2
votes
0 answers
ERC20 Approve function calling error while Main net fork
it("TEST", async function () {
let instanceOne = await ethers.getContractAt("IERC20", TOKEN_IN);
let instanceTwo = await ethers.getContractAt("IERC20", TOKEN_OUT);
let addr = contract.address;
// error
let val = await…

Priyansu Rath Munson
- 31
- 2
2
votes
1 answer
Sending ERC20 tokens using web3j always pending
I am trying to send erc20 tokens using web3j , it always throw the protocol exception and transaction is always pending. Is there anything wrong i did in my code?
Code:
Web3j web3 = Web3j.build(new…

Rabindra Pangeni
- 61
- 5
2
votes
0 answers
how can create USDT wallet address in nodejs and web3.js in ERC20
I have 2 networks. TRC-20 and ERC-20 networks.
Now I want to use different coins on my site. For example, USDT, Doge, Bitcoin, and any currency in the ERC-20 and TRc-20 networks.
When a user wants to transfer money from my site to a Binance site or…

Mr Coder
- 761
- 2
- 13
- 34
2
votes
2 answers
Web3 BatchRequest always returning undefined, what am I doing wrong?
I'm trying to use the web3 Batch in order to call token balances all together. When I call batch.execute() it returns undefined instead of the resolved requests that have been added to the batch.
Can someone enlighten me where I am messing things…

user16780074
- 429
- 2
- 7
- 20
2
votes
1 answer
Mint new ERC20 token from other smart contract
Recently I am facing an issue while working on a smart contract that has staking functionality. Through the IERC20 interface, I manage to interact with Erc20 token from another contract but there is still one confusion left.
I am working on a smart…

Usama Hassan
- 23
- 1
- 5
2
votes
1 answer
Can we get Smart Contract address by Token Name
I want to get smart contract information by token name as Etherscan does but with my private network.
According to web3 doc, If I need to get any information related to Smart Contract, I first need to have a smart contract address and ABI. But when…

Trimantra Software Solution
- 3,223
- 2
- 25
- 44
2
votes
0 answers
Crowd Sale Contract Issue while minting token
I am currently working on a crowd sale contract, But I am having an issue with a function as the list of the error and the code of the function is attached, I need someone to tell me that what is happening in the code and how can i resolve the error…

Abubakar Mujahid
- 85
- 4