getDefaultLamportsCodec

function getDefaultLamportsCodec(): FixedSizeCodec<
    Sol | Lamports,
    Lamports,
    8
>;

Returns a codec that you can use to encode from or decode to a 64-bit Lamports value. The encoder also accepts a Sol fixed-point value; the decoder always returns Lamports.

Returns

FixedSizeCodec< | Sol | Lamports, Lamports, 8>

See

On this page