Questions tagged [java-sdk]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
2k 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 ...
1
vote
1answer
87 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 ...
2
votes
1answer
41 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 .
2
votes
1answer
93 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/...
2
votes
1answer
142 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(...
4
votes
1answer
120 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 ...
5
votes
2answers
571 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?
6
votes
1answer
188 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 ...
2
votes
1answer
385 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 ...
2
votes
1answer
80 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 ...
4
votes
2answers
224 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 ...

1
2