Skip to content
Alchemy Logo

Get Xpub

GET
/{apiKey}/api/v2/xpub/{xpub}

Returns balances and transactions for an xpub or output descriptor on Litecoin. Supports BIP44, BIP49, BIP84, and BIP86 (Taproot) derivation schemes. The BIP version is determined by the xpub prefix or by an explicit output descriptor.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

stringrequired

Extended public key or output descriptor.

Query Parameters

integeroptionaldefaults to 1

integeroptionaldefaults to 1000

integeroptional

integeroptional

enumoptionaldefaults to txids

Defaults to "txids".

Allowed values:

enumoptionaldefaults to nonzero

Which derived addresses to return.

Defaults to "nonzero".

Allowed values:

stringoptional

Secondary (fiat) currency code for balance conversion.

Responses

200

Xpub details, balances, derived addresses, and transactions.

400

Malformed request.

404

Resource not found on the requested network.

Was this page helpful?