NotesLike.value
ts
value(): AmountReads the value inside the notes. It makes no network call. Synchronous.
Parameters. None.
Returns. Amount. The value in the notes. This does not prove that the notes are still unspent.
Throws. Not verified.
Example
example.ts
ts
import type { NotesLike } from '@fedimint/react-native'
declare const notes: NotesLike
const msat = notes.value()
console.log(`${msat / 1000n} sats`)Used in. Receive, step 01, Send, step 02, History, step 04