The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Hot answers tagged

2

I found it very easy to use Google BigQuery to do this. It is free up to a point. Was able to easily retrieve my data. I will update when I figure out how to add fees. https://console.cloud.google.com/bigquery select tx.token_address, t.name, tx.from_address, tx.to_address, tx.value, tx.block_timestamp, (trans.receipt_gas_used * trans.gas_price) / ...


1

In your code you are making the division first. My guess is that _totalSupply is larger than any balance so solidity will truncate the result to 0. uint256 _SavedDividend = _balances[address(this)].mul( (_balances[msg.sender]).div(_totalSupply) ); You have to multiply first and then divide. uint256 _SavedDividend = ( _balances[address(this)].mul(...


1

ERC20 and ERC721 are, by definition, interfaces. You cannot attach extra data to the prescribed functions, e.g. transfer() because that will break compatibility with the standard interface. You didn't say what you want to achieve so it's not possible to be specific about the solution. Two common approaches spring to mind. ERC20 is for fungible assets - ...


1

Typically the one who signs a transaction also pays for the transaction. However, this doesn't have to be the case. What you are looking for is something called meta transactions. A user signs a transaction he wishes to send to the blockchain and then hands the transaction to a third party which actually sends the transaction for the user (and pays for the ...


1

The token supports only the functionality written into the token's smart contract. I'm not sure what you mean with "lock" but most likely that is not possible unless you have originally coded such functionality inside the contract. If it's a basic ERC20 contract with no extra functionality then there's very little you can do about the tokens. Depends a bit ...


Only top voted, non community-wiki answers of a minimum length are eligible