Questions tagged [erc20]

177 questions
9
votes
4 answers

Send ERC20 token with web3

I'm currently using 0.2x.x version of Web3 Javascript API. I deployed my custom ERC20 token by creating smart contract in solidity (on REMIX IDE). I installed the MetaMask and had a test on https://wallet.ethereum.org/ to send some custom ERC token…
rachel_hong
  • 351
  • 1
  • 5
  • 11
6
votes
0 answers

How can i increase my erc20 token price by web3 js?

How can I increase my erc20 token price? when I see BNB token from Etherscan, there I can see the price but my token price shows $0. How can i increase price? When in Binacne platform, BNB token Buy and Sell happens, then the rate show's in…
6
votes
1 answer

Send ERC20 token with web3.py using a local private key

I am trying to send ERC20 tokens in python with web3.py using a local private key. With this code I can send ether: w3 = Web3(HTTPProvider('https://api.myetherapi.com/eth')) signed_txn = w3.eth.account.signTransaction(dict( …
user9915065
  • 61
  • 1
  • 2
6
votes
2 answers

How to detect if an Ethereum address is an ERC20 token contract?

If I only get an Ethereum address from the input, is there a way to find out whether it matches the ERC20 token standard?
kaichen
  • 109
  • 2
  • 6
4
votes
1 answer

How can I Buy or Sell erc20 token with using web3.js?

Which function will I use in web3.js for buying erc20 token from my website?
3
votes
1 answer

Sending ERC-20 tokens fails. Transaction succeeds, but no tokens are sent

When I run the following code, it accurately gets the token balance for both addresses and the transaction even goes through (I can see it on the testnet), although no tokens are sent. I've tried a variety of things including replacing the signed…
snollygolly
  • 1,749
  • 1
  • 15
  • 30
3
votes
1 answer

Fetch proper execution price from Uniswap V2

I'm trying to undertand Uniswap v2 SDK. I've written simple function, to fetch result of trading: 1 WETH for Dai 1 DAI for WETH My question is, why the first trade result is really accurate with what Uniswap Interface is returning, but the second…
Karzel
  • 496
  • 3
  • 14
3
votes
1 answer

How to differentiate buying and selling erc-20 tokens on uniswap in token contract

Is there a way to check which direction is transfer() of erc-20 token if someone is selling or buying our tokens for eth (i mean uniswap for example)?
kasper
  • 69
  • 1
  • 6
3
votes
1 answer

How to send ERC20 token to smart contract balance?

I'm trying to build a smart contract and inherit some functions to swap ERC20 tokens, Here are my questions? Question A: Is it possible to transfer ERC20 token to smart contract balance?, Please provide an example, i.e. We can create a function to…
Giorgiu
  • 43
  • 4
3
votes
1 answer

How do I create a custom token in the Libra TestNet?

I want to create my custom token in Libra TestNet. I don't have much knowledge about the move programming language and need a lot of help. Is it possible to create our own implementation and execute in Libra Testnet? What is sample implementation…
karthi keyan
  • 205
  • 2
  • 18
3
votes
1 answer

Right way to get ethereum ERC-20 tokens information

Can somebody tell me the right way to get info (decimals count, name and symbol) of the ERC-20 token from the Ethereum blockchain? I supposed that it could be done through the calls of the appropriate functions decimals(), name(), symbol() to the…
Alsofter
  • 43
  • 1
  • 5
3
votes
1 answer

Failing to send an ERC20 token using web3.js

I've been struggling to send a token transaction using web3 still after I've read several posts and guides. I'm using human-standard-token-abi to get the ERC20 abi. I'm just trying to transfer 10 ZRX from one address of mine to another. Here's the…
jawknee530
  • 177
  • 2
  • 11
2
votes
2 answers

Solidity - Add Total Supply

I'm learning solidity on remix I'm also referencing this open source api for token creation. Right here they provide a _totalSupply() function that I'd like to wire to my smart contract so it shows the total amount of tokens why I deploy it. What am…
Null isTrue
  • 1,442
  • 3
  • 15
  • 33
2
votes
1 answer

What happens if the total balance of tokens exceeds the totalSupply of a token?

As I understand it the totalSupply is just a number for informational purpose. It doesn't impose a hard limit on the total of all balances, or does it ? Example: function transfer(address receiver, uint numTokens) public returns (bool) { …
Howie1337
  • 23
  • 2
2
votes
2 answers

How to create a Privacy Preservinng Algorithmic Stablecoin in Ethereum

How to create privacy focus algorithmic stable coin on ethereum I want to create a algorithmic stablecoin on the top of ethereum platform please suggest any reference, website, code
1
2 3
11 12