We’re rewarding the question askers & reputations are being recalculated! Read more.

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
68 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
1answer
329 views

How are tokens related to dapps?

I have seen almost all the DApps have some kind of tokens, ICO associated with it. Anyone kind enough to explain what is the relationship between a DApp and Tokens?
1
vote
3answers
548 views

Using Openzeppelin's crowdsale contract as a base, how can I set the rate to be a decimal number?

For example if rate = 10 then for every wei the buyer gets 10 "token units" which are each 1*10^18 of a full token (as the default decimal for the erc20 token is 18). If I want the users in a ...
6
votes
2answers
988 views

Smart contract erc20 code snippet to prevent buyer token transfers

I´m going to start a token pre-sale and I want to be able to send the tokens to the buyer but prevent the buyer to send tokens to another wallet. I tried the following in my ERC20 smart contract but ...
2
votes
1answer
538 views

Fail to “buy” from Crowdsale contract wrapping an already deployed contract

Hi I am a newbie to the Ethereum development. I have successfully deployed a burnable, pausable, capped token contract (TC) on rinkeby test network, and was able to interact with it - minted and ...
1
vote
1answer
30 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
2answers
18 views

Why am I getting TypeError: Member “balanceOf” not found or not visible after argument?

On line 22 my code is -- require(tokenContract.balanceOf(this) >= _numberOfTokens); This gives the error message TypeError: Member "balanceOf" not found or not visible after argument-dependent ...
0
votes
1answer
40 views

Is it possible to send erc20 token when I have 0$ ether but $1000 in the token? [duplicate]

Long story short I have $1000 in one erc20 token contract but 0$ in ETH. Can I at least transfer these $1000 from the token to another address without ethereum asking for gas? That is: just change ...
0
votes
2answers
62 views

gas required exceeds allowance when deploying ERC721token

I am trying to deploy Smart-contract(ERC721) on my private ethereum network. But I have this issue. Here is my genesis. { "config": { "chainId": 3333, "homesteadBlock": 1, ...
1
vote
2answers
882 views

How to fix “No events were emitted”

I have been following the instructions in the Dapp university tutorial. But I am using Windows 10, Dapp University is Mac. I downloaded this truffle with smart contract ERC20 from Dapp university. ...
0
votes
1answer
85 views

Can i call transfer function in other contract?

can i call ERC20 token's transfer function in other contract? like transfer AToken from using BContract's function can I?
0
votes
2answers
414 views

Unable to swap ERC20 AMIS token with other tokens missing something need help from experts.

https://etherscan.io/address/0xa23ca275a19caf9a753ce020a75c264e0b0d1674 As of today the value is in 1000$ per token i have 11 tokens ready to give 1 token amount whoever can solve the fuction issue. ...
0
votes
1answer
22 views

Why am I getting a Parse Error in my smart contract after the constructor?

I'm writing a token sale smart contract & my original error was my function had the same name as the contract and I changed it to a constructor because the contract cant have the same name as the ...
0
votes
1answer
82 views

problem calling balanceOf from another contract

I try to learn solidity and i have a problem. I've created a base token and i want to call the balanceof method from this token in another contract. In Solidity Remix i get : call to BaseTokenBet....
0
votes
1answer
39 views

How to optimize ETH donations in an ICO when receiving ETH from an exchange? (Best user experience)

I'd like to make raising funds in ETH as easy as possible. This is the flow that I'm imagining for my average user: 1) User visits my ICO page 2) They download a key and address file generated in-...
0
votes
1answer
63 views

What should gas prices be for sending out tokens?

I constantly get failed transactions when sending out tokens like USDT using metamask. I have my gwei set at 10 and the gas limit at 21000. I even tried gas limit set to 51000 and it still fails. ...
0
votes
1answer
21 views

Can I record the Time taken for a transaction to complete in Test Net

I am trying to benchmark the time taken for a transaction to execute, can anybody advise me is there anyway I can record the time taken for smart contract transaction to complete?
0
votes
2answers
65 views

How to make token for exchange such as bittrex? I'm interested only in technical side of this question

Should I set a starting price for the token? Is there a source code for the token for trading on the exchange?
2
votes
2answers
709 views

Constantly getting “Gas estimation failed” error when attempting to deploy ERC20 Token contract on Rinkeby testnet

I have included the code for the contract below. The error I get when attempting to deploy in remix via metamask is: Gas estimation errored with the following message (see below). The transaction ...
0
votes
1answer
45 views

How to view or transfer initial ethereum smart contract balance?

I created a new smart contract token with initial supply and deployed it via MetaMask. Then I added this token into MetaMask but token balance is Zero. Now, My question is when we create a new ...
1
vote
1answer
60 views

Etherscan api for Ropsten testnet

I found this endpoint is to obtain the token balance from Ethereum blockchain, however, I noticed that this function doesn't work on Rospten network. Please advise https://api.etherscan.io/api?module=...
0
votes
1answer
30 views

How to give out ERC20 tokens w/o receiving eth?

Is there a way to give out ERC20 tokens indiscriminately under a certain condition, but not by receiving eth? i.e without using the fallback function?
0
votes
1answer
36 views

ERC20 transfer showing as 0 but log shows different

Checking the transaction https://www.etherchain.org/tx/e12af4940879c634a63d2c9629449695e07650a4e419e5822ddb18d8469e9948 anyone can check there were 3 DigixGold token transfers. These transfers are ...
2
votes
2answers
443 views

How to transfer Ether to ERC20 token contract?

I have a function that needs to make transfers to a token smart contract as well as personal accounts upon satisfaction of some conditions. function completeSale() onlyOwner public { if (...
0
votes
2answers
319 views

How to create unique contribution addresses for a referral system by smartcontract

I ran into some trouble with my smartcontract. I want to be able to allocate referral tokens to each person who participated in the ICO referral program. In order to do this, the smart contract must ...
4
votes
2answers
45 views

Is there an ethereum android wallet where I don't have to manually add in tokens I have and just auto detects it?

Using coinomi or even metamask on chrome is quite annoying as I need to manually add in tokens I have in my account and it doesn't auto show up. Is there an android or desktop ethereum wallet that ...
0
votes
1answer
46 views

how can I pair my ERC20 token with Ethereum

I am building an exchange and i just want to know how this pairing thing works. How can I pair my ERC20 token with other crypto assets like Ether and BTC?
0
votes
3answers
282 views

CrowdSale basic contract sample showing Gas limit error

Hello I have copied Basic contract from official website https://ethereum.org/crowdsale I'm beginner in Solidity and Ethereum development It was successfully compiled by Remix but when I click "...
0
votes
1answer
22 views

Are there any glaring vulnerabilities in this example token-creation contract?

https://www.ethereum.org/token#the-code If I were to deploy that, or something very similar to it, would I be at risk of any obvious exploits or is it actually alright? Not that my play token will ...
0
votes
1answer
104 views

ERC20 - Approve & TransferFrom not working

The getTokenBalance function seems to retrieve data from the ERC20 contract just fine so I don't think there is an issue with how I'm using the interface. Additionally, I also tested out separating ...
0
votes
0answers
191 views

how to integrate USDT erc20 token to make transfer and check balanceof?

I want to integrate USDT token to make transfer and check balance of USDT in my java with the use of web3j, how can i accomplish this? i able to create wallet and use of ethereum, but i dont know how ...
0
votes
1answer
38 views

Create multiple tokens for a unique property

here is the idea: we assign a set of unique tokens to a company and then we allow people to buy some tokens and get partial ownership of that company. How can I achieve this? I was thinking of ...
1
vote
1answer
314 views

Custom token sent to wallet , does not show in wallet

I am using the rinkeby test network and i created a custom token using the basic code stub given on the ethereum.org site. So I transferred to another account which is also on the rinkeby network. But ...
0
votes
1answer
23 views

tokens within tokens in ERC20

I want to make a token on ERC20 and that would be staked, and other token would be rewarded as on interest earn. After certain time, that earned token being staked, and third token will came out as on ...
0
votes
1answer
26 views

price of Token distrubition

can someone tell me how the transaction work is it in USD OR Price of ETH / BTC ? lets say 1 ETH = 900 $ TOKEN GIVEN 3000 when the price increased to 1000 $ then the token given to investor will ...
0
votes
2answers
621 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 ...
0
votes
1answer
34 views

Why my tokens aren't visible to the address sent in etherscan?

I've flattened the code and fixed the warning. But the problem with the contract is that the tokens are not visible in the addresses when searched with etherscan but when I try to add through Metamask,...
3
votes
2answers
38 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
24 views

Minitng tokens automatically over a regular periods of time

Is there maybe a way to program a contract to mint a certain amount of tokens over regular periods of time automatically? Say, I would like a contract to create 1 000 new tokens once a year on Dec., ...
0
votes
2answers
332 views

Add Custom Data to ERC20 token transfer

I'm in a situation to implement the following scenario, Need to transfer ERC20 standard token(own by my contract) to some another wallet. When recording transaction on Ethereum, need to add custom ...
2
votes
1answer
45 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); ...
5
votes
2answers
1k views

ERC20 :: Transferring tokens without sender gas

Let's assume we have 50 ERC20 tokens that we would like to support (deposits) on our website. People are depositing tokens to the ETH adresses we've generated for them. In the end of the day, we want ...
0
votes
1answer
29 views

How to differentiate a smart contract from a common wallet?

Having an Ethereum address, I need to check whether it is a wallet or a token (ERC-20 contract). How to check? (I need to implement it with Web3js.) Ideally, it should also reject contracts which ...
0
votes
1answer
42 views

Get ETH and Token Balances of Wallet address

How do I get a simple and fast balance of ETH and all Token owned/stored within a wallet address? I have seen similar question and the closer answer was in this demo: http://wbobeirne.com/eth-...
0
votes
1answer
125 views

The rank of Bittrain coin [closed]

I would like to but a bittrain coin. I have gone through the list and I cant find it ranking. Can I buy it on this platform?
0
votes
1answer
125 views

Initial ERC20 Token supply split into 2 or more hardcoded addresses

don't know if someone can help me, but let me explain my problem. For more transparency in my ERC20 token generation smart contract, I want to hardcode the Team Pool (0xA) and Crowdfunding Pool (0xB) ...
1
vote
1answer
29 views

Ethereum Node I want to export transactions from a token

I have an Ethereum node running and I am wanting to export transaction history for a specific ERC20 token to a local database every 10 minutes. Does anyone have any suggestions on how they would do ...
0
votes
1answer
20 views

How to create smart contracts and tokens without using any cryptocurency?

I am new to Blockchain and I have read to create tokens smart contracts are required and to create a smart contract,ether is required. I wanted to know is there anyway I can create tokens without ...
2
votes
1answer
60 views

Ether in ERC-20 transactions?

I have one contract that I give tokens from a ERC20 contract implemantation. When I call the balanceOf function from the Token conract. Response me that I have x Tokens. Nice !! But when I try to ...
0
votes
1answer
36 views

How to authorize multiple contracts issue the same ERC20 token?

I have a physical product to sell. I want to have a digital asset representing each unit of my physical asset. I have created an ERC20 token contract and each token represents a unique instance of the ...