Search

This endpoint identifies whether the posted query string is a block hash, txid, or address, and responds with WoC links. Ideal for extending customized search in apps.

HTTP Request
POST https://api.whatsonchain.com/v1/<chain>/<network>/search/links

Example Request

curl -X POST https://api.whatsonchain.com/v1/bsv/main/search/links   -H 'Content-Type: application/json' -d '{    "query": "1GJ3x5bcEnKMnzNFPPELDfXUCwKEaLHM5H"

Example Response

{
    "results": [{
        "type": "address",
        "url": "https://whatsonchain.com/address/1GJ3x5bcEnKMnzNFPPELDfXUCwKEaLHM5H"
    }]
}

URL Parameters

Parameter
Description

chain

Desired blockchain: bsv or btc.

network

Selected network: main or test.

Request Parameters

Parameter
Description

query

The string to search.

Last updated

Was this helpful?