> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# solidityPackedSha256

```ts theme={null}
function solidityPackedSha256(types, values): string
```

Computes the [Non-Standard Packed
Mode](https://docs.soliditylang.org/en/v0.8.14/abi-spec.html#non-standard-packed-mode) [sha256](../functions/sha256)
hash of `values` respectively to their `types`.

## Parameters

| Parameter | Type                 | Description              |
| :-------- | :------------------- | :----------------------- |
| `types`   | readonly `string`\[] | The types of the values. |
| `values`  | readonly `any`\[]    | The values to hash.      |

## Returns

`string`

The hash of the packed values.

## Example

```ts theme={null}
addr = '0x8ba1f109551bd432803012645ac136ddd64dba72';
solidityPackedSha256(['address', 'uint'], [addr, 45]);
```

## Source

[hash/solidity.ts:163](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/hash/solidity.ts#L163)
