Last updated 16 days ago
This endpoint identifies whether the posted query text is a block hash, txid, or address, and responds with WoC links. Ideal for extending customized search in apps.
POST https://api.whatsonchain.com/v1/bsv/<network>/search/links
curl -X POST https://api.whatsonchain.com/v1/bsv/main/search/links -H 'Content-Type: application/json' -d '{ "query": "1GJ3x5bcEnKMnzNFPPELDfXUCwKEaLHM5H" }'
{ "results": [ { "type": "address", "url": "https://whatsonchain.com/address/1GJ3x5bcEnKMnzNFPPELDfXUCwKEaLHM5H" } ] }
URL Parameters
Request Body
network
The selected network: main or test.
query
The text to search.