Whisper
MailServer
MailServer is a Whisper node that has a capability to store messages and send them back after receiving a request. The messages are sent using p2p connection.
shh_requestMessages
Returns cached, possibly expired, messages from a MailServer node.
Parameters
Object: Options describing the request details:
mailServerPeer - String: enode of a MailServer node (must be first added as a peer and allowed to send p2p messages using shh_markTrustedPeer),
from - Number: unix time from which messages should be collected (inclusive),
to - Number: unix time to which messages should be collected (inclusive),
topic - String: a topic as a string to filter messages,
symKeyID - String: ID of a symmetric key to authenticate to the MailServer.
Returns
Boolean on success and an error on failure.
Example