View Source ElectrumClient.Calls.Blockchain.ScriptHash.Subscribe (electrum_client v0.1.29)
Manages blockchain.scripthash.subscribe params and results
Link to this section Summary
Functions
Calls the electrum server with the required parameters to start a subscription to an address's events
Converts a script hash into blockchain.scripthash.subscribe params
Converts a blockchain.scripthash.subscribe's call result into an elixir list
Link to this section Functions
Calls the electrum server with the required parameters to start a subscription to an address's events
Converts a script hash into blockchain.scripthash.subscribe params
examples
Examples
iex> "67a5662abf889b5a28ffa821c1f85fd3ef9313756b881351d91a3671f3f52858" ...> |> ElectrumClient.Calls.Blockchain.ScriptHash.Subscribe.encode_params() """ {"id":1,"jsonrpc":"2.0","method":"blockchain.scripthash.subscribe","params":["67a5662abf889b5a28ffa821c1f85fd3ef9313756b881351d91a3671f3f52858"]} """
Converts a blockchain.scripthash.subscribe's call result into an elixir list
examples
Examples
iex> """ ...> {"id":1,"jsonrpc":"2.0","result":"3d638df1f781871c98b2f334f1d0af592f88d972d3e7742100dd644592436b5f"} ...> """ ...> |> ElectrumClient.Calls.Blockchain.ScriptHash.Subscribe.parse_result() "3d638df1f781871c98b2f334f1d0af592f88d972d3e7742100dd644592436b5f"