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

connect users to the sidechain SKALE

SKALE is Ethereum Dapps to run high speed, Low cost smart contract layer. I wish to connect users to the sidechain SKALE,from their browser. automatically without the manual change as necessary for ...
0
votes
1answer
23 views

Can a Coin be liquid during its ICO period?

I am planning to run a Coin's ICO for several years, not interested in the gains to be made from selling out ICO in 3 days NO, but interested in using the COin to end Global Poverty as i deem fit. So ...
0
votes
1answer
33 views

Ethereum Smart Contract with Custom Fee and Percentage of the collected Fee Distrusted token holder

I wanted to know is there a possibility to create a smart contract for a token wherein the transaction fee could be overridden with the network fee and the fee collected on the transaction can be ...
0
votes
1answer
25 views

Refill Ether to account after token transfer

During token creation and token transfer some ethers are used as gas. What is the most efficient way to refill an account with the same amount of ether? So that it doesn't run out of funds(ether). I'm ...
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 ...
0
votes
0answers
25 views

how to implement erc1400 standard?

I am trying to learn about erc1400 and its implementation but couldn't find any complete implementation guide. Can someone points me to relevant links regarding erc1400 complete end to end ...
0
votes
1answer
48 views

TOKENS transfer

How do I transfer Dropil tokens from my Ether wallet to another ether wallet. I tried to search the way to transfer the tokens but did not find the way. Only ether transfer facility is there.
0
votes
1answer
33 views

How to request tokens from msg.sender within contract function

transferring ethereum from the user of your smart contract is simple enough, you simply use msg.value and can use this within your contract's functions. But doing the same thing with tokens is a bit ...
0
votes
0answers
14 views

Is it legal create an algorithmic trading cryptocurrency fund for social groups around the globe to pool in their money?

Is it legal create an algorithmic trading cryptocurrency fund for social groups around the globe to pool in their money? What is the viability of this project in terms of regulatory compliance?
0
votes
1answer
36 views

How can i know my smart contract , compilar version.I cant verify my contract properly

I want to know compilar version of my smart contract.(https://i.stack.imgur.com/6K5sM.png)
0
votes
1answer
49 views

Can't deploy on https://wallet.ethereum.org: DAO

I'm writing Decentralised Application. I've added function vote() an function changeName(). After that my code can't compile on wallet.ethereum.org. Though remix.ethereum.org shows no mistakes. ...
0
votes
1answer
73 views

Which exchanges are currently the best and easiest to list ERC-20 tokens on?

Which exchanges are currently the best and easiest to list ERC-20 tokens on? Hello, I am issuing ERC-20 tokens at the moment. Which exchanges are the best and easiest to list tokens on at the ...
0
votes
2answers
35 views

How to restrict ICO investors to redeem their ERC20 tokens while not restricting them to trade tokens among themselves?

We want to create an ICO where investors can purchase ERC20 tokens anytime but have to wait for atleast 3 months from the date of purchase in order to redeem/encash them on our platform. But we do ...
1
vote
1answer
95 views

can etherscan.io show local ganache transaction details?

I am purchasing tokens on my sample Dapp with ganache-cli account using metamask. Metamask shows the confirm message and deduct the ether from total balance but in token section it still not update ...
0
votes
1answer
251 views

error: VM Exception while processing transaction: revert SafeMath: subtraction overflow on migrating crowdsale conract

I am developing the token sale Dapp using openzepplin-solidity version 2.3. While migrating, I got the following error. Returned error: VM Exception while processing transaction: revert SafeMath:...
0
votes
1answer
71 views

Static Analysis raised 9 warning(s) that requires your attention. Click here to show the warning(s)

I receive these warnings in REMIX so the question is: Can I compile my contract and then verify it regardless of these warnings? pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a,...
0
votes
2answers
64 views

Help with ERC20 Contract

I sent tokens to my contract address instead of to my myetherwallet address from an address that the tokens were previously sent some time ago. Now I have no access to the amount sent to this address. ...
0
votes
2answers
49 views

Self-destributing token contract template

Self-destributing token contract template Hello, Are there any complete templates or resources for making a token which distributes itself when funds are sent to the contract? I. e. user sends 0.01 ...
0
votes
2answers
158 views

How to set and get marketprice of token in contract? [closed]

I am building a simple erc-20 token. I don't have an idea as how token price is setup. However, I need to get my token's market price inside another contract. If you see this example of token BOMB, it ...
0
votes
2answers
68 views

Why should I use an ERC-721 token to store data instead of a Smart Contract

Taking CryptoKitties as example, I'm sure it's possible to achieve the same concept of Crypto Collectable creating new kitties as Smart Contracts instead of using Tokens. Which would be the ...
0
votes
1answer
125 views

Custom token showing balance of 0 in MyEtherWallet

I made a new token on the Ropsten test network. Here's the contract address: 0x801fd9c17087ec868dc8540055b7ea3cb6dbbe34. When I followed the instructions to add this custom token to MyEtherWallet (by ...
0
votes
1answer
61 views

Is it possible to burn the balances of a contract from another contract?

Imagine the scenario in which contract A has in its possession 1000 tokens (of the contract itself). is it possible to create a second contract and burn the tokens of contract A? contract ContractA ...
0
votes
0answers
18 views

Smart-contracts referencing each other [duplicate]

How would one retrieve these three addresses in the "Knot" smart-contract? I am very new to this, and would like to know whether this is even possible. The "Knot" contract should be able to reference ...
1
vote
2answers
4k views

Get the value of ERC20 tokens transferred using the Etherscan API

I am using Etherscan API to get transaction and other details for addresses. I need to find out no. of tokens transferred between two addresses. For Ex - for Below TxHash I see 1564+ tokens ...
7
votes
2answers
5k views

Decimals on ERC20 Tokens

I'm having an odd problem working with some ERC20 token contracts I've written: When I specify a decimal value, let's say 4 here for simplicity, the values show up differently in Mist vs etherscan. ...
2
votes
1answer
2k views

How can I view all the tokens and contracts associated with an ethereum address in Javascript using Web3.js?

Is there an example js code that uses web3.js to query the Ethereum blockchain to see all the tokens and contracts associated with an Ethereum address? I'm looking to make an ethereum wallet and want ...
3
votes
2answers
213 views

Confidential value transfers

Is there currently any way to do confidential transactions with Ethereum for a custom token? If not, is there any work/research being done on how this might be possible?
1
vote
2answers
33 views

Which erc token to use?

I wonder someone could give me some advice. I am planning to work on a Ethereum project with a Solidity smart contract. The smart contract should contain tokens which can be earned by a person by ...
0
votes
0answers
31 views

ERC-20 Token Transfer Error (Unable to locate Corresponding Transfer Event Logs), Check with Sender

EtherScan.io is showing error: The ERC-20 Token Transfer might have Failed (ErrCode: unable to locate corresponding Transfer event log), check with sender. Transactions are successful and the ...
0
votes
1answer
80 views

Possibility of creating a token where transfers have to be approved by a third party

just wondering if anyone here knows if it is possible to create a token contract where by the token transfers have to be approved by a third party. Thanks!
0
votes
1answer
40 views

Wrong estimation of gas while contract deployment

I have a smart contract: pragma solidity 0.5.3; import "./ERC20.sol"; contract Transfer { ERC20 private erc20iface; address private _owner; modifier validOwner() { require(msg.sender == ...
0
votes
1answer
13 views

Measuring elapsed time between user erc20 token transfers with lazy evalutation

So I'm learning solidity and wanted to make an erc-20 token after reading the solidity by example docs. Let's call the token T. I would like to measure the elapsed time between two transfers of an ...
4
votes
1answer
729 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 ...
0
votes
1answer
23 views

Is Smart Contract of any ERC20 token is always available publicly

Is Smart Contract of any ERC20 token is always available publicly. If not complete, then what things are generally available,(for eg, except some sensitive information) And, if not any of them are ...
1
vote
1answer
38 views

Is there a token standard that allow for future minting and burning of tokens?

I am interested in an ethereum token with the functionality for an operator to mint new supply at any time. It would also be nice if the operator could burn supply explicitly rather than sending to an ...
1
vote
2answers
40 views

Make a crowdsale reusable?

I have a pretty standard OpenZeppelin crowdsale. Now the issue is that I want to be able to use one crowdsale contract with multiple (~100) different ERC20 tokens. Ideally I want to put the ...
0
votes
1answer
19 views

Parser Error - Creating EIP20 Tokens

function transfer(address _to, uint256 _value) public returns (bool success) { require(balances[msg.sender] >= _value); balances[msg.sender] -= _value; balances[_to] += _value; emit ...
1
vote
1answer
89 views

Percentage calculation

I'm currently learning how to write smart contracts. While studying some code, I came across this line: ‭ uint256 a = value.ceil(basePercent); (with: uint256 public basePercent = 100;) Then one ...
2
votes
4answers
271 views

How to interacting with existing ERC-20 token on testnet?

I'd like to interact with ERC-20 tokens transactions on testnet (preferably ropsten). Are there any ERC-20 tokens faucets? Is it common that token issuers deploy their contracts on testnet? What ...
0
votes
1answer
41 views

ERC20, how to calculate how many tokens for crowdsale?

If you look at this article, the total tokens for crowdsale is 100 tokens and defined in the code as uint256 public maxTokens = 100000000000000000000; how come 100000000000000000000 becomes 100 ...
0
votes
1answer
35 views

Code A Contract To Accept A Different Token (Other Than ETH)

I'm developing a DApp for Decentraland that will accept payments in their ERC-20 token MANA. How can I code a smart contract to accept a token other than Eth? How can msg.value know the value of a ...
0
votes
2answers
36 views

use the caller of the wrapper function to call the inner function

Suppose, I have 2 contracts A and B: contract A{ function someMethod() public{ // Something happens here } } And contract B containing its instance and its wrapper function ...
7
votes
2answers
1k views

How to implement the ERC777 token standard?

Does anyone know how to correctly implement the new ERC777 token standard? I've been trying to create an ERC777 contract (see code below) but keep struggling with a couple of things. According to ...
2
votes
2answers
39 views

What is the latest implementation of approveAndCall() - Solidity ˆ0.5.0

Just curious for some background on approveAndCall() 1) Is it initially an ERC223 method ? or is it officially part of the ERC20 interface ? 2) Also Im working with an old contract so Im wondering ...
1
vote
1answer
52 views

Tokenomics modeling

I am trying to obtain reliable information about transactions done with ICO tokens after they have been bought (spent, burnt, sold) in order to test with them the different cryptoasset valuation ...
0
votes
1answer
38 views

How do we communicate with contract functionality which is deployed in public test network using web3j [closed]

I would like to write a wepapp for security token contract which is deployed in public Ropsten Test Network using web3j. Need some idea. Thanks in Advance
1
vote
1answer
437 views

Create an ERC20 Stablecoin [duplicate]

How to create a stable coin with an ERC20 token contract ? Does it require contract to be modified ? Are there some good practices or standards ?
1
vote
0answers
50 views

How and Why other should buy and sell my ICO token? [closed]

When I invest or create a token, I am hoping someone in the future will want to buy it at a higher price. Why would anyone buy my tokens to use the platform if the price of the token keeps increasing ...
0
votes
1answer
28 views

How can I wait if it's not possible in smart contracts? [duplicate]

From my understanding, waiting in a solidity smart contract would create a total disaster for the whole Ethereum's blockchain. I can see in some circumstances that solidity offers block.timestamp ...
0
votes
1answer
52 views

How to swap tokens?

Say I have a X token and Y token and I want to swap X tokens in exchange for Y tokens. How can i do that? Its like during crowdsale, instead of using ether to buy the Y token I want to accomplish the ...