OP_RETURN Creation

Create a bitcoin transaction with an OP_RETURN

Input

Text to be included in the OP_RETURN, max 80 bytes when UTF-8 encoded

Output

content MUST contain the bitcoin transaction id of the resulting transaction.

Example

Request

{
    "content": "",
    "kind": 5901,
    "pubkey": "<pubkey-a>",
    "tags": [
      ["i", "09/01/24 SEC Chairman on the brink of second ETF approval", "text"]
    ]
}

Response

{
  "content": "07bcf35c548e402e2219fbd846d4e736418d777c38bda6465e7f2956fd63e948",
  "kind": 6901,
  "tags": [
    [
      "i",
      "09/01/24 SEC Chairman on the brink of second ETF approval"
    ],
    [
      "p",
      "<pubkey-a>"
    ],
    [
      "e",
      "<event-id-of-5901>"
    ]
  ]
}