I'm new to solana network and technology. I'm developing an application to confirm transaction receive to a specific wallet address on solana network. Right now I'm using this API "api.mainnet-beta.solana.com" .My question is how to get amount and symbol of a transaction ?
To get the transfer amount, first coerce the
uiTokenAmountfield(s) into a number however is most convenient for the language you're using. Then take the difference of the two.
mintfield can then be used to query something like the Solflare Unified Token List API for the extended token metadata, which contains they symbol.