Convert lamports to SOL (9 decimal places).

1.0.0

lamportsToSol(Lamports(1_000_000_000n)); // 1.0
  • Parameters

    • lamports: bigint | Lamports

      Amount in lamports (bigint or branded).

    Returns number

    Amount in SOL as a floating-point number.