-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple Example Implementation for Token Transfer and Solana Transfer #351
Comments
I know having this would definitely have saved me two days' worth of work. |
Thanks @seveightech was looking for something like this |
If you don't mind helping I'm stuck here with SignerError: keypair-pubkey mismatch and tried and checked almost everything IDK am I doing something wrong or why this issue persist from solders.account import Account from solana.rpc.api import Client recent_blockhash = client.get_latest_blockhash().value.blockhash print(f"Most recent blockhash: {recent_blockhash}") user2_public_key = kp.pubkey() new_account = Account(lamports=100000, data=b"sys_user2", owner=kp.pubkey()) initialize_instruction = initialize_account(InitializeAccountParams( transaction = Transaction(fee_payer=Main_wallet.pubkey(), recent_blockhash=recent_blockhash).add(initialize_instruction) transaction.sign(Main_wallet, kp) tx_signature = client.send_transaction(transaction) print(f"Transaction signature: {tx_signature}") |
you know how to interact with Raydium? |
I have not tried doing that, no. @daanrod |
I'm not so sure what your problem is exactly, but looking at the code these are the things I noticed.
Also, try using the Keypair in the If you have already found a solution to this, then that's fine. |
Follow up @moonlightnexus You set You need the actual Keypair value to sign a transaction. Something along the lines of |
Kindly check this @daanrod |
To assist every newbie, here is a simple implementation to get you started with the basic aspects of the solana-py library
The text was updated successfully, but these errors were encountered: