Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tokens]

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

0
votes
0answers
36 views

trying to verify and i can't make it, contract name is Mystatics and no matter what i try i get error please someone verify it for me or tell me how [on hold]

cotract address 0xb5f8d22cdd53260d7f3401ebd9cc23ecfeb23409 token name: Mystatics symbol: MYST decimal: 18 TxHash:...
0
votes
1answer
15 views

approve() and sendFrom()

Im trying to run the code below in a smart contract to use as an escrow. calling approve first and calling send from later does nothing to get the tokens into the smart contract, what am I missing ...
0
votes
0answers
8 views

Issue in understanding Crowsale in the ICO contract

I want to create a token and run an ICO but all this without the function of crowdsale and minting. It want it to be a token which has a strict initial suplly (exmpl 1M) and without the funtion of ...
0
votes
0answers
16 views

Track ERC20 Provenance

I was wondering if there is any way for a smart contract to determine where a specific ERC20 transfer came from. That's to say: Alice and Bob both send a transfer to a smart contract same amount &...
0
votes
0answers
19 views

My smart contract doesn't accept ERC20

NOTICE: The below implementation works. It assumes that the calling addresse has approved both the spender and the contract to carry the transaction. Because they were not approved it was not working. ...
0
votes
2answers
28 views

How to transfer ERC20 tokes from Blockchain wallet to MyEtherWallet?

I got some token and by mistake sent them to my Blockchain ETH address. Now, what is the process of transferring them to MEW? They talk about exporting your private key, what does that mean and to ...
1
vote
0answers
11 views

Deploy Imported Smart Contract in Test case

I have a project that contains a Token Smart Contract, it has been added to my project by means of: npm install ../token_project In my testcase I have: var MyToken = artifacts.require("...
0
votes
1answer
28 views

What does ERC20Interface do in smart contracts?

I found this fantastic code used to generate a smart contract which allows you to send your ERC20 tokens to another address. A simple overview / explanation of how that works is as following: We ...
0
votes
0answers
14 views

How does the dx.exchange peg NASDAQ stocks to the Ethereum blockchain? Can I withdraw them? [closed]

With the recent news of the dx.exchange being able to purchase NASDAQ stocks on the ethereum blockchain. How does it work exactly? Is just another token? Can the stocks be withdrawn as an ERC20 ...
0
votes
0answers
15 views

ERC721 Metadata Creation

I've recently deployed a smart-contract. It can be easily viewed here: https://rinkeby.etherscan.io/addres/0x768adab11d7accbbed0f6947ef7a677b4fea8392 Moreover, I do own a metadata in structured in ...
0
votes
0answers
28 views

What is use of absolute Path on Json file of a Smart Contract?

What is the use of absolutePath on JSON artifact of a Smart Contract? Does this mean we need the .sol file on the same server where web3.js apis are running? { "absolutePath": "/home/hashcode01/...
1
vote
2answers
93 views

Constantinople hard fork and Ethereum based tokens

I have a question: Do we have to deposit all of our Ethereum tokens into some exchange before the Constantinople hard fork, otherwise our tokens will become worthless? Or we can leave our tokens in ...
0
votes
1answer
11 views

How to destroy token of ERC20 safety?

I have issued an ERC20 token, currently I want to destroy some of my token, how to do that? Does there have a destroy address officially, I just transfer token into it, and no one can transfer out? ...
0
votes
1answer
34 views

Oraclize a restfullAPI using a specific number represented by the variable z for a custom token (remix)

is it possible to pass an integer (in this case 141) represented by the variable z from a certain restfullAPI into the custom token function: balances[msg.sender]? So in the end I want to have my own ...
-1
votes
0answers
49 views

ERC20 Token not appear on approveAndCall function

When I use the function approveAndCall on my Token contract (ropsten) and Metamask is triggered, my token name and value do not appear, only the gas calculation. I have added a custom token to ...
0
votes
1answer
32 views

General question about totalSupply: fixed since first moment (aka Bitcoin) or indefinite (aka Ethereum)?

In an answer to a general question about totalSupply, I gave some rough indication about the aim of token deployer vs totalSupply: Why is the totalSupply of this token statically initialized to ...
1
vote
2answers
19 views

What is the main use of approveAndCall() function and _extraData?

function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); if(!...
0
votes
1answer
41 views

Why is the totalSupply of this token statically initialized to 5500000000?

contract UnixERC20 is StandardToken { function() { throw; } string public name; uint8 public decimals; string public symbol; string public version = 'H1.0'; ...
0
votes
1answer
11 views

Stream ethereum (ERC20) transactions (node.js)

I would like to get discord message every time when address receive ERC20 token. Is there any way to stream Ethereum transactions? I tried https://github.com/AlexanderC/ethereum-transaction-stream ...
0
votes
0answers
20 views

Questions on MinterRole contract in openzeppelin

I am using the openzeppelin for creating the ICO contract. I am concerned about the MinterRole here. After I develop Token contract, I added the sale contract as a minter using "addMinter" function. ...
1
vote
1answer
31 views

What is the main use and purpose of Upgraded Standard Token?

contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint)) public allowed; uint public constant MAX_UINT = 2**256 - 1; function transferFrom(address _from, ...
0
votes
0answers
18 views

In Tether Token issue() and redeem() functions belongs to which Standard?

function issue(uint amount) public onlyOwner { //_totalSupply + amount must be greater than the _totalSupply value require(_totalSupply + amount > _totalSupply); //balance of owner + ...
1
vote
1answer
31 views

How to get the return type of a function of an already deployed contract?

I am currently working on a real estate blockchain project. Now I have 2 contracts user.sol and property.sol. The person who is registered on the website through user.sol can only buy or sell property ...
0
votes
0answers
24 views

How to Transfer And TransferFrom On The Tether Smart-contract from another smart-contract? It uses onlyPayloadSize?

Hi I'm trying to call transfer and transferFrom on the Tether smart-contact token located at 0xdAC17F958D2ee523a2206206994597C13D831ec7. It is the only token I have a problem with transferring from ...
0
votes
1answer
24 views

What is BlackList and why it is used in Tether Token Smart Contract? And what is the use of Pause and Unpause in Tether?

contract BlackList is Ownable, BasicToken { function getBlackListStatus(address _maker) external constant returns (bool) { return isBlackListed[_maker]; } function getOwner() external constant ...
0
votes
2answers
33 views

Is it ok to store tokens at 0x0?

I would like to store tokens somewhere else than my wallet due to security reasons. I made a voting system contract and when more than 50% of authorized voters vote for yes, contract transfers limited ...
1
vote
1answer
25 views

ERC20- Error encountered during contract execution [Reverted] Transfer Already Created Token

I have created contract on Ropston TestNet which will send any already created tokens. Unfortunately its giving me error Transaction Details Available at: https://ropsten.etherscan.io/tx/...
2
votes
1answer
57 views

Are ERC777 & ERC223 smart contracts superior to ERC20 smart contracts? [closed]

I have been reading some articles which claim that ERC223 and ERC777 have all the features of ERC20 plus additional features which makes them a superior contract. If this is the case, why are they not ...
0
votes
1answer
23 views

Can ERC20 tokens be traded on other blockchain based decentralized exchange?

I have a quick question to ask from you. can we trade erc20 tokens on decentralized exchange which is built on custom replica of ethereum blockchain or you can say on a fork of ethereum blockchain. ...
3
votes
2answers
31 views

ERC standard that allows sending tokens from many origins to one destination in one transaction?

I know that any kind of operation over a token is possible so long as you implement the smart contract that achieves what you desire. For example, a function multisend can be developed that allows ...
0
votes
1answer
35 views

Mineable Tokens? Is it possible? If so, how can I make one? [duplicate]

Just wondering if you could make a ethereum token that is mineable. I saw this link, but don't really know about it and i dont know anything about solidity. Can someone please help me? Thanks, ...
0
votes
1answer
14 views

Error creating contracts on Ethereum wallet. Need help [duplicate]

I am trying to create an ERC20 token off of ethereum, but when I put the code in the editor in the ethereum wallet, I get a weird error. It says: "throw" is deprecated in favour of "revert()", "...
2
votes
1answer
33 views

Trigger a smart contract token transfer by a third party

I've created an Ethereum token that could be transfered from user to user. As a next step I would like to write a smart contract that transfers an amount of tokens from user A to user B when a ...
1
vote
2answers
33 views

Why can't I catch solidity errors testing with truffle?

I'm testing the ERC20 standard. I try to send a transaction from an account with balance=0, which should throw an error. I'm trying to catch it. In my test function, I'm using the following: ...
1
vote
1answer
124 views

REMIX: ParserError: Expected identifier but got 'payable' address payable target

Hello i have the follow contract: https://pastebin.com/dQJY55hs I want add this code tu the code above: constructor(uint _totalSupply) public { totalSupply = _totalSupply; balanceOf[msg....
0
votes
1answer
17 views

Refill Ether to account after token transfer

During token creation and token transfer some ethers are used as gas. What is the most efficient way to refill an account with the same amount of ether? So that it doesn't run out of funds(ether). I'm ...
1
vote
0answers
20 views

Possible ERC-20 improvement: Token-specific ENS equivalent

With ENS still providing quite a difficult user experience for the average user, I'm wondering why standards like ERC-20 don't implement a simple mapping allowing people to set names equivalent to ...
1
vote
3answers
79 views

infura vs Eth Node [duplicate]

I want to connect web3 services with public Ethereum (main net/test net) to execute my smart contract method. Which is better Infura or to create my on Node? Please suggest.
1
vote
0answers
46 views

What is the best secured way to let users interact with a tokens minting function?

I have an ERC20 tokens contract with a function to mint tokens. This function allows users to mint tokens after performing specific actions or activities on a website. If a user performs the action ...
0
votes
1answer
34 views

make a contract send a percentage to a specific wallet (always)

how can I make a contract send a percentage to a specific wallet (always)? Example that whenever a transaction is made from this token the 1% go to X wallet. Thank you. Ok felix dolderer thanks for ...
0
votes
1answer
25 views

(Truffle) how to call finalize() function after finishing crowdsale

I would like to call token.transferOwnership(msg.sender) after finishing timed crowdsale. So, I inherited FinalizableCrowdsale contract, then override finalization() function to call transferOwnership ...
1
vote
2answers
54 views

How does 0x0000000000000000000000000000000000000000 have over $1.5 trillion octillion octillion in tokens? [duplicate]

I looked up 0x0000000000000000000000000000000000000000 on Etherscan, and realized that the address holds a lot in ERC tokens. While the ETH balance (about 7,549 ETH or about $841,000) isn't abnormal, ...
1
vote
1answer
27 views

ICO and Token both together

I know we can create a token contract and also we can create a ico contract. Is it possible to create a contract include ICO and Token itself? any idea or example?
1
vote
1answer
50 views

how to use toWei() function in web3.js for tokens having 2 decimals?

I am trying to convert amount in wei using web3js function called toWei(). Here is my code: var etherwithdrawamount1=web3Infura.utils.toWei(etherwithdrawamount, 'wei'); Now, the problem is that ...
1
vote
1answer
17 views

Is ERC20ImplUpgradeable a Scam?

I found this in GUSD Smart Contract. The ERC20ImplUpgradeable means that the contract can always be changed. And our coin can be stolen whenever they wish without any trace. If this is allowed by ...
1
vote
1answer
27 views

Largest possible Supply an Ethereum token that can be created?

What is the largest possible token supply an ERC-20 that can be created?
1
vote
1answer
23 views

Ethereum Smart Contract deployed token not showing

pragma solidity ^0.4.24; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); ...
0
votes
1answer
33 views

Static Analysis raised 9 warning(s) that requires your attention. Click here to show the warning(s)

I receive these warnings in REMIX so the question is: Can I compile my contract and then verify it regardless of these warnings? pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a,...
3
votes
4answers
437 views

Must a Solidity developer know the private keys to the wallet that is tied to a token contract?

To deploy a token contract, there must be a wallet address, am I right? Thus, must the coder be managing the wallet (with its private keys) that is used? I'm looking at the scenario where what if ...
1
vote
2answers
49 views

What are the use cases of tokens? How they are different than ethers?

I am searching for the ERC20. From what I found is that , tokens allow us to have our coins based on smart contracts. But I am little bit confused about the use cases of tokens? When I should use them ...