• 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

    • putativeLamports: bigint

    Returns Lamports

    import { lamports } from '@solana/rpc-types';

    await transfer(address(fromAddress), address(toAddress), lamports(100000n));