I know how to find the erc20 balance of an address. What I'm trying to find is the incoming token of a particular ERCs. For example :
for a transaction, I managed to fetch its from_address, to_address (which will be the token address), also managed to decode its data field of method transfer(_to,_value), which is :
{
"_to":"0xda79da67357FBA5C2B5D596D3e738C529D94F16E",
"_value":196880000
}
_to
is the destination address and _value
is the desired amount. But what is the unit of that amount ??
In the above transaction it was 196.8 usdt transferred, but what is the standard to convert the value that is applicable to all erc20?