---
title: "Generate a Bitcoin address from the wallet's extended public key"
method: GET
path: "/v3/bitcoin/address/{xpub}/{index}"
tags: ["Bitcoin - Tatum API"]
---

# Generate a Bitcoin address from the wallet's extended public key

`GET /v3/bitcoin/address/{xpub}/{index}`

## Request

- Base URL: `https://api.tatum.io`
- URL: `https://api.tatum.io/v3/bitcoin/address/{xpub}/{index}`
- Auth: API key in header `x-api-key`

/v3/bitcoin/address/{xpub}/{index}

**1 credit per API call**

Generate a Bitcoin address from the extended public key of the wallet. The address is generated for the specific index - each extended public key can generate up to 2^32 addresses with the index starting from 0 up to 2^31 - 1.

## Path parameters

- `xpub` string, required
- `index` number, required

## Response `200`

OK

- GeneratedAddressBtc
  - `address` string: Bitcoin address

## Other responses

- `400`: Bad Request
- `401`: Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
- `403`: Forbidden. The request is authenticated, but it is not possible to perform the required operation due to a logical error or invalid permissions.
- `500`: Internal server error. There was an error on the server during the processing of the request.

---

[API](https://skmtc.dev/tatum/apis/blockchain.md) - [All operations](https://skmtc.dev/tatum/apis/blockchain/llms.txt) - [OpenAPI document](https://skmtc.dev/tatum/apis/blockchain/revisions/f9623a85f420?raw)
