pixelbeat_ has quit [Ping timeout: 260 seconds]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
de_henne_ has joined #stellar-dev
de_henne has quit [Ping timeout: 246 seconds]
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
TheSeven has quit [Ping timeout: 250 seconds]
TheSeven has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Ping timeout: 255 seconds]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Changing host]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Ping timeout: 240 seconds]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Ping timeout: 264 seconds]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Ping timeout: 272 seconds]
koolhead17 has joined #stellar-dev
pixelbeat_ has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
pixelbeat_ has quit [Remote host closed the connection]
alaniz has joined #stellar-dev
alaniz has quit [Ping timeout: 276 seconds]
stadja has joined #stellar-dev
<stadja> Hey channel
<stadja> I hope you're well
<stadja> I was wondering
<stadja> is there a PHP stellar sdk somewhere ?
<stadja> It is possible to generate a stellar account with php (not using the javascript sdk)
<stadja> ?
<stellar-slack> <jed> hi stadja
<stellar-slack> <jed> No one has made a PHP sdk but it would be great if someone did
<stadja> ok :)
<stadja> what is the process of generating a key ? (what's behind the javascript curtains ?) => yes I know it is open source but if someone know I won't have to check everything :)
<stadja> ok I just checked the github :)
<stellar-slack> <jed> ok cool. Let us know if you have questions
<stellar-slack> <jed> I know there were other people also wanting a PHP lib so if you put something on github people might help out
<stadja> Thanks
<stadja> what I would like to do, in order to start to test / understand
<stadja> is some kind of very small API wrapper (around the existing API)
<stadja> I mean, create a minimum API with just
<stellar-slack> <bartek> the minimum API would created
<stadja> - create an account - found it with friendbot - check balance - make some easy transaction
stellar-slack has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev
<stellar-slack> <bartek> it would be easy to communicate with Horizon (our API server) using pure PHP funcitons
<stadja> I know :)
<stadja> that's what I want to do
<stadja> the main "challenge" is the "create an account"
<stadja> because it is not API based :)
<stellar-slack> <jed> stadja: yeah there are sort of two parts to our existing sdk's
<stellar-slack> <jed> 1) Create Tx's
<stellar-slack> <jed> 2) Communicate with horizon
<stadja> Tx's => transactions ?
<stellar-slack> <jed> You should start with 1) since it is pretty straight forward to make requests to horizon without an API
<stellar-slack> <jed> yeah
<stadja> yup
<stellar-slack> <jed> All the repos we have language-stellar-base are the ones that create transactions: https://github.com/stellar?utf8=%E2%9C%93&query=base
<stadja> but the main "creating an account" problem will still be there... I am currently checking the ruby and the python sdk to see If I manage to use one of them... I really don't want to create a node server just to generate my key pairs
<stellar-slack> <bartek> to create a Stellar account you need to generate ed25519 key pair, then you need to encode the public key to generate "account Id". (you need to port encoding algorithm to PHP from here: https://github.com/stellar/js-stellar-base/blob/master/src/strkey.js). to create an account in the ledger you need someone else (ex. exchange) to create an account for you by sending there at least 20 XLM.
<stellar-slack> <bartek> this may be helpful to generate key pair in PHP: https://github.com/devi/Salt
<stadja> Thank you for your explainations !
<stadja> I'll try to figure something out
<stellar-slack> <bartek> @stadja here you can find more PHP libs: http://ianix.com/pub/ed25519-deployment.html
alaniz has joined #stellar-dev
alaniz has quit [Client Quit]
<stadja> (do you know if the ruby, python or go version have a working key pair generation ?)
<stellar-slack> <jed> ruby and go do
<stellar-slack> <jed> python probably does
<stadja> So I'll think I'll hack something with a bash script and a php exec (yes, it is ugly I know)
<stadja> :)
<stadja> thank you all for your help I'll be afk
<moo-_-> stadja: if you expose any bash to web interface be careful
<moo-_-> oh reddit has taken down this hilarious troll https://www.reddit.com/r/PHP/comments/1l7baq/creating_a_user_from_the_web_problem/
koolhead17 has joined #stellar-dev
h0rse has joined #stellar-dev
h0rse has quit [Client Quit]
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
Kwelstr` is now known as Kwelstr
stadja has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Changing host]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
<stellar-slack> <bartek> making requests to servers implementing federation protocol now possible with js sdk: https://stellar.github.io/js-stellar-sdk/FederationServer.html
<stellar-slack> <bartek> AFAIK cursor "now" works only with streaming.
<stellar-slack> <bartek> (it doesn't make sense for normal requests - you will always get empty response)
<stellar-slack> <brian.ebert> So how would I get the last 10 ledgers and not the first 10?
<stellar-slack> <brian.ebert> Thanks, BTW
<stellar-slack> <bartek> (I'm on mobile so I can't give you an example but use this method)
<stellar-slack> <brian.ebert> Thanks. So if I curl the request, "now" and "desc" do the trick. If I take a paging token from the curl response however and substitute it for "now" in the uncommented code, I get the same error.
<stellar-slack> <brian.ebert> An issue with the example page you sent is that it doesn't include javascript examples of setting options. It is tempting me to just go down and try to build and make the https request myself, but that feels like a step backwards.
<stellar-slack> <bartek> You don't need cursor in this case. Use order desc and limit 10.
<stellar-slack> <brian.ebert> Doesn't that leave me with the same problem, because the default is ASC and I can't set options? Give me a sec and let me see if I can set the order. I assume it's .order("desc")
<stellar-slack> <brian.ebert> OK, that did it!
<stellar-slack> <brian.ebert> Thank you very much.
<stellar-slack> <brian.ebert> OK: more cursor questions. If I pull the paging token from a ledger and then use that to set the cursor on a subsequent call, do I expect that ledger page to begin the array of records in the response object?
<stellar-slack> <scott> The first ledger shown will be the ledger _after_ the provided cursor
<stellar-slack> <scott> (or before if ordered descending)
<stellar-slack> <brian.ebert> Thanks. Guys, you really do a great support job. It's noticed and appreciated.
<stellar-slack> <scott> :) always happy to help
<stellar-slack> <brian.ebert> I want to revisit something I raised about a month ago. I'm interested in consensus stats. I asked about it and Jed led me to the timestamp on the ledger page. I've got that now, but isn't that the stamp for when consensus is reached? If I look at transactions will they tell me when they were submitted?
<stellar-slack> <scott> The only date information tracked by the network (that I know of) is “the date/time in which a ledger X was closed”.
<stellar-slack> <scott> From the programmers point of view, a transaction comes into existence at the same moment the ledger it is a part of is closed
<stellar-slack> <scott> While we do have a `created_at` attribute for transactions in horizon, it is just an alias of the ledger close time
<stellar-slack> <brian.ebert> OK. I guess I can check my own transactions myself. Thanks.