Skip to main content

url

Configuration Description

Specifies the URL node for initiating requests and transactions.

  • Optional field.
  • If this parameter is configured, the debug parameter will be ignored.
const hyMatrix = new HyMatrix({
url: 'https:...' // All subsequent requests from hyMatrix will use this URL.
})

hyMatrix.info().then(console.log)

const result = await hyMatrix.sendMessage({
tags,
processId,
data: '' // Optional, defaults to empty string
})
console.log(result.id) // Get messageID