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 |
2
votes
Accepted
How to add a new instruction to an existing transaction?
You can always add multiple instructions in whatever order you want in a transaction (assuming it doesn't exceed the max transaction size of course). But how you do it depends on the SDK/language you' …
3
votes
Accepted
on-chain neural network?
You can use Seahorse Lang to use Python code to create Solana program, and potentially even run a neural network. …
1
vote
Converting JS IDL to Python
You can simply use Python's json module to load it as a dictionary in your Python code. … For example:
import json
with open('idl.json') as f:
data = json.loads(f)
print(data)
If you're looking to use IDL to work with Solana Programs in Python, Then check out Anchor.py …
0
votes
How do you decode Raw Instruction Data using Python?
You can use the deserialize method from the Transaction class of solana.py to acheive this.
Refer to the documentation here: https://michaelhly.com/solana-py/core/transaction/
1
vote
Simulating a buy/sell transaction
You can refer to Jupiter Swap API Docs, the examples are given in Javascript, but you can try converting them to Python. …
1
vote
Accepted
AttributeError: 'dict' object has no attribute 'encoding' when trying to pull transfers for ...
You either need to manually add encoding value in your opts dictionary or simply use TokenAccountOpts and pass it in your options.
Specifying "encoding" for get_token_accounts_by_owner request is mand …