solToLamports

function solToLamports(value): Lamports;

Converts a Sol fixed-point value to its equivalent Lamports bigint. This conversion is exact — a Sol value's raw bigint is exactly the Lamports count.

Parameters

ParameterType
valueSol

Returns

Lamports

Example

solToLamports(sol('1.5')); // lamports(1_500_000_000n)

See

On this page