Web3MoveEx.HTTP behaviour (web3_move_ex v0.3.2)

http behaviour && get default impl

Link to this section Summary

Link to this section Callbacks

@callback get(url :: String.t()) :: {:error, String.t()} | {:ok, any()}
Link to this callback

json_rpc(method, param)

@callback json_rpc(method :: String.t(), param :: non_neg_integer() | list()) :: map()
Link to this callback

post(url, body)

@callback post(url :: String.t(), body :: String.t()) ::
  {:error, String.t()} | {:ok, any()}
Link to this callback

post(url, body, options)

@callback post(url :: String.t(), body :: String.t(), options :: String.t()) ::
  {:error, String.t()} | {:ok, any()}

Link to this section Functions

Link to this function

json_rpc(method, param)

Link to this function

post(url, body)

Link to this function

post(url, body, atom)