HUB
Sign inSign up
aepp-middleware logo

aeternity/aepp-middleware

By aeternity

•Updated about 7 years ago

Please use: https://hub.docker.com/r/aeternity/aeternal

Image
0

10K+

aeternity/aepp-middleware repository overview

⁠Æternity middleware

⁠Overview

The middleware is a caching and reporting layer which sits in front of the nodesof the aeternity blockchain⁠. Its purpose is to respond to queries faster than the node can do, and to support queries that for reasons of efficiency the node cannot or will not support itself.

On startup, the middleware reads the entirety of the blockchain, and stores a denormalized version of the data in a PostgreSQL database.

⁠Features

⁠Caching

The middleware answers a set of queries (listed below) on behalf of the node. Everything it doesn't itself answer it will forward to the node to handle. The goal here is to answer more quickly than the node, without sacrificing correctness.

⁠Aggregation

A set of queries will list, for example, all transactions for a given account, all which transfer from one user to another, all between certain block heights, and so on

⁠Contracts

The middleware unpacks and stores all contract calls for which it has the bytecode, with the function called and the arguments. In the near future we will also store the return type and value. You can see all contract calls for a given contract.

⁠State channels

You can see all active state channels, and for a given state channel, all of the related on-chain transactions

⁠Names

You can see all names registered, and also which names refer to a given address (reverse lookup).

⁠Oracles

You can see all active oracles. In the near future we will create an endpoint which lists all questions and responses from an oracle

⁠Websocket

(see below for more information).

The middleware permits you to subscribe to events via a websocket, and receive updates when the chain state changes. Currently you can subscribe to key blocks, micro blocks, and soon to all events involving a particular on-chain object (contract, account, ...).

For detailed information check the documentation⁠.

Tag summary

Content type

Image

Digest

Size

46.5 MB

Last updated

about 7 years ago

docker pull aeternity/aepp-middleware