Sign

Sign

Signs a specified string.

Method: sign

Input parameters:

ParameterTypeRequiredDescription
message or hashStringYesMessage or hash to be signed.
walletStringNoBase58 Primary Wallet address in case multiple wallets are being used.

Errors:

ErrorDescription
RPC_INTERNAL_ERRORAn unknown error occurred in the node. Please check the node log for details.

Output:

  • a JSON object with the wallet bytes encoded as a hexadecimal string.

Example:

GET http://localhost:8081/sign?message=test

{
  "result": "5237481874cdf80...e3a3b89fce20f735b749eda9fb2cc6",
  "error": null,
  "id": null
}