DApp Create Topic
POST
/api/dapp_create_topic/
Request Payload
Parameters in Body json | Type | Required | Parameters Description |
---|---|---|---|
dapp_id | string | Yes | dapp_id |
timestamp | int | Yes | timestamp milliseconds |
web3mq_dapp_signature | string | Yes | use ed25519 base64 encode signature see signing detail |
topic_name | string | No | topic name |
web3mq_dapp_signature signing rule
base64 encode
signature
web3mq_dapp_signature =
dapp ed25519 private key
signing(dappid + timestamp)
Body json params
{
"dapp_id": "<your dappid>",
"web3mq_dapp_signature": "<web3mq_dapp_signature>",
"topic_name": "",
"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",
"data": {
"topicid": "topic:asdfasdfasdfa"
}
}