Skip to content

LnQuoteLike.fee ​

ts
fee(): Amount

Gives the fee of the payment. Synchronous.

Parameters. None.

Returns. Amount. The whole extra cost.

Throws. None.

Example

example.ts
ts
import type { LnQuoteLike } from '@fedimint/react-native'

declare const quote: LnQuoteLike

const msat = quote.fee() 
console.log(`${msat / 1000n} sats`)

Used in. Send, step 04