Description Usage Arguments Value See Also Examples
shh_newMessageFilter
create a new filter within the node. This filter
can be used to poll for new messages that match the set of criteria.
1 2 |
symKeyID |
String - ID of the symmetric key for message decryption. |
privateKeyID |
String - ID of the key pair for message decryption. |
sig |
String - Public key of the signature. |
minPow |
Integer - Minimal PoW requirement for incomming messages. |
topics |
Array of Data - Possible topics (or partial topics). |
allowP2P |
Boolean - Indicates if this filter allows processing of direct peer-to-peer messages (which are not to be forwarded any further, because they might be expired). |
String - Filter identifier.
Other shh functions: gethr
,
shh_addPrivatekey
,
shh_addSymKey
,
shh_deleteKeyPair
,
shh_deleteSymKey
,
shh_generateSymKeyFromPassword
,
shh_getPrivateKey
,
shh_getPublicKey
,
shh_getSymKey
,
shh_hasKeyPair
,
shh_hasSymKey
, shh_info
,
shh_markTrustedPeer
,
shh_newKeyPair
,
shh_newSymKey
, shh_post
,
shh_setMaxMessageSize
,
shh_setMinPoW
, shh_version
1 2 3 4 | shh_newMessageFilter(symKeyID = '8e975ab6e0427396d3afb748678a09b036ebe389
c1c5a6d39560adabdfdb08ca')
shh_newMessageFilter(privateKeyID = '3794e3b08a2962b066e19869283974dc6b39
6cfc87cdcd69a2d269f5f1bab3cb', minPow = 0.3, allowP2P = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.