All Questions
90 questions
0
votes
1
answer
19
views
Manage anchorpy function call with no signers required
everyone, I have a problem with my code.
This is the anchorpy function which has been generated from the IDL:
class TimeoutAccounts(typing.TypedDict):
participant1: Pubkey
participant2: Pubkey
...
0
votes
0
answers
94
views
Solana transaction to Raydium Token with Python
So, this is my python script to buy a Token on Raydium with Solana. Im working with PyQt5 and getting everytime the same ERRORS. I dont know what i did wrong.
Working with solana-py and solders.
...
0
votes
1
answer
188
views
Data decoding in Solana transaction
I am trying to create a Python code to analyze Solana transactions. Currently I am receiving transactions data in Json formats. In a certain part I think I need to decode a phrase. For example, a part ...
-10
votes
2
answers
3k
views
Get Solana wallet balance with python
Is there any way to check the balance of a Solana wallet using Python?
I tried using Solscan, but I don't understand how it works and I can't find information about it on the internet.
1
vote
0
answers
50
views
How to view data and preform actions on a Solana Program with an IDL?
I've create a python script to output the raffles from the Solana NFT raffle site https://rafffle.famousfoxes.com/
import asyncio
import json
from anchorpy import Provider, Program, Idl
from solana....
2
votes
1
answer
657
views
How to Correctly Decode a Jupiter Swap Event on Solana?
I am attempting to decode a Jupiter swap event on the Solana blockchain to extract token amounts and mint addresses from the transaction data. The expected output should look like this:
{
"amm&...
0
votes
0
answers
135
views
Solana swap transation
Please help me to create swap transaction using solana and solders, there are not that many docs for Python and many legacy examples
using solana 0.36 and solders 0.23
# 1) Get a single quote ...
0
votes
0
answers
64
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
2
answers
2k
views
Getting a Market Cap of a Pump Fun Coin on Solana Chain with Python
I'm trying to get Market Caps of Pump Fun Coins on Solana Chain with Python. There are various api's but i couldn't manage to get them working. Is there a free or cheap way to get pump fun tokens ...
-1
votes
1
answer
993
views
What can replace “solana.keypair”? [closed]
I import “from solana.keypair import Keypair” but import error.
I also tried “from solders.keypair import Keypair” with “Solders” but also an import error.
FYI: I'm trying to create a scrypt to ...
0
votes
0
answers
198
views
Best/right way to confirm a Solana transaction in Python?
I'm working on a trading bot for solana using Python. I'm trying to confirm if the transaction has gone through before trying to repeat the whole process again. I have a feeling I'm getting the last ...
0
votes
1
answer
223
views
Sending SOL in Python with Solders from a JSON file
So I've been struggling with writing a function to transfer all SOL from different wallets in a json file to a single destination wallet.
Note: The wallets in wallets.json are formatted as below:
{&...
0
votes
0
answers
226
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 ...
0
votes
1
answer
596
views
Trading Bot - 'solders.transaction.Transaction' object has no attribute 'recent_blockhash' and no __dict__
I'm trying to get this Solana trading Python buy script to work, but I'm getting the following error. Any help would be highly appreciated.
Error:
Attempt 1 to create associated token account failed: '...
4
votes
0
answers
783
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 ...