<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "BitcoinKernel",
  "identifier" : "/documentation/BitcoinKernel/Transaction/input(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BitcoinKernel"
    ],
    "preciseIdentifier" : "s:13BitcoinKernel11TransactionC5input2atAA0C5InputCSi_tF"
  },
  "title" : "input(at:)"
}
-->

# input(at:)

Returns the input at the given index (owned copy).

```
func input(at index: Int) -> TransactionInput
```

## Parameters

`index`

Zero-based input index.

## Discussion> Precondition: `index` must be in `0..<inputCount`.