---
title: "Get scriptPubKey details"
method: GET
path: "/v1/cryptos/{cryptoCode}/scripts/{script}"
tags: ["Blockchain"]
---

# Get scriptPubKey details

`GET /v1/cryptos/{cryptoCode}/scripts/{script}`

Retrieve details about a specific scriptPubKey. Since a single scriptPubKey can be associated with multiple tracked sources, the response includes an array listing all related sources.

## Path parameters

- `cryptoCode` string, required
- `derivationScheme` string, required
- `script` string, required

## Response `200`

ScriptPubKey information

- KeyInformation[]
  - `trackedSource` string, nullable — The tracked source identifier, typically representing the derivation scheme being used.
  - `feature` string — Specifies the type of address generated. Possible values are: - `Deposit`: A deposit address from the external chain (`0/x`). - `Change`: A change address from the internal chain (`1/x`). - `Direct`: An address from the direct chain (`x`). - `Custom`: An address using a custom key path template.
  - `derivationStrategy` string — The derivation strategy used to derive addresses, typically the extended public key (xpub) with optional suffixes indicating the script type.
  - `keyPath` string, nullable — The derivation path used to generate this address, e.g., `0/123`.
  - `index` integer, nullable — The derivation path index of this address
  - `scriptPubKey` string — The scriptPubKey of the generated address in hexadecimal format.
  - `address` string — The generated address, in base58 or bech32 format, depending on the script type.
  - `redeem` string, nullable — The redeem script associated with the address (if applicable). Returns the SegWit redeem script if the derivation scheme is P2SH-P2WPKH or P2WPKH, or the P2SH redeem script if the script type is P2SH.

## Changes

- **2024-12-25** `eb48f5312f18` — 1 info
  - endpoint added
- **2024-11-18** `b5092f204599` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/changes/v1/cryptos/:cryptoCode/scripts/:script/get.md)

---

[API](https://skmtc.dev/btcpayserver/apis/nbxplorer-api.md) · [All operations](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/btcpayserver/nbxplorer-api/revisions/04bc960e593f/schema)
