Subscribe to receive notification anytime a new block is confirmed or finalized.
On ThorNode
The upstream node does not enable block subscriptions; the request returns -32601 Method not found. Use Yellowstone gRPC or poll getBlock.
Parameters
array
required
Hide properties
string | object
required
Filter criteria for the logs to receive results by account type; currently supported:
all - include all transactions in block
A JSON object with the following field:
mentionsAccountOrProgram: <string> - return only transactions that mention the provided public key (as base-58 encoded string). If no mentions in a given block, then no notification will be sent.
object
Configuration object containing the following fields:
string
The commitment level for the subscription. Can be finalized, confirmed, or processed.
string
Encoding format for the transaction data.
string
Level of transaction detail to return.
number
The max transaction version to return in responses.
boolean
Whether to show rewards in the response.
Notification format
The notification will be an object with the following fields:
slot: <u64> - The corresponding slot.
err: <object|null> - Error if something went wrong publishing the notification otherwise null.
block: <object|null> - A block object as seen in the getBlock RPC HTTP method.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ThorNode Developer Docs","description":"Query Solana, stream transactions, receive raw shreds, and integrate transaction routes with ThorNode.","colors":{"primary":"#92400E","light":"#FBB03B","dark":"#D97706"},"logo":{"light":"https://mintcdn.com/thorlabs/JXYp6iVDU0i-LwJo/logo/thornode-blue-light.svg?fit=max\u0026auto=format\u0026n=JXYp6iVDU0i-LwJo\u0026q=85\u0026s=6b242bc07dee7bf26da468a17d826caf","dark":"https://mintcdn.com/thorlabs/JXYp6iVDU0i-LwJo/logo/thornode-blue-dark.svg?fit=max\u0026auto=format\u0026n=JXYp6iVDU0i-LwJo\u0026q=85\u0026s=5eadc34c0bb6bc0334110d7849018dae"},"favicon":"https://mintcdn.com/thorlabs/JXYp6iVDU0i-LwJo/logo/thornode-blue-icon.svg?fit=max\u0026auto=format\u0026n=JXYp6iVDU0i-LwJo\u0026q=85\u0026s=663b957562b9f5aa08cec612d860c8fa","navbar":{"links":[{"href":"mailto:support@thornode.io","label":"Support"}],"primary":{"type":"button","label":"Start building","href":"https://www.thornode.io"}},"footer":{"socials":{"x":"https://x.com/thor_labs","github":"https://github.com/thorlabsDev","discord":"https://discord.gg/thorlabs"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/thorlabsDev"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/thorlabs"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"thorlabs","hasAudioNarration":false,"actualSubdomain":"thorlabs","customDomains":["docs.thornode.io"],"gitSource":{"type":"github","owner":"thorlabsdev","repo":"thorlabs-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af096e7d37cca207de60400","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API reference","count":92},{"language":"default","tag":"ThorEdge RPC","count":60},{"language":"default","tag":"HTTP methods","count":41},{"language":"default","tag":"Guides","count":25},{"language":"default","tag":"WebSocket methods","count":18},{"language":"default","tag":"FastGate RPC","count":16},{"language":"default","tag":"Hofund","count":10},{"language":"default","tag":"Bifrost","count":6},{"language":"default","tag":"Dashboard","count":6},{"language":"default","tag":"Get started","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/thoredge-rpc/websocket/blocksubscribe","slug":"/api-reference/thoredge-rpc/websocket/blocksubscribe","pageMetadata":{"title":"blockSubscribe","description":"Subscribe to receive notification anytime a new block is `confirmed` or `finalized`.","href":"/api-reference/thoredge-rpc/websocket/blocksubscribe"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Subscribe to receive notification anytime a new block is \", _jsx(_components.code, {\n children: \"confirmed\"\n }), \" or \", _jsx(_components.code, {\n children: \"finalized\"\n }), \".\"]\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{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Subscribe to receive notification anytime a new block is `,_jsx(_components.code,{children:`confirmed`}),` or `,_jsx(_components.code,{children:`finalized`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`on-thornode`,children:`On ThorNode`}),`\n`,_jsxs(_components.p,{children:[`The upstream node does not enable block subscriptions; the request returns `,_jsx(_components.code,{children:`-32601 Method not found`}),`. Use `,_jsx(_components.a,{href:`/api-reference/yellowstone/subscribe`,children:`Yellowstone gRPC`}),` or poll `,_jsx(_components.code,{children:`getBlock`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(ParamField,{body:`params`,type:`array`,required:true,id:`param-params`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsxs(ParamField,{body:`filter`,type:`string | object`,required:true,id:`param-filter`,children:[_jsx(_components.p,{children:`Filter criteria for the logs to receive results by account type; currently supported:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`all`}),` - include all transactions in block`]}),`\n`,_jsxs(_components.li,{children:[`A JSON object with the following field:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`mentionsAccountOrProgram: \u003cstring>`}),` - return only transactions that mention the provided public key (as base-58 encoded string). If no mentions in a given block, then no notification will be sent.`]}),`\n`]}),`\n`]}),`\n`]})]}),_jsxs(ParamField,{body:`config`,type:`object`,id:`param-config`,children:[_jsx(_components.p,{children:`Configuration object containing the following fields:`}),_jsx(ParamField,{body:`commitment`,type:`string`,id:`param-commitment`,children:_jsxs(_components.p,{children:[`The commitment level for the subscription. Can be `,_jsx(_components.code,{children:`finalized`}),`, `,_jsx(_components.code,{children:`confirmed`}),`, or `,_jsx(_components.code,{children:`processed`}),`.`]})}),_jsx(ParamField,{body:`encoding`,type:`string`,id:`param-encoding`,children:_jsx(_components.p,{children:`Encoding format for the transaction data.`})}),_jsx(ParamField,{body:`transactionDetails`,type:`string`,id:`param-transaction-details`,children:_jsx(_components.p,{children:`Level of transaction detail to return.`})}),_jsx(ParamField,{body:`maxSupportedTransactionVersion`,type:`number`,id:`param-max-supported-transaction-version`,children:_jsx(_components.p,{children:`The max transaction version to return in responses.`})}),_jsx(ParamField,{body:`showRewards`,type:`boolean`,id:`param-show-rewards`,children:_jsx(_components.p,{children:`Whether to show rewards in the response.`})})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`notification-format`,children:`Notification format`}),`\n`,_jsx(_components.p,{children:`The notification will be an object with the following fields:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`slot: \u003cu64>`}),` - The corresponding slot.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`err: \u003cobject|null>`}),` - Error if something went wrong publishing the notification otherwise null.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`block: \u003cobject|null>`}),` - A block object as seen in the `,_jsx(_components.code,{children:`getBlock`}),` RPC HTTP method.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`result`,type:`integer`,id:`param-result`,children:_jsx(_components.p,{children:`Subscription id (needed to unsubscribe)`})})]})}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":"blockSubscribe","description":"Subscribe to receive notification anytime a new block is `confirmed` or `finalized`.","href":"/api-reference/thoredge-rpc/websocket/blocksubscribe"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Subscribe to receive notification anytime a new block is `,_jsx(_components.code,{children:`confirmed`}),` or `,_jsx(_components.code,{children:`finalized`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`on-thornode`,children:`On ThorNode`}),`\n`,_jsxs(_components.p,{children:[`The upstream node does not enable block subscriptions; the request returns `,_jsx(_components.code,{children:`-32601 Method not found`}),`. Use `,_jsx(_components.a,{href:`/api-reference/yellowstone/subscribe`,children:`Yellowstone gRPC`}),` or poll `,_jsx(_components.code,{children:`getBlock`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(ParamField,{body:`params`,type:`array`,required:true,id:`param-params`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsxs(ParamField,{body:`filter`,type:`string | object`,required:true,id:`param-filter`,children:[_jsx(_components.p,{children:`Filter criteria for the logs to receive results by account type; currently supported:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`all`}),` - include all transactions in block`]}),`\n`,_jsxs(_components.li,{children:[`A JSON object with the following field:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`mentionsAccountOrProgram: \u003cstring>`}),` - return only transactions that mention the provided public key (as base-58 encoded string). If no mentions in a given block, then no notification will be sent.`]}),`\n`]}),`\n`]}),`\n`]})]}),_jsxs(ParamField,{body:`config`,type:`object`,id:`param-config`,children:[_jsx(_components.p,{children:`Configuration object containing the following fields:`}),_jsx(ParamField,{body:`commitment`,type:`string`,id:`param-commitment`,children:_jsxs(_components.p,{children:[`The commitment level for the subscription. Can be `,_jsx(_components.code,{children:`finalized`}),`, `,_jsx(_components.code,{children:`confirmed`}),`, or `,_jsx(_components.code,{children:`processed`}),`.`]})}),_jsx(ParamField,{body:`encoding`,type:`string`,id:`param-encoding`,children:_jsx(_components.p,{children:`Encoding format for the transaction data.`})}),_jsx(ParamField,{body:`transactionDetails`,type:`string`,id:`param-transaction-details`,children:_jsx(_components.p,{children:`Level of transaction detail to return.`})}),_jsx(ParamField,{body:`maxSupportedTransactionVersion`,type:`number`,id:`param-max-supported-transaction-version`,children:_jsx(_components.p,{children:`The max transaction version to return in responses.`})}),_jsx(ParamField,{body:`showRewards`,type:`boolean`,id:`param-show-rewards`,children:_jsx(_components.p,{children:`Whether to show rewards in the response.`})})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`notification-format`,children:`Notification format`}),`\n`,_jsx(_components.p,{children:`The notification will be an object with the following fields:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`slot: \u003cu64>`}),` - The corresponding slot.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`err: \u003cobject|null>`}),` - Error if something went wrong publishing the notification otherwise null.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`block: \u003cobject|null>`}),` - A block object as seen in the `,_jsx(_components.code,{children:`getBlock`}),` RPC HTTP method.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`result`,type:`integer`,id:`param-result`,children:_jsx(_components.p,{children:`Subscription id (needed to unsubscribe)`})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`Request`,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"jsonrpc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blockSubscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"params\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"all\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"commitment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"confirmed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transactionDetails\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"none\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"showRewards\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"jsonrpc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`-32601`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Method not found\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}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":"blockSubscribe","description":"Subscribe to receive notification anytime a new block is `confirmed` or `finalized`.","href":"/api-reference/thoredge-rpc/websocket/blocksubscribe"}}}},"mdxExtracts":{"tableOfContents":[{"title":"On ThorNode","slug":"on-thornode","depth":2,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"Notification format","slug":"notification-format","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Request","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"jsonrpc\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2.0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"method\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"blockSubscribe\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"params\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"all\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"commitment\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"confirmed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transactionDetails\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"none\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"showRewards\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"jsonrpc\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2.0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">-32601\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Method not found\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"subdomain":"thorlabs","siteName":"ThorNode Developer Docs","title":"blockSubscribe - ThorNode Developer Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-17T01:04:46.344Z","originalFileLocation":"api-reference/thoredge-rpc/websocket/blocksubscribe.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=\"Subscribe to receive notification anytime a new block is confirmed or finalized.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ThorNode Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thorlabs/QC-8_nXSHvxI5Fu6/_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/thorlabs/QC-8_nXSHvxI5Fu6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thorlabs/QC-8_nXSHvxI5Fu6/_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/thorlabs/QC-8_nXSHvxI5Fu6/_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/thorlabs/QC-8_nXSHvxI5Fu6/_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/thorlabs/QC-8_nXSHvxI5Fu6/_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/thorlabs/QC-8_nXSHvxI5Fu6/_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/thorlabs/QC-8_nXSHvxI5Fu6/_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/thorlabs/QC-8_nXSHvxI5Fu6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"blockSubscribe - ThorNode Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Subscribe to receive notification anytime a new block is confirmed or finalized.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ThorNode Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket/blocksubscribe\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://thorlabs.mintlify.site/_mintlify/api/og/v2?division=WebSocket+methods\u0026amp;title=blockSubscribe\u0026amp;description=Subscribe+to+receive+notification+anytime+a+new+block+is+%60confirmed%60+or+%60finalized%60.\u0026amp;theme=f067c9e958c3ad94c9b8a198\u0026amp;signature=bac8b2c636dce1857c0c9d142f3a82906f3f612a3a27533860fc79fac8710501\">\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=\"blockSubscribe - ThorNode Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Subscribe to receive notification anytime a new block is confirmed or finalized.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://thorlabs.mintlify.site/_mintlify/api/og/v2?division=WebSocket+methods\u0026amp;title=blockSubscribe\u0026amp;description=Subscribe+to+receive+notification+anytime+a+new+block+is+%60confirmed%60+or+%60finalized%60.\u0026amp;theme=f067c9e958c3ad94c9b8a198\u0026amp;signature=bac8b2c636dce1857c0c9d142f3a82906f3f612a3a27533860fc79fac8710501\">\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/thorlabs/QC-8_nXSHvxI5Fu6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ThorNode Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#92400E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket/blocksubscribe\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/thoredge-rpc/websocket/blocksubscribe.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.thornode.io/#organization\",\"name\":\"ThorNode Developer Docs\",\"url\":\"https://docs.thornode.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/thorlabs/JXYp6iVDU0i-LwJo/logo/thornode-blue-light.svg?fit=max\u0026auto=format\u0026n=JXYp6iVDU0i-LwJo\u0026q=85\u0026s=6b242bc07dee7bf26da468a17d826caf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.thornode.io#website\",\"name\":\"ThorNode Developer Docs\",\"url\":\"https://docs.thornode.io\",\"publisher\":{\"@id\":\"https://docs.thornode.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket/blocksubscribe#webpage\",\"url\":\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket/blocksubscribe\",\"name\":\"blockSubscribe\",\"description\":\"Subscribe to receive notification anytime a new block is confirmed or finalized.\",\"dateModified\":\"2026-08-17T01:04:46.344Z\",\"isPartOf\":{\"@id\":\"https://docs.thornode.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket/blocksubscribe#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket/blocksubscribe#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"ThorEdge RPC\",\"item\":\"https://docs.thornode.io/api-reference/thoredge-rpc/http/getblock\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WebSocket methods\",\"item\":\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket-methods\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"blockSubscribe\",\"item\":\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket/blocksubscribe\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket/blocksubscribe#article\",\"headline\":\"blockSubscribe\",\"name\":\"blockSubscribe\",\"description\":\"Subscribe to receive notification anytime a new block is confirmed or finalized.\",\"url\":\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket/blocksubscribe\",\"mainEntityOfPage\":{\"@id\":\"https://docs.thornode.io/api-reference/thoredge-rpc/websocket/blocksubscribe#webpage\"},\"dateModified\":\"2026-08-17T01:04:46.344Z\",\"publisher\":{\"@id\":\"https://docs.thornode.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.thornode.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ThorNode Developer Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ThorNode Developer Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/thoredge-rpc/websocket/blocksubscribe.md","siteName":"ThorNode Developer Docs","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/thorlabsDev"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/thorlabs"}]},"tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","icon":"code","groups":[{"group":"API reference","icon":"book","pages":[{"title":"API reference overview","sidebarTitle":"Overview","href":"/api-reference/overview"}]},{"group":"ThorEdge RPC","icon":"code","pages":[{"group":"HTTP methods","root":{"title":"ThorEdge HTTP methods","sidebarTitle":"HTTP methods","href":"/api-reference/thoredge-rpc/http-methods"},"pages":[{"title":"getBlock","href":"/api-reference/thoredge-rpc/http/getblock"},{"title":"getBlockCommitment","href":"/api-reference/thoredge-rpc/http/getblockcommitment"},{"title":"getBlockHeight","href":"/api-reference/thoredge-rpc/http/getblockheight"},{"title":"getBlockProduction","href":"/api-reference/thoredge-rpc/http/getblockproduction"},{"title":"getBlocks","href":"/api-reference/thoredge-rpc/http/getblocks"},{"title":"getBlocksWithLimit","href":"/api-reference/thoredge-rpc/http/getblockswithlimit"},{"title":"getBlockTime","href":"/api-reference/thoredge-rpc/http/getblocktime"},{"title":"getClusterNodes","href":"/api-reference/thoredge-rpc/http/getclusternodes"},{"title":"getEpochInfo","href":"/api-reference/thoredge-rpc/http/getepochinfo"},{"title":"getEpochSchedule","href":"/api-reference/thoredge-rpc/http/getepochschedule"},{"title":"getFeeForMessage","href":"/api-reference/thoredge-rpc/http/getfeeformessage"},{"title":"getFirstAvailableBlock","href":"/api-reference/thoredge-rpc/http/getfirstavailableblock"},{"title":"getGenesisHash","href":"/api-reference/thoredge-rpc/http/getgenesishash"},{"title":"getHealth","href":"/api-reference/thoredge-rpc/http/gethealth"},{"title":"getHighestSnapshotSlot","href":"/api-reference/thoredge-rpc/http/gethighestsnapshotslot"},{"title":"getIdentity","href":"/api-reference/thoredge-rpc/http/getidentity"},{"title":"getInflationGovernor","href":"/api-reference/thoredge-rpc/http/getinflationgovernor"},{"title":"getInflationRate","href":"/api-reference/thoredge-rpc/http/getinflationrate"},{"title":"getInflationReward","href":"/api-reference/thoredge-rpc/http/getinflationreward"},{"title":"getLatestBlockhash","href":"/api-reference/thoredge-rpc/http/getlatestblockhash"},{"title":"getLeaderSchedule","href":"/api-reference/thoredge-rpc/http/getleaderschedule"},{"title":"getMaxRetransmitSlot","href":"/api-reference/thoredge-rpc/http/getmaxretransmitslot"},{"title":"getMaxShredInsertSlot","href":"/api-reference/thoredge-rpc/http/getmaxshredinsertslot"},{"title":"getRecentPerformanceSamples","href":"/api-reference/thoredge-rpc/http/getrecentperformancesamples"},{"title":"getRecentPrioritizationFees","href":"/api-reference/thoredge-rpc/http/getrecentprioritizationfees"},{"title":"getSignaturesForAddress","href":"/api-reference/thoredge-rpc/http/getsignaturesforaddress"},{"title":"getSignatureStatuses","href":"/api-reference/thoredge-rpc/http/getsignaturestatuses"},{"title":"getSlot","href":"/api-reference/thoredge-rpc/http/getslot"},{"title":"getSlotLeader","href":"/api-reference/thoredge-rpc/http/getslotleader"},{"title":"getSlotLeaders","href":"/api-reference/thoredge-rpc/http/getslotleaders"},{"title":"getStakeMinimumDelegation","href":"/api-reference/thoredge-rpc/http/getstakeminimumdelegation"},{"title":"getSupply","href":"/api-reference/thoredge-rpc/http/getsupply"},{"title":"getTransaction","href":"/api-reference/thoredge-rpc/http/gettransaction"},{"title":"getTransactionCount","href":"/api-reference/thoredge-rpc/http/gettransactioncount"},{"title":"getVersion","href":"/api-reference/thoredge-rpc/http/getversion"},{"title":"getVoteAccounts","href":"/api-reference/thoredge-rpc/http/getvoteaccounts"},{"title":"isBlockhashValid","href":"/api-reference/thoredge-rpc/http/isblockhashvalid"},{"title":"minimumLedgerSlot","href":"/api-reference/thoredge-rpc/http/minimumledgerslot"},{"title":"requestAirdrop","href":"/api-reference/thoredge-rpc/http/requestairdrop"},{"title":"sendTransaction","href":"/api-reference/thoredge-rpc/http/sendtransaction"},{"title":"simulateTransaction","href":"/api-reference/thoredge-rpc/http/simulatetransaction"}]},{"group":"WebSocket methods","root":{"title":"ThorEdge WebSocket methods","sidebarTitle":"WebSocket methods","href":"/api-reference/thoredge-rpc/websocket-methods"},"pages":[{"title":"accountSubscribe","href":"/api-reference/thoredge-rpc/websocket/accountsubscribe"},{"title":"accountUnsubscribe","description":"Unsubscribe from account change notifications.","href":"/api-reference/thoredge-rpc/websocket/accountunsubscribe"},{"title":"blockSubscribe","href":"/api-reference/thoredge-rpc/websocket/blocksubscribe"},{"title":"blockUnsubscribe","description":"Unsubscribe from block notifications.","href":"/api-reference/thoredge-rpc/websocket/blockunsubscribe"},{"title":"logsSubscribe","href":"/api-reference/thoredge-rpc/websocket/logssubscribe"},{"title":"logsUnsubscribe","href":"/api-reference/thoredge-rpc/websocket/logsunsubscribe"},{"title":"programSubscribe","href":"/api-reference/thoredge-rpc/websocket/programsubscribe"},{"title":"programUnsubscribe","href":"/api-reference/thoredge-rpc/websocket/programunsubscribe"},{"title":"rootSubscribe","href":"/api-reference/thoredge-rpc/websocket/rootsubscribe"},{"title":"rootUnsubscribe","href":"/api-reference/thoredge-rpc/websocket/rootunsubscribe"},{"title":"signatureSubscribe","href":"/api-reference/thoredge-rpc/websocket/signaturesubscribe"},{"title":"signatureUnsubscribe","href":"/api-reference/thoredge-rpc/websocket/signatureunsubscribe"},{"title":"slotSubscribe","href":"/api-reference/thoredge-rpc/websocket/slotsubscribe"},{"title":"slotsUpdatesSubscribe","href":"/api-reference/thoredge-rpc/websocket/slotsupdatessubscribe"},{"title":"slotsUpdatesUnsubscribe","href":"/api-reference/thoredge-rpc/websocket/slotsupdatesunsubscribe"},{"title":"slotUnsubscribe","href":"/api-reference/thoredge-rpc/websocket/slotunsubscribe"},{"title":"voteSubscribe","href":"/api-reference/thoredge-rpc/websocket/votesubscribe"},{"title":"voteUnsubscribe","href":"/api-reference/thoredge-rpc/websocket/voteunsubscribe"}]}]},{"group":"FastGate RPC","icon":"database","pages":[{"title":"FastGate RPC methods","sidebarTitle":"Overview","href":"/api-reference/fastgate/overview"},{"title":"getAccountInfo","href":"/api-reference/fastgate/getaccountinfo"},{"title":"getMultipleAccounts","href":"/api-reference/fastgate/getmultipleaccounts"},{"title":"getBalance","href":"/api-reference/fastgate/getbalance"},{"title":"getTokenAccountBalance","href":"/api-reference/fastgate/gettokenaccountbalance"},{"title":"getTokenSupply","href":"/api-reference/fastgate/gettokensupply"},{"title":"getLargestAccounts","href":"/api-reference/fastgate/getlargestaccounts"},{"title":"getMinimumBalanceForRentExemption","href":"/api-reference/fastgate/getminimumbalanceforrentexemption"},{"title":"getTokenLargestAccounts","href":"/api-reference/fastgate/gettokenlargestaccounts"},{"title":"getProgramAccounts","href":"/api-reference/fastgate/getprogramaccounts"},{"title":"getTokenAccountsByOwner","href":"/api-reference/fastgate/gettokenaccountsbyowner"},{"title":"getTokenAccountsByDelegate","href":"/api-reference/fastgate/gettokenaccountsbydelegate"},{"title":"getProgramAccountsV2","href":"/api-reference/fastgate/getprogramaccountsv2"},{"title":"getTokenAccountsByOwnerV2","href":"/api-reference/fastgate/gettokenaccountsbyownerv2"},{"title":"getTokenAccountsByDelegateV2","href":"/api-reference/fastgate/gettokenaccountsbydelegatev2"}]},{"group":"Yellowstone gRPC","icon":"wave-pulse","pages":[{"title":"Yellowstone Subscribe","sidebarTitle":"Subscribe","href":"/api-reference/yellowstone/subscribe"}]},{"group":"Bifrost","icon":"route","pages":[{"title":"Bifrost routes","sidebarTitle":"Overview","href":"/api-reference/bifrost/overview"},{"title":"Apex routes","sidebarTitle":"Apex","href":"/api-reference/bifrost/apex"},{"title":"bloXroute routes","sidebarTitle":"bloXroute","href":"/api-reference/bifrost/bloxroute"},{"title":"Astralane routes","sidebarTitle":"Astralane","href":"/api-reference/bifrost/astralane"},{"title":"BlockRazor route","sidebarTitle":"BlockRazor","href":"/api-reference/bifrost/blockrazor"},{"title":"LunarLander routes","sidebarTitle":"LunarLander","href":"/api-reference/bifrost/lunarlander"}]},{"group":"Hofund","icon":"satellite-dish","pages":[{"title":"Hofund reference","sidebarTitle":"Overview","href":"/api-reference/hofund/overview"},{"title":"Rate limits","href":"/api-reference/hofund/rate-limits"},{"title":"sendTransaction","href":"/api-reference/hofund/sendtransaction"},{"title":"sendBatch","href":"/api-reference/hofund/sendbatch"},{"title":"sendBundle","href":"/api-reference/hofund/sendbundle"},{"title":"sendIdeal and getNonce","href":"/api-reference/hofund/sendideal"},{"title":"Status and tip configuration","href":"/api-reference/hofund/status-and-tips"},{"title":"Plain, binary, and WebSocket","href":"/api-reference/hofund/plain-binary-websocket"},{"title":"QUIC","href":"/api-reference/hofund/quic"}]}]}]},"basePath":"","title":"blockSubscribe - ThorNode Developer Docs","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["2b790eda92"],"chunks":["ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","utils-B79vXYXV.js","utils-D5WEoDBM.js","isEqual-CEpbaqh9.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","snippetPresets-BR8BoZAC.js","style-to-object-BY3JEAdk.js","use-playground-group-access-BLvLSz8w.js","cloneDeep-455jK_K_.js","v4-DIgz8zy6.js"]}