<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "BitcoinKernel",
  "identifier" : "/documentation/BitcoinKernel/TransactionOutput/scriptPubkey",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "BitcoinKernel"
    ],
    "preciseIdentifier" : "s:13BitcoinKernel17TransactionOutputC12scriptPubkeyAA06ScriptF0Cvp"
  },
  "title" : "scriptPubkey"
}
-->

# scriptPubkey

The script pubkey of this output — the locking script that a
spending transaction must satisfy. Returns an owned copy that
outlives this output.

```
var scriptPubkey: ScriptPubkey { get }
```