Skip to main content
POST
Get the highest used index

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

XPUB search accepted by POST /v2/swap/restore and /restore/index. Supports the XPUB variant used by the TypeScript bindings; explicit public-key and EVM-address variants are not supported.

xpub
string
required

Extended public key from which client swap keys are derived.

derivationPath
string | null

Child-key base path. Boltz defaults to m/44/0/0/0; SDK callers pass m when the supplied XPUB is already the swap-account key.

gapLimit
integer<int32> | null

Consecutive unused-key scan limit. Boltz defaults to 50 and accepts values in 1..=150.

Required range: 1 <= x <= 150

Response

Highest matching client key index, or -1.

POST /v2/swap/restore/index response.

index
integer<int64>
required

Highest matching client derivation index, or -1 when none matched.

Required range: x >= -1