Hedera.MirrorNode (Hedera v0.2.0)

Copy Markdown View Source

Thin client for the public Hedera mirror node REST API — the read side of the network (consensus results, topic messages). Complements the gRPC client, which handles writes and receipts.

Summary

Functions

Fetch a single topic message by sequence number. Returns the decoded JSON map.

Look up a transaction by id (shard.realm.num@secs.nanos).

Functions

topic_message(topic_id, sequence_number, opts \\ [])

@spec topic_message(Hedera.TopicId.t(), non_neg_integer(), keyword()) ::
  {:ok, map()} | {:error, term()}

Fetch a single topic message by sequence number. Returns the decoded JSON map.

transaction(transaction_id, opts)

@spec transaction(
  binary(),
  keyword()
) :: {:ok, map()} | {:error, term()}

Look up a transaction by id (shard.realm.num@secs.nanos).