{
“result”: null,
“template”: “The request has an invalid signature”,
“success”: false,
“error”: 1051904,
“message”: “The request has an invalid signature”,
“status”: “InvalidSignature”
}
Signatures are not taken from the thin air - it is complicated process. The easiest way is use one of the existing libraries. For example, https://github.com/wavesplatform/WavesJ for java language.
Node.java: cancelOrder(PrivateKeyAccount account, AssetPair assetPair, String orderId)
There are dozens repositories here https://github.com/wavesplatform. I’m not js guy, so please check them yourself to see whether they suit your needs or not