BitShares Forum

Other => Graveyard => BitShares PTS => Topic started by: testz on January 19, 2014, 01:34:40 pm

Title: ProtoShares client with getagsbalance command
Post by: testz on January 19, 2014, 01:34:40 pm
getagsbalance command shows your wallet total AGS balance based on information from http://cryptoseed.cloudapp.net:81/agsbalances.json. If you just sent PTS to AGS donation address, they will be count only at the next day (after GMT 00:15)

To run the command in the ProtoShares client go to Help -> Debug window -> Console and type:
Code: [Select]
getagsbalanceor for verbose output
Code: [Select]
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://cryptoseed.cloudapp.net:81/agsbalances.json

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/7fqwiwujhun3lmt/protoshares-0.4.2.zip
MD5 of zip is 30eff7b3aac3f5b91162e669e191d077

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

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

Update: Included in new client https://bitsharestalk.org/index.php?topic=2995.0
Title: Re: ProtoShares client with getagsbalance command
Post by: HackFisher on January 19, 2014, 03:30:33 pm
+1
Title: Re: ProtoShares client with getagsbalance command
Post by: Bitcoinfan on January 19, 2014, 07:08:05 pm
How do I import the log on a mac?
Title: Re: ProtoShares client with getagsbalance command
Post by: bytemaster on January 19, 2014, 08:41:56 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:
Code: [Select]
getagsbalanceor for verbose output
Code: [Select]
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?
Title: Re: ProtoShares client with getagsbalance command
Post by: testz on January 19, 2014, 09:11:04 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.
Title: Re: ProtoShares client with getagsbalance command
Post by: bytemaster on January 19, 2014, 09:12:34 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?
Title: Re: ProtoShares client with getagsbalance command
Post by: testz on January 19, 2014, 09:17:03 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.
Title: Re: ProtoShares client with getagsbalance command
Post by: testz on January 19, 2014, 09:22:53 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.
Title: Re: ProtoShares client with getagsbalance command
Post by: 5chdn on January 20, 2014, 08:36:05 am
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?

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

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.
Title: Re: ProtoShares client with getagsbalance command
Post by: testz on February 02, 2014, 01:14:01 pm
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
Title: Re: ProtoShares client with getagsbalance command
Post by: vertoe on February 02, 2014, 03:32:06 pm
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
Title: Re: ProtoShares client with getagsbalance command
Post by: testz on February 02, 2014, 06:39:39 pm
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
Title: Re: ProtoShares client with getagsbalance command
Post by: soniq on February 02, 2014, 07:11:11 pm
thank you, tip sent
Title: Re: ProtoShares client with getagsbalance command
Post by: 5chdn on February 05, 2014, 09:58:09 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!
Title: Re: ProtoShares client with getagsbalance command
Post by: testz on February 06, 2014, 01:35:54 am
Cool stuff. Merged it into master. Thanks!

Thanks  :)
Title: Re: ProtoShares client with getagsbalance command
Post by: liondani on May 01, 2014, 08:36:02 pm
 +5%  (Thanks very helpfull)