Kit
Functions

stringifiedBigInt

stringifiedBigInt(putativeBigInt): StringifiedBigInt

This helper combines asserting that a string will parse as a BigInt with coercing it to the StringifiedBigInt type. It's best used with untrusted input.

Parameters

ParameterType
putativeBigIntstring

Returns

StringifiedBigInt

Example

import { stringifiedBigInt } from '@solana/rpc-types';
 
const supplyString = stringifiedBigInt('1000000000');

On this page