View Source Dpos.Net (DPoS v0.4.0)

Provides functions to broadcast transactions through a relay node.

Summary

Functions

Broadcasts the transaction through a relay node.

Types

@type network() :: [uri: String.t(), nethash: String.t(), version: String.t()]

Functions

@spec broadcast(Dpos.Tx.Normalized.t(), network()) ::
  {:ok, String.t()} | {:error, term()}

Broadcasts the transaction through a relay node.

The transaction must be already normalized.