koshii has joined #stellar-dev
<stellar-slack> <sacarlson> zhima2006: so your going to write your wallet in python? I think @eno wrote the the stellar-base for python. he hangs out here
de_henne_ has joined #stellar-dev
de_henne has quit [Ping timeout: 260 seconds]
pixelb has quit [Ping timeout: 250 seconds]
<stellar-slack> <eno> zhima2006 i am sorry . i don't upload it to pypi . you can get it use git now.
<stellar-slack> <eno> sacarlson i saw you didn't get the lucky money from @2667273151 . you submited a brand new address,and my code can't do the create_account op automatically . maybe tomorrow you will get these lumens.
<stellar-slack> <sacarlson> oh my wallet auto creates accounts if it not created as long as you send at least 20 lumens. it's easy to add to the code
<stellar-slack> <sacarlson> just more code I barrowed from powerfan
<stellar-slack> <eno> yes . some guys may not got 20 lumens each time. so i will store lumens until more than 20 and create they accounts
de_henne has joined #stellar-dev
de_henne_ has quit [Ping timeout: 246 seconds]
koolhead17 has joined #stellar-dev
TheSeven has quit [Disconnected by services]
[7] has joined #stellar-dev
bit2017 has quit [Ping timeout: 240 seconds]
koolhead17 has quit []
koolhead17 has joined #stellar-dev
koolhead17 has quit [Changing host]
koolhead17 has joined #stellar-dev
bit2017 has joined #stellar-dev
de_henne has quit [Remote host closed the connection]
de_henne 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 [Changing host]
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
pixelb has joined #stellar-dev
bit2017 has quit [Ping timeout: 250 seconds]
koolhead17 has quit [Remote host closed the connection]
<stellar-slack> <ant> looking for js sample code to issue a new asset...
<stellar-slack> <dzham> not sure if the samples are there, but what you do is 1) recipient needs to trust the issuer 2) after that, issuer can issue a normal payment to recipient
<stellar-slack> <bartek> first read this: - https://www.stellar.org/developers/learn/concepts/assets.html - https://www.stellar.org/developers/js-stellar-base/learn/base-examples.html#assets then to issue a new asset you need to have an account that trusts your account (you need to send https://www.stellar.org/developers/learn/concepts/list-of-operations.html#change-trust from that account) and then send any amount of your asset to
koolhead17 has joined #stellar-dev
koolhead17 has joined #stellar-dev
<stellar-slack> <sacarlson> ant: my wallet might be the example you are looking for that can add trustlines. then all that is need is to issuer assets from the same account that is sending them.
koolhead17 has quit [Remote host closed the connection]
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]
<stellar-slack> <ant> looking at py-stellar-base - https://github.com/StellarCN/py-stellar-base/blob/master/stellar_base/sample.py I can change memos, change assets etc but the sample code doesn't seem to let me submit a transaction - it dies on line 58
<stellar-slack> <ant> envelope.sign(Keypair.from_seed(anna['seed'])) ... Exception: value must be a string
<stellar-slack> <ant> no worries - fixed it
<stellar-slack> <jed> is the example wrong?
<stellar-slack> <ant> submitted 2 patches and it is working now
stellar-slack has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev
pixelb has quit [Ping timeout: 240 seconds]
bit2017 has joined #stellar-dev
bit2017 has quit [Ping timeout: 240 seconds]
[7] has quit [Ping timeout: 240 seconds]
TheSeven has joined #stellar-dev
pixelb has joined #stellar-dev
<stellar-slack> <ant> questions: 1)for stellar.toml files is there a list of them? Do all accounts have to appear here? 2) What is the best way to see what assets are on the network? Scanning stellar.toml files 3) What is the best way to verify the exchange rate between two assets? 4) What is the best way to get the latest ledger version? Thanks
<stellar-slack> <jed> 1) stellar.toml files are just to help clients. They aren't essential to the stellar protocol. They are mainly used in the federation process to convert things like `bob*http://somedomain.com|somedomain.com` to accountIDs
<stellar-slack> <jed> 2) You want to look up the assets on the network out of curiosity or for something programmatic?
<stellar-slack> <jed> 4) the version is in the ledger header. We should probably have horizon display it here: https://horizon.stellar.org/ledgers?order=desc&limit=1
<stellar-slack> <jed> But if you are running stellar-core you can look at the ledger header in the DB directly
<stellar-slack> <jed> ant ^
<stellar-slack> <ant> 1) So stellar.toml aren't used currently? They list the assets supported by gateways thats why I was interested. 2) Both If you want to get a quote on an asset isn't best to know what is available? As each gateway issues assets how can we tell what is available? Check the current ledger? - also if someone wants to know the rate we would simply use? https://www.stellar.org/developers/horizon/reference/orderbook
<stellar-slack> it currectly curl -s 'https://horizon.stellar.org/ledgers?order=desc&limit=1'; | jq ._embedded.records[0].sequence
<stellar-slack> <scott> @ant: at present, if you want to know every asset that is currently issued on the stellar network you would need to run your own stella-core instance and query its sql database
<stellar-slack> <jed> ant: 1) All the projects I know of that are using federation are going to have a stellar.toml but I don't know of a live one yet. 2) In general you don't need to worry about what assets are out there. You know what you have and you know what you are trying to get to the recipient. (Like you have USD and you are sending to someone in france that wants to hold EUR) at that point you can just use path finding to
<stellar-slack> them.
<stellar-slack> <jed> I think that endpoint is what you are looking for it will tell you the rate between two assets as well
allah has joined #stellar-dev
pixelb has quit [Ping timeout: 240 seconds]
pixelb has joined #stellar-dev
<stellar-slack> <zhima2006> I have built stellar-core and horizon, how to interact directly with horizon (and stellar-core) I built via curl or a web browser?