Home

Generate address from xpub

GET
https://ada-blockfrost.nownodes.io/utils/addresses/xpub/{address}/{role}/{index}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Derives a Cardano Shelley payment address from an extended public key (xpub) using the specified role (external or internal/change) and address derivation index.

Parameters

addressstringrequiredpath

Extended public key (xpub) encoded in hex or base58.

roleinteger01requiredpath

BIP-44 role index. 0 = external (receiving) address, 1 = internal (change) address.

indexinteger<int64>>= 0requiredpath

Zero-based derivation index of the address to generate.

Response

200OK

HTTP 200 response for generateAddressFromXpub.

400Bad Request

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

401Unauthorized

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

404Not Found

Extended public key not found or invalid.

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.