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
1answer
338 views

Error in creating instance of deployed contract using truffle console

I deployed Token and Crowdsale contract in separate migration files. During Migration, there was no error. Migration logs are share: Running migration: 2_deploy_token.js Deploying DappToken... ......
0
votes
1answer
31 views

How can I use Ethereum smart contracts with another crypto currency?

I am learning/playing around with some concepts of the blockchain, smart contracts and Ethereum. I have created my own "toy" cryptocurency ("myCoin") by forking a coin using the CryptoNote algo. I ...
1
vote
3answers
535 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
1answer
75 views

Can someone confirm that the sender will receive the correct amount of tokens?

I've tried to get this to work. But every time I deposit 1 Finney it only gives me 0.00000000000000000001 Tokens. What am I missing? For every 1 Finney, I want the buyer to receive 1 KEFT token ...
1
vote
1answer
123 views

Apparently some people send transactions with zero gas and positive gas limit, how do they do this? (and I am NOT planning to this but how)

Have a look at this transaction for example: https://etherscan.io/tx/0x11d96986d36240a5e5e7eab78879aa841631705370e707f15f1488a0b9d6704a 0 gas, 0 ether but plenty of tokens transferred. Obviously the ...
0
votes
1answer
123 views

Cross chain call contract on ethereum from private network

Im looking for a way to call a contract that is deployed on the ethereum main network using Go (or JS/anything). From what i can see the foolproof way is to do so over json RPC but i would love to ...
0
votes
1answer
242 views

Transfer ERC-20 token from Token Contract to My Custom Contract

I know transferring ERC-20 token from my wallet to a custom contract. The smart contract has to call transferFrom() to enable withdraw. ERC20 token = ERC20(_tokenAddress); token.transferFrom(msg....
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
66 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
1answer
293 views

Should i move my erc20 token to main network?

i recently created a token in ropsten test network and was successful. Now i am going to create a real time token in one of my private network. My question is, can i go ahead creating the same in ...
0
votes
1answer
167 views

How can I redeploy my ico/erc20 token from Rinkeby to the main Ethereum network?

If you know and have a tutorial please attach the link in this thread. My token on Rinkeby looks like this: https://dappuniversity.github.io/dapp_token/
0
votes
1answer
194 views

How to send ERC20 to 0x0000000000000000000000000000000000000000

How to send ERC20 to 0x0000000000000000000000000000000000000000 I have tried to do this on myetherwallet and it will not send as a transaction, is there a special way to send here? Thanks
0
votes
1answer
107 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; ...
0
votes
2answers
472 views

How to destroy a token or list of token from a another contract?

[Edit 14-03-2018] I want to create a contract A that can generate a random number of Token A and another contract B that receive and destroy one or many of this token to generate a new Token B. It's ...
2
votes
1answer
143 views

Ether balance on Metamask doesn't change after selling tokens

I create a smart contract successfully using Remix IDE , Metamask and Ropsten for testing. I want to sell some tokens using Sell function, so I specified the value "20" for Sell function ,my initial ...
0
votes
2answers
726 views

How to get list of Ethereum addresses for Airdrop?

I want to do Airdrop for my tokens and plan to distribute my tokens to 50,000 random Ethereum addresses. How do I get the 50k Ethereum addresses. How do the very well known Tokens airdrops manage to ...
0
votes
0answers
27 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
2answers
27 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
2answers
180 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 ...
0
votes
1answer
119 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
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
163 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
0answers
19 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 ...
2
votes
1answer
118 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( ) { ...
6
votes
1answer
378 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. ...
1
vote
1answer
154 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? ...
0
votes
1answer
46 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
2
votes
1answer
265 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 ...
3
votes
1answer
422 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
1answer
28 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
4
votes
4answers
2k views

Doing a bulk transaction with my ERC20 token (How to do it)

I was wondering if someone has more information on how to do a bulk transaction on the Ethereum network for ERC20 tokens. Let's say I need to send 1 ethereum to 10 users or 10 ERC20 Tokens for that ...
1
vote
1answer
33 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
42 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
1answer
22 views

Automate token distribution?

How can I execute a function on a smart contract from a web-app backend? (Laravel / PHP) My smart contracts holds X tokens. In my MySQL database, users are owed X tokens. I have their wallet ...
0
votes
0answers
37 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
2answers
117 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
42 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 ...
1
vote
1answer
264 views

Transfer data using solidity transfer function

Can we use transfer function in solidity to transfer the data? My code _dest.transfer(txn.value)(txn.data); and it is showing the error that this type is not callable.
1
vote
2answers
489 views

Internal Token Transfer without ETH fee

Need to move all token from one address to another address(Internal) without fees. Could you please help me to solve this?
5
votes
1answer
705 views

MyEtherWallet shows custom token but etherscan does not show any transaction?

Yesterday I participated in an ICO. I sent ETH to the correct contract adress and my transaction was confirmed. I also found my transaction on the ICO contract adress via etherscan. I then added a ...
15
votes
2answers
9k views

If someone found a private key to 0x0, would they be able to access all the tokens (over one billion dollars worth) stored there?

The 0x0 address in Ethereum has a lot of token stored in it that have been burnt in the past. However, it appears they burning is the same as sending to 0x0. In that case, could all of those burnt ...
0
votes
1answer
334 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....
0
votes
1answer
26 views

all erc 721 tokens being collectibles

Considering all NFTs are unique, are all erc 721 tokens collectibles? I'm asking this because on the Etherscan website some NFTs have the collectibles tag and some do not.
1
vote
0answers
456 views

Is there an API or library available to integrate an ERC20 compatible wallet into my android app?

If the android app being developed is going to display balances and allow sending and receiving of ERC20 tokens, is there an API or library that people would recommend for this functionality?
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?
2
votes
1answer
1k views

Time Lock and vesting smart contract

I would like to create a smart contract that will take care of locking and/or vesting funds to several beneficiaries (inputted by the owner of the smart contract). The funds that it will vest and lock ...
0
votes
2answers
1k views

burn, freeze, unfreeze functions

I wonder what is the purpose of these functions? could you please provide me with some examples. function burn(uint256 _value) returns (bool success) { if (balanceOf[msg.sender] < _value) ...

1
3 4
5
6 7
29