Onchain.RPC.Specs (onchain v0.7.0)

Copy Markdown View Source

Compile-time lookup table for the vendored Ethereum OpenRPC method specs.

Summary

Functions

Returns all vendored OpenRPC method specs keyed by JSON-RPC method name.

Looks up a vendored OpenRPC method spec by JSON-RPC method name.

Types

method_spec()

@type method_spec() :: %{params: [map()], returns: map(), description: String.t()}

Functions

all()

@spec all() :: %{optional(String.t()) => method_spec()}

Returns all vendored OpenRPC method specs keyed by JSON-RPC method name.

lookup(method)

@spec lookup(String.t()) :: method_spec() | nil

Looks up a vendored OpenRPC method spec by JSON-RPC method name.