Optional
commitment: CommitmentProtected
commitmentProtected
connectionProtected
eventProtected
idlProtected
onProtected
programProtected
programProtected
providerProtected
queuedProtected
registeredProtected
getProtected
handleProtected
handleProtected
handleProtected
handleProtected
processProtected
Add this code to centralize specific error handling
Protected
set
Listens to events emitted by the Galactic Marketplace program and will call the registered onEvent() callback function for each event.
Param: connection
Solana connection
Param: programId
The Galactic Marketplace program PublicKey
Param: commitment
Optional Solana commitment level, defaults the
connection
commitment level