> ## 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.

# solidityPacked

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

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

## Parameters

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

## Returns

`string`

The packed values.

## Example

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

## Source

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