Questions tagged [erc-20]

The ERC20 Token Standard is a set of 8 functions to be included (in an agreed upon language) in a smart token contract in order to enable interoperability across multiple interfaces and dapps. These functions relate to (1) how tokens can be transferred (2) how to access data about the token, and (3) how to format key events like transfers and approvals. ERC stands for Ethereum Request for Comments.

Filter by
Sorted by
Tagged with
0
votes
1answer
20 views

How to send erc20 token with web3 without smart contract abi?

I created a token in the Ropsten network. It wants abi.json when transferring with Web3. But the token I created did not give it. My token etherscan link https://ropsten.etherscan.io/address/...
1
vote
0answers
13 views

What is the method to send a transaction with data from solidity?

Sorry for the noob question, but Im trying to understand some definitions and clarify the limits between solidity, web3, etc. I have obtained a tx looking like the following from the 0x API: b'{"...
0
votes
0answers
12 views

I developed this Entity relationship Attribute Diagram for the Ethereum erc 20 erc 1155 and erc 721 . Can anyone help find errors or misplaced details

I developed this ERA in order to compare the 3 token families, but I am not sure I am misplacing or missing something. Any suggestion or correction will be greatly appreciated . Ricardo Borges dos ...
0
votes
0answers
5 views

Convert old format kava tokens erc to new format

I need help please, I bought KAVA TOKEN only when they came out, now I wanted to transfer them to another wallet but I notice, that his FORMAT will become obsolete, is there an option to convert them ...
0
votes
1answer
22 views

Are these two implementations equivalent?

These implementations from Uniswap and Compound seem both to have been written to account for the missing return value bug - an issue with some ERC20 token contracts that don't return a boolean when ...
0
votes
0answers
23 views

Error: Returned error: gas required exceeds allowance (12487794) or always failing transaction

I am trying to use a script which uses web3.js to transfer a specific amount of ERC20 tokens .I have made this script in such a way that if account doesnt has ether value it will try again and again ...
1
vote
1answer
31 views

Possible to transfer multiple tokens in one transaction?

Is it possible to transfer all / multiple ERC20 tokens to another wallet address in a single transaction?
0
votes
0answers
36 views

Etherscan API for how to get pending transactions? [closed]

i want to get pending transaction from address with an etherscan API.
3
votes
1answer
34 views

Make an erc20 transfer with web3py

how to send an erc20 in web3py please, I have that : tx_hash = contract.functions.transfer(destination_address, value).transact({'from': myaddress }) and I get this error : ValueError: {'code': -32601,...
0
votes
1answer
14 views

tokenMock.mint is not a function(tokenMock is the deployed Smart Contract)

I am creating a new Blockchain wallet with ERC20,but during migration,i am getting the error that tokenMock.mint is not a function(tokenMock is the deployed contract) I am sending the tokens to my ...
0
votes
1answer
24 views

Best practice for fetching ERC20 token balances for a given address

Are there any best practices to fetching all ERC20 token balances for a given address? I am open to using external APIs.
0
votes
3answers
23 views

Can a contract address have both ERC20 and ERC721 transactions

Some addresses on Etherscan like this one show both type of transactions (ERC20 and ERC721) on Etherscan. So, does that mean that both standards can be implemented at the same time for a token?
1
vote
0answers
26 views

Gettting ERC-20 token transfer count over an API

I am building a service to monitor token activity. Does any service have an API to get the transfer count of a ERC-20 token? I am not interested in individual Transfer events, only their count.
0
votes
1answer
9 views

how to create an address or wallet in several tokens

Hello community I am using nodejs and web3, I would like to know if it is possible to create an address in each token and then bring the corresponding balance of each token
0
votes
0answers
24 views

public token swap contract

i want to create an erc20 token swap contract for a crowdsale im building right now. and i dont want to accept ether, i prefer USDT. i found a swap contract example on the internet but it always asks ...
0
votes
2answers
30 views

Sending a transaction with minimum gas; will it ever complete?

About one day ago I sent a transaction with an average gas limit, but a set a price of 15 Gwei. The transaction is still pending nearly 24 hours later and is still pending; will it ever complete?
0
votes
1answer
27 views

How to use erc20 token in integer, not decimal

I want to use number as normal integer, not in decimal. For example, when I use uniswap function IUniswapV2Router02Instance.methods.swapETHForExactTokens(1, , , ).send() in my project, an argument ...
1
vote
0answers
15 views

Getting name/decemals of unstandardized token on Ethereum blockchain with web3.js

I understand how to call methods of name/symbol or decemals on ERC-20 tokens but what about tokens that do not have such.. for example this token here https://etherscan.io/token/...
5
votes
0answers
33 views

Not able to use DAI's permit() function

I'm having trouble testing the permit() functionality from the DAI contract. I've read the documentation and a couple of other resources, although, I got the contract code and deployed myself a copy ...
0
votes
0answers
28 views

Best practices with ERC20 forwarding and kill switches

Background I have a system with 2 smart contracts; EventSender and Forwarder ("E" and "F" respectively). E takes a construction parameter of type address payable and sets that to ...
0
votes
1answer
24 views

Can ERC-20 based stablecoins be confiscated or be subject to legal process?

Can ERC-20 based stablecoins be confiscated or blacklisted? Can I lose my stablecoins? What are differences between stablecoins out there?
0
votes
1answer
16 views

Functions that are used for token transfers for ERC20 and ERC721 tokens

Let's suppose there is a contract address A of an erc721 token B. If I want to monitor all of its transfers from A to another address say C then should I only filter the Transfer function or should I ...
1
vote
1answer
32 views

Is there a Vyper equivalent to OpenZeppelin's SafeERC20.safeTransfer?

OpenZeppelin provides the SafeERC20 Solidity library as a way to handle the possible variations of ERC20. Is there an equivalent way to do this using Vyper?
1
vote
1answer
33 views

How to implement “Mint” and “Own” in an ERC20 Token

So, I recently created a standard ERC20 token but I need to implement "mint" and "owner" functionality. I see that in older implementations but openzeppelin no longer has contracts ...
1
vote
1answer
27 views

method like fallback function for ERC20 tokens?

I want to write a contract that uses USDT (Tether) for payment. How can I use the ERC20 token as an ERC777 token, for example: Use a fallback function that executes when we receive USDT token. Or use ...
0
votes
1answer
32 views

How can a smart contract determine the address sending ETH to it?

I'm learning how to build a smart contract that is able to receive ETH and, if certain conditions are met, send ETH back to the address from which it received it. My understanding currently is that a ...
0
votes
0answers
15 views

Error while calling a function,

I created a Factory Contract which can create new ERC20 tokens with the parameters passed to it. Address of the contract: (Goerli Testnet) 0x482829Ba989fBC368F9A89dFf56cdF4036F39F28 I tested the ...
0
votes
0answers
14 views

configureMinter at USDC Token on Rinkeby

I have deployed the ERC20 token USDC to Rinkeby. More precisely I have deployed the proxy contract and the token contract. Then I called the upgradeToAndCall function to implement and initialize the ...
1
vote
1answer
74 views

How to build an Ethereum hot wallet for an exchange

I’m developing an exchange. When a new user register on website we will create new eth wallet for them. When they deposit USDT on their wallet how can I transfer that USDT amount to another address (...
0
votes
2answers
36 views

Why do people even play CryptoKitties? [closed]

I've been lately trying to understand tokens in Ethereum, which basically makes me ponder ERC20 token standard... I still am very much confused in all of its concepts, but the main thing that I haven'...
0
votes
0answers
20 views

Gas cost for ERC20 token. Quobjectcoin cost of maintenance

I'm creating Quobjectcoin https://bit.ly/quobtc. This will be an ERC20 token with weekly rewards. This token is meant to be issued over a long period (>100 years), and I am worried that the gas ...
0
votes
1answer
21 views

Why eth_getLogs returns empty result for Ethereum account address?

I'm developing an Ethereum platform and need to fetch the events log of a desired address. I found a code like this: curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"topics":...
0
votes
1answer
21 views

Extend old contract or deploy new after fixing, recommendation?

Unfortunately, we used different transfer function name in our smart contract which causes issues for us to list it on some exchange, transfer function name should be transfer but we used ...
0
votes
1answer
12 views

OpenZeppelin default FixedSupply contract not sending balance to sender

I'm deploying a very standard openzeppelin ERC20 contract with the following code: pragma solidity ^0.6.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract ERC20FixedSupply is ERC20 ...
1
vote
1answer
33 views

How are decentralised leverage platforms like dydx able to provide leverage to the traders? [closed]

I just started getting along the fundamentals of DeFi and was planning to make a basic decentralised leverage trading platform. I have the confusion as to how the existing platforms(like dydx, DDEX ...
0
votes
0answers
43 views

Why is the compiler unable to generate Contract ByteCode and ABI when I try to Verify & Publish my contract?

Another dev no longer connected to our project deployed this contract, and I'm trying to Verify & Publish it on Etherscan now. What am I doing wrong? I do know that the dev who built this used ...
0
votes
0answers
15 views

TypeError: Different number of arguments in return statement than in returns declaration

function _execute(Proposal memory p, bytes memory transactionBytecode) internal returns (bool) { ProposalType proposalType = p.proposalType; uint childID = p.childID; ...
0
votes
2answers
106 views

How do I check for the existence of a function in Solidity when I have an address that might implement that function?

If I'm writing an Ethereum smart contract in Solidity and I know I have an ERC20 address variable (let's call it some_erc20_token), but I don't know whether this address implements the interface of an ...
0
votes
0answers
42 views

Ethereum noob. Internal TX not reflecting in balance on metamask. “bad jump destination” error. Going crazy

New to the Ethereum environment. Using metamask, I initiated three transfers of STA for ETH. The STA was deduced from my wallet, however the ETH I was to get in return is not showing. The only new ...
0
votes
0answers
37 views

Compiler unable to generate Contract ByteCode and ABI when I try to Verify & Publish contract

Another dev no longer connected to our project deployed this contract, and I'm trying to Verify & Publish it on Etherscan now. Would really appreciate any help, as I'm at a loss. I do know ...
1
vote
1answer
20 views

How to get rid of large amounts of my own custom tokens?

Consider this hypothetical scenario: Let’s say I created an ERC20 token just for fun. I keep 1 billion of these tokens for myself. I list this token on a small exchange. And then by some miracle ...
1
vote
1answer
73 views

How do I find the ABI/JSON Interface for an ETH/ERC20 contract?

I sent TUSD to my Bittrex holdings to trade for other coins, but it never went into my account with Bittrex. They claim that I sent it to the wrong address. I am trying to recover these tokens so that ...
2
votes
2answers
37 views

ERC20 contract not able to transfer large amount of tokens

I am building an ERC20 Token. I want to the decimals properly so that people can do transaction in deciamls also. So, I am trying to transfer 10^21 tokens from my address to another. Minted tokens : ...
1
vote
1answer
27 views

Maximum totalSupply of an ERC-20 token? And is it different for any other ERC specifictiond?

uint256 This storage implies that it should give us a max totalSupply of 2^256 - 1. A HUGE number. Note: I only need to store integers, not fractional values for my application. Is this true? Is ...
0
votes
1answer
18 views

Where can I find compiler info to verify & publish an ERC-20 token on Etherscan when I didn't write the code?

I'm a developer working for a small startup with a standard ERC-20 token that we'd like to verify on Etherscan, but I wasn't the person who minted the tokens initially (that developer no longer works ...
0
votes
2answers
30 views

How to create a contract address to automatically send tokens to ETH address [closed]

How to create a contract address to automatically send tokens to ETH address and also how can I also be able to get the ETH from the contract address to my ETH wallet (I am the contract creator) ...
0
votes
1answer
31 views

why is there no software downloadable wallet for ETH?

There is bitcoin core wallet..which you download on your computer and you have 100% full ownership of your bitcoin BUT etheruem NEVER has anything like this..most of the wallets are either on a ...
0
votes
0answers
11 views

Transaction to contract from web3 not working but working from metamask

I have a method in contract to increase totalSupply and only owner can call it. function addTokenToTotalSupply(uint _value) onlyOwner public { require(_value > 0); balances[owner] = ...
0
votes
1answer
49 views

Verifying ERC20 Contract that uses OpenZeppelin's library contracts

I deployed an ERC-20 Token contract and would like to now verify it on etherscan.io My contract utilizes Open-Zeppelin's library of contracts - which means it's importing one of their contracts into ...
0
votes
0answers
47 views

Problems with transferFrom within a contract

I am playing around with this repo, more exactly with the ERC20ContinuousToken.sol contract. I am able to successfully run the truffle tests after connecting the project to Ganache, so I know that ...

1
2 3 4 5
26