Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [tokens]

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

289 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
359 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. ...
6
votes
2answers
985 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 ...
4
votes
2answers
44 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 ...
4
votes
1answer
954 views

how to call smart contract function in C#.net core

protected async void Page_Load(object sender, EventArgs e) { var senderAddress = "0x605a1f8d368cbdd4d0a5cbad74f75c428660f17b"; var password = "zxcasdqwe123"; ...
4
votes
0answers
106 views

Autorefill isn't working on Improved Coin code

I've been trying to write a token contract with the autorefill function, but perhaps the code for the token example on the ethereum website is somewhat outdated, because it isn't working. Did anybody ...
3
votes
0answers
74 views

Invalid JSON RPC response on IOS build with Infura

I am developing a mobile DAPP using ionic frame work, everything was fine when I testing on the browser. However I try to build my app on IOS, and run it on my Iphone7, the web3 doesn't work(did't ...
3
votes
0answers
179 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. ...
3
votes
2answers
2k views

Web3j - sending erc20 token

I would like to ask how to correctly send ERC20 Token from a wallet to another wallet , followings are my codes : public static void main(String[] args) throws Exception { Web3j web3 = Web3j....
3
votes
1answer
331 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.
3
votes
0answers
811 views

Not able to claim EOS tokens through MyEtherWallet

I was following this guide to acquire EOS tokens: https://steemit.com/eos/@sandwich/contributing-to-eos-token-sale-with-myetherwallet-and-contract-inner-workings Did step one first. Seemed to work ...
3
votes
0answers
369 views

How does a token crowdsale or ICO work for a permissioned Blockchain project?

Filecoin, for example, ran their highly successful ICO on the Ethereum blockchain, though they are gonna operate on a different chain. AFAIK, main-net tokens can't be used on a private chain. Makes ...
3
votes
1answer
704 views

Smart Contract with stable coin

Is there any stable coin, which can already be used with smart contracts? If not, is there a possibility to exchange a stable coin in real time into a smart contract feasible coin like ETH by help ...
3
votes
0answers
1k views

How can we lock an ERC20 token in a contract and generate another ERC20 token proportionally over the locked duration?

"Gnosis tokens (GNO) are the generator for Wisdom token (WIZ) creation. WIZ can only be created via activating the utility of the Gnosis (GNO) tokens. This is done via a smart contract system. The ...
3
votes
0answers
828 views

Tutorial on Ethereum wallet, create your token: strange behaviour

I've followed the tutorial here using ethereum-wallet (mist) 0.5.0. I'm running geth on a custom network launched as: geth --datadir ~/ethprivatechain/testing/01/ --networkid 42371325 --nodiscover --...
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 ...
2
votes
0answers
36 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 ...
2
votes
2answers
94 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 ...
2
votes
1answer
57 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 ...
2
votes
1answer
39 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 ...
2
votes
1answer
43 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); ...
2
votes
0answers
133 views

Send ERC20 Tokens from Fixed Supply Token Contract to TokenCrowdSale Contract

For ICO Crowd Sale I have created 2 contracts one is MyToken.sol & other is MyTokenCrowdSale.sol. MyToken.sol creates fixed supply ERC20 tokens. contract MyToken is DetailedERC20, StandardToken { ...
2
votes
1answer
500 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#...
2
votes
2answers
715 views

Gas Estimation Failed in Remix

Found my own problem. 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 ...
2
votes
0answers
59 views

Gas Estimation Failed for Airdrop for sending Tokens to Multiple Addresses using Remix

I have deployed a Crowdsale contract and now I need to send my Tokens to a list of addresses using remix and injected web3. I am using below code for Airdrop but when I send tokens to multiple ...
2
votes
2answers
292 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....
2
votes
0answers
91 views

Can a token store funds like an escrow and still meet ERC standards?

In one of my contracts, a user creates an escrow that stores some important information. These escrows are bundled together and passed to another contract, which sends the user tokens. The tokens are ...
2
votes
1answer
82 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 ...
2
votes
2answers
370 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 ...
2
votes
2answers
702 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 ...
2
votes
1answer
128 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
0answers
261 views

transfer function is not working for the smart contract

Below is the Scenario of the problem: I made some changes in the real concept because it will hard to understand the problem so I try to make it real simple. I make a contract to facilitate some ...
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 ...
2
votes
0answers
1k views

How to transfer ERC20 tokens from a multisig wallet?

How can I transfer ERC20 tokens from a multisig wallet? According to this question, it is possible to send a token from a multisig by setting the to parameter as the token contract's address and ...
2
votes
0answers
323 views

How can I use Geth to get all tokens on an Ethereum address?

Having an ETH address, how can I programmatically see what tokens are on this address? Currently I have a list of tokens and a loop that checks balance on the ETH address for each contract address, ...
2
votes
0answers
433 views

How to check token transactions with geth

I'm new to smart contracts, my apologies if this is a wrong approach. I want to monitor incoming (confirmed, not caring about pending) token transactions to my wallet (using geth). I found out how to ...
2
votes
1answer
537 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 ...
2
votes
2answers
473 views

Consolidate Batch of ETH Wallets w/ERC20 Tokens?

I have a large number of Ethereum wallets with small amounts of ERC-20 tokens in each. How can I send all of these tokens to a single ethereum wallet without doing this process manually? (it would ...
2
votes
1answer
422 views

How do I find my DBET tokens in MyEtherWallet?

I mistakenly bought DBET tokens directly from my Exodus wallet. I used the public key of Decent.bet (DBET). I assume I should be able to find/see my DBET tokens in MyEtherWallet, but I do not know ...
2
votes
0answers
421 views

Token contract and crowdsale contract deploy

I am Testing with an Ethereum Based token contract and i would need some help deploying the Token contract and Crowdsale contract. I already have done this, deploying booth contracts and allocating ...
2
votes
0answers
454 views

Can I store data in an ERC20 token?

Can i store data, e.g. a string inside a token? If so, this data will follow the token around if I transfer it to someones wallet?
2
votes
0answers
715 views

Difference between a Protocol Token and a Dapp Token?

I've seen tokens referred to as "protocol tokens" and "dapp tokens", as far as I can tell they are on in the same. Maybe a protocol token is simply a dapp token with a published ABI? There's even ...
2
votes
0answers
213 views

How is Ethereum Plasma different from Ardor's Parent Child chain feature?

From my understanding Ethereum's plasma is similar to Ardor's parent child chain feature, but what are the main differences from these two technologies? Ardor is fully proof of stake and it lets you ...
2
votes
0answers
133 views

Very big fee for token on testnet

I'm new here and try to make my own token. I kinda made it actually, but fee for it is very big(cheapest one is 0.65 eth). Here's my code: pragma solidity ^0.4.13; library SafeMath { function mul(...
2
votes
0answers
324 views

How exactly does a unique asset get tokenized?

Say I have a set of assets, each with their own serial# or unique Id. How exactly would I create tokens linked to each asset that could be traded on a 1 to many basis? (ie: trade this one special ...
2
votes
1answer
243 views

Token Factory total supply is missing

So I created a token using Token Factory. I hadn't used it before and wanted to test things out, so I did this on the Ropsten Test Net. I was able to successfully publish the contract, which shows ...
2
votes
0answers
60 views

Getting garbage after calling property in another smart contract.

I'm using liquid democracy contract from https://www.ethereum.org/dao This is the relationship. Shareholder Association has this definition when pointing to liquid democracy contract. contract ...
2
votes
2answers
20 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-...
2
votes
2answers
439 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 (...
1
vote
0answers
8 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 ...
1
vote
1answer
81 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 ...