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
1answer
20 views

What was the Rebase Bug on the YAM smart contract?

Smart contracts have great power to absorb money like a black hole. Almost 400$ Million is gone due to a bug in the smart contract of YAM. What was the bug that cause all the destruction? => Could ...
0
votes
1answer
19 views

Hello i am te admin of the discord o f the eth black smart contract the site got suspended what now

Heeey superstars thank you for taking the time to answer this question Me and my people are in the eth black smart contract but the site got offline is there anything we can do to get our money our ...
1
vote
0answers
13 views

What is the method to send a transaction with data from solidity?

Sorry for the noob question, but Im trying to understand some definitions and clarify the limits between solidity, web3, etc. I have obtained a tx looking like the following from the 0x API: b'{"...
0
votes
1answer
10 views

Can not Open Ethereum Wallet on Window 10

I did trying install soft Ethereum wallet on windows 10, But I can't open the program. It looks like the picture below. Help me pls, Thank everyone.
0
votes
1answer
19 views

I would like to warp a token and inherit its methods in a wrapper without declaring them in a wrapper. Can I do this?

The reason why I am asking this is to create something that is closely related to mutability. So, instead of creating a different token every time there is a code-change, I would like to simply use a ...
0
votes
1answer
24 views

Best practice for fetching ERC20 token balances for a given address

Are there any best practices to fetching all ERC20 token balances for a given address? I am open to using external APIs.
0
votes
1answer
9 views

how to create an address or wallet in several tokens

Hello community I am using nodejs and web3, I would like to know if it is possible to create an address in each token and then bring the corresponding balance of each token
0
votes
1answer
17 views

Why some contract addresses show 0 supply and 0 holders on Etherscan

I have a an old list from December 2019 which showed the holders, supply and transfers in last 24h from Etherscan like here . Howvever while I was revisiting the addresses on Etherscan, there were a ...
1
vote
0answers
40 views

Transfer ERC20 via onother smart contract (call transfer as delegate)

I want to deposit erc20 tokens to a smart contract. But when I just send it to he address, I can't handle the deposit. So I tried to use the delegatecall function to do the transfer. Basically I ...
0
votes
0answers
24 views

public token swap contract

i want to create an erc20 token swap contract for a crowdsale im building right now. and i dont want to accept ether, i prefer USDT. i found a swap contract example on the internet but it always asks ...
0
votes
1answer
27 views

cannot transfer token from EOA account to a contract from function

i was making a contract for staking where user transfer its token to a contract and i will give him interest but i got stuck to this problem i have been searching for 3-4 days but for it is not ...
0
votes
0answers
16 views

How exchanges handle token withdrawals for their users?

I am working on exchange-like project for ETH and ethereum-based tokens. And I am having a problem with token withdrawals for users. Every user certainly makes a deposit to his own newly generated ...
0
votes
0answers
27 views

Insufficient funds for gas * price + value in Ropsten

I write API for smart contract but its shown error "Insufficient funds for gas * price + value"? My try I have increased my address balance but it's showing the same error. I have changed my ...
0
votes
0answers
14 views

Obtain all token transactions

I need to be able to retrieve all transactions that happened in a certain time period for arbitrary token on ethereum network. What is the proper way to do it?
0
votes
0answers
42 views

How to estimate gasLimit of ERC20 contracts in web3.php project?

I am using web3.php project in my Ethereum based project. A part of this project is sending ERC20 tokens, and in this regard, I need to estimate gas limit of transaction. For this purpose, I found the ...
0
votes
0answers
28 views

Best practices with ERC20 forwarding and kill switches

Background I have a system with 2 smart contracts; EventSender and Forwarder ("E" and "F" respectively). E takes a construction parameter of type address payable and sets that to ...
0
votes
1answer
36 views

What token address do I use if I want to sell an ERC20 token on a different exchange? Its original address or its address on the other exchange

I really need help with this one to avoid logic errors. I am on the Kovan testnet. I bought 4 units of DAI token on Uniswap exchange(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D) for 0.111 Ether and ...
0
votes
1answer
32 views

How do I get a list of tokens held by an Etehereum address?

TL;DR: wanted: a method that receives an address as a parameter and returns an array of token names/contracts/balances held by address. I'm aware of the fact that Etherscan API has a method allowing ...
0
votes
0answers
32 views

How do I get the available reserve size for a given token on Kyber and Uniswap(V2)

I am doing arbitration with some measure of success; but I suspect I am running into edge cases where the available reserve size is less than what I am trying to buy or sell. Something like this: ...
0
votes
0answers
19 views

How to write contract on Etherscan

I've $15 in one wallet and $2 in another. I've used smart contract to transfer the funds. Now, the problem is that - on Etherscan, there's "Write Contract" method and under that - cast ...
0
votes
1answer
35 views

Proxy calls are all reverting in test suite despite implementation being set and initialised

I am currently writing an upgradable contract using the unstructured data proxy model and an ERC20 token implementation (similar to USDC). This means the traditional approach of sending a transaction ...
0
votes
1answer
42 views

how to connect ethereum local provider https://localhost:8545? [closed]

I am using infura web3 provider in ethereum but I don't want to use third party providers in my project so I want to use localhost:8545? how to use this provider? Is it connect to the ethereum node? ...
0
votes
0answers
17 views

How are rewards commonly distributed to token holders without requiring too much gas?

There are various platforms and tokens which distributes some sort of reward either via staking or interest to token holders proportionally to their token holdings on a regular basis, what are general ...
0
votes
2answers
45 views

Where can I find full ERC 721 example programs?

I am building a program with an ERC 721 token. My code runs without using the standard components provided by Open Zeppelin IERC721. Now I want to adapt it to the ERC 721 standard. Unfortunately the ...
1
vote
1answer
74 views

How to build an Ethereum hot wallet for an exchange

I’m developing an exchange. When a new user register on website we will create new eth wallet for them. When they deposit USDT on their wallet how can I transfer that USDT amount to another address (...
0
votes
2answers
36 views

Why do people even play CryptoKitties? [closed]

I've been lately trying to understand tokens in Ethereum, which basically makes me ponder ERC20 token standard... I still am very much confused in all of its concepts, but the main thing that I haven'...
0
votes
1answer
21 views

Extend old contract or deploy new after fixing, recommendation?

Unfortunately, we used different transfer function name in our smart contract which causes issues for us to list it on some exchange, transfer function name should be transfer but we used ...
1
vote
0answers
18 views

Right approach for syncing balance between ethereum contract and local database balance

So we are using an ethereum smart contract to store investor balances and also storing their balances in local portfolio tables. What would be the right approach to sync in a balance between ethereum ...
0
votes
0answers
10 views

Implementation Question for Licence Token

I am currently working on the idea of using token as licences for digital products. I am offering different documents and books in pdf format and want people to be able to buy them with ETH o.ä.. I ...
0
votes
0answers
10 views

Writing a function, where users are allowed to deposit their token

i want to create a smart-contract, where it is allowed for users to deposit their ether/tokens in. As far i researched i found this function to get it happen. address owner; // this is where you ...
0
votes
1answer
18 views

Ethereum token not logging txs

I'm back again with another token question. If you have seen my previous posts, they have all been about merged mining and prevented eth burn, etc etc. I am in the process of creating V2 of a token I ...
0
votes
0answers
23 views

How can I replicate the Token Tracker etherscan page using python and etherscan API?

So I want to list top tokens and their associated stats, like on https://etherscan.io/tokens. Even simpler than that, how can I use the etherscan python API (or https://github.com/corpetty/py-...
1
vote
1answer
27 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 ...
1
vote
1answer
42 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_; }...
3
votes
2answers
95 views

How to infer token price from ethereum blockchain UniSwap data?

I would like (if possible) to infer a token price from the blockchain using UniSwap data. After reading the following article, I understood that it is feasible: https://blocklytics.org/blog/uniswap-...
0
votes
1answer
19 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
19 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
30 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
28 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 ...
0
votes
1answer
31 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 ...
0
votes
1answer
16 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
0answers
23 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
0answers
12 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
1answer
31 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....
0
votes
0answers
45 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
26 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
1answer
34 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,...
0
votes
2answers
42 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 ...
1
vote
1answer
35 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 ...
1
vote
1answer
35 views

Can't people be tricked into calling approve on an ERC token contract, and having their tokens stolen?

Most users of Ethereum and ERC tokens probably aren't aware of the existence of the approve and transferFrom functions. Couldn't users unknowingly call approve on an ERC token contract, and ...

1
2 3 4 5
29