Questions tagged [tokens]

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

319 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
381 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
1k 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 ...
5
votes
2answers
83 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
1k 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
111 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
91 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
263 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
1answer
102 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 ...
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
2answers
251 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 {...
3
votes
0answers
824 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
372 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
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
830 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
46 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
29 views

Address to create a contract

This query is for informational purposes, with something that has had me in doubt all night. I am trying to send a self-signed transaction for the creation of a contract My Tx transaction to send is ...
2
votes
2answers
126 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
0answers
73 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
35 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 ...
2
votes
2answers
138 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
104 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
45 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
78 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
152 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
556 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
1k 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 ...
2
votes
0answers
64 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
369 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
113 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
2answers
641 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
867 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
151 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
289 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
269 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
1answer
128 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( ) { ...
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
354 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
466 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
557 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
521 views

Ethereum Solidity Contracts w/ Fiat Money

Is there anyway to fix a price for a ERC20 token? It seems like a major problem with blockchain and crypto is all of the volatility, which is why I am hesitant to use it for applications even though ...
2
votes
2answers
520 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
440 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
423 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
483 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
721 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
214 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
779 views

How to access Token functions in remix.ethereum.org?

I'm looking at Crowdsale.sol from OpenZeppelin / zeppelin-solidity. Here's a snippet: import '../token/MintableToken.sol'; contract Crowdsale { MintableToken public token; After I create the ...
2
votes
0answers
135 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
344 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
245 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 ...

1
2 3 4 5
7