# TreeInsertionPath

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight/ledger v8.1.3**](https://docs.midnight.network/api-reference/ledger.md)

***

[@midnight/ledger](https://docs.midnight.network/api-reference/ledger/globals.md) / TreeInsertionPath

# Type Alias: TreeInsertionPath\<A>

```
type TreeInsertionPath<A> = {

  annotation: A;

  leafHash: string;

  path: TreeInsertionPathEntry[];

};
```

A path evidencing how to insert an entry into a Merkle tree, even if it is collapsed.

## Type Parameters[​](#type-parameters "Direct link to Type Parameters")

### A[​](#a "Direct link to A")

`A`

## Properties[​](#properties "Direct link to Properties")

### annotation[​](#annotation "Direct link to annotation")

```
annotation: A;
```

***

### leafHash[​](#leafhash "Direct link to leafHash")

```
leafHash: string;
```

***

### path[​](#path "Direct link to path")

```
path: TreeInsertionPathEntry[];
```
