Home > eth-connect > toHex
Auto converts any given value into it's hex representation.
And even stringifys objects before.
Signature:
export declare function toHex(val: BigNumber.Value | boolean | Uint8Array): string;
Parameter | Type | Description |
---|---|---|
val | BigNumber.Value | boolean | Uint8Array |
Returns:
string