Skip to content

Notes.parse ​

ts
Notes.parse(notes: string): NotesLike

Checks an ecash string and gives you checked notes. Synchronous.

Parameters

NameTypeDescription
notesstringThe 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