Questions tagged [pubkey]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
55 views

How to get a token's "pubkey" prior to owning it?

executing the following code using solana's mint address, So11111111111111111111111111111111111111112, I can't get the public key for Solana if I don't have wrapped Solana in my wallet. How can you ...
modalxx's user avatar
  • 21
4 votes
3 answers
410 views

Create_program_address vs find_program_address

In the Rust crate, there are create_program_address and find_program_address. When using Anchor, I have seen both of them being used for doing address matching. Noticeably, find_program_address does ...
Burger Bob's user avatar
  • 1,256
2 votes
1 answer
143 views

Get AccountInfo from ProgramId, or invoke program method using ProgramID

If I've programId (Pubkey) of a program, is it possible to get AccountInfo (or Program) object somehow? Or conversely, is it possible to somehow invoke a (view) method on program if its programId is ...
Sarfaraz Nawaz's user avatar
1 vote
2 answers
625 views

Creating a Custom Vanity Key / Wallet

I recently tried to create a paper wallet following the command below; solana-keygen grind --starts-with kiz:1 --use-mnemonic --word-count 24 --language english --no-outfile --no-bip39-passphrase The ...
kiz's user avatar
  • 21
5 votes
1 answer
131 views

MagicEden DutchAuction address

MagicEden has a few programs, such as EnglishAuction, EnglishAuctionSpl, DutchAuction, and, possibly DutchAuctionSpl. But I weren't able to find address of a DutchAuction program anywhere. What is it? ...
RowanStone's user avatar
1 vote
1 answer
25 views

Inside programs is it "better" to pass Pubkey as a reference?

What are the consequences of passing public keys as references or as values inside programs? Which approach should I use as a default? As I understand now passing public keys on the stack might blow ...
RowanStone's user avatar
1 vote
1 answer
32 views

Why does CandyMachine use `cmp_pubkeys` function and not an `Eq` trait?

CandyMachine program has this function, which is used extensively in the program code: pub fn cmp_pubkeys(a: &Pubkey, b: &Pubkey) -> bool { sol_memcmp(a.as_ref(), b.as_ref(), ...
RowanStone's user avatar