getrawtransaction
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Retrieves a raw transaction by its txid. If verbose is false or omitted, the result is a hexadecimal transaction string. With verbose=true, the result is a decoded transaction object. For a transaction currently in the node mempool, Bitcoin Core 32.1 adds optional vsize_adjusted (virtual size adjusted for sigops). vsize remains the BIP141 virtual size. The field vsize_adjusted is not guaranteed for confirmed transactions or transactions outside the mempool.
Body
Retrieves a raw transaction by its txid. If verbose is false or omitted, the result is a hexadecimal transaction string. With verbose=true, the result is a decoded transaction object. For a transaction currently in the node mempool, Bitcoin Core 32.1 adds optional vsize_adjusted (virtual size adjusted for sigops). vsize remains the BIP141 virtual size. The field vsize_adjusted is not guaranteed for confirmed transactions or transactions outside the mempool.
Request payload containing the documented method parameters and client request identifier.
jsonrpcstringrequiredJSON-RPC protocol version.
idstringrequiredClient-provided request identifier echoed in the response.
methodstringgetrawtransactionrequiredJSON-RPC method name.
paramsArray<string | boolean>requiredParameters:
txid(string, required) — The transaction ID.verbose(boolean, optional) — If true, return JSON; if false, return hex. Default: false.
Response
Transaction retrieved successfully
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Internal Server Error