View Source Xogmios.StateQuery.Messages (xogmios v0.8.0)

This module contains messages for the State Query protocol

Summary

Functions

Builds a message for a given scope, method and parameters.

Functions

Link to this function

build_message(scope, name, no_params)

View Source
@spec build_message(String.t(), String.t(), map()) :: String.t()

Builds a message for a given scope, method and parameters.

  • The scope can be either "networkQuery" or "queryLedgerState".
  • The method can be any of the supported methods from Network or Ledger-state scopes.
  • Parameters are optional, according to the method in question.