Skip to content

About addresses in Solana Transactions #2306

Answered by korinsek
YingJie0712 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. for your wallet you can get solana address out of hdWallet: hdWallet.getAddress(Blockchain.SOLANA). If you sending to recipient I assume he will share his solana address with you.
  2. 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.
  3. Once you have senders/recipients solana address and tokenMintAddress you can derive recipients/senders tokenAccountAddress with SolanaAddress(solanaAddress).defaultTokenAddress(tokenMintAddress). More details also here: h…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hewigovens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
3 participants
Converted from issue

This discussion was converted from issue #2301 on June 10, 2022 04:41.