Is it possible to set up an account to point to another account?

Is it possible to set up an account to point to another account?

Manage alerts

Loading saved threads...

alex · External communityPost link
External question — Solana Stack Exchange Author: alex Original post: https://solana.stackexchange.com/questions/8189 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I'm making an anchor program where I would like to make a user ID easily retrievable with their Pk, sequential ID or username. one way I thought is to make a PK link account (in case the seed for the ID account required the PK), which could be made from seq ID seeds or username seeds. however, this is one more hop than I'd like. Can an account be made to point to another in an easy way?
Quote
Report
Effe2 · External communityPost link
External answer — Solana Stack Exchange Author: Effe2 Original post: https://solana.stackexchange.com/a/8190 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. i'm not sure to have fully understand what you want to achieve, but why not creating a PDA with only yhe public key as seed, and then you can store whatever data you want in your pda ? (like your own ID or username)
Quote
Report

Post Reply

Checking account access…
Is it possible to set up an account to point to another account? | Forex.com.bd