{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Nexus","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/whatsgooddog/K3SyQTf-MfYfPKwC/images/nexus-proxy-banner-wordmark-light.svg?fit=max\u0026auto=format\u0026n=K3SyQTf-MfYfPKwC\u0026q=85\u0026s=23de33a5a797801a1b8d4648c8ed6130","dark":"https://mintcdn.com/whatsgooddog/K3SyQTf-MfYfPKwC/images/nexus-proxy-banner-wordmark-dark.svg?fit=max\u0026auto=format\u0026n=K3SyQTf-MfYfPKwC\u0026q=85\u0026s=01d10a025f5cccae6842b050a4502a7e"},"navbar":{"links":[{"label":"Support","href":"mailto:yo@whatsgood.dog?subject=Support%20Request%20%28Nexus%29"}],"primary":{"type":"github","href":"https://github.com/whats-good/nexus"}},"footer":{"socials":{"twitter":"https://twitter.com/MechanicalKazan","github":"https://github.com/whats-good/nexus","linkedin":"https://www.linkedin.com/in/keremkazan/"}},"integrations":{"ga4":{"measurementId":"G-7P86P21ZJD"}},"navigation":{"global":{"anchors":[{"anchor":"Community","href":"https://discord.gg/P6TxFsWXCk","icon":"discord"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"whatsgooddog","hasAudioNarration":false,"actualSubdomain":"whatsgooddog","customDomains":["nexus.whatsgood.dog"],"gitSource":{"type":"github","owner":"whats-good","repo":"nexus","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true},"entitlements":{},"buildId":"6ae91d29470a0e2f7e007536:success","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Documentation","count":26},{"language":"default","tag":"Development","count":22},{"language":"default","tag":"Features","count":9},{"language":"default","tag":"Integrations","count":7},{"language":"default","tag":"Key Concepts","count":5},{"language":"default","tag":"Get Started","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"features/event-handlers","slug":"/features/event-handlers","pageMetadata":{"title":"Event Handlers","description":"Learn how to execute custom logic at specific points in the lifecycle of your RPC requests","href":"/features/event-handlers"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to execute custom logic at specific points in the lifecycle of your RPC requests\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components},{Warning}=_components;if(!Warning)_missingMdxReference(`Warning`,true);return _jsx(Warning,{children:_jsx(_components.p,{children:`This page is currently under construction. Please check back later.`})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Event Handlers","description":"Learn how to execute custom logic at specific points in the lifecycle of your RPC requests","href":"/features/event-handlers"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"whatsgooddog","siteName":"Nexus","title":"Event Handlers - Nexus","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T23:45:35.400Z","originalFileLocation":"features/event-handlers.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to execute custom logic at specific points in the lifecycle of your RPC requests\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nexus\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/whatsgooddog/Q6tQPVOSke8e29Gg/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/whatsgooddog/Q6tQPVOSke8e29Gg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/whatsgooddog/Q6tQPVOSke8e29Gg/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/whatsgooddog/Q6tQPVOSke8e29Gg/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/whatsgooddog/Q6tQPVOSke8e29Gg/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/whatsgooddog/Q6tQPVOSke8e29Gg/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/whatsgooddog/Q6tQPVOSke8e29Gg/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/whatsgooddog/Q6tQPVOSke8e29Gg/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/whatsgooddog/Q6tQPVOSke8e29Gg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Event Handlers - Nexus\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to execute custom logic at specific points in the lifecycle of your RPC requests\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nexus\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://nexus.whatsgood.dog/features/event-handlers\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://whatsgooddog.mintlify.site/_mintlify/api/og/v2?division=Features\u0026amp;title=Event+Handlers\u0026amp;description=Learn+how+to+execute+custom+logic+at+specific+points+in+the+lifecycle+of+your+RPC+requests\u0026amp;theme=281615399da52621869fc599\u0026amp;signature=beee1f18ed791d1245d137a5daf2f24963f8bcf9c7fd11d56f833c5abbd73302\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Event Handlers - Nexus\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to execute custom logic at specific points in the lifecycle of your RPC requests\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://whatsgooddog.mintlify.site/_mintlify/api/og/v2?division=Features\u0026amp;title=Event+Handlers\u0026amp;description=Learn+how+to+execute+custom+logic+at+specific+points+in+the+lifecycle+of+your+RPC+requests\u0026amp;theme=281615399da52621869fc599\u0026amp;signature=beee1f18ed791d1245d137a5daf2f24963f8bcf9c7fd11d56f833c5abbd73302\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/whatsgooddog/Q6tQPVOSke8e29Gg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nexus\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://nexus.whatsgood.dog/features/event-handlers\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/event-handlers.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://nexus.whatsgood.dog/#organization\",\"name\":\"Nexus\",\"url\":\"https://nexus.whatsgood.dog\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/whatsgooddog/K3SyQTf-MfYfPKwC/images/nexus-proxy-banner-wordmark-light.svg?fit=max\u0026auto=format\u0026n=K3SyQTf-MfYfPKwC\u0026q=85\u0026s=23de33a5a797801a1b8d4648c8ed6130\"}},{\"@type\":\"WebSite\",\"@id\":\"https://nexus.whatsgood.dog#website\",\"name\":\"Nexus\",\"url\":\"https://nexus.whatsgood.dog\",\"publisher\":{\"@id\":\"https://nexus.whatsgood.dog/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://nexus.whatsgood.dog/features/event-handlers#webpage\",\"url\":\"https://nexus.whatsgood.dog/features/event-handlers\",\"name\":\"Event Handlers\",\"description\":\"Learn how to execute custom logic at specific points in the lifecycle of your RPC requests\",\"dateModified\":\"2026-01-06T23:45:35.400Z\",\"isPartOf\":{\"@id\":\"https://nexus.whatsgood.dog#website\"},\"breadcrumb\":{\"@id\":\"https://nexus.whatsgood.dog/features/event-handlers#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://nexus.whatsgood.dog/features/event-handlers#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Development\",\"item\":\"https://nexus.whatsgood.dog/key-concepts/nexus-server\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Features\",\"item\":\"https://nexus.whatsgood.dog/features/multi-chain\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Event Handlers\",\"item\":\"https://nexus.whatsgood.dog/features/event-handlers\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://nexus.whatsgood.dog/features/event-handlers#article\",\"headline\":\"Event Handlers\",\"name\":\"Event Handlers\",\"description\":\"Learn how to execute custom logic at specific points in the lifecycle of your RPC requests\",\"url\":\"https://nexus.whatsgood.dog/features/event-handlers\",\"mainEntityOfPage\":{\"@id\":\"https://nexus.whatsgood.dog/features/event-handlers#webpage\"},\"dateModified\":\"2026-01-06T23:45:35.400Z\",\"publisher\":{\"@id\":\"https://nexus.whatsgood.dog/#organization\"},\"isPartOf\":{\"@id\":\"https://nexus.whatsgood.dog#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Nexus\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Nexus\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/features/event-handlers.md","siteName":"Nexus","nav":{"global":{"anchors":[{"anchor":"Community","href":"https://discord.gg/P6TxFsWXCk","icon":"discord"}]},"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/get-started/introduction"},{"title":"Quickstart","href":"/get-started/quickstart"},{"title":"Use Cases","href":"/get-started/use-cases"},{"title":"Roadmap","href":"/get-started/roadmap"}]},{"group":"Development","pages":[{"group":"Key Concepts","pages":[{"title":"Nexus Server","href":"/key-concepts/nexus-server"},{"title":"Environment Variables","href":"/key-concepts/environment-variables"},{"title":"Node Providers","href":"/key-concepts/node-providers"},{"title":"Chains","href":"/key-concepts/chains"},{"title":"Load Balancing","href":"/key-concepts/load-balancing"}]},{"group":"Features","pages":[{"title":"Multi Chain","href":"/features/multi-chain"},{"title":"Authentication","href":"/features/authentication"},{"title":"Middleware","description":"Learn how to use Nexus middleware","href":"/features/middleware"},{"title":"Event Handlers","href":"/features/event-handlers"},{"title":"Rate Limiting","description":"Learn how to configure Nexus rate limiting to protect your RPC access from abuse","href":"/features/rate-limiting"},{"title":"Authorization","href":"/features/authorization"},{"title":"Caching","href":"/features/caching"},{"title":"Websockets","href":"/features/websockets"},{"title":"Subscription Sharing","href":"/features/subscription-sharing"}]},{"group":"Integrations","pages":[{"title":"Nexus Integrations","href":"/integrations/introduction"},{"title":"Docker","href":"/integrations/docker"},{"title":"Cloudflare","href":"/integrations/cloudflare-worker"},{"title":"Node.js","href":"/integrations/node-js"},{"title":"Express","href":"/integrations/express"},{"title":"Fastify","href":"/integrations/fastify"},{"title":"Bun","href":"/integrations/bun"}]},{"title":"Changelog","href":"/development/changelog"}]}]}]},"basePath":"","title":"Event Handlers - Nexus","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}