Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
0
votes
python find_program_address, how to covert a pubkey to a byte array as in rust?
PublicKey does have what you're looking for: bytes(key)
1
vote
Keypair-pubkey mismatch when partial signing - Python
solana-py does support partial signing these days. You're just signing with the wrong keypair. The payer arg to create_associated_token_account needs to be the keypair that signs the tx, not the owner …
6
votes
How do I derive the public key from a seedphrase using Python
Use Keypair.from_seed_phrase_and_passphrase:
from pybip39 import Mnemonic
from solders.keypair import Keypair
mnemonic = Mnemonic()
passphrase = "42"
keypair = Keypair.from_seed_phrase_and_passphrase( …
3
votes
Accepted
"Invalid param: could not find account" when using solana.py to call solana RPC API function
Just change the devnet url to mainnet. That is, change https://api.devnet.solana.com to https://api.mainnet-beta.solana.com