[][src]Module web3_etz::helpers

Web3 helpers.

Structs

CallFuture

Value-decoder future. Takes any type which is deserializable from rpc::Value and a future which yields that type, and yields the deserialized value

Functions

build_request

Build a JSON-RPC request.

serialize

Serialize a type. Panics if the type is returns error during serialization.

to_notification_from_slice

Parse bytes slice into JSON-RPC notification.

to_response_from_slice

Parse bytes slice into JSON-RPC response.

to_result_from_output

Parse rpc::Output into Result.

to_results_from_outputs

Parse a Vec of rpc::Output into Result.

to_string

Serializes a request to string. Panics if the type returns error during serialization.