Skip to main content

viewallmessages

RPC help captured from Yerbas Core 4.0.1.4 (f0e2dde).

Use ./yerbas-cli help viewallmessages on your node for help. In the GUI console omit yerbas-cli. HTTP examples use mainnet RPC port 15419; network-specific defaults and availability can differ.

viewallmessages

View all messages that the wallet contains

Result:
"Asset Name:" (string) The name of the asset the message was sent on
"Message:" (string) The IPFS hash of the message
"Time:" (Date) The time as a date in the format (YY-mm-dd Hour-minute-second)
"Block Height:" (number) The height of the block the message was included in
"Status:" (string) Status of the message (READ, UNREAD, ORPHAN, EXPIRED, SPAM, HIDDEN, ERROR)
"Expire Time:" (Date, optional) If the message had an expiration date assigned, it will be shown here in the format (YY-mm-dd Hour-minute-second)
"Expire UTC Time:" (Date, optional) If the message contains an expire date that is too large, the UTC number will be displayed

Examples:
> yerbas-cli viewallmessages
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:15419/