1. 主页
  2. 文档
  3. Mega API Document
  4. Agreement
  5. Communication Specification

Communication Specification

Interface protocol 

complies with JSON-RPC protocol 2.0

Access to the API access address is provided separately, please contact the business to obtain the API address and other configuration information

Interface standard 

data protocol: json-rpc protocol 2.0

Encoding requirements: UTF-8

support http header: application/json (post data expression is different, please refer to the sample code)

Security key 

Agent key: secretCode, or API key, included in the “Mega API Agent Information Form” .

Digest algorithm

This document involves a signature digest, called digest

The signature digest is generated using the MD5 algorithm, and the main form is: md5 (random + transaction-related plaintext field + agent key), random is random

Machine string, it is recommended to use UUID, which transaction-related fields (may be a combination of multiple fields) used in the summary, please refer to the summary of the corresponding interface description.

我们要如何帮助您?