Home

Create a Request to Fetch Metadata

POST
https://ada.nownodes.io/construction/preprocess

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Preprocess is called prior to /construction/payloads to construct a request for any metadata that is needed for transaction construction given (i.e. account nonce). The options object returned from this endpoint will be sent to the /construction/metadata endpoint UNMODIFIED by the caller (in an offline execution environment). If your Construction API implementation has configuration options, they MUST be specified in the /construction/preprocess request (in the metadata field).

Body

application/json

Request value.

network_identifierobjectrequired

Rosetta network identifier.

Show child attributes
blockchainstringrequired

Blockchain name, always "cardano".

networkstringrequired

Cardano network identifier.

operationsArray<object>required

List of operations to preprocess.

Show child attributes
operation_identifierobjectrequired

Operation Identifier value.

Show child attributes
indexintegerrequired

The index of this operation within the transaction (0-based).

typestringrequired

Type of operation. For DRep delegation use "dRepVoteDelegation".

accountobjectrequired

Account value.

Show child attributes
addressstringrequired

The bech32 or bech32m encoded staking address.

metadataobject

Operation-specific metadata. Required for delegation.

Show child attributes
staking_credentialobjectrequired

Staking Credential value.

Show child attributes
hex_bytesstringrequired

Hex-encoded stake credential (28 bytes).

curve_typestringrequired

Curve type of the staking key.

drepobjectrequired

DRep delegation target. If using a 29-byte CIP-129 ID, omit type; for a raw 28-byte ID, type is required.

Show child attributes
idstringrequired

Hex-encoded DRep ID. 28-byte raw ID or 29-byte prefixed CIP-129 ID (0x22=key, 0x23=script).

typestring

Required only for raw 28-byte IDs. Either "key_hash" or "script_hash".

Response

200OK

HTTP 200 response for constructionPreprocess.

400Bad Request

Bad Request. The request is malformed or contains invalid parameters.

401Unauthorized

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

422Unprocessable Entity

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

500Internal Server Error

Internal Server Error. The gateway or backend failed while processing the request.