Skip to content

EcashSendOperationLike.state ​

ts
state(): Promise<EcashSendState>

Reads the current state of the operation.

Parameters. None.

Returns. EcashSendState. The current state. A failed operation is a failure state, not an error.

Throws. Storage, FederationClosed, Internal. This method never returns UnsupportedOperation.

Example

example.ts
ts
import {
  EcashSendState,
  type EcashSendOperationLike,
} from '@fedimint/react-native'

declare const operation: EcashSendOperationLike

const state = await operation.state() 
console.log(EcashSendState[state])

Used in. History, step 04