ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / bigIntToHex

Function: bigIntToHex()

bigIntToHex(num): `0x${string}`

Defined in: packages/util/src/bytes.ts:352

Converts a bigint to a 0x prefixed hex string

Parameters

num

bigint

the bigint to convert

Returns

`0x${string}`