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.
select tx.token_address, t.name, tx.from_address, tx.to_address, tx.value, tx.block_timestamp, (trans.receipt_gas_used * trans.gas_price) / ...
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(
You have to multiply first and then divide.
uint256 _SavedDividend = (
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 - ...
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 ...
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 ...