Main Menu

ProtoShares client with getagsbalance command

Started by testz, January 19, 2014, 01:34:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

liondani

#16
 +5%  (Thanks very helpfull)
[url="https://www.steempeak.com/@liondani"]https://www.steempeak.com/@liondani[/url]

testz


5chdn

Quote from: testz on February 02, 2014, 06:39:39 PM
Quote from: vertoe on February 02, 2014, 03:32:06 PM
Quote from: testz on February 02, 2014, 01:14:01 PM
Quote from: donschoe on January 20, 2014, 08:36:05 AM
As a backup, there is also my API available. http://q39.protoshar.es/ags/3/balances.json

Update: protoshares-0.4.2 based on http://cryptoseed.cloudapp.net:81/agsbalances.json (updates every hour) which is based on donschoe https://github.com/donSchoe/ags-parser data

Not sure but could it be the http://cryptoseed.cloudapp.net:81/agsbalances.json is using the wrong API version? donSchoe's API looks different: http://q39.protoshar.es/ags/3/balances.json

Yes, it's little bit modified version of donSchoe's ags_balance.rb which still using csv files hosted by donSchoe:
https://github.com/testzcrypto/ags-parser/blob/master/ags_balance_brief.rb

Cool stuff. Merged it into master. Thanks!

soniq

Pr7V9GUm59dtKWXG6RJSymPsyCaCKWwNEj
Soniq on Bitcointalk -- Verified
Bitshares btsx:soniq

testz



testz


5chdn

#9
Testz, could you check out this thread? https://bitsharestalk.org/index.php?topic=1963.0

Would it be possible to create an AGS-branch of the bitcoin wallet aswell?

Quote from: testz on January 19, 2014, 09:11:04 PM
Sure everything possible and I already think about this, the main problem as I can see that if http://angelshares.info will be offline or something goes wrong with API we need somehow to notify user about problems, and for now I doesn't see the elegant solution for this but I will keep thinking and looking into client code, maybe I will manage to show such kind of notifications as bitcoin style client alerts.

As a backup, there is also my API available. http://q39.protoshar.es/ags/3/balances.json

Quote from: testz on January 19, 2014, 09:22:53 PM
Quote from: bytemaster on January 19, 2014, 09:12:34 PM
In theory every client could calculate AGS balances with its own SCAN of the blockchain?
Yes, it's right way to do this, it's more complicated to do but I will try to look for this as well.

Every client has to run in -txindex=1 -reindex=1 mode for that, but this would be the best approach.

testz

Quote from: bytemaster on January 19, 2014, 09:12:34 PM
Quote from: testz on January 19, 2014, 09:11:04 PM
Quote from: bytemaster on January 19, 2014, 08:41:56 PM

Amazing work testz!   Send me a PTS address and I will send you a tip.   Any chance you could display the AGS balance in the GUI next to the PTS balance?

Thanks!  :)
Sure everything possible and I already think about this, the main problem as I can see that if http://angelshares.info will be offline or something goes wrong with API we need somehow to notify user about problems, and for now I doesn't see the elegant solution for this but I will keep thinking and looking into client code, maybe I will manage to show such kind of notifications as bitcoin style client alerts.

In theory every client could calculate AGS balances with its own SCAN of the blockchain?

Yes, it's right way to do this, it's more complicated to do but I will try to look for this as well.

testz

Quote from: Bitcoinfan on January 19, 2014, 07:08:05 PM
How do I import the log on a mac?

You need get sources from https://github.com/InvictusInnovations/ProtoShares with my pull request and compile the client, or wait until someone will compile the mac version.
I'm not so familiar with OSX but if no one helps you I will try to compile the Mac version by myself.

bytemaster

Quote from: testz on January 19, 2014, 09:11:04 PM
Quote from: bytemaster on January 19, 2014, 08:41:56 PM

Amazing work testz!   Send me a PTS address and I will send you a tip.   Any chance you could display the AGS balance in the GUI next to the PTS balance?

Thanks!  :)
Sure everything possible and I already think about this, the main problem as I can see that if http://angelshares.info will be offline or something goes wrong with API we need somehow to notify user about problems, and for now I doesn't see the elegant solution for this but I will keep thinking and looking into client code, maybe I will manage to show such kind of notifications as bitcoin style client alerts.

In theory every client could calculate AGS balances with its own SCAN of the blockchain?
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

testz

Quote from: bytemaster on January 19, 2014, 08:41:56 PM

Amazing work testz!   Send me a PTS address and I will send you a tip.   Any chance you could display the AGS balance in the GUI next to the PTS balance?

Thanks!  :)
Sure everything possible and I already think about this, the main problem as I can see that if http://angelshares.info will be offline or something goes wrong with API we need somehow to notify user about problems, and for now I doesn't see the elegant solution for this but I will keep thinking and looking into client code, maybe I will manage to show such kind of notifications as bitcoin style client alerts.

bytemaster

Quote from: testz on January 19, 2014, 01:34:40 PM
getagsbalance command shows your wallet total AGS balance based on information from http://angelshares.info/json/?allAddresses. If you just sent PTS to AGS donation address, they will be count only at the next day (after GMT 00:10)

To run the command in the ProtoShares client go to Help -> Debug window -> Console and type:
getagsbalance
or for verbose output
getagsbalance *

Command usage: getagsbalance [account]
  If * is specified, returns the verbose AGS balance of all addresses.
  If [address] is not specified, returns the total AGS balance of all addresses.
  If [address] is specified, returns the AGS balance of the address.
  Note: Result based on data gathered from http://angelshares.info/json/?allAddresses

I already submit these changes to official ProtoShares repository:
https://github.com/InvictusInnovations/ProtoShares/pulls

Precompiled ProtoShares client for Windows you can download from: https://www.dropbox.com/s/44nsvz1qbifp4r6/protoshares-0.4.1.zip
MD5 of zip is 7dbb8aec109c9eeab6547e992403e0aa

If you find this information useful any donate will be greatly appreciated
PTS: PeDsn5rpjYkuixKcM81f86GE469HMf7QgN

Amazing work testz!   Send me a PTS address and I will send you a tip.   Any chance you could display the AGS balance in the GUI next to the PTS balance?
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Bitcoinfan


HackFisher

Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.