List chat messages

Returns the messages this node holds for an account, in arrival order. Requires an ownership proof signed with the account key.

GET
/chat/messages

Query Parameters

account*string

Account whose messages to read. Must be the account the proof is signed by.

challenge*string

Challenge from GET /chat/auth/challenge on this same node.

sig*string

Hex-encoded ed25519 signature over sha256("xe/chat-read-auth/v1" || 0x00 || challengeBytes).

since?integer

Return only messages with a timestamp strictly greater than this Unix nanosecond value. An unparseable value is treated as 0.

Formatint64

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://ldn.core.test.network/chat/messages?account=a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2&challenge=string&sig=string"
[
  {
    "id": "f2a3b4c5d6e7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3",
    "from": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
    "to": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
    "message": "Hello, world!",
    "timestamp": 1709500120000000000,
    "signature": "string",
    "pow_nonce": 0
  }
]
{
  "error": "invalid signature"
}
{
  "error": "invalid signature"
}
{
  "error": "invalid signature"
}