On-Chain Data
This endpoint returns OP_RETURN data as hex for each output in the transaction.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/tx/<hash>/opreturn
cURL
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/tx/46c5495468b68248b69e55aa76a6b9ca1cb343bee9477c9c121358380e421ff3/opreturn"
Response JSON structure
[
{
"n": 2,
"hex": "006a075354554b2e434f"
}
]
URL Parameters
Parameter | Description |
---|---|
network | The selected network: main or test. |
hash | The desired TX hash. |
Last modified 4mo ago