getLamportsEncoder
Returns an encoder that you can use to encode a Lamports value to a byte array. The
encoder also accepts a Sol fixed-point value, whose raw bigint is written as if it
were a Lamports value.
You must supply a number decoder that will determine how encode the numeric value.
Type Parameters
| Type Parameter |
|---|
TEncoder extends NumberEncoder |
Parameters
| Parameter | Type |
|---|---|
innerEncoder | TEncoder |
Returns
Encoder<
| Sol
| Lamports> & ExtractAdditionalProps<TEncoder, NumberEncoder>