API Reference
decimalStringToBigInt()
Parse a canonical decimal storage scalar into host BigInt.
Import
import { decimalStringToBigInt } from "@graphrefly/ts/storage";
Signature
function decimalStringToBigInt(value: DecimalIntegerString): bigint
Parameters
| Parameter | Type | Description |
|---|---|---|
value | DecimalIntegerString | Unknown value to check or decode. |
Returns
A bigint value.
Example
import { decimalStringToBigInt } from "@graphrefly/ts/storage";
Source
packages/ts/src/storage/scalar.ts