DApp Subscribe Topic
POST
/api/dapp_subscribe_topic/
Request Payload
Parameters in Body json | Type | Required | Parameters Description |
---|---|---|---|
dapp_id | string | Yes | dapp_id |
topicid | string | Yes | topic id |
timestamp | int | Yes | timestamp milliseconds |
web3mq_dapp_signature | string | Yes | use 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
Parameters | Type | Always Return | Parameters Description |
---|---|---|---|
code | int | Yes | result code, 0 means success, other code see msg's contents |
msg | string | Yes | result description |
{
"code": 0,
"msg": "ok"
}