Lux.Prisms.EthBlockNumPrism (Lux v0.5.0)

View Source

A simple prism that checks the current Ethereum block number.

Examples

iex> Lux.Prisms.EthBlockNumPrism.run(%{
...>   network: "mainnet"
...> })
{:ok, %{
  block_number: 123456,
  network: "mainnet"
}}

Summary

Functions

Callback implementation for Lux.Prism.handler/2.

Returns the Prism struct for this module.

Functions

handler(input, context)

Callback implementation for Lux.Prism.handler/2.

run(input, context \\ nil)

view()

Returns the Prism struct for this module.