Description Usage Arguments Value See Also Examples
shh_post
creates a whisper message and injects it into the network for
distribution.
1 2 3 |
symKeyID |
String - ID of the symmetric key for message encryption. |
pubKey |
String - Public key for message encryption. |
sig |
String - ID of the signing key. |
ttl |
Integer - Time-to-live in seconds. |
topic |
String - Message topic (mandatory when key is symmetric). |
payload |
String - Payload to be encrypted. |
padding |
String - Optional padding (byte array of arbitrary length). |
powTime |
Integer - Maximal time in seconds to be spent on proof of work. |
powTarget |
Integer - Minimal PoW target required for this message. |
targetPeer |
String - Optional peer ID (for peer-to-peer message only). |
Boolean - true
if the message was send, otherwise
false
.
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_newMessageFilter
,
shh_newSymKey
,
shh_setMaxMessageSize
,
shh_setMinPoW
, shh_version
1 2 3 4 5 6 | shh_post(symKeyID = '7bc23b46b61e8223ef49241bd23b94921fb1e2dd8fd7bcb58df41
59e1f4d3759', ttl = 7, topic = '0x07678231', payload = '0x68656c6c6f',
powTime = 2, powTarget = 3)
shh_post(pubKey = '0x0425670405b102c0ce487cefae7aa2bfd7b474b76bc8433499bec
777bb15d6d8a6b95e3001d16de259bf3170ec4cff38f00321eedc8a808a2f2e67bec6b254a
1b1', ttl = 7, payload = '0x68656c6c6f', powTime = 2, powTarget = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.