TheSeven has quit [Ping timeout: 268 seconds]
TheSeven has joined #stellar-dev
de_henne has joined #stellar-dev
de_henne_ has quit [Ping timeout: 244 seconds]
jbenet_ has joined #stellar-dev
jbenet has quit [Ping timeout: 246 seconds]
etrepum has quit [Ping timeout: 246 seconds]
jbenet_ is now known as jbenet
etrepum has joined #stellar-dev
koshii has left #stellar-dev [#stellar-dev]
doppelgnubeard has joined #stellar-dev
doppelgnubeard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
acetakwas has joined #stellar-dev
<stellar-slack> <michael> Hi bartek, iam using java-stellar-sdk, when i try to create account operation, iam unable to do it..can u fix where iam doing mistake, iam sending my code
<stellar-slack> <michael> final Server stellarServer = new Server("https://horizon.stellar.org"); KeyPair existingAccountKeyPair = KeyPair.fromSecretSeed("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); KeyPair newAccountKeyPair = KeyPair.fromSecretSeed("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); AccountResponse acntResp = stellarServer.accounts().account(existingAccountKeyPair); final Transaction.Builder transactionBuilder = new
<stellar-slack> amount="50"; final CreateAccountOperation createAccountOperation = new CreateAccountOperation.Builder(newAccountKeyPair, amount).setSourceAccount(existingAccountKeyPair).build(); transactionBuilder.addOperation(createAccountOperation); transactionBuilder.addMemo(Memo.text("ExampleAccount")); final Transaction createAccountTransaction = transactionBuilder.build(); createAccountTransaction.sign(existingAccountKeyPair);
<stellar-slack> account..."); final SubmitTransactionResponse createAccountResponse = stellarServer.submitTransaction(createAccountTransaction);
acetakwas has quit [Disconnected by services]
ac3takwas has joined #stellar-dev
<stellar-slack> <bartek> what error are you getting?
<stellar-slack> <michael> when i call isSuccess() method then iam getting false
<stellar-slack> <bartek> and then `Extras getResultCodes()`
<stellar-slack> <michael> when i call `Extras.getResultCodes()` i got this org.stellar.sdk.responses.SubmitTransactionResponse$Extras$ResultCodes@7ec7ffd3 and when i call `Extras.getResultCodes()`.getTransactionResultCode(); then i got tx_bad_auth
<stellar-slack> <bartek> `tx_bad_auth` means the signature is wrong. I remember you're working with the private network - have you updated network passphare in java-sdk?
<stellar-slack> <michael> i dont know about it?how can i do it?
<stellar-slack> <bartek> oh, sorry, I just checked your avatar and not a nickname. so you want to submit this transaction to public network? you need to add: ``` Network.usePublicNetwork(); ``` in the beginning of your script
<stellar-slack> <michael> thank you bartek, i will try...support is so good...thank you somuch
<stellar-slack> <michael> bartek it works perfect...thanks alot
<stellar-slack> <bartek> :thumbsup:
<stellar-slack> <michael> also when i expect setting time bounds on transactions in java-stellar-sdk?
<stellar-slack> <michael> that feature is in js-stellar-sdk
<stellar-slack> <bartek> I can't give you any exact time. it's not very complicated change so hopefully someone from the community can do it (maybe you? :) ).
stellar-slack has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev
takwas has joined #stellar-dev
ac3takwas has quit [Ping timeout: 240 seconds]
takwas has quit [Ping timeout: 244 seconds]
<stellar-slack> <michael> when iam trying on laboratory, iam getting only few payment paths, how can i get more payment paths? i need INR, USD, EURO, GBP asset issuer public keys
<stellar-slack> <bartek> @michael: check this https://www.stellar.org/developers/learn/concepts/exchange.html path payments are consuming offers in the network. unfortunatelly, the number of offers is still low but you can create your own offers in testnet to check this out.
<stellar-slack> <michael> thank you bartek, one more question, how can i get public keys of asset issuers and their asset types?is this possible?
<stellar-slack> <michael> i want to sell my lumens and i want to buy USD, to buy i need to trust the issuer, how can i trust if i dont know the asset issuer public key?
<stellar-slack> <bartek> anyone can issue any asset on Stellar. there can be multiple USD issuers (ex. Bank of America, Wells Fargo, etc.) I think in most cases end users won't need to know public key of issuers, it all will be done in a backend.
<stellar-slack> <michael> ok thank you
<stellar-slack> <michael> if i create a manage offer, in how much time it will be executed?
<stellar-slack> <bartek> it will be added to orderbook right away, but will wait until there's a counter offer.
<stellar-slack> <bartek> > Let's say that you make an offer to buy 10 XLM for 2 BTC. If an offer already exists to sell 10 XLM for 2 BTC, your offer will take that offer--you'll be 2 BTC poorer but 10 XLM richer. > >If the offer doesn't crosses an existing offer, the offer is saved in the orderbook until it is either taken by another offer, taken by a payment, canceled by the account that created the offer, or invalidated because t
<stellar-slack> has the asset for sale.
<stellar-slack> <michael> thanks bartek, i will come with more questions tomorow..
takwas has joined #stellar-dev
de_henne has quit [Quit: No Ping reply in 180 seconds.]
de_henne has joined #stellar-dev
de_henne has quit [Client Quit]
de_henne has joined #stellar-dev
takwas has quit [Ping timeout: 244 seconds]