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
0
votes
0answers
19 views

Transfer ERC20 Token - Encountered during contract execution [Reverted]

When trying to sent some ERC20 Token from wallet getting following error: Warning! Error encountered during contract execution [Reverted] This error returned when i call transferFrom()( I made ...
0
votes
1answer
17 views

Etherscan and Token value [closed]

can you PLEASE tell me how to get my coin balances off of etherscan and on to say an exchange or on to metamask? I can not figure out how to do this it's driving me crazy! the balances are there but I ...
0
votes
0answers
12 views

How do financial derivatives offer stable value? From Ethereum Whitepaper

I'm having a hard time understanding what this paragraph in the section labeled "Financial derivatives and Stable-Value Currencies" means: Financial derivatives provide an alternative. Here, ...
0
votes
1answer
16 views

Closed, Creating a method to airdrop ERC20 Token B to the holders of ERC20 Token A [closed]

I've been attempting some form of solidity code to automate the airdropping of Token B to the holders of Token A almost all day, but I still couldn't find much that works. How could I do this?
1
vote
1answer
19 views

Metamask doesn't show token value on erc20 contract interaction

Why using the Transfer method is showing the value of the erc20 that I want to transfer while with a custom method is always showing 0 ETH on metamask instead of the token that I'm transferring via ...
1
vote
1answer
18 views

Insufficient fund for sending USDT token on an address with no Ether

I've an Ethereum account in Geth which has received 4 Tether (USDT). I want to send 1 of them for test to another account, but I receive this error: insufficient funds for gas * price + value ...
0
votes
2answers
31 views

What are the steps to send ERC-20 tokens?

I need to send USDT and other ERC-20 tokens via Geth on Ethereum. I'm using PHP and Web3.php library to work with Ethereum. So far, it worked well for everything. Now, I need to start sending tokens ...
1
vote
1answer
26 views

Looking for code that makes this contract pay out dividends

I have used OpenZeppelin contracts to create a token in Remix that I can mint and send around: pragma solidity ^0.5.0; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/...
0
votes
1answer
19 views

How to safeguard a different token stored in an ERC20 contract from unwanted withdrawal?

If I want to store say a popular ERC20 (e.g. BNB) in my new ERC20 contract, how do I prevent someone from making unauthorized withdrawal of these BNBs from my contract account ? Is it possible that a ...
1
vote
1answer
36 views

How to create a token exchange for private blockchain?

I have requirement to create a exchange for my private blockchain tokens, where registered user can buy and sell tokens, and token price goes up and down on demand and supply. I have searched bit, ...
2
votes
1answer
38 views

How to create transaction data for sending ethereum from multiSig contract to account with Web3.js v1.2.1

I am using a standard MultiSigWallet contract. My goal is to create the data parameter with web3, which is used in executeTransaction / external_call (bytes memory data). The transaction should send ...
1
vote
0answers
34 views

How to get total tether supply on Ethereum from BigQuery dataset

I've noticed that the numbers for Totaly supply of Tethers seem to diverge on the official Tether transparency page and the Etherscan block explorer, and I want to find a way to get the correct number....
1
vote
1answer
28 views

gas estimate in loop

I have two contract. I call function placeBid in other contract and i have warning gas estimation. help me. thanks. Can i call function which use gas in loop through other contract? How i can get ...
2
votes
1answer
43 views

How to interact with my ropsten smart contract

I've looked for hours online for how to interact with contracts but I've yet to find an efficient way to do so. My contract is deployed at 0x09B81faA7fB51E5Af79b0241243e58297aC84158 on the ropsten ...
1
vote
0answers
17 views

ERC20 Token balance isn't showing up in metamask [closed]

I'm making an ERC20 Token using OpenZeppelin, and I keep running into the same issue. My balance shows up in remix when I call "balanceOf," however, when I add the coin to my metamask wallet, it shows ...
0
votes
1answer
16 views

How to Burn Tokens from someone wallet

Like e.g I created a token and sent it to the wrong contract address how to burn the token from the wrong contract address
1
vote
2answers
52 views

gas required exceeds allowance (8000029) or always failing transaction

When executing this function, I get an error gas required exceeds allowance (8000029) or always failing transaction i know that this error have when use transferFrom function. Where i wrong? help me ...
1
vote
2answers
32 views

Empty to field in web3.py transactionReceipt

I fetched the transaction receipts of a block and had some questions regarding some of the fields. If a transaction receipt shows the "to" field empty and a address in the "contractAddress" field, ...
0
votes
1answer
16 views

Can you embed information into individual tokens?

Say it is a gaming token. Could you for example embed and update the high score each time the token holder plays the game? The idea being the token would be worth more the higher the score. Forget ...
1
vote
1answer
18 views

Account Private Keys not Logging with Web3.js with Pure Javascript and HTML on browser

Here is the code below, I want to create accounts using web3 js and logged the private keys. But am having an error Reference Error and keys not logging. I followed the docs at https://web3js....
1
vote
0answers
12 views

Block Chain Polling/Voting using Honest/Costly Signalling [Why is this wrong, can this system work?]

This Poll measures (Support for X) not (People who support X) You signal support for a candidate by forfeiting any amount of value to a candidate specific address in return you get... A public and ...
1
vote
1answer
22 views

Is it possible to delete an ERC-20 token contract?

Is it possible, that someone creates a new token on Ethereum let it be XYZ, an ERC-20 token. Can he later call a destructor func that will wipe off all funds from all people that are using that system?...
1
vote
1answer
48 views

is ether itself an ERC20 token?

Can I treat ether as an ERC20 token? If so, what is the ehter contract address? For example I would like to stream ether to another account. But I need to provide contract address of ether for that.
0
votes
0answers
13 views

ERC Standard and EIPs for Pausable, Mint and Burn?

Which ERC standard or EIP Pausable contract belongs to, as it available in OpenZeppelin. Which ERC or EIP Mint and Burn token Belongs to?
1
vote
1answer
19 views

How can I Retrieve Wrong Transfer of Erc20 tokens [duplicate]

I mistakenly Transfer an ERC20 token to a scammer Like(I created the Token) then I saw the Write function on etherscan.io. Is it possible to transfer it back to my wallet or not and if it is possible ...
1
vote
0answers
27 views

Given just an Etheruem address, is there any way to tell if it's an ERC20 and/or an ERC721

If I have only an Ethereum address and only a locally running node (using a third party such as EtherScan or Alethio is cheating), is there any way to tell if that address is an ERC20 or an ERC721 ...
1
vote
1answer
26 views

Is it possible to transfer token from other address if I have private key from it?

I know that if someone owns tokens he can simply call transfer method of contract to send money. I also know that for ERC20 contract owner of tokens can call approve for my account, and then I can ...
3
votes
3answers
63 views

How to prevent ERC20 token to be traded publically?

I am creating ERC20 tokens for real state products where investors can buy/sell tokens but we want to oversee buy/sell process. For example, when investor want to sell tokens to other persons, it ...
1
vote
0answers
27 views

What are “if” and “this” in this function?

function() public { if(delegate.delegatecall(msg.data)) { this; What are the requirements for "if" to execute "this" and what does "this" refer to in this function?
0
votes
1answer
37 views

Should i move my erc20 token from ropsten to main network?

I have just created token in ROPSTEN network, so Im confused now... Can I use my tokens in main ether network (sel, give, etc) or I just van play with them in test network and forget...? Should i ...
0
votes
0answers
20 views

Difference between method id, event id and ABI signature for event

I am confused as to what is the difference between method id, event id and abi signature. I got the abi signature of a token transfer function according to the following web3js function const ...
0
votes
0answers
14 views

All tokens created on ethereum use (ETH) gas to pay for the transaction fee. What about other currency like Waves?

I just wonder to know if other crypto platform (like Waves) use its main currency (eg.waves) to pay for transaction fee when a user transfer his own-created Token to other user's address (like what ...
0
votes
2answers
23 views

Will people who buy my newly created erc20 Token also have to buy ETH as well?

I'm currently deciding which crypto platform to go for (Ethereum or Waves). So I'm asking this question because I just wonder if the people, who will buy my newly created token, will HAVE TO buy Ether ...
0
votes
0answers
15 views

Token transfer lock after crowdsale

I am faced with a problem regarding the ICO and Token smart contracts (SCs). I am currently using OpenZeppelin SCs to create my token and ICO and everything is working fine. Now I would like to add a ...
0
votes
2answers
16 views

pay for goods with tokens

I pay for goods with tokens. But after the first call to the function, tokens are not removed from the wallet. Please tell me why when I call the function for the first time, tokens are removed, but ...
0
votes
1answer
25 views

Compatibility between ERC-1400 and ERC-1643

How does a contract supporting both ERC-1400 and ERC-1643 should be written as their functions setDocument don't have the same arguments and their getDocument don't return the same types?
1
vote
1answer
24 views

Variables in storage not getting updated according to transaction

As part of my project, I am using a code from github and modified it according to my requirement. This is a Auction contract. I am using remix IDE for interaction. I tried deploying in the rinkeby ...
0
votes
1answer
22 views

Smart contracts, tokens and ether

I am sending some ethers and tokens to my smart contract. So how will the contract differentiate between ethers and tokens? Code will be helpful
0
votes
1answer
24 views

Erc20 token with rewards [closed]

I want to create an etc 20 token that can be used to rais funds for projects and later distributes the revenue from the project to people who bought the token. How to do that ?
0
votes
1answer
27 views

Receiving unknown token into smart contract [closed]

I was wondering if its possible to recognize one way or another a token that is sent to the smart contract, without token being previously registered? Cheers, Casper
1
vote
1answer
30 views

Re-entrancy Vulnerability?

function transferFunds(uint _value) private { uint _fee = (3*_value)/(2*100); //Perform Ether transfer method merchant.transfer(_value - _fee); admin.transfer(_fee); ...
1
vote
1answer
40 views

ERC 20 - very large balance created on a wallet

I deployed an ERC20 at this address: 0x60c56fb23dc18c719491759b6c40cd46e502fcbd One of the addresses I own got a huge balance (more then the token supply) couple of days back. The address is: ...
0
votes
0answers
33 views

what is wrong with this token contract?

This one: https://etherscan.io/address/0xc12d1c73ee7dc3615ba4e37e4abfdbddfa38907e As you can see most of the last transfer fail, the transfer function is: function transfer(address recipient, ...
0
votes
1answer
26 views

Contract with a method to send received erc20 token to two different owner addresses

Was wondering if there is already an open source solidity code with method to sweep erc20 tokens received in contract address to destination address by calling an in-contract method such as "sweep()". ...
0
votes
2answers
48 views

ERC20 and/or ERC721

Consider the following scenario. A person owns a asset called "A". Now the asset is very high valued and unique but you can allow other persons to own a certain part of that asset. EDIT: Ownership ...
0
votes
1answer
41 views

how to pay for goods with tokens ERC20 [closed]

my english is very bad.i am sorry. I found an example of an auction where you can pay with ethers. I would like to pay with ERC20 tokens. Please tell me how to do this in the placeBID () and ...
0
votes
3answers
33 views

Can an NFT (e.g. ERC721) simultaneously belong to two different entities, say an user Owner, as well as a user Custodian?

For example, on the blockchain say you own a ERC721 Car token at your wallet address, but you want to park it in the ERC998ERC721 top down composable Garage owned by your friend, while still retaining ...
1
vote
1answer
21 views

Deploy a token which you can only send in multiples of x

Im a beginner in solidity. Is there a way to deploy an ERC20 token that can only be sent in multiples of X or else the tx fails?
1
vote
2answers
41 views

Is it possible to circumvent a require statement if the ordering of the requirements are incorrect?

Please take the following hypothetical code as an example mapping (address => uint256) public accountBalance; function deposit(uint256 amount) public { accountBalance[msg.sender] = ...
0
votes
2answers
26 views

What triggers a transaction to be recorded on the Blockchain?

I am new to blockchain development. I am trying to understand where, when, and how a transaction is sent to the blockchain to be recorded. Here is the sample code I am studying: pragma solidity ^0.4....

1
2 3 4 5
28