Here is the account where is the program id that i can use in anchor https://explorer.solana.com/tx/2u1dmgThKZyMUBTAGJCEr5oQivGrufKWhFfQXKpwV1kgv35ymYeTPiTWC8Nx842BJegANKpknVyCZdacmgn17y6q?cluster=devnet


3 Answers 3


Here's a gif for how to locate the programId on Solana Playground!

enter image description here


To add to the previous answers, declare_id! on your code will automatically update to match your program id when you build the project.


The program id is 8Xnz4ta9XGsq7A7mHTeMd9eg4JQoT7z1TxoiKdp3StVY

You can also find the program id on the build tab in solana playground:

screenshot from solana playground

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.