Home

createrawtransaction

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

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Creates an unsigned raw transaction from a list of inputs and outputs. The transaction is returned as a serialized hex string, which can then be signed and broadcast.

Body

application/json

Creates an unsigned raw transaction from a list of inputs and outputs. The transaction is returned as a serialized hex string, which can then be signed and broadcast.

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.

methodstringcreaterawtransactionrequired

JSON-RPC method name.

paramsArray<Array<object> | object | integer | boolean>required

Parameters:

  1. inputs (array) — List of transaction inputs, each including txid and vout.
  2. outputs (object) — Destination addresses and amounts.
  3. locktime (integer, optional) — Locktime value.
  4. replaceable (boolean, optional) — Whether this transaction signals BIP125 replaceability.
Show child attributes

Single entry in the params array.

One of
Array<object>
Show child attributes
txidstring

Transaction ID to spend

voutinteger

Output index

JSON-RPC method parameters.

object

JSON-RPC method parameters.

integer

JSON-RPC method parameters.

boolean

Response

200OK

Unsigned raw transaction created 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