Glasnost v0.15 released: GraphQL API for Steem and Golos blockchains


Steem and Golos blocks are now synced and persisted in realtime.

Repos

Glasnost Docker hub

Glasnost Github Repo

Configuration

Glasnost now requires a PostgreSQL database.

You need to configure the following Postgres database parameters using the Docker ENV variables:

  • GLASNOST_DB
  • GLASNOST_DB_HOST
  • GLASNOST_DB_PORT
  • GLASNOST_DB_USERNAME
  • GLASNOST_DB_PASSWORD

Other parameters, such as PORT, STEEM_URL and GOLOS_URL, can be configured in the Docker file.

Changelog

  • golos_blocks and steem_blocks tables, indexes and schemas were added
  • blockchain synchronization subsystem and events handling has been improved and now handles block events
  • sync speed and perfomance was improved
  • various minor improvements and bugfixes
  • updated docker image

Examples of GraphQL queries

{
  comments(blockchain:"steem", author: "ontofractal", isPost: true, category: "steemdev"){
    id,
    title,
    author,
    permlink,
    parentAuthor,
    parentPermlink,
    body
    tags,
    category,
    created,
    totalPayoutValue,
    pendingPayoutValue
  }
}
{
  comment(blockchain:"steem", author: "ontofractal", permlink: "glasnost-v0-12-released-now-with-postgresql-realtime-and-7-day-lookback-comments-data-sync-open-source-app-server-for-steem"){
    id,
    title,
    author,
    permlink,
    parentAuthor,
    parentPermlink,
    body
    tags,
    category,
    created,
    totalPayoutValue,
    pendingPayoutValue
  }
}

Road map

Next release: order_by argument for Graphql queries, more comment search features, blocks Graphql queries

Possible future features:

  • Convenient websockets APIs for accessing blockchain data
  • Performant, low latency APIs
  • Advanced filters and content display settings
  • real-time streams of enriched blockchain events

Technologies

  • Elixir
  • Phoenix
  • GraphQL
  • PostgreSQL

What's Glasnost?

Read more about Glasnost and its roadmap in the introduction post

Development process

Glasnost is a single code base developed simultaneously both for Steem and Golos blockchains. Sustainable Glasnost development is made possible by generous support of Steem and Golos communities and @cyberfund program to support Golos open source ecosystem. Read more about Golos and cyberfund open source support in this post by @hipster.

Feedback

Please submit bugs, issues or feature requests to Github. Also get in touch with me: ontofractal at protonmail.com or steemit.chat.

(ノ◕ヮ◕)ノ*:・゚✧

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center