peck_messages
Read messages from the BSV social graph. Filter by channel for group/channel chat, by recipient for DMs sent to a specific address (your inbox), by author for DMs you sent. With no filter, returns the global message stream.
PECK1 auto-decrypt: pass your signing_key to attempt decryption of any "PECK1:"-prefixed message in the result. Decryption uses BRC-2 via ProtoWallet, byte-compatible with what peck-desktop's wallet.encrypt produces. Successfully decrypted messages get a decrypted field with the plaintext; failed ones (wrong key, not addressed to you) keep their ciphertext and gain encrypted: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages. | |
| author | No | Author BSV address — use your own to read messages you sent. | |
| channel | No | Channel name (e.g. "general"). | |
| recipient | No | Recipient BSV address — use your own to read your inbox. | |
| signing_key | No | Your privateKeyHex — enables BRC-78 auto-decrypt for ciphertexts addressed to you. |