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.

Filter by
Sorted by
Tagged with
-1
votes
1answer
13 views

How can we use private chain token in public chain?

I'm software engineer in japan. now, I'm trying to create a dapp by using private chain like kaleid, then will create token in private chain. In the future, I'd like our token to be listed to ...
0
votes
1answer
25 views

Super simple token with Open Zeppelin

I want to create a super simple token for my community. I read some tutorials and I found this code: pragma solidity ^0.5.2; import "./lib/oz/contracts/token/ERC20/ERC20Pausable.sol"; import "./lib/...
0
votes
1answer
16 views

Smart Contract Transfer Event Log Data & transfer _value [Rust]

I'd like to have a better understanding of events and logs data, more specifically when it comes to interacting with ERC20 tokens smart contracts and their Transfer events. I'm looking for a way to ...
2
votes
2answers
19 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
1answer
20 views

If external function declarations are saving gas, why aren't we using it for the transfer functions?

All the source code I could find (to date) has declared transfer, transferFrom, approve, approveAndCall as public and not external. Although external can be used, what is the reason behind not using ...
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 ...
0
votes
2answers
18 views

Can an Ethereum token be bound or pegged to the value of the gold? [closed]

Could a token be built in ethereum that its price would be bound or pegged to lets say .00006 times the price of an once of gold?
0
votes
1answer
12 views

Tokens are not being transferred with web3js

i have been using following code for transferring tokens from wallet to another with the use of web3js. async Transfer(eth_address, amount){ let tokenAddress = "...
0
votes
2answers
23 views

How can I add mint and burn function to my erc20 contract code? [closed]

How can I add mint and burn function to my erc20 contract code? This code is working properly but I couldn't add mint and burn function that work. Is there anyone who will help me about fixing this ...
0
votes
1answer
24 views

Can we send tokens with data input? [duplicate]

Can we send tokens with data input? I did a bit of research on erc20 but maybe this is quite complicated. Will erc 721 do this?
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 ...
1
vote
2answers
41 views

Advantages of using Tokens?

Why should I use a (ERC 20) Token instead of just using Ether? What advatages does it have, besides making money out of nothing?
0
votes
1answer
28 views

How to set different signer and gas payer for a single transaction

I am trying to make a transaction of DAI tokens from user wallet 0xDAIUserWallet to some random token contract say 0xRandomContractAddress. In this scenario I am using the private key of DAI User to ...
0
votes
1answer
13 views

Is QTUM is a coin or a Token?

According to Etherscan Qtum is a Token, holding supply with verified smart contract. But its official site contains its own protocol and integration mechanism. Is it still a token under ETH or it has ...
0
votes
0answers
19 views

Transfer ERC20 Token with vyper

Hello i m learning vyper and i have this issue: I deployed a standard ERC20 token contract using vyper default contract: https://github.com/ethereum/vyper/blob/master/examples/tokens/ERC20.vy When i ...
0
votes
2answers
34 views

Could I use Infura to get the token details?

I went through https://infura.io/docs but not sure if Infura could allow me to read token details like owner, token Id, etc. I also googled on how to read token using Infura but to no avail. Has ...
0
votes
1answer
23 views

Can I put a lock on an already issued erc20 token?

Can I put a lock on an already issued erc20 token? I have issued a fixed erc20 and I want to know if it is possible to apply locku to smart contracts.
0
votes
0answers
14 views

How can link metamask wallet to create Android and web wallet for ERC20 token

I studied Solidity and Web3.js .I still need to know how can use metamask wallet that use in chrome extension to create as a mobile wallet and web wallet for client side.
0
votes
0answers
23 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
30 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
33 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
77 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
19 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
38 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
16 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
16 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
90 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
34 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
35 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
33 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
26 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
107 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
35 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
28 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
24 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
30 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
59 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
30 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
17 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
34 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
17 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
50 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
52 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
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 ...
0
votes
1answer
29 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 ...
9
votes
1answer
79 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
63 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
36 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
173 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 ...