Home

signmessagewithprivkey

POST
https://btc-testnet4.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Signs a message with the given private key (in WIF format). Returns the base64-encoded signature.

Body

application/json

Signs a message with the given private key (in WIF format). Returns the base64-encoded signature.

Request payload containing the documented method parameters and client request identifier.

jsonrpcstringrequired

JSON-RPC protocol version.

idstringrequired

Client-provided request identifier echoed in the response.

methodstringsignmessagewithprivkeyrequired

JSON-RPC method name.

paramsArray<string>required

Parameters:

  1. privkey (string, required): The private key in WIF format.
  2. message (string, required): The message to sign.

Response

200OK

Message signed successfully

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error