Kit
Functions

lamports

lamports(putativeLamports): Lamports

This helper combines asserting that a number is a possible number of Lamports with coercing it to the Lamports type. It's best used with untrusted input.

Parameters

ParameterType
putativeLamportsbigint

Returns

Lamports

Example

import { lamports } from '@solana/rpc-types';
 
await transfer(address(fromAddress), address(toAddress), lamports(100000n));

On this page