Skip to main content

Questions tagged [pubkey]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
71 views

How to get lp pair key from mint address of a raydium token?

I want to get a LP key pair(WSOL-TOKEN). For example in $WIF, the mint addres is EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm, but I want to get EP2ib6dYdEeqD8MfE2ezHCxX3kP3K2eLKkirfPm5eyMx. I'm using ...
Krix's user avatar
  • 1
0 votes
0 answers
97 views

Subscribe to AMM pool creation and generate the pool key structures

I am looking to subscribe to AMM pool creation and generate the pool key structures so that I do not have to load every time the expensive raydium mainnet.json file containing the pool keys. I have ...
Stickmen1's user avatar
2 votes
1 answer
72 views

Solana Keygen Pubkey Prompt Won't Let Me Type

Following the Solana documentation here, when I follow the instructions for some reason it doesn't let me type in the seed phrase to connect a wallet to the command interface. It brings up the cursor ...
The Con Crypto's user avatar
0 votes
0 answers
82 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
  • 43
4 votes
3 answers
847 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,456
2 votes
1 answer
316 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
1k 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
145 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
28 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
40 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