url
配置项介绍
指定 url 节点,发起请求,发起交易。
- 可选字段。
- 若配置该参数,
debug参数将无效。
const hyMatrix = new HyMatrix({
url: 'https:...' // 后续 hyMatrix 发起的所有请求统一从该参数的 url 下进行。
})
hyMatrix.info().then(console.log)
const result = await hyMatrix.sendMessage({
tags,
processId,
data: '' // 可选, 默认为空字符串
})
console.log(result.id) // 获取 messageID