12 questions
0 votes
0 answers
77 views
Transfer Solana Tokens (send_legacy_transaction)
I've been trying to transfer SPL Tokens (Solana Mainnet) but I've not been able to do it yet... def send_tokens(payer_keypair, mint_str: str, recipient_address: str, percentage: int = 100) -> bool: ...
0 votes
0 answers
289 views
Error when fetching pool keys from Raydium_py Solana
I’m working with a public GitHub repo (you can find it here: https://github.com/AL-THE-BOT-FATHER/raydium_py) that interacts with the Raydium decentralized exchange using Python. I’m trying to fetch ...
5 votes
1 answer
1k views
How to Decode data from get_account_info in Solana Using Python?
I’m working with the Solana blockchain in Python and trying to decode the binary data returned from an account request (Raydium pool). When I request account information with: from solana.rpc.api ...
1 vote
0 answers
439 views
How can i get list of tokens inside wallet on Solana network?
I generated this code with Gemini but it doesnt work. I want get list of tokens in wallet on Solana with their amount, what should i do? I want python code. import requests from solana.rpc.api import ...
1 vote
0 answers
802 views
Efficiently Retrieve the Oldest Transaction Signature for a Solana Address with Billions of Transactions in Python
I'm working on a project where I need to retrieve the oldest transaction signature for a given Solana address. However, I'm facing a challenge when dealing with addresses that have billions of ...
5 votes
3 answers
21k views
Cannot import PublicKey from solana.publickey
I'm developing a tracking script using Python and the Solana.py, installed via pip. The script uses websocket subscriptions to notify me when something happens on the Solana blockchain. My first ...
1 vote
2 answers
3k views
Solana, verify a signature with python
I'm trying to authenticate users via the phantom wallet but I cannot verify the signature on the backend. Here's my frontend code: const response = await solana.connect(); console.log("wallet ...
0 votes
2 answers
5k views
Transfer a solana token from my wallet to another in python
So I am working on a script that transfers tokens (custom-made tokens not owned by me) from my wallet to another in python using solana.py. How do I go about doing that? (By tokens I mean, tokens like ...
4 votes
1 answer
2k views
Solana listen for new transactions on certain wallet (with Solana.py)
I need to listen for new transactions(solana transfers) on a certain wallet, from python code from these transactions I need to take the sender's wallet and how many solans were transferred also i ...
1 vote
1 answer
900 views
Get Account data length in a Transaction with Solana Py
I'm building a program to co-sign transaction on solana. The sign mechanism works, but now I'm trying to extract the account data length from a transaction that I'm receiving, because I want to ...
-1 votes
1 answer
551 views
getting a "this program may not be used for excuting instructions" error when making a simple spl transfer
i'm trying to send an spl-token transaction but it's not working, it's a transacion on the devnet with a token that i newly created, my code is from spl.token.instructions import transfer, ...
1 vote
1 answer
2k views
How to create a websocket manager in Solana-py
I am using Python v3.7 + solana v0.21.0 and trying to create a websocket manager handling several different subscriptions, but the code seems to block whenever websocket.recv() or asyncstdlib....