Encrypted Messaging (SRC-201)

On-chain encrypted messaging using X25519 + XChaCha20-Poly1305.

16 methods · verified against the live mainnet RPC at https://rpc.sumchain.io.

messaging_getConfig

Per-chain messaging parameters.

Request
{"jsonrpc":"2.0","method":"messaging_getConfig","params":[],"id":1}
Response (live)
{
  "jsonrpc": "2.0",
  "result": {
    "daily_quota": 100,
    "max_message_size": 65535,
    "min_trust_stake": "100000000000",
    "sponsorship_enabled": true
  },
  "id": 1
}
messaging_registerSponsored

Builds, signs, and submits a sponsored RegisterPublicKeySponsoredV1 transaction (fee paid by the relayer) that registers the caller's messaging public key through consensus. The registrant signs the canonical preimage "SUMCHAIN/SRC-201/REGISTER-SPONSORED/v1" || chain_id_le || sponsor_address || registrant_pubkey. Returns { success, tx_hash } on submission — success means submitted/pending, NOT yet registered; poll account_getPublicKey (or the tx receipt) to confirm inclusion. Requires the chain to have messaging_sponsored_registration_enabled_from_height active.

messaging_submitSponsored

Submits an encrypted message via a sponsoring relayer.

messaging_getQuota

Quota status for a sender.

messaging_getInboxFilter

Recipient inbox-filter rules.

messaging_getMessages

Inbox query.

messaging_getSentMessages

Outbox query.

messaging_getMessageByTxHash

Message lookup by tx.

messaging_getMessagesInBlock

Messages in a block.

messaging_getMessageData

Message ciphertext.

messaging_getPendingPayment

Pending sponsorship payment.

messaging_getPendingPayments

All pending payments.

messaging_getTrustStake

Trust-stake balance.

messaging_getSpamScore

Spam-score lookup.

messaging_isContact

Contact-list check.

messaging_isBlocked

Block-list check.