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

# toBigInt

> **注意**: このページはまだ日本語に翻訳されていません。以下は英語の原文です。

```ts theme={null}
function toBigInt(value): bigint
```

Converts `value` to a BigInt. If `value` is a Uint8Array, it is treated as Big Endian data.

## Parameters

| Parameter | Type                                                                        | Description           |
| :-------- | :-------------------------------------------------------------------------- | :-------------------- |
| `value`   | `Uint8Array` \| [`BigNumberish`](/jp/sdk/content/type-aliases/BigNumberish) | The value to convert. |

## Returns

`bigint`

The value.

## Source

[utils/maths.ts:189](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/utils/maths.ts#L189)
