About addresses in Solana Transactions #2306
Answered
by
korinsek
YingJie0712
asked this question in
Q&A
-
In solana token transfer, have 3 params: tokenMintAddress/recipientTokenAddress/senderTokenAddress. |
Beta Was this translation helpful? Give feedback.
Answered by
korinsek
Jun 30, 2022
Replies: 2 comments
-
You need to query Solana node, for example https://docs.solana.com/developing/clients/jsonrpc-api#gettokenaccountsbyowner |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hewigovens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hdWallet.getAddress(Blockchain.SOLANA)
. If you sending to recipient I assume he will share his solana address with you.tokenMintAddress
- you can define your private API where you define currency definitions of your supported SPL tokens (or hardcode it is your preferred way). You can probably get it also direct from https://raw.githubusercontent.com/solana-labs/token-list/main/src/tokens/solana.tokenlist.json.SolanaAddress(solanaAddress).defaultTokenAddress(tokenMintAddress)
. More details also here: h…