Skip to main content

Event System

The Mina SDK provides a typed event system for subscribing to execution updates and status changes.

SDKEventEmitter

The event emitter class with typed event subscriptions.

Methods


SDK_EVENTS

Constant object containing all available event names.

Event Names


SDKEventPayloads

Type mapping for event payloads.

Event Payload Details

QUOTE_UPDATED

EXECUTION_STARTED

APPROVAL_REQUIRED

TRANSACTION_SENT

DEPOSIT_COMPLETED

EXECUTION_COMPLETED

EXECUTION_FAILED


Usage Examples

Basic Event Subscription

Tracking Transaction Progress

One-Time Subscription

Unsubscribing

Cleanup All Listeners

React Hook Example