Skip to Content
API referenceSatellite SolanaSrcInterfacesSolanaWatcherCallbacks

@tuwaio/satellite-connect-monorepo


SolanaWatcherCallbacks

Defined in: packages/satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:16 

Callback functions interface for the Solana connections watcher. These callbacks are used to interact with the global state store.

Properties

activeConnection

activeConnection: SolanaConnection | undefined

Defined in: packages/satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:18 

The currently active Solana connection from the global store


connectionError

connectionError: string | undefined

Defined in: packages/satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:22 

Current connection error state, if any


disconnect()

disconnect: (connectorType) => void

Defined in: packages/satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:20 

Function to disconnect a specific connector type

Parameters

connectorType

`evm:${string}` | `solana:${string}` | `starknet:${string}`

Returns

void


updateActiveConnection()

updateActiveConnection: (connection) => void

Defined in: packages/satellite-solana/src/utils/createSolanaConnectionsWatcher.ts:24 

Function to update the active connection’s properties

Parameters

connection

Partial<SolanaConnection>

Returns

void

Last updated on