mirror of
https://github.com/hanzoai/site.git
synced 2026-11-21 01:07:08 +00:00
59 lines
58 KiB
HTML
59 lines
58 KiB
HTML
<div class="is_View _col-_platformweb_foreground _fd-column _dsp-block _shrink-1 _minH-100vh _minW-auto"><section class="is_View _pr-_md_32px _pl-_md_32px _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _ox-hidden _oy-hidden _pt-96px _pb-64px _pr-16px _pl-16px"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _z-z-raised _width-10037 _maxW-1152px _mr-auto _ml-auto"><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-1482292176 _gap-48px _shrink-1 _minW-auto _minH-auto _items-flex-start" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div style="min-width:0;transform:translateY(8px)"><span class="is_Text _col-_light_muted-foreg108704142 _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-color-mixin305317882 _brc-color-mixin305317882 _borderBottomColor-color-mixin305317882 _borderLeftColor-color-mixin305317882 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin1893665784 _mb-24px _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip"><span class="is_View _width-8px _height-8px _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-pure-white" data-motion="pulse"></span><span class="is_Text _col-pure-white _fs-f-size-2 _lh-1--1607rem _fw-500" data-slot="text">Available Now</span></span><h1 class="is_Text font_heading _fs-_sm_f-size-11 _fs-_lg_text-6xl _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-10 _fw-497 _lh-1--19 _ls--0--012em _textWrap-balance _mb-16px" data-slot="display">Websockets</h1><p class="is_Text _fs-_sm_f-size-8 _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-7 _lh-leading-snu103 _mb-24px" data-slot="claim">Live blockchain data streaming</p><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _mb-32px" data-slot="lede">Real-time bidirectional communication with blockchain networks. Subscribe to blocks, transactions, logs, and pending transactions with persistent WebSocket connections.</p><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _mb-32px"><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-1598818997 _gap-16px _shrink-1 _minW-auto _minH-auto" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div class="is_View _fd-row _items-flex-start _gap-12px"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-32px _height-32px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg"><svg aria-hidden="true" class="lucide lucide-radio" fill="none" height="16" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M16.247 7.761a6 6 0 0 1 0 8.478"></path><path d="M19.075 4.933a10 10 0 0 1 0 14.134"></path><path d="M4.925 19.067a10 10 0 0 1 0-14.134"></path><path d="M7.753 16.239a6 6 0 0 1 0-8.478"></path><circle cx="12" cy="12" r="2"></circle></svg></div><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto"><h3 class="is_Text _col-foreground _dsp-block _fs-f-size-2 _lh-1--1607rem _fw-500" data-slot="text">Persistent Connections</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-1 _lh-0--9167rem" data-slot="text">Long-lived WebSocket connections with automatic reconnection.</p></div></div><div class="is_View _fd-row _items-flex-start _gap-12px"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-32px _height-32px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg"><svg aria-hidden="true" class="lucide lucide-zap" fill="none" height="16" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"></path></svg></div><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto"><h3 class="is_Text _col-foreground _dsp-block _fs-f-size-2 _lh-1--1607rem _fw-500" data-slot="text">Real-time Streaming</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-1 _lh-0--9167rem" data-slot="text">Instant delivery of blocks, transactions, and events.</p></div></div><div class="is_View _fd-row _items-flex-start _gap-12px"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-32px _height-32px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg"><svg aria-hidden="true" class="lucide lucide-activity" fill="none" height="16" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"></path></svg></div><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto"><h3 class="is_Text _col-foreground _dsp-block _fs-f-size-2 _lh-1--1607rem _fw-500" data-slot="text">Pending Transactions</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-1 _lh-0--9167rem" data-slot="text">Subscribe to mempool for pending transaction visibility.</p></div></div><div class="is_View _fd-row _items-flex-start _gap-12px"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-32px _height-32px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg"><svg aria-hidden="true" class="lucide lucide-clock" fill="none" height="16" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"></circle><path d="M12 6v6l4 2"></path></svg></div><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto"><h3 class="is_Text _col-foreground _dsp-block _fs-f-size-2 _lh-1--1607rem _fw-500" data-slot="text">Low Latency</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-1 _lh-0--9167rem" data-slot="text">Sub-100ms latency for time-sensitive applications.</p></div></div></div></div><a class="is_Text _col-0hover-pure-white _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _fw-500" data-slot="more" href="/blockchain"><div class="is_View _fd-row _tr-rotate180de41674"><svg aria-hidden="true" class="lucide lucide-arrow-right" data-i18n-mirror="true" fill="none" height="16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></div>Back to Web3 Overview</a></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _pt-_md_32px _pr-_md_32px _pb-_md_32px _pl-_md_32px _bg-_platformweb_color-mixin356681659 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-2xl _btrr-radius-2xl _bbrr-radius-2xl _bblr-radius-2xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _fd-row _items-center _gap-12px _mb-24px"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-48px _height-48px _shrink-0 _items-center _justify-center _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl"><svg aria-hidden="true" class="lucide lucide-radio" fill="none" height="24" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M16.247 7.761a6 6 0 0 1 0 8.478"></path><path d="M19.075 4.933a10 10 0 0 1 0 14.134"></path><path d="M4.925 19.067a10 10 0 0 1 0-14.134"></path><path d="M7.753 16.239a6 6 0 0 1 0-8.478"></path><circle cx="12" cy="12" r="2"></circle></svg></div><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto"><h2 class="is_Text _col-foreground _dsp-block _fs-f-size-4 _lh-1--4583rem _fw-600" data-slot="text">Get Your API Key</h2><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-2 _lh-1--1607rem" data-slot="text">Start building in under 5 minutes</p></div></div><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _mb-24px"><div class="is_View _dsp-grid _gridTemplateColumns-repeat3minm577740846 _gap-16px _shrink-1 _minW-auto _minH-auto" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div class="is_View _text-_platformweb_center _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto" style="min-width:0px"><span class="is_Text _col-foreground _dsp-block _fs-f-size-6 _lh-1--4875rem _fw-700" data-slot="text">HA</span><span class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-1 _lh-0--9167rem" data-slot="text">Failover</span></div><div class="is_View _text-_platformweb_center _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto" style="min-width:0px"><span class="is_Text _col-foreground _dsp-block _fs-f-size-6 _lh-1--4875rem _fw-700" data-slot="text"><50ms</span><span class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-1 _lh-0--9167rem" data-slot="text">Latency</span></div><div class="is_View _text-_platformweb_center _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto" style="min-width:0px"><span class="is_Text _col-foreground _dsp-block _fs-f-size-6 _lh-1--4875rem _fw-700" data-slot="text">100+</span><span class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-1 _lh-0--9167rem" data-slot="text">Chains</span></div></div></div><div class="is_View _fd-column _gap-12px"><button class="is_Text _o-0hover-0--92 _bg-0hover-neutral-100 _col-0hover-pure-black _bg-_light_foreground _col-_light_background _bxsh-_light_04px16px-6p44459065 _bg-_light_0hover-foreground _col-_light_0hover-background _col-pure-black _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-pure-white _bxsh-04px20px-2p736498123 _width-10037 _pt-12px _pb-12px _bbs-solid _bts-solid _bls-solid _brs-solid" data-fill="" data-slot="action" type="button">Try Hanzo<svg aria-hidden="true" class="lucide lucide-arrow-right" data-i18n-mirror="true" fill="none" height="16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></button><button class="is_Text _bg-0hover-color-mixin40471350 _col-0hover-pure-white _bg-_light_color-mixin1432854749 _col-_light_foreground _bxsh-_light_02px10px-4p401273020 _bg-_light_0hover-pure-white _col-_light_0hover-foreground _col-foreground _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-color-mixin1333059374 _bxsh-inset01px00639578201 _width-10037 _pt-12px _pb-12px" data-slot="action" type="button">View Documentation</button></div><p class="is_Text _col-muted-foreg108704142 _dsp-block _mt-16px _text-center _fs-f-size-1 _lh-0--9167rem" data-slot="text">No credit card required.</p><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _mt-24px _pt-24px _btw-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bts-solid"><p class="is_Text _col-muted-foreg108704142 _dsp-block _mb-12px _fs-f-size-1 _lh-0--9167rem" data-slot="text">Trusted by developers building:</p><div class="is_View _fd-row _fwr-wrap _gap-8px"><span class="is_Text _bg-_light_glass _col-muted-foreg108704142 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9167rem _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-white-03 _pr-8px _pl-8px _pt-4px _pb-4px" data-slot="chip">DeFi</span><span class="is_Text _bg-_light_glass _col-muted-foreg108704142 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9167rem _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-white-03 _pr-8px _pl-8px _pt-4px _pb-4px" data-slot="chip">NFTs</span><span class="is_Text _bg-_light_glass _col-muted-foreg108704142 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9167rem _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-white-03 _pr-8px _pl-8px _pt-4px _pb-4px" data-slot="chip">Payments</span><span class="is_Text _bg-_light_glass _col-muted-foreg108704142 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9167rem _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-white-03 _pr-8px _pl-8px _pt-4px _pb-4px" data-slot="chip">Gaming</span><span class="is_Text _bg-_light_glass _col-muted-foreg108704142 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9167rem _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-white-03 _pr-8px _pl-8px _pt-4px _pb-4px" data-slot="chip">AI Agents</span></div></div></div></div></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-12 _pb-c-space-12 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-0px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _background-background _bts-solid"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-1152px _mr-auto _ml-auto"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037" data-motion="rise"><div class="is_View _text-_platformweb_center _dsp-grid _gridTemplateColumns-repeat1minm577740846 _gap-16px _shrink-1 _minW-auto _minH-auto _width-10037 _maxW-760px _mr-auto _ml-auto _mb-56px" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance" data-slot="title" style="min-width:0px">Key Capabilities</h2><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _mt-c-space-3--53" data-slot="lede" style="min-width:0px">Everything you need, nothing you don't.</p></div></div><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-755561135 _gap-24px _shrink-1 _minW-auto _minH-auto" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin591719864 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-40px _height-40px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _mb-16px"><svg aria-hidden="true" class="lucide lucide-radio" fill="none" height="20" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M16.247 7.761a6 6 0 0 1 0 8.478"></path><path d="M19.075 4.933a10 10 0 0 1 0 14.134"></path><path d="M4.925 19.067a10 10 0 0 1 0-14.134"></path><path d="M7.753 16.239a6 6 0 0 1 0-8.478"></path><circle cx="12" cy="12" r="2"></circle></svg></div><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-16--38px _lh-1--25rem _fw-600" data-slot="text">Persistent Connections</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-2 _lh-1--1607rem" data-slot="text">Long-lived WebSocket connections with automatic reconnection.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin591719864 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-40px _height-40px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _mb-16px"><svg aria-hidden="true" class="lucide lucide-zap" fill="none" height="20" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"></path></svg></div><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-16--38px _lh-1--25rem _fw-600" data-slot="text">Real-time Streaming</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-2 _lh-1--1607rem" data-slot="text">Instant delivery of blocks, transactions, and events.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin591719864 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-40px _height-40px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _mb-16px"><svg aria-hidden="true" class="lucide lucide-activity" fill="none" height="20" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"></path></svg></div><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-16--38px _lh-1--25rem _fw-600" data-slot="text">Pending Transactions</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-2 _lh-1--1607rem" data-slot="text">Subscribe to mempool for pending transaction visibility.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin591719864 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-40px _height-40px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _mb-16px"><svg aria-hidden="true" class="lucide lucide-clock" fill="none" height="20" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"></circle><path d="M12 6v6l4 2"></path></svg></div><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-16--38px _lh-1--25rem _fw-600" data-slot="text">Low Latency</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-2 _lh-1--1607rem" data-slot="text">Sub-100ms latency for time-sensitive applications.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin591719864 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-40px _height-40px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _mb-16px"><svg aria-hidden="true" class="lucide lucide-globe" fill="none" height="20" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"></path><path d="M2 12h20"></path></svg></div><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-16--38px _lh-1--25rem _fw-600" data-slot="text">Multi-chain Streams</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-2 _lh-1--1607rem" data-slot="text">Stream from multiple chains on a single connection.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin591719864 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-40px _height-40px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _mb-16px"><svg aria-hidden="true" class="lucide lucide-shield" fill="none" height="20" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path></svg></div><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-16--38px _lh-1--25rem _fw-600" data-slot="text">Authenticated Sessions</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-2 _lh-1--1607rem" data-slot="text">Secure connections with API key authentication.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin591719864 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-40px _height-40px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _mb-16px"><svg aria-hidden="true" class="lucide lucide-refresh-cw" fill="none" height="20" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path><path d="M21 3v5h-5"></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path><path d="M8 16H3v5"></path></svg></div><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-16--38px _lh-1--25rem _fw-600" data-slot="text">Auto-reconnect</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-2 _lh-1--1607rem" data-slot="text">Automatic reconnection with message replay on disconnect.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin591719864 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-40px _height-40px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _mb-16px"><svg aria-hidden="true" class="lucide lucide-database" fill="none" height="20" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M3 5V19A9 3 0 0 0 21 19V5"></path><path d="M3 12A9 3 0 0 0 21 12"></path></svg></div><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-16--38px _lh-1--25rem _fw-600" data-slot="text">Filtered Subscriptions</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-2 _lh-1--1607rem" data-slot="text">Subscribe to specific addresses, topics, or event types.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin591719864 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-row _width-40px _height-40px _shrink-0 _items-center _justify-center _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _mb-16px"><svg aria-hidden="true" class="lucide lucide-chart-column lucide-bar-chart-3" fill="none" height="20" stroke="var(--pure-white)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 3v16a2 2 0 0 0 2 2h16"></path><path d="M18 17V9"></path><path d="M13 17V5"></path><path d="M8 17v-3"></path></svg></div><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-16--38px _lh-1--25rem _fw-600" data-slot="text">Connection Metrics</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-2 _lh-1--1607rem" data-slot="text">Monitor connection health and message throughput.</p></div></div></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-12 _pb-c-space-12 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-0px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bts-solid"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-896px _mr-auto _ml-auto"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037" data-motion="rise"><div class="is_View _text-_platformweb_center _dsp-grid _gridTemplateColumns-repeat1minm577740846 _gap-16px _shrink-1 _minW-auto _minH-auto _width-10037 _maxW-760px _mr-auto _ml-auto _mb-56px" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance" data-slot="title" style="min-width:0px">Simple to Integrate</h2><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _mt-c-space-3--53" data-slot="lede" style="min-width:0px">Get started with just a few lines of code. SDKs for every language.</p></div></div><div style="transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin356681659 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _ox-hidden _oy-hidden _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _fd-row _items-center _gap-4px _pr-16px _pl-16px _pt-8px _pb-8px _borderBottomWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-background _ox-auto _bbs-solid"><button class="is_Text _col-0hover-foreground _col-_light_foreground _col-foreground _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9821rem _gap-c-space-2 _fw-500 _pr-12px _pl-12px _pt-6px _pb-6px _btlr-4px _btrr-4px _bbrr-4px _bblr-4px _bg-neutral-800" data-slot="more">Solidity</button><button class="is_Text _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-color _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9821rem _gap-c-space-2 _fw-500 _pr-12px _pl-12px _pt-6px _pb-6px _btlr-4px _btrr-4px _bbrr-4px _bblr-4px" data-slot="more">Node</button><button class="is_Text _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-color _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9821rem _gap-c-space-2 _fw-500 _pr-12px _pl-12px _pt-6px _pb-6px _btlr-4px _btrr-4px _bbrr-4px _bblr-4px" data-slot="more">Python</button><button class="is_Text _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-color _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9821rem _gap-c-space-2 _fw-500 _pr-12px _pl-12px _pt-6px _pb-6px _btlr-4px _btrr-4px _bbrr-4px _bblr-4px" data-slot="more">Go</button><button class="is_Text _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-color _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9821rem _gap-c-space-2 _fw-500 _pr-12px _pl-12px _pt-6px _pb-6px _btlr-4px _btrr-4px _bbrr-4px _bblr-4px" data-slot="more">Rust</button><button class="is_Text _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-color _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9821rem _gap-c-space-2 _fw-500 _pr-12px _pl-12px _pt-6px _pb-6px _btlr-4px _btrr-4px _bbrr-4px _bblr-4px" data-slot="more">C</button><button class="is_Text _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-color _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9821rem _gap-c-space-2 _fw-500 _pr-12px _pl-12px _pt-6px _pb-6px _btlr-4px _btrr-4px _bbrr-4px _bblr-4px" data-slot="more">C++</button><button class="is_Text _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-color _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-0--9821rem _gap-c-space-2 _fw-500 _pr-12px _pl-12px _pt-6px _pb-6px _btlr-4px _btrr-4px _bbrr-4px _bblr-4px" data-slot="more">Ruby</button></div><div class="is_View _fd-row _items-center _gap-8px _pr-16px _pl-16px _pt-8px _pb-8px _borderBottomWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-hover _bbs-solid"><div class="is_View _fd-row _gap-6px"><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10px _height-10px _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px"></div><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10px _height-10px _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px"></div><div class="is_View _bg-_platformweb_color-mixin1893665784 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10px _height-10px _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px"></div></div><span class="is_Text font_mono _col-muted-foreg108704142 _ml-8px _ff-f-family _fs-f-size-1 _lh-0--9167rem" data-slot="text">EventEmitter.sol</span></div><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _ox-auto _oy-auto _maxH-500px"><pre class="is_Text font_mono _bg-_platformweb_light-darkv602359144 _col-codeInk _fs-f-size-2 _lh-leading-rel3008278 _dsp-block _mt-0px _mr-0px _mb-0px _ml-0px _pt-16px _pr-16px _pb-16px _pl-16px _ox-auto _ws-pre _ff-f-family" data-slot="text"><code><span><span data-code="comment" data-face="italic">// SPDX-License-Identifier: MIT</span>
|
|
</span><span><span data-code="keyword" data-face="bold">pragma</span><span data-code="ink"> </span><span data-code="bright">solidity</span><span data-code="ink"> </span><span data-code="bright">^0.8.24</span><span data-code="punctuation">;</span>
|
|
</span><span>
|
|
</span><span><span data-code="comment" data-face="italic">/// </span><span data-code="keyword" data-face="bold">@title</span><span data-code="comment" data-face="italic"> EventEmitter - Structured events for WebSocket streaming</span>
|
|
</span><span><span data-code="comment" data-face="italic">/// </span><span data-code="keyword" data-face="bold">@notice</span><span data-code="comment" data-face="italic"> Emit indexed events for efficient WebSocket subscriptions</span>
|
|
</span><span><span data-code="keyword" data-face="bold">contract</span><span data-code="ink"> EventEmitter </span><span data-code="punctuation">{</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="comment" data-face="italic">// Indexed events for real-time streaming via WebSockets</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">event</span><span data-code="ink"> BlockProcessed</span><span data-code="punctuation">(</span>
|
|
</span><span><span data-code="ink"> uint256 </span><span data-code="keyword" data-face="bold">indexed</span><span data-code="ink"> blockNumber,</span>
|
|
</span><span><span data-code="ink"> bytes32 </span><span data-code="keyword" data-face="bold">indexed</span><span data-code="ink"> blockHash,</span>
|
|
</span><span><span data-code="ink"> uint256 timestamp,</span>
|
|
</span><span><span data-code="ink"> uint256 gasUsed</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">);</span>
|
|
</span><span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">event</span><span data-code="ink"> TransactionDetected</span><span data-code="punctuation">(</span>
|
|
</span><span><span data-code="ink"> bytes32 </span><span data-code="keyword" data-face="bold">indexed</span><span data-code="ink"> txHash,</span>
|
|
</span><span><span data-code="ink"> address </span><span data-code="keyword" data-face="bold">indexed</span><span data-code="ink"> from,</span>
|
|
</span><span><span data-code="ink"> address </span><span data-code="keyword" data-face="bold">indexed</span><span data-code="ink"> to,</span>
|
|
</span><span><span data-code="ink"> uint256 value,</span>
|
|
</span><span><span data-code="ink"> uint256 gasPrice</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">);</span>
|
|
</span><span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">event</span><span data-code="ink"> ContractEvent</span><span data-code="punctuation">(</span>
|
|
</span><span><span data-code="ink"> address </span><span data-code="keyword" data-face="bold">indexed</span><span data-code="ink"> contractAddress,</span>
|
|
</span><span><span data-code="ink"> bytes32 </span><span data-code="keyword" data-face="bold">indexed</span><span data-code="ink"> eventSignature,</span>
|
|
</span><span><span data-code="ink"> bytes data,</span>
|
|
</span><span><span data-code="ink"> uint256 </span><span data-code="keyword" data-face="bold">indexed</span><span data-code="ink"> logIndex</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">);</span>
|
|
</span><span>
|
|
</span><span><span data-code="ink"> </span><span data-code="comment" data-face="italic">// Emit block processing event for indexers</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">function</span><span data-code="ink"> </span><span data-code="bright">emitBlockProcessed</span><span data-code="punctuation">(</span>
|
|
</span><span><span data-code="ink"> uint256 _blockNumber</span><span data-code="punctuation">,</span>
|
|
</span><span><span data-code="ink"> bytes32 _blockHash</span><span data-code="punctuation">,</span>
|
|
</span><span><span data-code="ink"> uint256 _gasUsed</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">)</span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">external</span><span data-code="ink"> </span><span data-code="punctuation">{</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">emit</span><span data-code="ink"> </span><span data-code="bright">BlockProcessed</span><span data-code="punctuation">(</span><span data-code="ink">_blockNumber</span><span data-code="punctuation">,</span><span data-code="ink"> _blockHash</span><span data-code="punctuation">,</span><span data-code="ink"> block.timestamp</span><span data-code="punctuation">,</span><span data-code="ink"> _gasUsed</span><span data-code="punctuation">);</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">}</span>
|
|
</span><span>
|
|
</span><span><span data-code="ink"> </span><span data-code="comment" data-face="italic">// Emit transaction event for mempool tracking</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">function</span><span data-code="ink"> </span><span data-code="bright">emitTransaction</span><span data-code="punctuation">(</span>
|
|
</span><span><span data-code="ink"> bytes32 _txHash</span><span data-code="punctuation">,</span>
|
|
</span><span><span data-code="ink"> address _from</span><span data-code="punctuation">,</span>
|
|
</span><span><span data-code="ink"> address _to</span><span data-code="punctuation">,</span>
|
|
</span><span><span data-code="ink"> uint256 _value</span><span data-code="punctuation">,</span>
|
|
</span><span><span data-code="ink"> uint256 _gasPrice</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">)</span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">external</span><span data-code="ink"> </span><span data-code="punctuation">{</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">emit</span><span data-code="ink"> </span><span data-code="bright">TransactionDetected</span><span data-code="punctuation">(</span><span data-code="ink">_txHash</span><span data-code="punctuation">,</span><span data-code="ink"> _from</span><span data-code="punctuation">,</span><span data-code="ink"> _to</span><span data-code="punctuation">,</span><span data-code="ink"> _value</span><span data-code="punctuation">,</span><span data-code="ink"> _gasPrice</span><span data-code="punctuation">);</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">}</span>
|
|
</span><span>
|
|
</span><span><span data-code="ink"> </span><span data-code="comment" data-face="italic">// Emit contract event for log subscriptions</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">function</span><span data-code="ink"> </span><span data-code="bright">emitContractEvent</span><span data-code="punctuation">(</span>
|
|
</span><span><span data-code="ink"> address _contract</span><span data-code="punctuation">,</span>
|
|
</span><span><span data-code="ink"> bytes32 _eventSig</span><span data-code="punctuation">,</span>
|
|
</span><span><span data-code="ink"> bytes </span><span data-code="keyword" data-face="bold">calldata</span><span data-code="ink"> _data</span><span data-code="punctuation">,</span>
|
|
</span><span><span data-code="ink"> uint256 _logIndex</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">)</span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">external</span><span data-code="ink"> </span><span data-code="punctuation">{</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">emit</span><span data-code="ink"> </span><span data-code="bright">ContractEvent</span><span data-code="punctuation">(</span><span data-code="ink">_contract</span><span data-code="punctuation">,</span><span data-code="ink"> _eventSig</span><span data-code="punctuation">,</span><span data-code="ink"> _data</span><span data-code="punctuation">,</span><span data-code="ink"> _logIndex</span><span data-code="punctuation">);</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">}</span>
|
|
</span><span><span data-code="punctuation">}</span></span></code></pre></div></div></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-12 _pb-c-space-12 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-0px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _background-background _bts-solid"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-1152px _mr-auto _ml-auto"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037" data-motion="rise"><div class="is_View _text-_platformweb_center _dsp-grid _gridTemplateColumns-repeat1minm577740846 _gap-16px _shrink-1 _minW-auto _minH-auto _width-10037 _maxW-760px _mr-auto _ml-auto _mb-56px" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance" data-slot="title" style="min-width:0px">Built For</h2></div></div><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-1340502443 _gap-24px _shrink-1 _minW-auto _minH-auto" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin2114899530 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-f-size-4 _lh-1--4583rem _fw-600" data-slot="text">Trading Applications</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-3 _lh-1--25rem" data-slot="text">Real-time price feeds and order book updates for DEXs.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin2114899530 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-f-size-4 _lh-1--4583rem _fw-600" data-slot="text">Mempool Monitoring</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-3 _lh-1--25rem" data-slot="text">Track pending transactions for MEV and arbitrage.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin2114899530 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-f-size-4 _lh-1--4583rem _fw-600" data-slot="text">Live Dashboards</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-3 _lh-1--25rem" data-slot="text">Real-time blockchain activity and network stats.</p></div></div><div style="min-width:0;transform:translateY(8px)"><div class="is_View _bg-_platformweb_color-mixin2114899530 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _height-10037 _pt-24px _pr-24px _pb-24px _pl-24px _bbs-solid _bts-solid _bls-solid _brs-solid"><h3 class="is_Text _col-foreground _dsp-block _mb-8px _fs-f-size-4 _lh-1--4583rem _fw-600" data-slot="text">Bot Infrastructure</h3><p class="is_Text _col-muted-foreg108704142 _dsp-block _fs-f-size-3 _lh-1--25rem" data-slot="text">High-frequency trading and automated strategies.</p></div></div></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-12 _pb-c-space-12 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-0px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bts-solid"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-1152px _mr-auto _ml-auto"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037" data-motion="rise"><div class="is_View _text-_platformweb_center _dsp-grid _gridTemplateColumns-repeat1minm577740846 _gap-16px _shrink-1 _minW-auto _minH-auto _width-10037 _maxW-760px _mr-auto _ml-auto _mb-56px" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance" data-slot="title" style="min-width:0px">Supported Chains</h2></div></div><div style="transform:translateY(8px)"><div class="is_View _fd-row _fwr-wrap _justify-center _gap-12px"><span class="is_Text _col-color-mixin1932458640 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip">Ethereum</span><span class="is_Text _col-color-mixin1932458640 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip">Polygon</span><span class="is_Text _col-color-mixin1932458640 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip">Arbitrum</span><span class="is_Text _col-color-mixin1932458640 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip">Optimism</span><span class="is_Text _col-color-mixin1932458640 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip">Base</span><span class="is_Text _col-color-mixin1932458640 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip">BNB Chain</span><span class="is_Text _col-color-mixin1932458640 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip">Avalanche</span><span class="is_Text _col-color-mixin1932458640 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip">zkSync</span><span class="is_Text _col-color-mixin1932458640 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip">Scroll</span><span class="is_Text _col-color-mixin1932458640 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-16px _pl-16px _pt-8px _pb-8px" data-slot="chip">Linea</span></div></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-12 _pb-c-space-12 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bts-solid"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-896px _mr-auto _ml-auto"><div style="transform:translateY(8px)"><div class="is_View _text-_platformweb_center _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto"><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance _mb-16px" data-slot="title">Start Building with Websockets</h2><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _mb-32px" data-slot="lede">Get your free API key and ship your first request in under 5 minutes. No credit card required.</p><div class="is_View _fd-row _fwr-wrap _items-center _justify-center _gap-16px"><a class="is_Text _o-0hover-0--92 _bg-0hover-neutral-100 _col-0hover-pure-black _bg-_light_foreground _col-_light_background _bxsh-_light_04px16px-6p44459065 _bg-_light_0hover-foreground _col-_light_0hover-background _col-pure-black _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-pure-white _bxsh-04px20px-2p736498123 _bbs-solid _bts-solid _bls-solid _brs-solid" data-fill="" data-slot="action" href="https://platform.hanzo.ai/api-keys">Get Your API Key<svg aria-hidden="true" class="lucide lucide-arrow-right" data-i18n-mirror="true" fill="none" height="16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a><a class="is_Text _bg-0hover-color-mixin40471350 _col-0hover-pure-white _bg-_light_color-mixin1432854749 _col-_light_foreground _bxsh-_light_02px10px-4p401273020 _bg-_light_0hover-pure-white _col-_light_0hover-foreground _col-foreground _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-color-mixin1333059374 _bxsh-inset01px00639578201" data-slot="action" href="/blockchain">Explore All Web3 Products</a></div></div></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-10 _pb-c-space-10 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bts-solid"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-896px _mr-auto _ml-auto"><div class="is_View _fd-_md_row _items-_md_center _justify-_md_space-betwe3241 _fd-column _gap-28px"><div class="is_View _fd-column _gap-12px _shrink-1 _minW-0px"><h2 class="is_Text _fs-_md_text-2xl _lh-_md_1--3333 _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-500" data-slot="text">Get Websockets</h2></div><div data-testid="deploy-block"><div class="is_View _fd-_sm_row _fd-column _gap-12px _justify-center"><a class="is_Text _o-0hover-0--92 _bg-0hover-neutral-100 _col-0hover-pure-black _bg-_light_foreground _col-_light_background _bxsh-_light_04px16px-6p44459065 _bg-_light_0hover-foreground _col-_light_0hover-background _col-pure-black _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-pure-white _bxsh-04px20px-2p736498123 _bbs-solid _bts-solid _bls-solid _brs-solid" data-fill="" data-slot="action" data-testid="deploy-cta" href="https://platform.hanzo.ai/deploy" rel="noopener noreferrer" target="_blank"><svg aria-hidden="true" class="lucide lucide-rocket" fill="none" height="16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"></path><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"></path><path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"></path><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"></path></svg>Deploy to Cloud<svg aria-hidden="true" class="lucide lucide-arrow-right" data-i18n-mirror="true" fill="none" height="16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a></div></div></div></div></section></div>$/$ |