Post
Topic
Board Discussioni avanzate e sviluppo
Re: Transazione OP_Return su unico output
by
CryptoCommand
on 05/02/2018, 12:09:32 UTC
Riprendo il discorso della funzione OP_RETURN per chiedervi un'ulteriore delucidazione. Per quale motivo a questo invio di "stringhe" sulla blockchain non vi è bisogno di associare un indirizzo di destinazione? E' perchè in effetti non vi sarebbe un invio di moneta, data la particolarità di questa funzionalità?

Vi allego una transazione che ho effettuato. Dei tre output, il primo fa riferimento all'OP_RETURN, gli altri due invece si riferiscono all'indirizzo di ricezione e quello di ritorno.

Grazie  Wink

Code:
{
  "status" : "success",
  "data" : {
...
    "inputs" : [
      {
        "input_no" : 0,
       "address" : "Indirizzo_0",
        "value" : "0.00700000",
        "received_from" : {
          "txid" : "xxx",
          "output_no" : 1
        },
        "script_asm" : "xxx",
        "script_hex" : "xxx"
      }
    ],
    "outputs" : [
      {
        "output_no" : 0,
        "address" : "nulldata",
        "value" : "0.00000000",
       "type" : "nulldata",
        "req_sigs" : null,
        "spent" : null,
      "script_asm" : "OP_RETURN xxx",
        "script_hex" : "xxx"
      },
      {
        "output_no" : 1,
      "address" : "Indirizzo_1",
        "value" : "0.00550000",
        "type" : "pubkeyhash",
        "req_sigs" : 1,
        "spent" : null,
        "script_asm" : "OP_DUP OP_HASH160 xxx OP_EQUALVERIFY OP_CHECKSIG",
        "script_hex" : "xxx"
      },
      {
        "output_no" : 2,
        "address" : "Indirizzo_2",
        "value" : "0.00100000",
        "type" : "pubkeyhash",
        "req_sigs" : 1,
        "spent" : null,
        "script_asm" : "OP_DUP OP_HASH160 xxxOP_EQUALVERIFY OP_CHECKSIG",
        "script_hex" : "xxx"
      }
    ],
    "tx_hex" : "xxx"
  },
  "code" : 200,
  "message" : ""
}