Public docs
WebsiteTAAL PlatformWhatsOnChain
  • Welcome
  • Introduction
    • Get an API Key
  • Core Products
    • WhatsOnChain
      • Health
      • Chain Info
      • Block
      • Transaction
      • Mempool
      • (Un)Spent Transaction Outputs
      • Address
      • Script
      • Exchange Rate
      • Search
      • WoC Widgets
      • WoC Plugins
      • On-Chain Data
      • Output Tags
      • Stats
      • WebSockets
        • WoC Sockets V1 (Deprecated)
        • WoC Sockets V2 (Beta)
      • Tokens
        • 1Sat Ordinals (Beta)
        • BSV-21 (Beta)
        • STAS Tokens (Beta)
      • Change Log
      • Community Libraries
    • Transaction Processing
      • ARC Endpoints
      • Transaction format and fee rate
    • TAAL Wallet
      • Introduction
      • Architecture
      • Terminology
      • UI Elements
      • Tutorial
    • 1Sat Ordinals tokens API
      • Introduction
      • Terminology
      • Flow Diagram
      • Basic Tutorial - Node
      • Basic Tutorial - Postman
      • API
  • Resources
    • FAQ
    • Support
    • Glossary
    • Acronyms and Abbreviations
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Core Products
  2. WhatsOnChain

On-Chain Data

Get OP_RETURN Data by Tx Hash

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.

PreviousWoC PluginsNextOutput Tags

Last updated 6 months ago

Was this helpful?