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_getConfigPer-chain messaging parameters.
{"jsonrpc":"2.0","method":"messaging_getConfig","params":[],"id":1}{
"jsonrpc": "2.0",
"result": {
"daily_quota": 100,
"max_message_size": 65535,
"min_trust_stake": "100000000000",
"sponsorship_enabled": true
},
"id": 1
}messaging_registerSponsoredBuilds, 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_submitSponsoredSubmits an encrypted message via a sponsoring relayer.
messaging_getQuotaQuota status for a sender.
messaging_getInboxFilterRecipient inbox-filter rules.
messaging_getMessagesInbox query.
messaging_getSentMessagesOutbox query.
messaging_getMessageByTxHashMessage lookup by tx.
messaging_getMessagesInBlockMessages in a block.
messaging_getMessageDataMessage ciphertext.
messaging_getPendingPaymentPending sponsorship payment.
messaging_getPendingPaymentsAll pending payments.
messaging_getTrustStakeTrust-stake balance.
messaging_getSpamScoreSpam-score lookup.
messaging_isContactContact-list check.
messaging_isBlockedBlock-list check.