You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subscribes to status updates for a given Cross-VM Flow transaction ID that executes EVM calls. This hook monitors the transaction status and extracts EVM call results if available.
870
+
871
+
#### Parameters:
872
+
873
+
-`id?: string` – Optional Flow transaction ID to monitor
874
+
875
+
#### Returns: `UseCrossVmTransactionStatusResult`
876
+
877
+
Where `UseCrossVmTransactionStatusResult` is defined as:
878
+
879
+
```typescript
880
+
interfaceUseCrossVmTransactionStatusResult {
881
+
transactionStatus:TransactionStatus|null// Latest transaction status, or null before any update
882
+
evmResults?:CallOutcome[] // EVM transaction results, if available
883
+
error:Error|null// Any error encountered during status updates
884
+
}
885
+
```
886
+
887
+
Where `CallOutcome` is defined as:
888
+
889
+
```typescript
890
+
interfaceCallOutcome {
891
+
status:"passed"|"failed"|"skipped"// Status of the EVM call
892
+
hash?:string// EVM transaction hash if available
893
+
errorMessage?:string// Error message if the call failed
0 commit comments