Notes.parse
ts
Notes.parse(notes: string): NotesLikeChecks an ecash string and gives you checked notes. Synchronous.
Parameters
| Name | Type | Description |
|---|---|---|
notes | string | The ecash string from a sender. |
Returns. NotesLike. Checked notes.
Throws. InvalidInput. InvalidInput means a malformed value.
Example
example.ts
ts
import { Notes } from '@fedimint/react-native'
declare const pasted: string
const notes = Notes.parse(pasted.trim())
console.log(notes.value())Used in. Receive, step 01, Receive, step 02