Open mackieq opened 3 months ago
@mackieq Cardano Native tokens are represented as whole number (BigInteger in Java). So during transfer you can't use decimal.
You can also get the decimal info of an existing mainnet token from token registry and convert it to a whole number using that. Please check info about token registry here https://developers.cardano.org/docs/native-tokens/cardano-token-registry/
Btw, PaymentTransaction api is now deprecated.
Please look into "QuickTx" api which is quite simple and flexible.
Here are some examples of QuickTx api.
The Amount Object is:
When the transfer amount includes decimals, how should it be handled?
The Current Example code: