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
0answers
16 views

Web3 method getTransactionReceipt() does not return token transfer value for particular token transaction

I've tested getTransactionReceipt(), to get all detail about transaction with amount of token transfer. Also tested getTransaction but it returns only Ether transferred value. Is there any other ...
1
vote
1answer
22 views

Is Egretia (EGT) is still Ethereum Token? Or It has been moved as a Coin to its own Blockchain?

Currently Egretia (EGT) is represented as a Token of Ethereum Network, but is there any changes regarding shifting from Token to Coin on its own Chain?
0
votes
1answer
30 views

Detect failed token transfer via RPC

It seems like Etherscan can detect failed token transfer even though the transaction itself is successful and the gas isn't used completely. Like in this transfer of Huobi Tokens Is there a way to ...
1
vote
2answers
65 views

How to check Ethereum smart contract info?

I want to know 3 things: Is an address a smart contract? Is this smart contract an ERC20 or ERC721 token? Is the Solidity code public?
0
votes
1answer
16 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 ...
0
votes
1answer
34 views

Get the result of token transfer transaction in geth

There is a way to get the result of a token transfer operation in Parity https://ethereum.stackexchange.com/a/9009 Is there a way to do it in geth by RPC?
0
votes
1answer
14 views

How to get initial balances for all those who bought tokens?

Is it possible to get the initial balances for all those accounts who bought ERC20 tokens? If that’s possible, how that can be achieved? I’m wondering if there is any way of getting that information ...
0
votes
1answer
15 views

What can you change and adapt when you create an Erc 20 token?

I saw this list of things that can be modified for your token. I can't find it but it listed all the different uses and things that can be changed about your token such as the max supply etc.
1
vote
1answer
54 views

What is DeFi decentralized finance?

What is DeFi? What are its core components? How to think about or picture "it"? Some of the parts are tokens, stablecoins (tokens with specific properties to reduce its volatility), and exchanges, ...
1
vote
2answers
30 views

What is the best way to report scam/fraud token

Recently I've bought small amount of some token with good overall idea as it seems for the first look. Then I go deeper to the source code and found that product is fraudulent, with differences ...
1
vote
2answers
34 views

I Call SmartContract Token ERC20, Why Show Hashing Output ? (Web3 + Metamask + Javascript)

I do not know why with this, even though in the previous version (web3 + Metamask) can issue real data. But now used as hashing (output). I took the example in the code and output below (to get the ...
1
vote
2answers
29 views

ERC20 not recognized by TokenTracker

I have deployed ERC20 with reference to // File: openzeppelin- zos/contracts/token/ERC20/DetailedMintableToken.sol I called the initialized function with owner, name, symbol and decimal value. ...
0
votes
1answer
22 views

I accidentally sent a token to a token contract. Can I get it back? $MWAT [closed]

community! Instead of transferring my ERC20 token $MWAT (RED PLATFORM) to my wallet, I accidentally sent it to the contract itself https://etherscan.io/tx/...
0
votes
1answer
65 views

How to use DAI in my contract

I'm familiar with smart contracts development. Although, every time I developed something, I used traditional ether. For the sake of simplicity, let's assume this contract. pragma solidity ^0.5.0; ...
0
votes
1answer
29 views

How can I freeze an erc20 token in another holder's wallet

Token was compromised and some portions went to a wrong hand, now owners of token wants to freeze that wallet holding it, is there any way to do this.
0
votes
0answers
21 views

ERC20 is not working after deploy

I've deployed an ERC20 like this: const fs = require("fs"); const Web3 = require('web3'); const testnet = 'http://localhost:8545'; const PrivateKeyProvider = require("truffle-privatekey-provider"); ...
0
votes
0answers
21 views

How to detect ERC20 token amount sent in the incoming transaction?

Using python's web3 is there some method to detect how many tokens were sent? I.e. detect how many ERC20 USDT tokens were sent to my account address?
0
votes
1answer
29 views

“truffle init” problem

What to do to resolve below issue coming in initiating a truffle project? YuweideMacBook-Air:vantoken yuwei$ truffle version Truffle v4.1.4 (core: 4.1.4) Solidity v0.4.21 (solc-js) YuweideMacBook-...
0
votes
2answers
46 views

web3, nodejs - How to put decimals values ​into the toBn function

I want the amount of tokens to be a decimal number. but i heard that toBn is not supported decimals number. When I put in a decimal number, I faced the following error: while converting number 0.15 ...
1
vote
1answer
26 views

Apparently some people send transactions with zero gas and positive gas limit, how do they do this? (and I am NOT planning to this but how)

Have a look at this transaction for example: https://etherscan.io/tx/0x11d96986d36240a5e5e7eab78879aa841631705370e707f15f1488a0b9d6704a 0 gas, 0 ether but plenty of tokens transferred. Obviously the ...
0
votes
2answers
16 views

Why am I getting TypeError: Member “balanceOf” not found or not visible after argument?

On line 22 my code is -- require(tokenContract.balanceOf(this) >= _numberOfTokens); This gives the error message TypeError: Member "balanceOf" not found or not visible after argument-dependent ...
0
votes
1answer
33 views

Is it possible to send erc20 token when I have 0$ ether but $1000 in the token? [duplicate]

Long story short I have $1000 in one erc20 token contract but 0$ in ETH. Can I at least transfer these $1000 from the token to another address without ethereum asking for gas? That is: just change ...
0
votes
1answer
15 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
39 views

gas required exceeds allowance when deploying ERC721token

I am trying to deploy Smart-contract(ERC721) on my private ethereum network. But I have this issue. Here is my genesis. { "config": { "chainId": 3333, "homesteadBlock": 1, ...
0
votes
1answer
21 views

Why am I getting a Parse Error in my smart contract after the constructor?

I'm writing a token sale smart contract & my original error was my function had the same name as the contract and I changed it to a constructor because the contract cant have the same name as the ...
1
vote
1answer
27 views

Etherscan api for Ropsten testnet

I found this endpoint is to obtain the token balance from Ethereum blockchain, however, I noticed that this function doesn't work on Rospten network. Please advise https://api.etherscan.io/api?module=...
1
vote
1answer
56 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 ...
0
votes
1answer
26 views

ERC20 transfer showing as 0 but log shows different

Checking the transaction https://www.etherchain.org/tx/e12af4940879c634a63d2c9629449695e07650a4e419e5822ddb18d8469e9948 anyone can check there were 3 DigixGold token transfers. These transfers are ...
8
votes
1answer
60 views

What will happen to legacy smart contracts when Ethereum 2.0 is released?

Most importantly, ERC20 and ERC721 tokens. Will they be migrated to the new chain? Will migration only be optionally possible for contracts with an owner? What about contracts which rely on proof of ...
0
votes
1answer
40 views

ERC20 - Approve & TransferFrom not working

The getTokenBalance function seems to retrieve data from the ERC20 contract just fine so I don't think there is an issue with how I'm using the interface. Additionally, I also tested out separating ...
0
votes
1answer
30 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
0answers
122 views

how to integrate USDT erc20 token to make transfer and check balanceof?

I want to integrate USDT token to make transfer and check balance of USDT in my java with the use of web3j, how can i accomplish this? i able to create wallet and use of ethereum, but i dont know how ...
0
votes
1answer
25 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, ...
0
votes
1answer
70 views

The rank of Bittrain coin [closed]

I would like to but a bittrain coin. I have gone through the list and I cant find it ranking. Can I buy it on this platform?
0
votes
1answer
19 views

How to create smart contracts and tokens without using any cryptocurency?

I am new to Blockchain and I have read to create tokens smart contracts are required and to create a smart contract,ether is required. I wanted to know is there anyway I can create tokens without ...
0
votes
1answer
29 views

How to authorize multiple contracts issue the same ERC20 token?

I have a physical product to sell. I want to have a digital asset representing each unit of my physical asset. I have created an ERC20 token contract and each token represents a unique instance of the ...
0
votes
0answers
23 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
19 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?
1
vote
1answer
44 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
vote
1answer
49 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
2answers
95 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
1answer
72 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
160 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
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 ...
0
votes
1answer
53 views

What should gas prices be for sending out tokens?

I constantly get failed transactions when sending out tokens like USDT using metamask. I have my gwei set at 10 and the gas limit at 21000. I even tried gas limit set to 51000 and it still fails. ...
0
votes
1answer
34 views

Create multiple tokens for a unique property

here is the idea: we assign a set of unique tokens to a company and then we allow people to buy some tokens and get partial ownership of that company. How can I achieve this? I was thinking of ...
1
vote
2answers
30 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
24 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
37 views

Get ETH and Token Balances of Wallet address

How do I get a simple and fast balance of ETH and all Token owned/stored within a wallet address? I have seen similar question and the closer answer was in this demo: http://wbobeirne.com/eth-...