Questions tagged [python-sdk]

For questions specifically regarding the Python Software Development Kit (SDK) for Stellar client applications.

Filter by
Sorted by
Tagged with
1 vote
0 answers
6 views

How to Retrieve Historical Orderbooks for Specific Stellar Market Using API?

I need historical orderbook data for a particular market on Stellar. While the API offers real-time orderbooks, I'm seeking a way to get past snapshots with ledger_close_time and complete orderbook ...
Edna Laxer's user avatar
0 votes
1 answer
50 views

How can I overwrite all trustline flags?

I'm trying to overwrite the current trustline flags, but I have issues with that. I keep getting setTrustLineFlagsMalformed, but I don't know why. Am I using this function wrong? tx....
Martin Thoma's user avatar
0 votes
1 answer
70 views

Get existing offer id pysdk

I want to get the offer id based on the offer price and cancel that offer. How I can do that using python SDK?
Irinel Iovan's user avatar
1 vote
0 answers
147 views

Transactions keep failing with reason 'op_under_dest_min'

I have written a simple program to swap assets using the strict_send method available stellar sdk for interacting with Horizon HTTP API. Below is the code construct - it's not productionized however, ...
user4668's user avatar
0 votes
0 answers
38 views

How to make a stellar project using the Django framework?

I have been tasked to develop a stellar platform and want to develop it in Django, but I have not found any documentation or specification in Django. Here are my requirements: Register/Login input ...
NaSir HuSSaiN's user avatar
2 votes
1 answer
214 views

How to decode XDR of the result_xdr in python with stellar_sdk

I want to retrieve transaction details from the response message. The same could be possible queering a horizon, but it seems an unnecessary waste of resources to send additional requests to the ...
hotbit's user avatar
  • 131
1 vote
1 answer
66 views

How to properly set 'Value' in a ManageData operation on Stellar-SDK in Python?

I'm trying to set up a managedata operation. I added the following to my transaction: .append_manage_data_op(data_name="Hello", data_value="World") However, it doesn't go through. ...
Pickinanameainteasy's user avatar
0 votes
1 answer
72 views

Account' object has no attribute 'sign_decorated

I am trying to pay 2 tokens and I am getting this error: sig = signer.sign_decorated(tx_hash) AttributeError: 'Account' object has no attribute 'sign_decorated' My code given below: def ...
Volatil3's user avatar
  • 215
0 votes
1 answer
84 views

xdrlib.Error: value=-915689825 not in enum ClaimableBalanceIDType, when I try to claim the created balance

so I'm trying to implement claimable_balances example using the python-sdk, I'm able to use append_create_claimable_balance_op and create a claimable balance from the sponsor's account. but I don't ...
tenshi's user avatar
  • 111
0 votes
1 answer
86 views

Error when django-polaris installation

When I try to install django-polaris using the command pip install django-polaris it thrown an error Could not find a version that satisfies the requirement django-polaris (from versions: ) No ...
Amal C Saji's user avatar
2 votes
0 answers
130 views

How can Revoke an existing Trustline of an Asset for a specific Account?

I'm a bit confused about how can an Anchor, Revoke an existing Trustline of an Asset for a specific Account? I'm using https://github.com/StellarCN/py-stellar-base, so it supposed to be done by ...
IPEN's user avatar
  • 25
0 votes
1 answer
74 views

Unsuccesfully creating public aaccount using FriendBot funded account

I run a validator node on the public network for which I need to create an account. Hence, I started by creating a Stellar account in the test network as described here. So far so good. As per my ...
cndolo's user avatar
  • 33
-1 votes
2 answers
91 views

How can I get the value of the Stellar Transaction?

Greetings Stellar StackExchange community, I would kindly require your assistance as I am having hard time figuring out how to get the incoming transaction amount value, and what would be the most ...
Animus's user avatar
  • 1
2 votes
1 answer
77 views

Python SDK - What's the difference between stellar-base and stellar-sdk?

There are two PyPI repositores for the Stellar Python SDK: stellar-base stellar-sdk What's the difference between them? When should each one be used?
nowat's user avatar
  • 43
0 votes
1 answer
102 views

Getting exception while establishing Trust Line

I am working on Stellar Python SDK after a year. When I ran my old script I got the error: TypeError: __init__() got an unexpected keyword argument 'opts' The code given below: from stellar_base....
Volatil3's user avatar
  • 215
2 votes
1 answer
123 views

Python: Retrieve Offer_id from a manage offer operation?

I am using the python py-stellar-base to create a new offer operation. To manage the offer in the future I want to be able to retrieve the created offer_id from the completed transaction. builder....
Murray Bryant's user avatar
1 vote
0 answers
55 views

Unable to get sequence number

I am trying to create a transaction op and I am not being able to get the sequence number. I tried on Stellar lab but it did not work. What's wrong? Below is my code: # print('Transferring fund to {}'...
Volatil3's user avatar
  • 215
2 votes
1 answer
486 views

horizon.stellar.org | 504: Gateway time-out errors are FREQUENT!

I’ve been using the py-stellar-base library to access the stellar public horizon server (version from late last year) and up till recently it’s been fine. Now I get timeouts (no response from horizon)...
Steve Kirsch's user avatar
0 votes
1 answer
107 views

horizon orderbook calls using py-stellar-base

I hope this is the correct place. I am an amateur programmer and attempting to build a portfolio manager-type program on the Stellar Network. Right now I'm trying to call and parse Stellar network ...
user1929's user avatar
1 vote
2 answers
73 views

Why do request with the SDK work without starting a local Node?

I followed this guide to create an account and get the balance. I am also running this docker instance. I am confused (and impressed) that I don't have to start a node (e.g. the docker instance) or ...
solaire's user avatar
  • 113
2 votes
2 answers
386 views

Error in transaction creation

I am creating a transaction. When I am submitting the transaction to the blockchain it is giving an error. I will post the code below. Could anyone tell me where I am going wrong? from stellar_base....
merklexy's user avatar
2 votes
1 answer
117 views

Unable to set optional 'Source Account' on 'Manage Data' operation

On all other operations I can use a different 'Source Account', but if I try to do it on 'Manage Data', I get: 'tx_failed' when sending with Python-sdk no changes applied to XDR if I try it in ...
Linas's user avatar
  • 108
2 votes
1 answer
123 views

Python vs Java(script) for stellar apps. Is it worth learning a new language?

I am starting to get into programming apps for crypto, and I would like to start on the Stellar network. My programming background lies mainly in C and Python, and I am a reasonably competent self ...
KBriggs's user avatar
  • 123
5 votes
3 answers
2k views

How to decode XDR of the result_xdr

So my code is: envelope = Te(tx=tx, opts={"network_id": "TESTNET"}) envelope.sign(receiving_account) xdr = envelope.xdr() response = horizon.submit(xdr) # TO DO: Have to check if done well print('...
Volatil3's user avatar
  • 215
2 votes
1 answer
182 views

How do I retrieve the source account, memo, and amount using python?

How can I retrieve: transaction amount memo source Account from envelope_xdr using the python sdk?
user3371141's user avatar
2 votes
1 answer
92 views

Python Stellar SDK Test Net

I'm confused on how to use the Stellar Testnet for python. I have set up the friendbot to create an account. ('https://friendbot.stellar.org') How do we set up a balance on the testnet using the bot?
Decenture 's user avatar
4 votes
1 answer
111 views

How to extract the public address from the private seed in python?

Given the private seed, how do I get the public address in Python using Stellar's SDK?
FuzzyAmi's user avatar
  • 1,581
1 vote
1 answer
136 views

Error while setting up Stellar Python SDK on Amazon EC2

SO I run the command sudo python3.6 -m pip install stellar-base and I am getting the error: e) Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.6/site-packages (from ...
Volatil3's user avatar
  • 215
1 vote
1 answer
118 views

Python / Django - Accept payements ? Seed storage?

Tried to search over github for a readymade Django Stellar Package, is there any available or do I have to start from scratch using the Python SDK ? How to safely store the seed/mnemonic for a public ...
Romain BOURDY's user avatar