Protocol Methods ================ mempool.get_fee_histogram ------------------------- Return a histogram of the fee rates paid by transactions in the memory pool, weighted by transaction size. **Signature** .. function:: mempool.get_fee_histogram() .. versionadded:: 1.2 **Result** The histogram is an array of [*fee*, *vsize*] pairs, where |vsize_n| is the cumulative virtual size of mempool transactions with a fee rate in the interval [|fee_n1|, |fee_n|], and |fee_n1| > |fee_n|. .. |vsize_n| replace:: vsize\ :sub:`n` .. |fee_n| replace:: fee\ :sub:`n` .. |fee_n1| replace:: fee\ :sub:`n-1` Fee intervals may have variable size. The choice of appropriate intervals is currently not part of the protocol. **Example Result** :: [[12, 128812], [4, 92524], [2, 6478638], [1, 22890421]] server.add_peer --------------- This call is intended for a new server to get itself into a server's peers list, and should not be used by wallet clients. **Signature** .. function:: server.add_peer(features) .. versionadded:: 1.1 * **features** The same information that a call to the sender's :func:`server.features` RPC call would return. **Result** A boolean indicating whether the request was tentatively accepted. The requesting server will appear in :func:`server.peers.subscribe` when further sanity checks complete successfully. server.banner ------------- Return a banner to be shown in the Electrum console. **Signature** .. function:: server.banner() **Result** A string. **Example Result** :: "Welcome to Electrum!" server.donation_address ----------------------- Return a server donation address. **Signature** .. function:: server.donation_address() **Result** A string. **Example Result** :: "1BWwXJH3q6PRsizBkSGm2Uw4Sz1urZ5sCj" server.features --------------- Return a list of features and services supported by the server. **Signature** .. function:: server.features() **Result** A dictionary of keys and values. Each key represents a feature or service of the server, and the value gives additional information. The following features MUST be reported by the server. Additional key-value pairs may be returned. * **hosts** A dictionary, keyed by host name, that this server can be reached at. Normally this will only have a single entry; other entries can be used in case there are other connection routes (e.g. Tor). The value for a host is itself a dictionary, with the following optional keys: * **ssl_port** An integer. Omit or set to **null** if SSL connectivity is not provided. * **tcp_port** An integer. Omit or set to **null** if TCP connectivity is not provided. A server should ignore information provided about any host other than the one it connected to. * **genesis_hash** The hash of the genesis block. This is used to detect if a peer is connected to one serving a different network. * **hash_function** The hash function the server uses for :ref:`script hashing