Author Topic: Developer delegate: dev.bitsharesblocks  (Read 104919 times)

0 Members and 1 Guest are viewing this topic.

Offline btswolf

Please can you add "last Price" to the MPA/UIA overview page?

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
@svk UIA with ID >410 doesn't show on the site.

//Edit:
Looks like fixed now.
« Last Edit: March 07, 2015, 05:44:48 pm by abit »
BitShares committee member: abit
BitShares witness: in.abit

Offline thisisausername

It would be nice if the home page price chart had a button to load the rest of the data.

Speaking of charts, the "BTS TRANSACTION VOLUME", "BTS NUMBER OF TRANSACTIONS" and "NEW ACCOUNTS" would be much more useful with at least a 7-day moving average line.

The "TOTAL NUMBER OF ACCOUNTS" chart could use a log scale to make variation in "New unique accounts" visible.  (Also I couldn't find anything on how unique accounts are distinguished from the rest.)
Pjo39s6hfpWexsZ6gEBC9iwH9HTAgiEXTG

Offline vikram

Just a suggestion: it'd be nice to be able to switch to a longer-term view(s) for the price history chart if possible.

On the home page you mean? I've kept it short there to reduce load speed and make it more relevant basically, you can find the whole history here:

https://bitsharesblocks.com/charts/prices

Ah, yes this is what I meant--didn't realize that was there, thanks!

Offline svk

Just a suggestion: it'd be nice to be able to switch to a longer-term view(s) for the price history chart if possible.

On the home page you mean? I've kept it short there to reduce load speed and make it more relevant basically, you can find the whole history here:

https://bitsharesblocks.com/charts/prices
Worker: dev.bitsharesblocks

Offline svk

Trivial display error: DVS delegate earnings detail talks of BTS rather than DVS.

Thanks, I've gone over the whole site to add a centralized location for the base asset name to avoid this kind of thing, it was a pain manually replacing BTS with DVS everywhere :)

Worker: dev.bitsharesblocks

Offline vikram

Just a suggestion: it'd be nice to be able to switch to a longer-term view(s) for the price history chart if possible.

Offline davidpbrown

Trivial display error: DVS delegate earnings detail talks of BTS rather than DVS.
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
Try blockchain_list_address_balance and blockchain_list_address_transavtions for addresses(pubkeys)

and blockchain_get_balance for balance ids!
Yes I just wanted to say this.
BTW it should be blockchain_list_address_transactions  ;)
BitShares committee member: abit
BitShares witness: in.abit

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Try blockchain_list_address_balance and blockchain_list_address_transavtions for addresses(pubkeys)

and blockchain_get_balance for balance ids!

Offline svk

@svk: you should at least go through all active keys ... optionally the owner key .. if you go to my recent Howto in the bts delegates subforum you can find a description about what the keys are

It doesn't work with active keys, only balance ids as far as I can tell, and they can't really be tied to accounts. I'll see if I can get something useful out of that though.

How is blockchain_list_market_transactions different from what's already being shown for each block? Seems to me it's just an extract of the data already available.
Worker: dev.bitsharesblocks

Offline svk

I've just pushed the back-end code for Bitsharesblocks to github, feel free to have a look and if you're a nodejs expert I'd be happy to take tips on how to improve the code!

https://github.com/svk31/bitsharesblocks-backend
Worker: dev.bitsharesblocks

Offline svk

Is there a way to link to a specific transaction by ID on bitsharesblocks? Like you can on blockchain.info?

I'd like to provide links to transactions for customers in metaexchange.info.

I am looking for this function too.

Edit: via api call.

I'll see if I can get this working.

yet another feature request:

Can you run
Code: [Select]
blockchain_list_address_balances <address>on all active keys and list all funds when opening an account in the explorer?
Can i emphasize this feature request a little ..

I'd love to put the payouts of the charity delegates into a publicly readable address derived from an active key

I'd like this to be shown in the explorer:
Code: [Select]
blockchain_list_address_transactions <address>

as well as
Code: [Select]
blockchain_list_market_transactions <block_number>

 :D :D :D :D :D

Which addresses should this be used with? I admit to a slight confusion between the types of keys or ids etc available..

PS. Slates are about ready to go on the site, I just need to test everything a little more since it's part of a rewrite of the delegate page.

WOuld there be a way to aggregate all of the median price feeds and give them via one call? I need it for my price mechanism on the websites which integrate bitassets... id rather not make individual calls on the RPC if I have to.. but whats the best way to do this?

You can use https://api.bitsharesblocks.com/v2/assets

It's got some more info you don't need but it's not too heavy, and has all the median feeds and number of valid feeds.

https://api.bitsharesblocks.com/v2/assets

output doesn't validate in jsonlint.com... There is a " at the end of the data and I see there is a leading ")]}',\n infront of the data... why? Also your escaping string literals, why? None of this checks out for json encoding... thanks.

I would imagine you would get the data and decode it in php like json_decode()...
Just following the angular security guidelines, you just need to strip the part up to the line break. See the angular $http jsonp docs for details

OK, I also get some weird results from that query... sometimes it gives an output like : s"s)s]s}s's,s\sns{s\s"sasssssestsss\s"s:s.... you seen this? Hit refresh a few times. Seems it adds an s for every character.

You need to add a callback to avoid that, ..v2/assets?callback=whatever. It'll add some more data but you should be able to strip it.
Worker: dev.bitsharesblocks

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1335
    • View Profile
Is there a way to link to a specific transaction by ID on bitsharesblocks? Like you can on blockchain.info?

I'd like to provide links to transactions for customers in metaexchange.info.

I am looking for this function too.

Edit: via api call.

I'll see if I can get this working.

yet another feature request:

Can you run
Code: [Select]
blockchain_list_address_balances <address>on all active keys and list all funds when opening an account in the explorer?
Can i emphasize this feature request a little ..

I'd love to put the payouts of the charity delegates into a publicly readable address derived from an active key

I'd like this to be shown in the explorer:
Code: [Select]
blockchain_list_address_transactions <address>

as well as
Code: [Select]
blockchain_list_market_transactions <block_number>

 :D :D :D :D :D

Which addresses should this be used with? I admit to a slight confusion between the types of keys or ids etc available..

PS. Slates are about ready to go on the site, I just need to test everything a little more since it's part of a rewrite of the delegate page.

WOuld there be a way to aggregate all of the median price feeds and give them via one call? I need it for my price mechanism on the websites which integrate bitassets... id rather not make individual calls on the RPC if I have to.. but whats the best way to do this?

You can use https://api.bitsharesblocks.com/v2/assets

It's got some more info you don't need but it's not too heavy, and has all the median feeds and number of valid feeds.

https://api.bitsharesblocks.com/v2/assets

output doesn't validate in jsonlint.com... There is a " at the end of the data and I see there is a leading ")]}',\n infront of the data... why? Also your escaping string literals, why? None of this checks out for json encoding... thanks.

I would imagine you would get the data and decode it in php like json_decode()...
Just following the angular security guidelines, you just need to strip the part up to the line break. See the angular $http jsonp docs for details

OK, I also get some weird results from that query... sometimes it gives an output like : s"s)s]s}s's,s\sns{s\s"sasssssestsss\s"s:s.... you seen this? Hit refresh a few times. Seems it adds an s for every character.
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline svk

Is there a way to link to a specific transaction by ID on bitsharesblocks? Like you can on blockchain.info?

I'd like to provide links to transactions for customers in metaexchange.info.

I am looking for this function too.

Edit: via api call.

I'll see if I can get this working.

yet another feature request:

Can you run
Code: [Select]
blockchain_list_address_balances <address>on all active keys and list all funds when opening an account in the explorer?
Can i emphasize this feature request a little ..

I'd love to put the payouts of the charity delegates into a publicly readable address derived from an active key

I'd like this to be shown in the explorer:
Code: [Select]
blockchain_list_address_transactions <address>

as well as
Code: [Select]
blockchain_list_market_transactions <block_number>

 :D :D :D :D :D

Which addresses should this be used with? I admit to a slight confusion between the types of keys or ids etc available..

PS. Slates are about ready to go on the site, I just need to test everything a little more since it's part of a rewrite of the delegate page.

WOuld there be a way to aggregate all of the median price feeds and give them via one call? I need it for my price mechanism on the websites which integrate bitassets... id rather not make individual calls on the RPC if I have to.. but whats the best way to do this?

You can use https://api.bitsharesblocks.com/v2/assets

It's got some more info you don't need but it's not too heavy, and has all the median feeds and number of valid feeds.

https://api.bitsharesblocks.com/v2/assets

output doesn't validate in jsonlint.com... There is a " at the end of the data and I see there is a leading ")]}',\n infront of the data... why? Also your escaping string literals, why? None of this checks out for json encoding... thanks.

I would imagine you would get the data and decode it in php like json_decode()...
Just following the angular security guidelines, you just need to strip the part up to the line break. See the angular $http jsonp docs for details
Worker: dev.bitsharesblocks