lamportsToSol
Convert a lamport number to the human readable string of a SOL value
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lamports | number | bigint | undefined | The amount in lamports |
decimals | number | 9 | Number of decimal places to show (default: 9, max: 9) |
Returns
string