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>
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>
<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.