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
1 answer
ERC 20 token issue
I need to test erc20 token transaction in localhost. For that I had run Etherium wallet on my terminal using rpc. I had an error of unknown address. Below is my code.
I had given all details like contract address, others address in the script…

Prem
- 19
- 7
-1
votes
1 answer
Issue regarding firing events in node js
var events = require('events');
const express = require('express');
const router = express.Router();
const tokenbalance = require('./tokenbalance')
//const accCollection = require('../models/account.js');
const keythereum =…

Anu Surya
- 11
- 2
-2
votes
1 answer
i am unable to use _totalSupply and _balances any private data type in OpenZeppelin and shows Undeclared identifier in solidity
Hey i am unable to implement _totalSupply and _balances in Remix but able to use remaining functions like name() and decimal() and symbol()
this is my code
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract…

Paras Kumar
- 1
- 2
-2
votes
1 answer
Accepting any ERC20 Token as a payment within smart contract
This is the contract I have written which contains addLiquidity whose job is to simply transfer token from my wallet to smart contract.
This is the javascript code I have written so that I can approve the smart contract to accept ERC20 token.
This…

yash mathur
- 1
- 1
-2
votes
1 answer
About Solidity Transferfrom and Approve Functions
I actually need a very simple smart contract using the following functions "transferfrom" and "approve".
I just need a smart contract that will be able to request approval to spend a token ( example -- bake ) from a wallet if the user calls the…
-2
votes
2 answers
Rebase function in BEP20 token contract
Can anyone please explain to me the rebase function of this solidity code? I am building a rebase token like Titano.
function rebase(uint256 epoch, int256 supplyDelta)
external
onlyOwner
returns (uint256)
{
…

Abhijit
- 123
- 2
- 15
-2
votes
1 answer
Erc20 token and buying
with my own 0x363.. wallet address
I am generating erc20 token and when I issue this erc20 contract a contract address is generated (0x966D...). that is, I have one wallet address and one coin address.
E.g:
1 mytoken = 1 ethereum
E.g:
If a user buys…

srdpnr
- 3
- 1
- 1
-2
votes
1 answer
Solidity : question about ERC20 token creation and pre sales (crowdsales)
I'm working on a new project that I'm launching soon. The dapp is almost ok, I'm writing the contracts.
But I'm not sure I understood everything, if someone can help me :(
I would like to create a token contract with a supply fix (like 1 million),…

Adr
- 1
- 1
-2
votes
1 answer
How can I send ERC20 tokens without a gas?
How can I send ERC20 tokens without a gas?
Many different people says that it's imposible, but sender address has no eth for paying gas:
BTB Transaction
OMG Transaction
How it works?
Thanks.

DEV Flow
- 1
- 2
-2
votes
1 answer
How to prevent a token transfer in smart contract?
Is there any way to prevent token transfer from address A to address B in a smart contract? Let's say it needs some sort of approval from smart contract owner. Assuming it is not ERC-20 token.

vocotipex
- 21
- 3
-2
votes
1 answer
How to generate a key pair to support Ethereum accounts?
I am planning to create my own HD wallet to support ERC 20 standard token, I am generating the seed using the javascript bitcore-mnemonics plugin. Now I want to generate a private key, public key and address from my generate 12 words mnemonics using…