Lux.Prisms.EthBlockNumPrism (Lux v0.5.0)
View SourceA 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.