---
title: "Derive an address"
method: GET
path: "/utils/addresses/xpub/{xpub}/{role}/{index}"
tags: ["Cardano » Utilities"]
---

# Derive an address

`GET /utils/addresses/xpub/{xpub}/{role}/{index}`

Derive Shelley address from an xpub

## Path parameters

- `xpub` string, required
- `role` integer, required
- `index` integer, required

## Response `200`

Return derivated Shelley address

- UtilsAddressesXpub
  - `xpub` string, required — Script hash
  - `role` integer, required — Account role
  - `index` integer, required — Address index
  - `address` string, required — Derived address

## Other responses

- `400` — Bad request
- `403` — Authentication secret is missing or invalid
- `404` — Component not found
- `418` — IP has been auto-banned for extensive sending of requests after usage limit has been reached
- `429` — Usage limit reached
- `500` — Internal Server Error

---

[API](https://skmtc.net/txpipe/apis/blockfrost-io-api-documentation.md) · [All operations](https://skmtc.net/txpipe/apis/blockfrost-io-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/txpipe/blockfrost-io-api-documentation/revisions/4a2f67b16876/schema)
