fix: timestamp must be passed

This commit is contained in:
fryorcraken.eth 2023-12-13 12:00:56 +11:00
parent 35e74ca8e4
commit a8e7e4ecbc
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -59,7 +59,7 @@ curl http://127.0.0.1:8645/debug/v1/info
```
curl -X POST "http://127.0.0.1:8645/relay/v1/auto/messages" \
-H "content-type: application/json" \
-d '{"payload":"'$(echo -n "Hello Waku Network - from Anonymous User" | base64)'","contentTopic":"/my-app/2/chatroom-1/proto"}'
-d '{"payload":"'$(echo -n "Hello Waku Network - from Anonymous User" | base64)'","contentTopic":"/my-app/2/chatroom-1/proto","timestamp":$(date +%s%N)}'
```
**Get messages sent to a `contentTopic`**. Note that any store node in the network is used to reply.