---
title: "encode(to:)"
framework: financekit
role: symbol
role_heading: Instance Method
path: "financekit/financestore/historytoken/encode(to:)"
---

# encode(to:)

Encodes the history token into the provided encoder.

## Declaration

```swift
func encode(to encoder: any Encoder) throws
```
