Author Topic: ProtoShares client with getagsbalance command  (Read 10340 times)

0 Members and 1 Guest are viewing this topic.

Offline liondani

  • Hero Member
  • *****
  • Posts: 3737
  • Inch by inch, play by play
    • View Profile
    • My detailed info
  • BitShares: liondani
  • GitHub: liondani
Re: ProtoShares client with getagsbalance command
« Reply #16 on: May 01, 2014, 08:36:02 pm »
 +5%  (Thanks very helpfull)
« Last Edit: May 01, 2014, 08:38:37 pm by liondani »

Offline testz

Re: ProtoShares client with getagsbalance command
« Reply #15 on: February 06, 2014, 01:35:54 am »
Cool stuff. Merged it into master. Thanks!

Thanks  :)

Offline 5chdn

  • Sr. Member
  • ****
  • Posts: 487
  • i wonder how many chars i can put in this field 50
    • View Profile
    • Votesapp
  • GitHub: 5chdn
Re: ProtoShares client with getagsbalance command
« Reply #14 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!

Offline soniq

  • Full Member
  • ***
  • Posts: 181
    • View Profile
Re: ProtoShares client with getagsbalance command
« Reply #13 on: February 02, 2014, 07:11:11 pm »
thank you, tip sent
Pr7V9GUm59dtKWXG6RJSymPsyCaCKWwNEj
Soniq on Bitcointalk -- Verified
Bitshares btsx:soniq

Offline testz

Re: ProtoShares client with getagsbalance command
« Reply #12 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

Offline vertoe

  • Jr. Member
  • **
  • Posts: 30
  • i'm here
    • View Profile
Re: ProtoShares client with getagsbalance command
« Reply #11 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

Offline testz

Re: ProtoShares client with getagsbalance command
« Reply #10 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

Offline 5chdn

  • Sr. Member
  • ****
  • Posts: 487
  • i wonder how many chars i can put in this field 50
    • View Profile
    • Votesapp
  • GitHub: 5chdn
Re: ProtoShares client with getagsbalance command
« Reply #9 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.
« Last Edit: January 20, 2014, 08:39:49 am by donschoe »

Offline testz

Re: ProtoShares client with getagsbalance command
« Reply #8 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.

Offline testz

Re: ProtoShares client with getagsbalance command
« Reply #7 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.

Offline bytemaster

Re: ProtoShares client with getagsbalance command
« Reply #6 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?
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline testz

Re: ProtoShares client with getagsbalance command
« Reply #5 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.

Offline bytemaster

Re: ProtoShares client with getagsbalance command
« Reply #4 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?
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline Bitcoinfan

  • Sr. Member
  • ****
  • Posts: 240
    • View Profile
Re: ProtoShares client with getagsbalance command
« Reply #3 on: January 19, 2014, 07:08:05 pm »
How do I import the log on a mac?

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Re: ProtoShares client with getagsbalance command
« Reply #2 on: January 19, 2014, 03:30:33 pm »
+1
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.