Script
Get Script Usage Status
This endpoint serves as a usage status flag for a given script.
GET https://api.whatsonchain.com/v1/<chain>/<network>/script/<scriptHash>/usedExample Request
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/script/3a9b9e2285ae40de7679e48efcef7d029a46a7b3120063a6d24347ce4452e6ee/used"curl --location --request GET "https://api.whatsonchain.com/v1/btc/main/script/6cf6b0690edac65afb8ba0aede291027af7aed93a81e590a0f5b381eae09f5ab/used"Example Response
falsetrueURL Parameters
chain
Desired blockchain: bsv or btc.
network
Selected network: main or test.
scriptHash
Script hash: Sha256 hash of the binary bytes of the locking script (ScriptPubKey), expressed as a hexadecimal string.
Get Unconfirmed Script History
This endpoint retrieves the history of unconfirmed transactions for a given script.
GET https://api.whatsonchain.com/v1/bsv/<network>/script/<scriptHash>/unconfirmed/historyExample Request
Example Response
URL Parameters
network
Selected network: main or test.
scriptHash
Script hash: Sha256 hash of the binary bytes of the locking script (ScriptPubKey), expressed as a hexadecimal string.
Bulk Unconfirmed Script History
This endpoint retrieves the history of unconfirmed transactions for a given set of scripts.
Example Request
Example Response
URL Parameters
network
Selected network: main or test.
Get Confirmed Script History
This endpoint retrieves the history of confirmed transactions for a given script.
Example Request
Example Response
URL Parameters
chain
Desired blockchain: bsv or btc.
network
Selected network: main or test.
scriptHash
Script hash: Sha256 hash of the binary bytes of the locking script (ScriptPubKey), expressed as a hexadecimal string.
order
Ordering: asc or desc (default).
limit (optional)
Between 1 and 1000; default is 100.
height (optional)
Starting block height for history; default is 0.
token
Provided next-page token.
Bulk Confirmed Script History
This endpoint retrieves the history of confirmed transactions for a given set of scripts.
Example Request
Example Response
URL Parameters
chain
Desired blockchain: bsv or btc.
network
Selected network: main or test.
Last updated