EcashSendOperationLike.updates
ts
updates(): EcashSendOperationUpdatesLikeOpens a cursor on the states of the operation. Synchronous.
Parameters. None.
Returns. EcashSendOperationUpdatesLike. A cursor. Its next() gives Promise<State | undefined>: the current state first, then each change, and undefined at the clean end.
Throws. Not verified. The next() call gives Storage, FederationClosed or Internal.
Example
example.ts
ts
import type { EcashSendOperationLike } from '@fedimint/react-native'
declare const operation: EcashSendOperationLike
const updates = operation.updates()
const state = await updates.next()
console.log(state)Used in. Receive, step 02, Receive, step 04, Restore, step 03