Skip to main content

DApp Subscribe Topic


POST /api/dapp_subscribe_topic/

Request Payload

Parameters in Body jsonTypeRequiredParameters Description
dapp_idstringYesdapp_id
topicidstringYestopic id
timestampintYestimestamp milliseconds
web3mq_dapp_signaturestringYesuse ed25519 base64 encode signature see signing detail

web3mq_signature signing rule

base64 encode signature

web3mq_dapp_signature = dapp ed25519 private key signing(dapp_id + topicid + timestamp)

Body json params

{
"dapp_id": "your userid",
"topicid": "topicid",
"web3mq_dapp_signature": "web3mq_signature",
"timestamp": 1656991509327
}

response

ParametersTypeAlways ReturnParameters Description
codeintYesresult code, 0 means success, other code see msg's contents
msgstringYesresult description
{
"code": 0,
"msg": "ok"
}