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
2answers
152 views

Cryptocurrency Tutorial: how to transfer on the geth console?

I build, compiled and deployed (to Testrpc) the token contract from the cryptocurrency tutorial. The token offers the transfer(addres _to, uint256 value) method, which I would like to call from ...
0
votes
1answer
96 views

unsold token in a crowdsale ethereum

I'm new in the solidity coding. I'm trying to retrieve the unsold tokens from a crowdsale contract. I add the command tokenReward.transfer(beneficiary, amountRaised); pragma solidity ^0.4.20; ...
1
vote
3answers
409 views

How to transfer token to an address?

Im using truffle and openzeppelin for issuing my ERC20 token. I already can add and buying the token, but still cannot transfer the token to another. when i console.log the contract, it show me: and ...
0
votes
2answers
22 views

Can an Ethereum token be bound or pegged to the value of the gold? [closed]

Could a token be built in ethereum that its price would be bound or pegged to lets say .00006 times the price of an once of gold?
0
votes
1answer
114 views

Problem in Mist :“It seems this transaction will fail. If you submit it, it may consume all the gas you provide”

I have tried creating contracts in Mist. I already made one contract six months ago and everything was fine. Now this error pops up : "It seems this transaction will fail. If you submit it, it may ...
0
votes
1answer
16 views

Tokens are not being transferred with web3js

i have been using following code for transferring tokens from wallet to another with the use of web3js. async Transfer(eth_address, amount){ let tokenAddress = "...
1
vote
1answer
108 views

Solidity IDE Parser Error on Token Name

Getting this in Solidity: browser/ballot.sol:121:16: Parser Error: Expected Primary Expression. Here is my code, says that it is the name line with the parser error function ERC20Token( ) { ...
1
vote
1answer
141 views

Documentation For Token Smart Contracts with JSON RPC

This is the documentation for the Ethereum Json RPC: https://github.com/ethereum/wiki/wiki/JSON-RPC Pretty straight forward, but where is the documentation for dealing with tokens via this protocol? ...
2
votes
1answer
258 views

If a function calls another contract function that throws, will the initial function throw as well?

If I call a function in another contract that doesn't return a boolean, but has throw() invariant checks, is it safe to assume the function finished properly if the transaction isn't reverted? I ask ...
0
votes
1answer
26 views

Can we send tokens with data input? [duplicate]

Can we send tokens with data input? I did a bit of research on erc20 but maybe this is quite complicated. Will erc 721 do this?
6
votes
1answer
361 views

creation ERC721 error: Transaction failed, invalid address,

I would like to learn how ERC721 token works. I found some sample contracts online and tried to use remix and Ethereum Wallet to deploy the contract. The compile was fine but failed in the creation. ...
9
votes
1answer
82 views

What will happen to legacy smart contracts when Ethereum 2.0 is released?

Most importantly, ERC20 and ERC721 tokens. Will they be migrated to the new chain? Will migration only be optionally possible for contracts with an owner? What about contracts which rely on proof of ...
0
votes
2answers
157 views

Create Tokens Pegged to Ether

I would like to create tokens where its price is pegged to the price of Ethereum (i.e. Ether price goes up, my token price goes up). Regardless of number tokens been sold or changed hands.Is it ...
3
votes
1answer
336 views

A list of token holders at a specific time

What's the best way to get the list of token(ERC20) holders with their balance at a specific time? Thank you.
0
votes
2answers
413 views

Help on transferFrom and Approve functions

We have a token contract A and an Escrow contract B. While transferring token from an address to contract B we are using transferFrom function which overridden from contract A. But in need to do the ...
2
votes
0answers
38 views

Combine two addresses into one

I want Solidity code to define a function f that would map two Ethereum addresses A, B into a new address X = f(A,B) such that there is nearly zero probability that X is an already taken address (an ...
1
vote
2answers
42 views

Advantages of using Tokens?

Why should I use a (ERC 20) Token instead of just using Ether? What advatages does it have, besides making money out of nothing?
14
votes
2answers
3k views

How can ERC20 token implementations be verified?

The ERC20 Token Standard is great, in that it allows wallets, exchanges, and client implementations to allow users to interface with a variety of tokens in a common way. But how can one of these ...
1
vote
1answer
279 views

transfer ERC20 Tokens by web3

I'm a beginner of ethereum. I have seen some solutions. I can use sendRawTransaction to transfer costumed tokens from one account to another account. But my boss asked me to use ERC-20 "transfer" ...
0
votes
2answers
113 views

Ethereum Token Nam Redundancy

I have created a ERC20 token in ethereum blockchain with token name as TestToken and Symbol as TTT. Now how can I ensure that others cant create a token with the same name and same symbol? Is there is ...
0
votes
1answer
30 views

How to set different signer and gas payer for a single transaction

I am trying to make a transaction of DAI tokens from user wallet 0xDAIUserWallet to some random token contract say 0xRandomContractAddress. In this scenario I am using the private key of DAI User to ...
0
votes
1answer
13 views

Is QTUM is a coin or a Token?

According to Etherscan Qtum is a Token, holding supply with verified smart contract. But its official site contains its own protocol and integration mechanism. Is it still a token under ETH or it has ...
2
votes
2answers
97 views

Best way to create identity contracts for organisations

What is the best way to create identity contracts for organisations based on their information like name, address, organisation type(buyer/seller) etc. I have tried using factory pattern to create ...
0
votes
1answer
157 views

JavascriptVM(remix) bug deploying multiple tokens

I'm currently coding a crowdsale for school in which the fictious participants can buy a token. During the first round the participants would also get a second token which would act as a governance ...
0
votes
0answers
21 views

Transfer ERC20 Token with vyper

Hello i m learning vyper and i have this issue: I deployed a standard ERC20 token contract using vyper default contract: https://github.com/ethereum/vyper/blob/master/examples/tokens/ERC20.vy When i ...
0
votes
1answer
184 views

Custom token transfer, what am I doing wrong?

I am trying to hash an address then send tokens to a mapping of the hash in the token contract, then be able to withdraw those tokens using a hash of the address. It compiles but cannot make it work. ...
0
votes
2answers
205 views

Guidance on creating new token with value tied to fiat currency & fixed increases in price (newbie)

I would like to create a new token, but I'm a complete newbie when it comes to Ethereum and cryptocurrencies/blockchain in general. I'm also not a programmer. My goal is to create a fixed number of ...
1
vote
1answer
148 views

What data should be stored in contracts or tokens

After watching a sales force movie where they have a session on how they are integrating their product into the blockchain they talk of an example on capturing all the data from the supply chain ...
1
vote
1answer
86 views

How can I collect the tokens inside smart contract that people will send accidentally?

I have an ERC20 token XYZ smart contract created. People will send certain amount of tokens back to the contract address to initiate certain functions. I just want to know that what will happen if ...
0
votes
1answer
273 views

Created Token, now can't see my tokens in my account

I followed the basic tutorial to create a new Token, it all seems to have worked correctly, yet I can't see my new tokens in my account (Ethereum Wallet on mac v0.9.3). Also tried via MyEtherWaller....
2
votes
2answers
299 views

ValueError: {'code': -32000, 'message': 'invalid sender'} when calling transferFrom using web3.py

I want to make a function that allows you to send tokens from one owner to another. nonce = w3.eth.getTransactionCount(from_['address']) unsigned_transaction = contract.functions....
0
votes
1answer
28 views

Zepellin Crowsale buyTokens error

I'm trying to use the buyTokens function of the Zepellin Crowsale interface, but this gives me an error, without any log to be able to debug contract TokenA is MintableToken, PausableToken, ...
0
votes
2answers
151 views

Help understanding contracts

My first question and probably a bit naive. As I understand, ICO allows you to buy tokens. I am ok with this part. But how do you profit from that? I see two possibilities: Contract distributes ...
0
votes
1answer
25 views

Can I put a lock on an already issued erc20 token?

Can I put a lock on an already issued erc20 token? I have issued a fixed erc20 and I want to know if it is possible to apply locku to smart contracts.
0
votes
1answer
247 views

Send multiple transactions

This is contract I plan to implement multi send, so I can send multiple transactions to people. Here is my code pragma solidity ^0.4.11; /** * @title Ownable * @dev The Ownable contract has an ...
0
votes
0answers
14 views

How can link metamask wallet to create Android and web wallet for ERC20 token

I studied Solidity and Web3.js .I still need to know how can use metamask wallet that use in chrome extension to create as a mobile wallet and web wallet for client side.
0
votes
1answer
187 views

COB token transfer failed with error: “Bad Instruction”; will I get my tokens back?

I transferred 10 COB tokens from my one address 0x782e265f911167e4FDbfbFb63a32cC27341724E7 on my Metamask wallet to another Metamask wallet address 0x0a42AD94FC81db989575365Be28DCd64417Ce564 but the ...
0
votes
0answers
24 views

Web3 method getTransactionReceipt() does not return token transfer value for particular token transaction

I've tested getTransactionReceipt(), to get all detail about transaction with amount of token transfer. Also tested getTransaction but it returns only Ether transferred value. Is there any other ...
1
vote
1answer
32 views

Is Egretia (EGT) is still Ethereum Token? Or It has been moved as a Coin to its own Blockchain?

Currently Egretia (EGT) is represented as a Token of Ethereum Network, but is there any changes regarding shifting from Token to Coin on its own Chain?
0
votes
1answer
179 views

Smart contract with authorized actions based on addresses

I want to build a service where users can sign up (off-chain) to get credentials which give them the right to perform certain on-chain actions. For example, lets pretend I'm building a service where ...
1
vote
2answers
476 views

function () public payable modifier can trigger actions when sending tokens or only works when sending ether?

Modifier payable triggers an action when an address sends ether to a contract. For example: function () public payable { require(msg.data.length == 0); DoSomething(); } Is this ...
0
votes
3answers
184 views

Transfer ERC20 Token feeless

Is there an existing Smart Contract implementation, which can public signed transactions of ERC20 Token transfers? I like to give the users of a ERC20 token the ability to pay the transaction fees in ...
0
votes
1answer
259 views

How can users call the functions of an ERC20 token that was created by another contract (within a crowdsale contract)?

Using Ethereum wallet if I create a token and deploy it I can then interact with it and use the functions of that token (e.g. transfering tokens). However, if I deploy a crowdsale contract and that ...
1
vote
1answer
198 views

ERC token multiple address sending

Hi is it possible to send token XYZQ to two addresses in one transaction. here is example. 100 XYZQ ===> 99.9999 to XYZQ 1 address and 0.0001 XYZQ to second XYZQ address? For same amount of gas
0
votes
2answers
430 views

tokens stuck in smart contract

I tried to purchase some tokens on ether delta, but it kept saying tha it would not go through. However, when I came back to my computer, my funds had disappeared. I have located the tokens, but don't ...
2
votes
1answer
501 views

How to add website link to erc20 token on etherscan.io

How can we add this official site link to our deployed contract? Like in the image below: Here is my deployed contract address: https://etherscan.io/address/0xab73a739729a21b2299761408507556d2719af89#...
1
vote
2answers
37 views

What are contract Variables and how are they different from normal varables declaration

pragma solidity ^0.4.2; import DappToken; contract DappTokenSale { address admin; DappToken public tokenContract; function DappTokeSale(DappToken _tokenContract) public { ...
0
votes
1answer
36 views

Ethereum Contract Scalability (Single vs Multiple Contracts)

I am writing a token swap contract on Ethereum Blockchain to manage ERC 20 token swap in an exchange. The Questions is that in terms of scalability, which of the following two options would be better ...
1
vote
1answer
226 views

Invalid type for argument in function call

I have this token code pragma solidity ^0.4.19; contract MyToken { mapping (address => uint256) public balanceOf; function MyToken(uint256 _supply) public { balanceOf[msg.sender] = ...
0
votes
2answers
260 views

Questions Regarding Creating New ERC20 Token & ICO

Hi I want to create an ERC20 token and launch an ICO. I am new to ethereum solidity. I have checked smart contracts on http://ethereum.org and https://theethereum.wiki/w/index.php/...