Last chance! 50% off unlimited learning
Sale ends in
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.
shh_newMessageFilter(symKeyID = NULL, privateKeyID = NULL,
sig = NULL, minPow = NULL, topics = NULL, allowP2P = NULL)
String - ID of the symmetric key for message decryption.
String - ID of the key pair for message decryption.
String - Public key of the signature.
Integer - Minimal PoW requirement for incomming messages.
Array of Data - Possible topics (or partial topics).
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
# NOT RUN {
shh_newMessageFilter(symKeyID = '8e975ab6e0427396d3afb748678a09b036ebe389
c1c5a6d39560adabdfdb08ca')
shh_newMessageFilter(privateKeyID = '3794e3b08a2962b066e19869283974dc6b39
6cfc87cdcd69a2d269f5f1bab3cb', minPow = 0.3, allowP2P = TRUE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab