Skip to content

getUserAccount from main wallet public key #1498

Answered by jordy25519
axelwp asked this question in Q&A
Discussion options

You must be logged in to vote

Yes the wallet pubkey is called the 'authority'.
To derive your drift user address/pda (assuming the default sub-account, 0)

const userAddress = getUserAccountPublicKeySync('dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH', '<AUTHORITY PUBKEY>', 0);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@axelwp
Comment options

Answer selected by axelwp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants