With a more mature blockchain data inserted in elasticsearch database thanks to the bitshares-core plugins it is time to get the most of this tools by providing more endpoints to community in general and developers.
For this reason, I created a small infrastructure consisting in 1 node with the 2 elasticsearch plugins(elasticsearch
and es_objects
) and several services on top of that.
Services are in the mainnet and at this moment fully synchronized.
1- Kibana server: https://bitshares-kibana.info/
Idea here is to theme a bit kibana to make it more Bitshares friendly. This is work in progress but the plan is to provide visualizations of all kinds. Kibana is great for searching and visualizing our data, the addition of data in objects makes it even more powerful, check all the accounts in the blockchain with:
https://bitshares-kibana.info/app/kibana#/discover?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-5y,mode:quick,to:now))&_a=(columns:!(_source),index:debd10a0-20b6-11e9-82af-8dfbd16c55a9,interval:auto,query:(language:lucene,query:'_index:%20objects-account'),sort:!(block_time,desc))
please copy and paste the full link instead of clikicng it.
check all the assets:
https://bitshares-kibana.info/app/kibana#/discover?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-5y,mode:quick,to:now))&_a=(columns:!(_source),index:debd10a0-20b6-11e9-82af-8dfbd16c55a9,interval:auto,query:(language:lucene,query:'_index:%20objects-asset'),sort:!(block_time,desc))
filter data, for example check only bitassets:
https://bitshares-kibana.info/app/kibana#/discover?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-5y,mode:quick,to:now))&_a=(columns:!(_source),index:debd10a0-20b6-11e9-82af-8dfbd16c55a9,interval:auto,query:(language:lucene,query:'_index:%20objects-asset%20AND%20issuer:%201.2.0'),sort:!(block_time,desc))
Possibilities are huge and for that reason a new document on how to use kibana with bitshares will be published soon but you can go ahead and try stuff in this place.
2- A direct elsticsearch endpoint: https://elasticsearch.bitshares-kibana.info
When kibana is not giving what you need or when you want to develop an application using data stored in elasticsearch you can query the database directly as:
alfredo@alfredo-Inspiron-5559 ~ $ curl -X GET 'https://elasticsearch.bitshares-kibana.info/bitshares-*/data/_count?pretty=true' -H 'Content-Type: application/json' -d '
{
"query" : {
"bool" : { "must" : [{"match_all": {}}] }
}
}
'
{
"count" : 758526064,
"_shards" : {
"total" : 205,
"successful" : 205,
"skipped" : 0,
"failed" : 0
}
}
alfredo@alfredo-Inspiron-5559 ~ $
3- A secure api to make queries or connect your wallet: wss://api.bitshares-kibana.info/ws
This are classic Bitshares API websocket endpoints, can use directly as:
alfredo@alfredo-Inspiron-5559 ~/bitshares-kibana-plugin $ curl --silent -d '{"id":1,"method":"call","params":["database","get_ticker",["1.3.0", "1.3.113"]]}' https://api.bitshares-kibana.info/ws | jq
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"time": "2019-02-08T20:50:12",
"base": "1.3.0",
"quote": "1.3.113",
"latest": "3.9651087343835720977",
"lowest_ask": "3.9651087306478943037",
"highest_bid": "3.96510740343068064162",
"percent_change": "-7.21",
"base_volume": "4223287.04734",
"quote_volume": "1046771.2819"
}
}
alfredo@alfredo-Inspiron-5559 ~/bitshares-kibana-plugin $
Or as websocket:
alfredo@alfredo-Inspiron-5559 ~/bitshares-kibana-plugin $ wscat -c https://api.bitshares-kibana.info/ws
connected (press CTRL+C to quit)
>
Or with your wallet, etc.
4- Finally, an explorer API is also up at: https://explorer.bitshares-kibana.info/apidocs/
Stay tuned for more updates, any question/comment/whatever is welcome.
Thank you kindly Alfredo for providing this public service and for your continued development of the elasticsearch plugin for BitShares. Awesome work!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Second that!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Only plain elastic, no wrapper?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
es-wrapper is part of the explorer api so yes, there is support for the wrapper available in this pack. Unfortunately, the server where i installed everything is out of disk space so i am speaking with hosting to see if i can extend. ill restore the services asap and send you the link to the wrapper. My apologies.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
please check https://explorer.bitshares-kibana.info/apidocs/#/wrapper for the es-wrapper api calls.
please also note:
thanks for the patience.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
The hard drive upgrade was done, we now have 300G more available so everything should be good for a while. all services are working. thanks again for the patience.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hello @oxarbitrage! This is a friendly reminder that you have 3000 Partiko Points unclaimed in your Partiko account!
Partiko is a fast and beautiful mobile app for Steem, and it’s the most popular Steem mobile app out there! Download Partiko using the link below and login using SteemConnect to claim your 3000 Partiko points! You can easily convert them into Steem token!
https://partiko.app/referral/partiko
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @oxarbitrage! You received a personal award!
Click here to view your Board
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness and get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @oxarbitrage! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit