Maestro Platform
Event Manager
16min
real time event notification systems are a game changer for developers building responsive, reactive applications instead of "pull based" apis requiring the client to explicitly request data from the blockchain, "push based" apis automatically send data to a client as soon as certain events happen on chain leading to significant savings in api usage and billing increased app responsiveness with better user experience maestro's event manager is a blockchain event notification service that monitors the blockchain network for user specified events and notifies applications in real time via webhooks this allows applications to stay updated with on chain activities such as wallet event track wallet deposits and withdraws token activity token transfers or nft mints script execution execution of scripts and smart contracts mempool state pending transactions in the mempool network activity new block minted or blockchain reorgs mempool aware event notifications maestro's event manager has a unique feature in that it is " mempool aware" that means every configured event webhook has two types of notification mempool notification triggered when the event is detected in the mempool onchain notification triggered when the event is first minted onchain (block confirmation = 1) benefits of event driven app architecture by subscribing to these notifications, developers can create applications that react instantly to blockchain activity, improving user experience and enabling a variety of innovative functionalities reduced overhead instead of constantly querying node data to check if something happened onchain, your app can rely on real time push notifications, resulting in significantly less api calls real time experience create a responsive app that immediately updates users with their most important events creating a better user experience (e g , “your nft was just transferred!”) scalability and cost savings maestro's event manager handles the heavy lifting of monitoring the chain so your app never misses an important event this results in r educed infrastructure complexity and long term cost savings service availability the event manager service is available on the following blockchains service bitcoin cardano dogecoin event manager api reference https //www postman com/go maestro/maestro api/documentation/1zgdbcz/bitcoin event manager api coming soon coming soon event types available event type notify on trigger conditions transaction notification specific transaction accepted into the mempool and then confirmed onchain trigger =transaction field = tx hash operator = equal to value = transaction id address notification specific address withdrawals or deposits by a transaction entering the mempool and then confirmed onchain trigger =transaction field = inputs and outputs operator = containts value = address id how does the event manager work? at a high level, here’s how the event notification service operates set up an event manager login to your dashboard https //dashboard gomaestro org/login and navigate to the "event" page you must first create an event manager by clicking on the "create webhook" button selecting which blockchain and network you want to track there are two types of trigger transaction filter events based on transaction information hash, address, asset, etc block filter events based on block information height, fee, block space, etc ( currently not available ) using the api interface create event manager post eventmanager gomaestro api org/v0/managers https //docs gomaestro org/bitcoin/create event manager" ` setup webhook configure a webhook endpoint url in your application where the notifications will be sent this endpoint acts as a receiver for event data pushed by the event manager configure an event triggers event triggers must be configured to filter only events important to the application or end user, such as wallet deposits or transactions processed the following trigger filters are available using the api interface create event trigger post eventmanager gomaestro api org/v0/triggers https //docs gomaestro org/bitcoin/create event manager trigger ` processing real time notifications when the subscribed event occurs on chain, the notification service sends a http request (a “webhook”) to your specified endpoint (for example, https //myapp com/api/notifications https //myapp com/api/notifications ) with details about the event your application can process the incoming data to trigger workflows, update user interfaces, or store relevant information tracking event logs additionally, the event manager allows you to retrieve event log history that can be used for various purposes such as audit logs, trend analytics, and time series charts using the api interface retrieve event logs get eventmanager/logs/{id} https //docs gomaestro org/bitcoin/event log info by id ` common use cases for real time event notifications defi protocol monitoring liquidity pool events get alerts when large liquidity deposits or withdrawals occur, or if pool parameters change loan liquidations notify borrowers (or watchers) in real time when a position is at risk or has been liquidated nft marketplace & collectibles mint tracking monitor when new tokens are minted so you can update supply or notify users transfer/ownership updates send push notifications when an nft changes hands auction bids real time updates for any new bids or final sales wallet & portfolio tracking address activity keep track of inbound/outbound transactions for a user’s wallet helpful for generating push notifications token balance changes when an address receives a new token or sells a portion of a token transaction lifecycle tracking pending → mined → confirmed provide instant feedback to users about where their transaction is in the pipeline dropped or replaced transactions notify users if their transaction was replaced by a new one with a higher fee security & monitoring smart contract exploit detection set up alerts for large, abnormal transactions on known vulnerable contracts whitelist/blacklist immediately know if a blacklisted address interacts with your protocol