subscribeComputations
subscribeComputations(
conn
,mxeProgramId
,callback
):Promise
<number
>
Subscribes to computation-related events for a given MXE program ID.
Parameters
Parameter | Type | Description |
---|---|---|
conn | Connection | The Solana connection object. |
mxeProgramId | PublicKey | The public key of the MXE program. |
callback | (event , name ) => void | Callback function to handle each computation event and its name. |
Returns
Promise
<number
>
The subscription ID for the logs listener.