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
1
vote
1answer
9 views

Maximum totalSupply of an ERC-20 token? And is it different for any other ERC specifictiond?

uint256 This storage implies that it should give us a max totalSupply of 2^256 - 1. A HUGE number. Note: I only need to store integers, not fractional values for my application. Is this true? Is ...
0
votes
1answer
198 views

COB token transfer failed with error: “Bad Instruction”; will I get my tokens back?

I transferred 10 COB tokens from my one address 0x782e265f911167e4FDbfbFb63a32cC27341724E7 on my Metamask wallet to another Metamask wallet address 0x0a42AD94FC81db989575365Be28DCd64417Ce564 but the ...
1
vote
2answers
356 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
1answer
25 views

Sending transaction from different addresses in truffle test case

I am having an admin in my contract who can do certain things. Here is the contract function changeAdmin(address admin_) public { if (msg.sender != admin) revert(); potentialAdmin = admin_; }...
0
votes
1answer
31 views

Zepellin Crowsale buyTokens error

I'm trying to use the buyTokens function of the Zepellin Crowsale interface, but this gives me an error, without any log to be able to debug contract TokenA is MintableToken, PausableToken, ...
1
vote
1answer
161 views

What data should be stored in contracts or tokens

After watching a sales force movie where they have a session on how they are integrating their product into the blockchain they talk of an example on capturing all the data from the supply chain ...
0
votes
0answers
9 views

Why can only operators transfer between partitions (ERC1400)?

I came across this line in the ERC1400 implementation (by polymath I believe). if (operatorData.length != 0 && data.length >= 64) { toPartition = _getDestinationPartition(fromPartition,...
0
votes
3answers
496 views

How to set rate in decimals in solidity?

I want to set my price of token sale in ICO as 1 ether=0.0111111111. Since, solidity doesn't support decimals, what is suggested way to do that?
1
vote
1answer
30 views

transferFrom error. Exception thrown in smart contract transaction

I compiled smart contract in solidity on remix.ethereum.org. I made account via MetaMask and want to let other addresses send tokens to themselves using ropsten network. I mean - I am contract owner = ...
2
votes
2answers
359 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....
0
votes
1answer
64 views

Ethereum Contract Scalability (Single vs Multiple Contracts)

I am writing a token swap contract on Ethereum Blockchain to manage ERC 20 token swap in an exchange. The Questions is that in terms of scalability, which of the following two options would be better ...
0
votes
2answers
194 views

Smart contract with authorized actions based on addresses

I want to build a service where users can sign up (off-chain) to get credentials which give them the right to perform certain on-chain actions. For example, lets pretend I'm building a service where ...
0
votes
1answer
13 views

Like an ERC20 interface, do we have any interface or a smart contract that supports creating and transferring Ether on Ethereum?

To create a token on Ethereum, we use ERC20 token interface to design our token smart contract that captures functions required like mint(), tranfer(), balanceOf(), etc. Similarly, do we have any ...
0
votes
1answer
15 views

Does crypto coins are transferred same as tokens?

If I understood correctly, when I want send a token using wallet (e.g., ERC20 token), I will: create a transaction (using send button on my wallet interface) with "to" address containing token ...
1
vote
1answer
246 views

Invalid type for argument in function call

I have this token code pragma solidity ^0.4.19; contract MyToken { mapping (address => uint256) public balanceOf; function MyToken(uint256 _supply) public { balanceOf[msg.sender] = ...
1
vote
1answer
210 views

ERC token multiple address sending

Hi is it possible to send token XYZQ to two addresses in one transaction. here is example. 100 XYZQ ===> 99.9999 to XYZQ 1 address and 0.0001 XYZQ to second XYZQ address? For same amount of gas
1
vote
1answer
13 views

Usecase for approve and allowance functions of ERC20 token

Could you please enlighten me on how approve and allowance functions work using a usecase? I dont understand the underlying operations of these functions. Especially, when a token owner delegates the ...
1
vote
1answer
17 views

Wallet transactions call functions in (ERC20) token contract to send tokens?

Firstly, thank you for helping me out in understand this. Suppose, if I have an ERC20 token contract (with all the required functions implemented including Transfer() function) deployed on the ...
1
vote
2answers
531 views

function () public payable modifier can trigger actions when sending tokens or only works when sending ether?

Modifier payable triggers an action when an address sends ether to a contract. For example: function () public payable { require(msg.data.length == 0); DoSomething(); } Is this ...
2
votes
1answer
542 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#...
1
vote
1answer
222 views

Ethereum crowdsale example - Stuck tokens (how to save)

I deployed a crowdsale contract using the source from ethereum.org and loaded it with some tokens. It works as expected, except that it has no code to return the unsold tokens to the beneficiary. Is ...
0
votes
1answer
21 views

Buy tokens form other smart contract using interface

I have two separate contracts, let's say Token and BuyFrom. pragma solidity >=0.4.22 <0.7.0; interface InterfaceToken { function invest(address contributor) external payable; } contract ...
1
vote
1answer
36 views

gas estimate in loop

I have two contract. I call function placeBid in other contract and i have warning gas estimation. help me. thanks. Can i call function which use gas in loop through other contract? How i can get ...
0
votes
1answer
10 views

Why token value is getting changed on Ethereum?

I have created ERC20 token with 18 decimals. From web3 (application front end) when I transfer 100 tokens, on etherscan it shows 0.0000000000000001 . When I call to get the balance then on UI it ...
0
votes
1answer
267 views

How can users call the functions of an ERC20 token that was created by another contract (within a crowdsale contract)?

Using Ethereum wallet if I create a token and deploy it I can then interact with it and use the functions of that token (e.g. transfering tokens). However, if I deploy a crowdsale contract and that ...
0
votes
0answers
22 views

I have an ERC-20 token created. How does it get value now? [duplicate]

Ok, so a friend of mine helped me create an Ethereum token for me with a 1M supply. I call it the POTTA token. I have also started distributing my token to other friends with a tool that he built so I ...
0
votes
3answers
49 views

Use custom ERC20 addresses

I am pretty new to the Ethereum and ERC20. I am willing to create an ERC20 token. I see that ERC 20 tokens can be transacted using the Ethereum addresses. However, I am wondering if it is possible to ...
0
votes
1answer
285 views

How to download the whole transfer records of a token

I want download the whole transfer records of a token. https://etherscan.io/token/0xB8c77482e45F1F44dE1745F52C74426C631bDD52?a=0xd551234ae421e3bcba99a0da6d736074f22192ff. But the default setting is ...
0
votes
1answer
43 views

For loop for transferFrom

transferFrom method from ERC20 contract interface: function transferFrom(address _from, address _to, uint _value) public; transferFrom function from my contract : function transferFrom(address ...
0
votes
2answers
29 views

“VM Exception while processing transaction: revert” in Truffle test and Truffle dev

this is my problem :) Issue "Error: Returned error: VM Exception while processing transaction: revert" when reaching the Transfer function. I think it is related to the fact that my Crowdsale smart ...
0
votes
3answers
314 views

Transfer ERC20 Token feeless

Is there an existing Smart Contract implementation, which can public signed transactions of ERC20 Token transfers? I like to give the users of a ERC20 token the ability to pay the transaction fees in ...
0
votes
1answer
21 views

ERC20 token not showing up in search

I just created a new ERC20 token on the ropsten testnet. The contract is verified and can be seend here. However when I try to search for AtariToken or ATAR I don't get any results on ropsten....
3
votes
2answers
4k views

Accessing funds that are sent to the smart contract address

If someone creates a smart contract (and is owner of that contract), is it possible for that person to collect ETH and other tokens, that are sent to the address of smart contract?
0
votes
2answers
47 views

How can I make my contract send out my tokens?

I've been experimenting with some generic copy-paste codes on the Ropsten Test Net and I am able to create a token and have the creator receive all the tokens. However, when I try to buy these test ...
2
votes
2answers
512 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 ...
0
votes
2answers
279 views

Questions Regarding Creating New ERC20 Token & ICO

Hi I want to create an ERC20 token and launch an ICO. I am new to ethereum solidity. I have checked smart contracts on http://ethereum.org and https://theethereum.wiki/w/index.php/...
0
votes
0answers
24 views

How to config geth node to get ERC-20 tokens balances

I'm trying to tune my geth node to get ERC-20 tokens balances, but y API call always returns {'jsonrpc': '2.0', 'id': 1, 'result': '0x'} My geth node version: instance=Geth/v1.9.13-stable-cbc4ac26/...
1
vote
1answer
17 views

How to set token price inside the contract for ICO?

I am confused with decimal places and how it effects the rate of token we set for ICO etc. Lets say, ERC20 Token A have 2 decimal places and per ether 10 tokens shall be sell, then how shall I set ...
1
vote
2answers
531 views

How to peg value to token outside ethereum

I have an online game system. I issue some tokens through ethereum. How can I peg value of the tokens issued on ethereum to my game system, which is outside the ethereum eco system. (ie) The users ...
1
vote
1answer
12 views

Compiler version incompatibility nightmare

I'm new to Solidity and Truffle. I'm trying to compile my Solidity code within Truffle to create an ERC-20 token. I have @truffle/hdwallet-provider and @openzeppelin/contracts as my dependencies. Now,...
2
votes
1answer
435 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 ...
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"; ...
1
vote
3answers
492 views

Sending Tokens from MyEtherWallet

I purchased some FunFair tokens today and sent them to MyEtherWallet. I now want to send those tokens back to an exchange and don't have any Ether in my account. I had no idea I needed 0.001 Ethereum ...
2
votes
1answer
244 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
vote
2answers
853 views

MyAdvancedToken Automating Selling and Buying function not working

I attempt to create a token with the "automatic and selling" function as describe here. After having copy/paste the code (footpage)and deployed the contract no error message appears. But when I ...
0
votes
1answer
46 views

What are the steps to send ERC-20 tokens?

I need to send USDT and other ERC-20 tokens via Geth on Ethereum. I'm using PHP and Web3.php library to work with Ethereum. So far, it worked well for everything. Now, I need to start sending tokens ...
1
vote
1answer
26 views

Receiving error while getting state variable value after using selfdestruct method “Error: Returned values aren't valid, did it run Out of Gas?”

I am using selfdestruct method and passing the payable address to it but receiving the following error when trying to get the value of a state variable : "Error: Returned values aren't valid, did it ...
0
votes
1answer
818 views

ERC20 Token Mist 0.9.0 . Balance not showing up

I am running Ethereum Wallet and Mist 0.9.0 (released this on 24 Jul ). ERC 20 token balance is not showing up even if Watch contact is in place. On the other hand, I can properly see ERC 20 token ...
0
votes
1answer
689 views

Custom tokens disappear after closing Ethereum Wallet

I'm on Ethereum Wallet 0.9.0 and I need to add the ICO token addresses every time I restart the wallet. The custom token(s) don't get saved after I exit the wallet. How do I solve this?
1
vote
1answer
59 views

Token migration and IDEX smart contract problem

During a recent token migration from token A to token B, a large number of token A were held by a number of people in an IDEX address (where it was ready to trade). The IDEX address is part of a smart ...

1
2 3 4 5
29