<!--
{
  "availability" : [

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

# headerTip

Called when a new best block header is added.

```
let headerTip: ((SynchronizationState, Int64, Int64, Bool) -> Void)?
```

## Parameters

`state`

Current synchronization state.

`height`

Header chain height.

`timestamp`

Header timestamp (Unix epoch seconds).

`presync`

Whether this is a pre-sync header.