Add doc for shhext_requestMessages (#872)

This commit is contained in:
Frank Mueller 2018-04-27 13:59:01 +02:00 committed by GitHub
parent c85e0802eb
commit 92e02189c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -12,6 +12,24 @@ Accepts same input as shh_post (see https://github.com/ethereum/wiki/wiki/JSON-R
`DATA`, 32 Bytes - the envelope hash
#### shhext_requestMessages
Sends a request for historic messages to a mail server.
##### Parameters
1. `Object` - The message request object:
- `mailServerPeer`:`URL` - Mail servers' enode addess
- `from`:`QUANTITY` - (optional) Lower bound of time range as unix timestamp, default is 24 hours back from now
- `to`:`QUANTITY`- (optional) Upper bound of time range as unix timestamp, default is now
- `topic`:`DATA`, 4 Bytes - Regular whisper topic
- `symKeyID`:`DATA`- ID of a symmetric key to authenticate to mail server, derived form mail server password
##### Returns
`Boolean` - returns `true` if the request was send, otherwise `false`.
Signals
-------