Skip to main content

mokiService_getMessageCount

Info
This function requires the Authorization Header, you can read more about this header here.

Returns the total number of messages sent from an address. Including expired messages.

Parameters

None

Returns

totalMessages: hex - A hexadecimal of the total messages sent

Example

Request

curl https://mainnet.moki.network \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "mokiService_getMessageCount", "params": [], "id": 1}'

Reponse

Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1a"
}