Blockchain
Get scriptPubKey details
Changed onRetrieve 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.
get/v1/cryptos/{cryptoCode}/scripts/{script}
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP basic
- TypeScripthttps://skmtc.dev/btcpayserver/apis/nbxplorer-api/docs/v1/cryptos/:cryptoCode/scripts/:script/get.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
cryptoCodestring required
The cryptocurrency code to track (e.g., 'BTC' for Bitcoin, 'LTC' for Litecoin).
scriptstring required
The scriptPubKey to get information about
Response
ScriptPubKey information
Example response
[
{
"trackedSource": "DERIVATIONSCHEME:tpubD6NzVbkrYhZ4WcPozSqALNCrJEt4C45sPDhEBBuok...",
"feature": "Deposit",
"derivationStrategy": "tpubD6NzVbkrYhZ4WcPozSqALNCrJEt4C45sPDhEBBuok...",
"keyPath": "0/123",
"index": 123,
"scriptPubKey": "001460c25d29559774803f262acf5ee5c922eff52ccd",
"address": "tb1qvrp96224ja6gq0ex9t84aewfythl2txdkpdmu0",
"redeem": "0014e2eb89edba1fe6c6c0863699eeb78f6ec3271b45",
"blindingKey": "9b73aab73a972485defe9d1d27217267eb17541a393e19d820549acf3fe69308"
}
]Changes
- warning
deleted the
pathrequest parameterderivationScheme - info
api operation id
GetScriptInformationwas added
- warning
- info
added the optional property
/to the response with the status
- info