Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

2
votes
2answers
89 views

TimeBounds won't execute?

I struggle using the timebounds option for an operation. Use case : I want a transaction to be executed at a precise time, not before, not after. I'm doing my tests on the test network. The ...
5
votes
1answer
31 views

minTime must be >= maxTime ? Java SDK

I'm trying to add a simple time bounds with the Java SDK to settle a transaction happening at a certain time. Code used : Instant unlockDate = Instant.now().plusSeconds(60 * 2); TimeBounds ...
0
votes
2answers
43 views

Trading error 400, what's the problem?

I receive an HTTP 400 error from the /transactions endpoint on public Horizon when running this code: try { Network.usePublicNetwork(); Server server = new Server("https://horizon.stellar.org"...
0
votes
1answer
25 views

Compliance Server Request

Still new on stellar but am having a challenge when using the default compliance server for Auth_request. Keep on getting the below error. { "code": "invalid_parameter", "message": "Invalid ...
1
vote
2answers
59 views

Java SDK: Transaction object from envelope

In Javascript SDK, transaction can be built, signed and then be converted to envelope xdr/string format. This is very useful for multi sig operations since we can retrieve the transaction object from ...
1
vote
1answer
52 views

How to setup time bounds for an escrow account?

I am trying to create 2-Party Multisignature Escrow Account with Time Lock & Recovery as in this ref:https://www.stellar.org/developers/guides/walkthroughs/stellar-smart-contracts.html Now, I ...
1
vote
1answer
59 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 ...
1
vote
1answer
42 views

Stream stop get new data when finishing fetch all data and new payment was created

I using java-stellar-sdk version 0.2.0 from this: https://github.com/stellar/java-stellar-sdk/releases I did as tutorial example: @Override protected void onCreate(Bundle savedInstanceState) { ...
1
vote
1answer
45 views

How to get Transaction amount from API?

I want to display all transactions of given users. Using the Java API, I presume I would do: server.transactions().forAccount(destination2).execute(); I would then page through the result. Each item ...
1
vote
1answer
65 views

How to sign the XDR transaction envelop and and post it through java sdk?

I received XDR envelope of a transaction. I need to sign it and submit using Java SDK. I am able to decode the XDR, but need help on how to sign and submit.
2
votes
1answer
139 views

Convert XDR to text

I want to convert the XDR fromat of the transaction to text using JS or java SDK in stellar.Or if there are any methods outside stellar also fine.
3
votes
1answer
39 views

java sdk leaking threads; my fault or bug?

In the simplest case, when I have a KeyPair key for an account that doesn't yet exist, and call // private Server mServer; // declared and intialized elsewhere mServer.accounts().account(key); it ...
1
vote
2answers
83 views

Simple Transaction Issue

I am working on a small and very basic project, essentially doing a POC involving stellar transactions. I am a newbie with stellar. I have two clients running the same code, and a 'banker' who ...
1
vote
1answer
44 views

Issue with Submit Transaction

Am using Java SDK and Horizon Testnet. Issue is when i submit a transaction using server.submitTransaction method i get following exception, please let me know if you need any more information javax....
5
votes
0answers
124 views

How to sign TransactionEnvelope and post TransactionEnvelope to Horizon Server using Stellar Java SDK

I am implementing Stellar Smart Contract where in account has 2 signers. Goal is second signer can withdraw funds after certain date and if not withdrawn first signer can recover / transfer the funds. ...
0
votes
1answer
46 views

best way to store and retrieve an Asset

Does anybody know best way to store an Asset descriptor once it has been created with Asset.createNonNativeAsset(currencyName, issuingKeys);? How do we store it and retrieve the reference when we need ...
0
votes
1answer
1k views

Multiple dex files define Lokio/AsyncTimeout$Watchdog;

After adding Stellar-SDK jar file and syncing Gradle, I did a clean and rebuild of my project and got this error. It seems that same class was used by another jar that has been added as dependency in ...
0
votes
1answer
69 views

How to get wallet id of an order?

I want to block some dumpers of my coin. Is there any Java code which I can use to get the wallet id of the low offers? For example if someone is buying less then 0.1 I want to get that offer and the ...
1
vote
1answer
29 views

Is there anyway to get the amount of asset which you sent?

as an ashore is there anyway to get the amount of the asset which you sent to the other wallets? like the the addition operation .
1
vote
1answer
56 views

How can i can freeze credit held by another account in Stellar SDK?

I read the guide from stellar.org but still couldn't find a solution. This is the guide: https://www.stellar.org/developers/guides/issuing-assets.html https://www.stellar.org/developers/guides/...
0
votes
0answers
33 views

No Getter field for Memo from OperationResponse object while streaming transaction from horizon EventListener

PaymentOperationResponse object don't provide the get method for fetching Memo Code Snippet: STELLAR_BASE_ACCOUNT_PUBLIC_KEY= redisMapImplementation.get(StellarRedis.STELLAR_KEYS.getKeys(), ...
1
vote
1answer
37 views

Error while fetching account details from key pair [Java-stellar-sdk]

While fetching details of account using private SEED on stellar test net I am getting the below error: Error response from the server. at org.stellar.sdk.requests.ResponseHandler.handleResponse(...
3
votes
1answer
61 views

Monitoring if offers are filled

I read the guide about watching for incoming payments, but trades on the distributed exchange don't show up as payments (this makes sense). So, I've been looking through the available RequestBuilder ...
4
votes
2answers
171 views

How do you cancel all open trades for a Stellar account?

I'm looking at the Java docs and I can't find any way to delete every order for an account. Is there an easy way to cancel/remove all open trades/offers?
4
votes
1answer
90 views

How to listen to a third party account for stellar transactions from now?

I used paymentRequest.stream to start listen to events for a third party account. But it gets all events from the beginning if I don't provide a paging token. As it is a third party account, my ...
1
vote
1answer
139 views

Using Java api, how to find out the memo attached to a payment operation?

I can use the following code from example to receive payment event from public horizon. But the pos variable doesn't have memo information. Where should I get the memo from a certain paymente ...
1
vote
1answer
37 views

How to parse current offers with the Java SDK

Sorry for another illiterate question, but how the heck do you parse the https://horizon-testnet.stellar.org/accounts/ACCOUNT_PUBLIC_ID/offers page? There is almost no documentation on this. I have ...
3
votes
2answers
92 views

How to use the ManageOfferOperation with Assets in the Java SDK?

Right now I'm playing around with the test server Server server = new Server("https://horizon-testnet.stellar.org"); The Stellar getting started guides are very well written, but definitely ...