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
56 views

Cap is not showing actual amount after deploying contract on Main Ethereum network

I have deployed a crowdsale contract with bonus stages on Main Ethereum Network using remix.ethereum.org. I have set a Cap amount of ether in wei as my goal. After deploying contract, I looked into ...
0
votes
0answers
16 views

GasToken.io free transaction fails above certain 'threshold'

I've played around with the gastoken.io GST2 contract in remix (and on the mainnet) and immediately stumbled across the following problem: If I want to free previously minted token the execution of ...
0
votes
3answers
331 views

What is the right approach to implement payable fallback function in crowdsale contract?

I am implementing crowdsale smart contract to accept ether and invoke ERC20 smart contract to assign tokens count calculated depending on the amount of ether invested. I heard that just implementing ...
2
votes
2answers
743 views

Gas estimation failed in Remix

Can't really use the transfer function as it is written. It assumes the owner uses it. So made a new function for the "minting" function for the faucet to use. Not sure why the compiler message is so ...
1
vote
2answers
68 views

MEW says not a valid erc20 token but don't see errors

I created a token prior to this one that is fine. I used the same template, followed the same exact steps to create another token but getting the not valid erc20 error. https://ropsten.etherscan.io/...
0
votes
0answers
131 views

ERC20 token transfer transaction reverted

I'm trying to transfer token using ERC20 token transfer method using web3.js (version: 1.0.0-beta.37). I could successfully transfer tokens with Remix as the method is working fine. However, I got the ...
0
votes
1answer
63 views

How to customize/modify the default startup url in Mist brwoser for ERC20 tokens on Ethereum?

Hi I am making an ICO wallet. I know Mist browser(https://github.com/ethereum/mist) has a lightweight version coming up soon and ConsenSys(https://github.com/ConsenSys/eth-lightwallet) has one, but I ...
0
votes
2answers
124 views

How do I make sure that no one else deploy crowdsale on my token except me?

I have ERC20 fixed amount token, And I want to deploy pre-ICO crowdsale and later ICO crowdsale contracts. How do I make sure that no one else deploy crowdsale on my token except me?
0
votes
2answers
80 views

Adding mincap in the crowdsale code and returning the funds on not reaching the goal

I have generated a crowdsale contract and i want to add mincap to the crowdsale so that after reaching the mincap and not achieving the goal, the crowdsale will return all the funds to the investors. ...
0
votes
1answer
16 views

Can someone send their stable coin ERC-20 tokens to my smart contract?

Here is a business case. Two people own an asset, and they estimate the annual maintenance on that asset is $1000 over the next year. So they each want to put $500 and lock it up in my smart ...
0
votes
1answer
111 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 ...
2
votes
1answer
83 views

ERC20 with custom sale mechanisms?

Let's say I want to create a token, but I don't want this token to be exchanged too freely, in order to avoid too much of speculation (real estate for example). People willing to sell the asset will ...
0
votes
2answers
21 views

How can I talk to other contracts and store their function call returns as variables?

For example, I want to grab the current borrow rate for a token on compound.finance. In this contract InterestRateModel.sol, is there a way to call getBorrowRate from my own contract and get the ...
1
vote
1answer
61 views

personal_sendTranaction for token tranfer return hash but transaction isn't found in the blockchain

I am using Geth as a provider to the blockchain. I perform JSON-RPC method send_Transaction to transfer tokens, it returns me hash of the transaction but I can't see this transaction in the Etherscan. ...
1
vote
2answers
230 views

Issue with autonomous contract calling erc20 token's transferFrom for approved amount

Trying to transfer fund using ERC20 token handle and calling 'transferFrom'. Assume that the specific amount is preapproved by owner account for 'MyContract' contract address. contract StandardToken {...
2
votes
2answers
393 views

ERC-20 contract from another contract

I am trying to create contract which can access functions of any ERC-20 standard token contract. At first, I'd like to get balance of given address. I run private testnet using geth, I have deployed ...
0
votes
2answers
35 views

Super simple token with Open Zeppelin

I want to create a super simple token for my community. I read some tutorials and I found this code: pragma solidity ^0.5.2; import "./lib/oz/contracts/token/ERC20/ERC20Pausable.sol"; import "./lib/...
0
votes
1answer
64 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 ...
1
vote
1answer
69 views

Constructor Arguments ABI-encoded - verification not working!

I think I must be going blind or something because I can not find the Constructor Arguments for this smart contract 0x3a2F46b0B0c187B152Db0c658b27E693f0A273a1 I have tried a number of options but ...
0
votes
1answer
81 views

How to implement smart contract

I am studying Smart Contract with solidity. I can't understand something, so I want to get expert advice. I logged in to the Upbit exchange to trade the golem's token. The Upbit exchange gave me a ...
0
votes
0answers
20 views

SendSignedTransaction is not sending tokens

I tried to use sendSignedTransaction function, it signed and sent the transaction successfully(i think), but it's not transferring tokens as it ought to. It's basically not doing the intended task 😔 ...
0
votes
0answers
15 views

What must I do for withdrawal from vesting contract?

I created my token and my token's codes are same with Matic token's codes. Also my vesting contract code is same with Matic token(https://etherscan.io/address/...
0
votes
0answers
15 views

How can i send transaction with the another “From” address

I have created two test tokens and a contract. But when i call transferFrom function with web3 (i called approve function first), it is successful when the from address is the account that deployed it ...
0
votes
1answer
205 views

Etherscan shows my contract has RPC errors

I deployed my token contract using Remix. I tested it in Ropsten several times and all was well. When I finally went to deploy it on the mainnet it deployed fine so it seemed. But in etherscan it ...
2
votes
1answer
79 views

Best practices on handling both ether (Ξ) and tokens

I'm writing a contract which should handle both ether (Ξ) and ERC20 tokens. I know that many dApps use WETH and I understand what it does, but I'm not sure if it's used because it's the most efficient ...
0
votes
2answers
42 views

Could I use Infura to get the token details?

I went through https://infura.io/docs but not sure if Infura could allow me to read token details like owner, token Id, etc. I also googled on how to read token using Infura but to no avail. Has ...
0
votes
1answer
83 views

Send Tokens To Address, or Public Key?

I had a look at this video https://www.youtube.com/watch?v=vhdDQXLCRpE I can send tokens to MyEtherWallet from my exchange. Do I have to withdraw to my public key? Or, can I send it to one of my ...
1
vote
1answer
71 views

How will tokens like ERC20s work with sharding?

If the token contract is made now on what will be the main chain, but long term it is desired for the application to run within a shard, will the tokens ever be able to be sent there? The map of ...
0
votes
1answer
78 views

Crowdsale delayed few hours from the start date

I am new to Solidity and I have generated a Crowdsale contract using the following parameters on Ropsten test net. Start Date : 1514215525 which is equal to 12/25/2017 3:25pm End Date : ...
0
votes
0answers
8 views

Retrieving ERC-223 token address on tokenFallback() function

I made a sample smart contract that can update the value of different existing ERC-223 tokens received in the contract as below. Assuming that the IERC223 was taken from here. address[] ...
1
vote
1answer
108 views

Getting and storing address of erc20 contract after dynamically creating it

I have a function which dynamically creates an ERC20 contract on calling a function in another contract as follows: function createDao(string _tokenName) public payable { tokenNumberIndex = ...
0
votes
1answer
234 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....
0
votes
1answer
70 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 ...
0
votes
1answer
253 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... ......
-1
votes
1answer
17 views

How can we use private chain token in public chain?

I'm software engineer in japan. now, I'm trying to create a dapp by using private chain like kaleid, then will create token in private chain. In the future, I'd like our token to be listed to ...
2
votes
2answers
28 views

How to generate a new token for ERC1155?

Developing an ERC1155 contract, how to generate an address for a new token? I need to create an API function like function createToken() returns (address). How? Should I just use an incrementing-by-...
0
votes
1answer
22 views

Smart Contract Transfer Event Log Data & transfer _value [Rust]

I'd like to have a better understanding of events and logs data, more specifically when it comes to interacting with ERC20 tokens smart contracts and their Transfer events. I'm looking for a way to ...
0
votes
1answer
17 views

How can I find the block where a user enacted a certain event on a contract?

I'm trying to build a web3.py program to take in a given user's address, and return the amount of ETH traded since they added liquidity to a Uniswap exchange. Uniswap is a smart contract on the ...
0
votes
2answers
418 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 ...
0
votes
1answer
117 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 ...
2
votes
1answer
129 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 ...
2
votes
1answer
20 views

If external function declarations are saving gas, why aren't we using it for the transfer functions?

All the source code I could find (to date) has declared transfer, transferFrom, approve, approveAndCall as public and not external. Although external can be used, what is the reason behind not using ...
0
votes
1answer
147 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
20 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
217 views

understanding value on token transfer transaction

When a token transfer transaction has an ether price associated with it, is it fair to assume that that transaction used ether to buy the tokens? For example, this transacion triggered by account A ...
0
votes
2answers
621 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 ...
1
vote
0answers
10 views

Offchain voting

Are there any voting based approaches where voting would happen off chain, via signed messages, but then the result could be indepedently verified or even stored on chain? Voting rights are based on ...
0
votes
1answer
168 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
2answers
108 views
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 ...