Script
Get Script Usage Status
This endpoint serves as a usage status flag for a given script.
URL Parameters
Parameter | Description |
---|---|
network | The selected network: main or test. |
scriptHash | The script hash: Sha256 hash of the binary bytes of the locking script (ScriptPubKey), expressed as a hexadecimal string. |
Get Unconfirmed Script History (Beta)
This endpoint retrieves the history of unconfirmed transactions for a given script. Returns up to 100k results in one request.
URL Parameters
Parameter | Description |
---|---|
network | The selected network: main or test. |
scriptHash | The script hash: Sha256 hash of the binary bytes of the locking script (ScriptPubKey), expressed as a hexadecimal string. |
Bulk Unconfirmed Script History (Beta)
This endpoint retrieves the history of unconfirmed transactions for a given set of scripts.
Max 20 scripthashes per request.
Max 100 items returned per request.
URL Parameters
Parameter | Description |
---|---|
network | The selected network: main or test. |
Get Confirmed Script History (Beta)
This endpoint retrieves the history of confirmed transactions for a given script. Pagination is available using the provided next-page token.
URL Parameters
Parameter | Description |
---|---|
network | The selected network: main or test. |
scriptHash | The script hash: Sha256 hash of the binary bytes of the locking script (ScriptPubKey), expressed as a hexadecimal string. |
order | Ordering: asc or desc; default is desc. |
limit | Between 1 and 1000; default is 100. |
height | Starting block height for history; default is 0. |
token | Provided next page token. |
Bulk Confirmed Script History (Beta)
This endpoint retrieves the history of confirmed transactions for a given set of scripts.
Max 20 scripthashes per request.
Max 20 items returned per request.
URL Parameters
Parameter | Description |
---|---|
network | The selected network: main or test. |
(Planned for deprecation) Get Script History
This endpoint is powered by ElectrumX and is planned for deprecation in the near future.
This endpoint retrieves both the confirmed and unconfirmed transactions for a given script.
Returns a response as long as the response message is less than 1MB in size.
URL Parameters
Parameter | Description |
---|---|
network | The selected network: main or test. |
scriptHash | The script hash: Sha256 hash of the binary bytes of the locking script (ScriptPubKey), expressed as a hexadecimal string. |
Last updated