Questions tagged [tokens]

A token is a transferable, divisible object on the blockchain, such as a subcurrency or a prediction market share.

Filter by
Sorted by
Tagged with
2
votes
0answers
17 views

Exchange deposits using smart contracts and externally owned accounts

While researching how different exchanges handle user deposits, I noticed a stark contrast between several prominent exchanges. Kraken: Exchanges like Kraken use newly generated deposit addresses (no ...
0
votes
1answer
13 views

Transaction reverted by EVM when using transfer from method

I'm using a method in which transferfrom method of an ERC20 token is called. In test enn I use my own ERC20 token and ganache and everything works fine. but in Rinkeby testnet when I use interface of ...
0
votes
0answers
11 views

i need some help transfering funds back into my account from a smart contract i accidentally sent funds to

i was using uniswap and i thought i was easily transfering one token into another and somehow i put myself into a smart contract and cant get my funds back.... yesterday i had figured out with the ...
0
votes
0answers
17 views

Transfer token failed due to Gas estimation failed

Have issue transfer token, hope to get support from this. my contract https://rinkeby.etherscan.io/address/0x6D96673922d54108e8eFaFDe191Dc473dCeE709B pragma solidity ^0.5.0; import "github.com/...
0
votes
1answer
26 views

Dumping erc20 token transactions via rpc?

I'd like to do dump all transactions of an erc20-token via the json-rpc interface. I've got a full node running but I'm lost, since the ethereum blockchain is harder to navigate than bitcoin for some ...
0
votes
2answers
23 views

Can i sell my testnet tokens

I have some testnet tokens Eth,btc,litecoin,I need to know how can I sell this can we swap this to mainnet any site to do this
0
votes
1answer
8 views

Send Multiple ECR20 Tokens from a Single ETH Address in One Transaction?

Is it possible to send multiple ECR20 tokens (i.e, USDT and USDC) from a single Ethereum address (EOA) to another address (EOA) in a single transaction (either with or without a smart contract)? If ...
0
votes
0answers
16 views

Always same INSUFFICIENT_OUTPUT_AMOUNT error

I've been trying to swap some DAI which I sent to the contract to WETH. However even after trying to change the contract a bit I always get the same error output: transact to GibIhmHart.runUniswap ...
0
votes
0answers
20 views

Solidity contract: How to deal with return parameters in solidity

i am having an issue with an function I would like to call. Following case: The function looks like this: Params Type token0 IERC20 token1 IERC20 amount uint256 parts uint256 flags uint256 and ...
1
vote
1answer
10 views

MakerDAO MKR Withdrawal. Continuous Approval Voting

When I want to vote on some proposals, I need to lock some MKR tokens. Does it mean that I withdraw my MKR tokens, then the result of voting may change even after it has finished? Does Continuous ...
0
votes
0answers
22 views

Running Ethereum Exchange (including ERC 20)

Would it make sense to run the app server and an Ethereum node on the same machine considering how closely they interact? Or should they be on separate machines to not affect each other? What is the ...
0
votes
1answer
24 views

Should I make separate ERC20 wallets for each token?

When I create an Ethereum wallet on my hardware wallet (Ledger Nano), or a web wallet (Metamask), is it possible to mix UNI token and ETH together in that same single wallet address? Or must a ...
0
votes
0answers
9 views

“Revert: VM Exception while processing transaction” while trying to swap with 1Inch

since a while I am trying to program a swap contract for 1Inch. The problem is that I always get a Revert message when trying to call the function. I made sure that the contract has enough funds from ...
0
votes
0answers
16 views

how does exchange buy new tokens?

Question 1: So, let's look at exchanges. Let's say I want to buy the token - OmiseGO (it's an ERC20) token. I know that on the exchange, I can directly buy ERC20 token from someone like a trading ...
0
votes
2answers
49 views

I sent Chainlink Link tokens to my ethereum address, how can I recover? [closed]

By mistake I sent Link tokens to my ethereum wallet (kraken) that can not receive them, can I recover those tokens? How? I think I had to swap them before sending, but I am new, and I think I made ...
0
votes
1answer
14 views

How to identify whether a coin or token runs on Ethereum?

Hundreds of coins and tokens are listed on coinmarketcap.com, but how can you tell which ones are Ethereum-based or Ethereum-dependent? Hundreds of them obviously are. Is it only through one's own ...
0
votes
1answer
8 views

Looking for specific kind of smart contract for my token [closed]

I am playing around with ERC20 token creation. Created one using this tutorial - https://www.youtube.com/watch?v=-Nje9ucd5rY Now I want to be able to : -Give away tokens. For example, when buyer ...
0
votes
2answers
27 views

Token Contract Verified and Signed on Mainnet Does Not Show MINT Function

The Token Contract Address https://etherscan.io/address/0xa2e7a0d1cfeda4d3977277265e205f6092d02e3b was successfully tested on Ropsten (See Ropsten Contract Address ...
0
votes
2answers
71 views

Metamask (and other wallets) don't show tokens on balance despite of transactions are in blockchain

I've generated thousands of addresses with my seed phrase and deposited some USDT tokens to one of them (m/44'/60'/0'/267) and ensured that I'm able to spend that tokens. But after I've imported this ...
0
votes
1answer
16 views

10 Gwei contract creation is stuck

I need help, I want to add more gas to my token/contract creation, but there is no Nonce since it's pending, how can I get this contract live/mined via Remix Ethereum IDE? With average gas, does $90 ...
0
votes
0answers
22 views

Can someone help me get my funds back in my possession from a contract?

So first off, buyer beware: do not mess around with gameswap.org it appears I made a mistake in doing so. Luckily I never invest more than I can stand to lose unless I really trust the project. So not ...
0
votes
0answers
43 views

How can I create an ethereum wallet which can show many addresses balance?

I'm looking for a wallet which can scan many ethereum addresses balance,(like electrum for bitcoin). I need to import 200 (or more) eth addresses and scan their balances include their tokens(if funded)...
0
votes
0answers
15 views

Transfer token from smart contract to 2 EOA addresses

There is an escrow smart contact which at the end needs to send the escrow balance back to both seller and buyer. Here is the contract (without all the details) pragme ^0.7.0; interface ERC20Token {.....
0
votes
1answer
18 views

Truffle Test AssertionError: error message must contain revert

I can't figure out why this error occurs Here my test js code: var YarockToken = artifacts.require("./YarockToken.sol"); contract('YarockToken', function(accounts) { var tokenInstance; ...
1
vote
1answer
23 views

How can I transfer ERC20 Tokens to Bitcoin donor in ICO?

I developed ICO on solidity. As everyone knows smart contracts only accept ETH, but I've seen many ICOs which accept BTC and any other cryptocurrency as well. I want to know how can I handle it if ...
1
vote
0answers
16 views

smart contract Thether balanceOf method returns 0x

i used web3j-java call Tether contract method balanceOf(the server node is mine , and on ether mainnet),my address has 3USDT,but i call balanceOf , the node returns me 0x as the balance value,it is ...
1
vote
0answers
9 views

Best way to create fantokens

Some football clubs issued own fantokens And I'm wondering if there is an infrastructure for mass creation of crypto fantokens, for example by blogers What service can offer a user-friendly interface ...
1
vote
1answer
14 views

Transaction is included into the block but reverted

I'm trying to send USDT token (1.234567 USDT) from my wallet with this code: >>> from web3 import Web3 >>> >>> INFURA_URL = "https://mainnet.infura.io/v3/<infura id&...
0
votes
1answer
30 views

Is it possible to use both approve and trasferfrom functions in a single function in other contracts? [duplicate]

I realized that you need to approve the amount of tokens you are gonna send to contract. for this you should first use approve function in token contract and then call the trasferfrom function in ...
1
vote
1answer
14 views

How to transfer deployed ERC20 token XZY in solidity?

In smart contract of solidity, the following function will transfer _amount ether to a recipient: function send(address recipient, uint _amount, uint256 _gas) private { (bool success, ) = ...
0
votes
2answers
31 views

ERC-20 token like rewards points: earn and lose them

I'm developing a point system and I'd like to do it with ERC-20 tokens... All clear for me to "distribute the points/tokens" to wallet addresses that perform certain tasks, but then, my ...
0
votes
0answers
22 views

Are libraries part of the storage of a smart contract?

I want to create a proxy contract and another contract which refers to its functions using delegatecall(). Here's a snippet of the proxy: pragma solidity ^0.5.0; /** * @dev Standard math ...
0
votes
0answers
8 views

Limiting operator transactions in ERC-1155

ERC-1155 has an API for somebody other to be allowed to transfer somebody's funds. Is there any "standard" extension of ERC-1155 allowing to limit which tokens and in which amounts can be ...
0
votes
0answers
13 views

Conflict Occurs on Getting Token holder address in Ethereum

I am creating a javascript code to get the holders address involved in the Transaction of my contract address. For eg I am creating a token and send it to multiple users so there will be multiple ...
0
votes
0answers
9 views

Method's parameters: a way to know a uint256 is a token amount and its number of decimals?

When decoding transaction actions or logs, I never know how to human-read uint256 values when they are token amounts and, if so, how to know how many decimals they are. For the decimals, do I always ...
0
votes
0answers
14 views

How to read all logs from a transaction without having each contract ABI?

From a transaction logs, how do I decode every logs since I don't have all contracts ABI? Do I have to fetch the ABI every time I encounter an unknown contract? How do apps that display all logs deal ...
0
votes
1answer
36 views

allowance - why not directly transfering?

I have a couple of questions relating ERC20... why is allowance needed ? It would be the same as if instead of approving my 10 tokens to some address to spend, I could directly transfer 10 tokens to ...
0
votes
1answer
41 views

Solidity Multiple Contracts and Inheritance issue

My smart-contract has gotten bigger than the 24K size allowed by Ethereum, so I had to break it up into smaller contracts. I then had to facilitate all sorts of inheritance and importing between these ...
0
votes
1answer
30 views

Deploying Crowdsale.sol - Error

In order to enable purchases of MyToken, where do I include the RATE (token/ETH) such as the below code from Openzeppelin docs on crowdsales into my deploy_contract.js or MyToken.sol? And how to ...
0
votes
2answers
52 views

Payable and address.transfer for ERC20 token

I am trying to develop forsage like MLM using ethereum smart contract. But I like to use ERC20 token for registration payment and dividends. The ERC20 token is already deployed. I have to use deployed ...
0
votes
1answer
21 views

How developers make profit from their decentralized coins

I understand how centralized token/coin developers are making profit, they literally own big part of total supply, but how's about fully decentralized token/coins? Are they saving some tokens before ...
0
votes
1answer
167 views

ETH vs ERC20 token [closed]

I am almost newbie. I understand that ETH is the currency for Etherium networks. I also do understand that ERC20 is standard for smart contract, which is used by Etherium based networks. Very often I ...
1
vote
1answer
114 views

Impersonating accounts on a forked Ethereum main net using Hardhat

I used the example from the Hardhat docs to impersonate an account on a forked network: await hre.network.provider.request({ method: "hardhat_impersonateAccount", params: ["0x...."]...
0
votes
1answer
36 views

ERC20 Interface

When you make a token, must you have an ERC20 Interface (such as the one below)? What is the purpose of it? pragma solidity 0.6.6; /// @notice ERC20 https://eips.ethereum.org/EIPS/eip-20 with ...
0
votes
1answer
40 views

Staking reward distribution in a month

I was just wondering, how would I be able to make a staking function that, after one month, distributes "x"% to the locked up stake holders? Is it something to do with now and ...
0
votes
1answer
23 views

How to pass IERC20 as argument in solidity?

i'm trying to deploy sushiSwap on my local machine. but i don't know what should i pass a argument in constructor... code is like... pragma solidity 0.6.12; import "./IERC20.sol"; import &...
0
votes
1answer
18 views

what are benefits of creating tokens for creators

What are the benefits of tokens for their creators? and specially gas tokens? (like CHI Gas token or token with infinite supply) How their prices are determined in the first place? Thanks.
0
votes
0answers
40 views

Error : Called function should be payable

I am trying to create a token contract and the token sale contract. Token Contract : ERC20 token is ready and it is flawless TokenSale Contract : I have passed the "Token"" contract to &...
0
votes
0answers
44 views

Always getting “Gas Estimation failed” in Remix when testing 1inch swap function

I am trying to test 1inch swap function from the contract deployed via Remix on a Ganache fork of the Ethereum Mainnet. When calling this function I always get the "Gas estimation failed" ...
0
votes
1answer
30 views

Creating ERC20 token: What determines price, PoW, Minting and changing code after deploying

I did a lot of research about this, but still don't understand some concepts around token price and proof-of-work. First of all, imagine I've created a token, which is ERC20 or 223 standard smart ...

1
2 3 4 5
31