You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
David Roden edited this page Jan 6, 2025
·
1 revision
SendText sends a text message to a darknet peer node. The text of the message is sent as UTF-8-encoded payload.
Once the message has been sent to the peer, the node will reply with a SentPeer message.
If the peer node cannot be found, an UnknownNodeIdentifier message is sent. If the peer is not a darknet peer, a ProtocolError with error code DARKNET_ONLY is sent.
Example
SendText
Identifier=send-text-0001
NodeIdentifier=other.node:1234
DataLength=10
Data
HelloWorld
Details
Field
Possible values
Mandatory
Default
Description
Identifier
any string
No
The identifier of the request.
NodeIdentifer
<name>/<identity>/<ip>:<port>
Yes
n/a
The identifier of the peer node to send the message to.