Questions tagged [solana-py]

7 questions
2
votes
1 answer

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 need to fetch transactions(solana transfers) from…
RomanGodMode
  • 325
  • 3
  • 11
1
vote
1 answer

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.enumerate(websocket) is called. Examples from the…
Ander
  • 5,093
  • 7
  • 41
  • 70
0
votes
2 answers

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 account ",…
Nika110
  • 29
  • 7
0
votes
1 answer

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 Dust, Luv, or any other solana token) where do I…
0
votes
0 answers

Computed Budget Program with Solana Py

I couldn't find any information related to the use of ComuteBudgetProgram in solanaPy docs https://michaelhly.github.io/solana-py/. I tried to inject it in the TxOpts, but no success: request_units = { "units": 800000, "additional_fee":…
alessandro buffoli
  • 658
  • 2
  • 10
  • 29
0
votes
1 answer

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 calculate the cost of creating the account. I'm sending…
alessandro buffoli
  • 658
  • 2
  • 10
  • 29
-1
votes
1 answer

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, TransferParams from spl.token.client import Client …