Solana: Derive addresses from xpub key

Solana: Derive addresses from xpub key

Manage alerts

Loading saved threads...

user29700708 · External communityPost link
External question — Solana Stack Exchange Author: user29700708 Original post: https://solana.stackexchange.com/questions/24510 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. Is there any way to derive addresses from a Solana XPub key or some sort of Solana master address from which we can derive addresses?
Quote
Report
Jimii · External communityPost link
External answer — Solana Stack Exchange Author: Jimii Original post: https://solana.stackexchange.com/a/24511 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. You might mean using the xpub key as a seed for a PDA which is possible const programAddress = address(""), await getProgramDerivedAddress({ programAddress, seeds: [getAddressEncoder().encode(xpubkey)], }); docs: https://solana.com/docs/core/pda
Quote
Report

Post Reply

Checking account access…