Slurp.Blockchains.Blockchain (slurp v0.0.10)

Link to this section Summary

Link to this section Types

Specs

endpoint() :: String.t()
Link to this type

explorer_adapter()

Specs

explorer_adapter() :: module()
Link to this type

explorer_endpoint()

Specs

explorer_endpoint() :: String.t()

Specs

id() :: String.t()

Specs

t() :: %Slurp.Blockchains.Blockchain{
  adapter: module(),
  chain: String.t(),
  chain_id: pos_integer(),
  explorer: {explorer_adapter(), explorer_endpoint()} | nil,
  id: id(),
  name: String.t(),
  network_id: pos_integer(),
  new_head_initial_history: pos_integer(),
  poll_interval_ms: non_neg_integer(),
  rpc: [endpoint()],
  start_on_boot: boolean(),
  testnet: boolean(),
  timeout: pos_integer()
}

Link to this section Functions

Link to this function

endpoint(blockchain)

Specs

endpoint(t()) :: {:ok, endpoint()} | {:error, :no_endpoints}