signrawtransactionwithkey
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Changed. Since 29.2.0 the node signs with Schnorr signatures by default (-signschnorr=1). Inputs in the returned hex carry 65-byte Schnorr signatures (64 bytes plus the sighash byte) instead of DER-encoded ECDSA signatures, so the signed transaction is shorter and its exact bytes differ from earlier versions. For a multisig input, all cosigners must use the same scheme: mixing Schnorr and ECDSA signatures in one input is forbidden by consensus.
Signs inputs for a raw transaction using explicitly provided private keys, without needing access to a local wallet. Useful for offline signing or stateless transaction construction.
Body
jsonrpcstringrequiredidstringrequiredmethodstringsignrawtransactionwithkeyrequiredparamsArray<string | Array<string> | Array<object>>requiredParameters:
hexstring(string, required): The raw transaction hex string.privkeys(array of strings, required): Array of WIF private keys.prevtxs(array, optional): Array of previous output details for inputs to sign.
Response
Transaction signed successfully
Unauthorized
Internal Server Error