PageSourceSearch

https://www.quicknode.com/_next/static/chunks/2405.aaed85912f8efbd8.js

js quicknode.com collected 2026-10-01 08:49:22 UTC 34,246 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1020,2405,4886,6159],{1020:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(50289),a=r(18596),s=r.n(a),l=r(19362),o=r(20626),i=r(21041),c=r(57203);function d(e){let{variant:t="primary",size:r="base",label:a,link:d,objectId:u,isDisabled:p,onClick:x,showIcon:m=!0,children:f}=e,h={className:(0,l.cn)("tertiary"===t?"inline-flex gap-2 justify-center items-center font-mono uppercase font-bold text-sm cursor-pointer transition-colors text-[var(--foreground)] hover:text-[var(--foreground-medium)] [--icon-stroke:2]":"flex gap-2 max-[400px]:!px-2 max-sm:px-5 px-4 font-mono uppercase items-center justify-center font-semibold cursor-pointer transition-colors whitespace-nowrap [--icon-stroke:2]","primary"===t?"bg-[var(--foreground)] text-[var(--background)]":"secondary"===t?"ring-2 ring-inset ring-[var(--foreground)] bg-[var(--background)] text-[var(--foreground)]":"upgrade"===t?"bg-[var(--accent)] text-[var(--background)]":"","tertiary"!==t&&({base:"text-sm h-12 px-4",lg:"text-sm h-12 px-4 @lg/section:text-md @lg/section:h-16 @lg/section:px-8",sm:"text-sm h-8 px-2"})[r]),disabled:p,onClick:x,...(0,o.Z)(u,"label")},v=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.default,{children:null!=f?f:a}),m&&(0,n.jsx)(i.A,{name:"arrowRight",size:16})]});return d&&"object"==typeof d&&"path"in d&&d.path?(0,n.jsx)(s(),{href:d.path,target:d.shouldOpenNewTab?"_blank":"_self",...h,children:v}):(0,n.jsx)("button",{...h,type:"button",children:v})}},1488:(e,t,r)=>{var n=r(91029);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},7075:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},15513:(e,t,r)=>{var n=r(8711),a=r(59385),s=r(41800);e.exports=function(e){return s(e)?n(e,!0):a(e)}},18903:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n,a,s,l,o,i,c,d,u,p,x,m,f,h=r(43191);let v={analytics:{googleAnalytics:"UA-102961404-1",segment:"oUIVPubagx6VAoZCA5i6M19CWvTN5mTS"},CANONICAL_DOMAIN:"https://www.quicknode.com",CONTENTFUL_SPACE_ID:null!=(n=h.env.CONTENTFUL_SPACE_ID)?n:"",CONTENTFUL_ACCESS_TOKEN:null!=(a=h.env.CONTENTFUL_ACCESS_TOKEN)?a:"",CONTENTFUL_HOST:null!=(s=h.env.CONTENTFUL_HOST)?s:"",CONTENTFUL_ENVIRONMENT:null!=(l=h.env.CONTENTFUL_ENVIRONMENT)?l:"master",CONTENTFUL_PREVIEW_SECRET:null!=(o=h.env.CONTENTFUL_PREVIEW_SECRET)?o:"",CONTENTFUL_MANAGEMENT_TOKEN:null!=(i=h.env.CONTENTFUL_MANAGEMENT_TOKEN)?i:"",CONTENTFUL_WEBHOOK_SECRET:null!=(c=h.env.CONTENTFUL_WEBHOOK_SECRET)?c:"",HUBSPOT_PRIVATE_APP_TOKEN:null!=(d=h.env.HUBSPOT_PRIVATE_APP_TOKEN)?d:"",HUBSPOT_NEWSLETTER_LIST_ID:null!=(u=h.env.HUBSPOT_NEWSLETTER_LIST_ID)?u:"",HUBSPOT_NEWSLETTER_EMAIL_ID:null!=(p=h.env.HUBSPOT_NEWSLETTER_EMAIL_ID)?p:"",NEWSLETTER_BLOG_BASE_URL:null!=(x=h.env.NEWSLETTER_BLOG_BASE_URL)?x:"https://www.quicknode.com/blog",NEWSLETTER_DEBUG:"true"===h.env.NEWSLETTER_DEBUG,PROD:!0,CUSTOMER_APP_API_URL:null!=(m=h.env.CUSTOMER_APP_API_URL)?m:"https://www.quicknode.com",ADD_ONS_API_URL:null!=(f=h.env.ADD_ONS_API_URL)?f:"https://www.quicknode.com"}},20626:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(30335),a=r(18903);let s=(e,t)=>e&&t&&!a.A.PROD?n.pI.getProps({entryId:e,fieldId:t}):{}},21021:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var a=t(),s=16-(a-n);if(n=a,s>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},21432:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(50289);function a(e){let{children:t,accent:r=!1}=e;return(0,n.jsx)("code",{className:r?"whitespace-nowrap rounded bg-[var(--accent)] px-1.5 py-0.5 font-mono text-[0.85em] font-semibold text-[var(--accent-foreground)]":"whitespace-nowrap rounded border border-[var(--border)] bg-[var(--surface)] px-1.5 py-0.5 font-mono text-[0.85em]",children:t})}},21582:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(50289),a=r(19362),s=r(29044),l=r(45963);function o(e){let{variant:t,split:r=!1,className:s,children:l,...o}=e;return(0,n.jsx)("div",{className:(0,a.cn)("group/card bg-[var(--background)] text-[var(--foreground-medium)] flex flex-col transition-all",r&&"sm:grid sm:grid-cols-2",s),"data-theme":t,...o,children:l})}o.Content=function(e){let{children:t,texture:r,className:o,...i}=e;return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:(0,a.cn)("@container/card group/card-content flex flex-col p-8 lg:p-16 relative z-10 gap-8 h-full",o),...i,children:t}),r&&(0,n.jsx)(s.default,{origin:"top-center",...!(0,l.I)(r)?r:{patterns:r},className:(0,a.cn)("absolute inset-0 z-0 text-[var(--grid)]",!(0,l.I)(r)&&r.className)})]})}},21621:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var n=r(50289),a=r(19362),s=r(66005),l=r(47773),o=r(1020),i=r(42030),c=r(79598);
1function d(e){let{title:t,subtitle:r,badge:d,buttons:u,level:p=5,center:x=!1,className:m,variant:f,nowrapFrom360:h,exactDom:v=!1,metadata:g}=e,b=Array.isArray(u)?u:(null==u?void 0:u["en-US"])?u["en-US"]:u?[u]:[];return(0,n.jsxs)("div",{className:(0,a.cn)("flex flex-col gap-8",x&&"text-center sm:items-center mx-auto",m),children:[(0,n.jsxs)("div",{className:(0,a.cn)("flex flex-col",x&&"items-center",1===p&&"gap-8",p>1&&"gap-4"),children:[(0,n.jsxs)("div",{className:(0,a.cn)("flex flex-col",x&&"items-center",p<=2?"gap-4":"gap-2"),children:[d&&(0,n.jsx)("div",{className:"flex gap-1",children:"string"==typeof d?(0,n.jsx)(s.A,{children:d}):d}),t&&(0,n.jsx)(l.A,{level:p,className:"max-w-prose",children:v?(0,c.z)(t,{variant:f,nowrapFrom360:h}):(0,n.jsx)(i.A,{content:t,className:"inline-block"})})]}),r&&(()=>{var e,t;let s=r.replace("{chainCount}",(null==g||null==(e=g.numChains)?void 0:e.toString())||"").replace("{networkCount}",(null==g||null==(t=g.numNetworks)?void 0:t.toString())||""),l=(0,a.cn)("max-w-prose break-words",1===p&&"text-2xl",2===p&&"text-xl",p>2&&"text-lg");return v?(0,n.jsx)("p",{className:l,children:(0,c.V)(s,{variant:f})}):(0,n.jsx)("div",{className:l,children:(0,n.jsx)(i.A,{content:s,className:"inline-block"})})})()]}),b.length>0&&(0,n.jsx)("div",{className:(0,a.cn)("flex flex-col gap-2 @lg/section:flex-row",x?"items-center justify-center":"w-full @sm/section:w-auto @sm/section:items-start"),children:b.map((e,t)=>{var r,a,s;return(0,n.jsx)(o.default,{label:null==e?void 0:e.label,variant:(null==e||null==(a=e.variant)||null==(r=a.toLowerCase)?void 0:r.call(a))||"primary",link:null==e?void 0:e.link,objectId:null==e?void 0:e.objectId,size:null!=(s=null==e?void 0:e.size)?s:1===p?"lg":"base",showIcon:null==e?void 0:e.showIcon},t)})})]})}},25672:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(50289),a=r(19362);function s(e){let{children:t,className:r,...s}=e;return(0,n.jsx)("span",{className:(0,a.cn)("bg-[var(--accent)] text-gray-900 box-decoration-clone",r),...s,children:t})}},29975:(e,t,r)=>{var n=r(1488),a=r(97588),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var l=e[t];s.call(e,t)&&a(l,r)&&(void 0!==r||t in e)||n(e,t,r)}},32391:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>R,lA:()=>O,re:()=>P});var n=r(50289),a=r(73717),s=r(91320),l=r(66005),o=r(19362),i=r(74173);let c=["0x8f3c…9ad1","0x41be…7c02","0xc0a9…3efd","0x9a2f…44ee","0x6d1a…e830"];function d(e){let{requestTitle:t="REST API",requestLine:r="PATCH /kv/rest/v1/lists/watched_wallets",listTitle:d="watched_wallets",listHeader:u="Key-Value Store",rows:p,addedBadge:x="Added via REST API",readByLabel:m="Read by:",readBySurfaces:f}=e,h=(null==p?void 0:p.length)?p:c,v=(null==f?void 0:f.length)?f:["Streams","Webhooks","REST"],g='+ "'.concat(h[0],'"'),b=(0,a.useRef)(null),j=(0,i.t)(b),[N,y]=(0,a.useState)(0),[w,E]=(0,a.useState)(g.length),[T,k]=(0,a.useState)(!0),[A,S]=(0,a.useState)(!1),[_,C]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{if(!j)return;let e=setInterval(()=>y(e=>e+1),6e3);return()=>clearInterval(e)},[j]),(0,a.useEffect)(()=>{if(!j){E(g.length),k(!0),S(!1),C(!0);return}E(0),k(!1),S(!1),C(!1);let e=setInterval(()=>E(e=>e>=g.length?e:e+1),80),t=[setTimeout(()=>{k(!0),S(!0)},1500),setTimeout(()=>S(!1),2050),setTimeout(()=>C(!0),2250)];return()=>{clearInterval(e),t.forEach(clearTimeout)}},[j,N]),(0,n.jsxs)("div",{ref:b,className:"w-full min-w-0 max-w-lg",children:[(0,n.jsx)(s.default,{title:t,interactive:!1,scrollable:!1,className:(0,o.cn)("relative z-10 mr-auto w-[74%] transition-opacity duration-300",T?"opacity-75":"opacity-100"),children:(0,n.jsxs)("div",{className:"px-4 py-3 font-mono text-[11px] leading-5 normal-case text-[var(--foreground-medium)]",children:[(0,n.jsx)("div",{children:r}),(0,n.jsxs)("div",{className:(0,o.cn)("flex h-5 items-center transition-colors duration-300",T?"text-[var(--foreground-light)]":"text-[var(--accent)]"),children:[g.slice(0,w),w<g.length&&(0,n.jsx)("span",{"aria-hidden":!0,className:"ml-px inline-block h-3.5 w-[6px] bg-[var(--accent)]"})]})]})}),(0,n.jsxs)("div",{"aria-hidden":!0,className:"relative z-0 ml-14 flex h-9 w-2 flex-col items-center",children:[(0,n.jsx)("span",{className:"w-px flex-1 border-l border-dashed border-[var(--foreground-medium)]"}),(0,n.jsx)("span",{className:"h-0 w-0 border-x-4 border-t-[6px] border-x-trans
1parent border-t-[var(--foreground-medium)]"})]}),(0,n.jsxs)(s.default,{title:d,interactive:!1,scrollable:!1,inFocus:!0,className:"relative z-20 ml-auto w-[92%] normal-case",children:[(0,n.jsx)("div",{className:"flex items-center border-b border-[var(--border)] px-4 py-2 font-mono text-[11px] uppercase tracking-wide text-[var(--foreground-light)]",children:(0,n.jsx)("span",{children:u})}),(0,n.jsx)("div",{className:"overflow-hidden",style:{height:192},children:(0,n.jsx)("ul",{className:"transition-transform duration-500",style:{transform:"translateY(".concat(T?0:-48,"px)"),transitionTimingFunction:"cubic-bezier(0.22,1,0.36,1)"},children:h.map((e,t)=>(0,n.jsxs)("li",{className:(0,o.cn)("flex h-12 items-center justify-between gap-3 border-b border-[var(--border)] px-4 font-mono text-sm transition-colors duration-500 last:border-b-0",0===t&&A?"bg-[var(--accent)] text-[var(--accent-foreground)]":"text-[var(--foreground-medium)]"),children:[(0,n.jsx)("span",{children:e}),0===t&&(0,n.jsx)("span",{className:(0,o.cn)("transition-opacity duration-500",_?"opacity-100":"opacity-0"),children:(0,n.jsx)(l.A,{children:x})})]},e))})}),(0,n.jsxs)("div",{className:"border-t border-[var(--border)] px-4 py-3 font-mono text-[11px] uppercase tracking-wide text-[var(--foreground-light)]",children:[m," ",(0,n.jsx)("span",{className:(0,o.cn)("transition-colors duration-500",A&&"text-[var(--accent)]"),children:v[0]}),v.slice(1).map(e=>" \xb7 ".concat(e)).join("")]})]})]})}var u=r(21582),p=r(62258),x=r(3168);let m={plain:{color:"#ffffff",backgroundColor:"transparent"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#9ca3af",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#d4d4d4"}},{types:["property","tag","boolean","number","constant","symbol"],style:{color:"#4ade80"}},{types:["selector","attr-name","string","char","builtin","inserted"],style:{color:"#4ade80"}},{types:["operator","entity","url"],style:{color:"#c4b5fd"}},{types:["atrule","keyword"],style:{color:"#c4b5fd"}},{types:["function"],style:{color:"#ffffff"}},{types:["regex","important","variable"],style:{color:"#ffffff"}},{types:["template-string"],style:{color:"#4ade80"}}]};function f(e){let{code:t,language:r="javascript",className:a}=e;return(0,n.jsx)(x.f4,{code:t,language:r,theme:m,children:e=>{let{tokens:t,getLineProps:r,getTokenProps:s}=e;return(0,n.jsxs)("div",{className:(0,o.cn)("flex bg-gray-900 font-mono text-[11px] leading-5 text-white sm:text-[13px]",a),children:[(0,n.jsx)("ul",{className:"flex select-none flex-col border-r border-white/15 px-3 py-4 text-white/40",children:t.map((e,t)=>(0,n.jsx)("li",{children:String(t+1).padStart(2,"0")},t))}),(0,n.jsx)("div",{className:"min-w-0 flex-1 overflow-x-auto px-4 py-4",children:(0,n.jsx)("pre",{className:"whitespace-pre",style:{background:"transparent"},children:t.map((e,t)=>(0,n.jsx)("div",{...r({line:e}),children:e.map((e,t)=>(0,n.jsx)("span",{...s({token:e})},t))},t))})})]})}})}function h(e){let{listBadge:t,listTitle:r,edits:a=[],filterBadge:s,filterTitle:l,code:i}=e,c=a.map(e=>{let t=e.trim(),r=t.startsWith("-")?"-":"+";return{op:r,address:t.replace(/^[+-]\s*/,""),added:"+"===r}});return(0,n.jsx)(u.A,{variant:"white",className:"border border-[var(--border)] print:break-inside-avoid",children:(0,n.jsxs)(u.A.Content,{className:"gap-10 p-8 lg:p-8",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(p.A,{level:4,badge:t,title:r}),c.length>0&&(0,n.jsx)("ul",{className:"border border-[var(--border)] bg-[var(--surface)]",children:c.map((e,t)=>(0,n.jsx)("li",{className:(0,o.cn)("flex items-center justify-between gap-4 border-b border-[var(--border)] px-4 py-3 last:border-b-0",e.added&&"bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]"),children:(0,n.jsxs)("span",{className:(0,o.cn)("font-mono text-sm",e.added?"text-[var(--foreground)]":"text-[var(--foreground-light)]"),children:[(0,n.jsx)("span",{"aria-hidden":!0,children:e.op})," ",(0,n.jsx)("span",{className:(0,o.cn)(!e.added&&"line-through"),children:e.address}),(0,n.jsx)("span",{className:"sr-only",children:e.added?" added":" removed"})]})},"".concat(e.address,"-").concat(t)))})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(p.A,{level:4,badge:s,title:l}),i&&(0,n.jsx)(f,{code:i}
1)]})]})})}let v=[3,1,1,2,4,1,2,1,1,3,2,2,1,1,3,1,1,2,4,1,1,3,2,1,3,1,1,2,2,1,4,2,1,1,3,1,2,2,1,3];function g(e){let{className:t}=e;return(0,n.jsx)("div",{"aria-hidden":!0,className:t,style:{display:"flex",alignItems:"stretch"},children:v.map((e,t)=>(0,n.jsx)("div",{style:{width:"".concat(e,"px"),flex:"none"},className:t%2==0?"bg-[var(--foreground)]":void 0},t))})}function b(e){let{badge:t,columnLabels:r=[],surfaces:a=[],footerBadge:s,footerText:o}=e,i=(Array.isArray(a)?a:[]).map(e=>{var t;return null!=(t=null==e?void 0:e.fields)?t:e});return(0,n.jsx)(u.A,{variant:"white",className:"print:break-inside-avoid",children:(0,n.jsxs)(u.A.Content,{className:"gap-0 p-8 lg:p-8",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[t&&(0,n.jsx)(l.A,{children:t}),(0,n.jsx)(g,{className:"h-7"})]}),r.length>0&&(0,n.jsx)("div",{className:"mt-6 flex items-baseline justify-between gap-4 border-b border-[var(--foreground)] pb-2 font-mono text-[10px] uppercase tracking-wider text-[var(--foreground-light)]",children:r.map(e=>(0,n.jsx)("span",{children:e},e))}),(0,n.jsx)("ul",{children:i.map((e,t)=>(0,n.jsxs)("li",{className:"flex items-start justify-between gap-6 border-b border-dashed border-[var(--border)] py-5 last:border-b-0",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,n.jsx)("p",{className:"font-medium text-[var(--foreground)]",children:null==e?void 0:e.title}),(0,n.jsx)("p",{className:"text-sm text-[var(--foreground-medium)]",children:null==e?void 0:e.description})]}),(null==e?void 0:e.spec)&&(0,n.jsx)("span",{className:"shrink-0 whitespace-nowrap font-mono text-[11px] uppercase tracking-wider text-[var(--foreground)]",children:e.spec})]},t))}),(s||o)&&(0,n.jsxs)("div",{className:"flex flex-col items-start gap-3 border-t border-[var(--foreground)] pt-6",children:[s&&(0,n.jsx)("div",{"data-theme":"purple",children:(0,n.jsx)(l.A,{highlighted:!0,children:s})}),o&&(0,n.jsx)("p",{className:"text-sm text-[var(--foreground-medium)]",children:o})]})]})})}let j="calc(25% - ".concat(6,"px)");function N(e){let{keyName:t,cells:r,continues:a=!1,accent:s=!1,label:l}=e,i=a?[...r,"…"]:r,c=i.length>1,d="calc(".concat(100/(2*i.length),"% - ").concat(8*(i.length-1)/(2*i.length),"px)");return(0,n.jsx)(u.A,{variant:"gray",role:"img","aria-label":l,className:"px-6 py-8 lg:px-8",children:(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)("span",{className:"bg-[var(--foreground)] px-2 py-1 font-mono text-[11px] tracking-wide text-[var(--background)]",children:t}),(0,n.jsx)("span",{className:"w-px bg-[var(--foreground-light)]",style:{height:c?20:40}}),(0,n.jsxs)("div",{className:"relative w-full",children:[c&&(0,n.jsx)("span",{className:"absolute top-0 h-px bg-[var(--foreground-light)]",style:{left:d,right:d}}),(0,n.jsx)("div",{className:"grid",style:{gridTemplateColumns:"repeat(".concat(i.length,", minmax(0, 1fr))"),columnGap:8},children:i.map((e,t)=>(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[c&&(0,n.jsx)("span",{className:"w-px bg-[var(--foreground-light)]",style:{height:20}}),(0,n.jsx)("span",{className:(0,o.cn)("flex h-10 items-center justify-center overflow-hidden border font-mono text-[11px] tracking-wide",c&&"w-full min-w-0",a&&t===i.length-1&&"border-dashed",s?"border-[var(--accent)] bg-[var(--accent)] text-[var(--accent-foreground)]":"border-[var(--foreground-light)] text-[var(--foreground-medium)]"),style:c?void 0:{width:j},children:e})]},e))})]})]})})}var y=r(21432);let w=[{fn:"qnLib.qnUpsertList",note:"add and remove items from your list"},{fn:"qnLib.qnAddListItem",note:"add one item"},{fn:"qnLib.qnRemoveListItem",note:"remove one item"},{fn:"qnLib.qnGetList",note:"read the whole list"},{fn:"qnLib.qnContainsListItems",note:"batch membership lookup"},{fn:"qnLib.qnDeleteList",note:"delete the list"}],E=[{fn:"qnLib.qnAddValue",note:"write a value"},{fn:"qnLib.qnGetValue",note:"read a value"},{fn:"qnLib.qnBulkValues",note:"write several at once"},{fn:"qnLib.qnDeleteValue",note:"delete a value"}];function T(e){let{items:t}=e;return(0,n.jsx)("ul",{className:"flex flex-col",children:t.map(e=>(0,n.jsxs)("li",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1.5 border-t border-[var(--border)] py-2.5 last:border-b",children:[(0,n.jsx)(y.A,{children:e.fn}),(0,n.jsx)("span",{className:"text-right text-sm text-[var(--foreground-medium)]",children:e.note})]},e.fn))})}function k(){return(0,n.jsxs)("div",{className:"grid w-full gap-8 md:grid-cols-2",children:[(0,n.jsxs)(u.A,{variant:"white",className:"print:break-inside-avoid",children:[(0,n.jsx)(N,{keyName:"watched_wallets",cells:["0x8f3c","0x6d1a","0xb44e"],continues:!0,label:"Diagram: one key, watched_wallets, holding many address items."}),(0,n.jsxs)(u.A.Content,{className:"gap-5 p-8 lg:p-8",children:[(0,n.jsxs)("div",{className:"flex items-baseline justify-between gap-4 border-b border-[var(--border)] pb-4 font-mono text-xs uppercase tracking-wide text-[var(--foreground-light)]",children:[(0,n.jsx)("span",{children:"List"}),(0,n.jsx)("span",{className:"normal-case",children:"1 : n"})]}),(0,n.jsx)("p",{className:"font-medium text-[var(--foreground)]",children:"A named collection of str
1ing items stored under a single key. Best for membership checks: is this address in my watchlist?"}),(0,n.jsx)(T,{items:w}),(0,n.jsx)("p",{className:"text-sm text-[var(--foreground-medium)]",children:"Items are case-sensitive: 0xAbC1 and 0xabc1 are different entries. Store blockchain addresses in the case your filter compares against."})]})]}),(0,n.jsxs)(u.A,{variant:"white",className:"print:break-inside-avoid",children:[(0,n.jsx)(N,{keyName:"lastProcessedBlock",cells:["19271294"],accent:!0,label:"Diagram: one key, lastProcessedBlock, holding one value, 19271294."}),(0,n.jsxs)(u.A.Content,{className:"gap-5 p-8 lg:p-8",children:[(0,n.jsxs)("div",{className:"flex items-baseline justify-between gap-4 border-b border-[var(--border)] pb-4 font-mono text-xs uppercase tracking-wide text-[var(--foreground-light)]",children:[(0,n.jsx)("span",{children:"Value"}),(0,n.jsx)("span",{className:"normal-case",children:"1 : 1"})]}),(0,n.jsx)("p",{className:"font-medium text-[var(--foreground)]",children:"A single key-value pair. Best for storing and retrieving one specific data point over time, like the last block you processed."}),(0,n.jsx)(T,{items:E}),(0,n.jsxs)("p",{className:"text-sm text-[var(--foreground-medium)]",children:["Data persists block to block, from one Streams execution to the next. Write lastProcessedBlock as ",(0,n.jsx)(y.A,{children:"19271294"})," at the end of one run, and read it back at the start of the next."]})]})]})]})}var A=r(87260),S=r(93194);function _(e){let{title:t,code:r,language:a,className:l}=e;return(0,n.jsx)(s.default,{title:t.toUpperCase(),interactive:!1,scrollable:!1,className:(0,o.cn)("w-full normal-case",l),children:(0,n.jsx)("div",{className:"pointer-events-auto select-text",children:(0,n.jsx)(f,{code:r,language:a})})})}let C=[(0,S.ss)(8,2,"var(--foreground-light)"),(0,S.ss)(32,2,"var(--foreground)")],L=[{title:"Wallet Tracking",body:"Monitor a list of wallet addresses on Solana and Ethereum. Add or remove an address in the UI, and the app updates the Key-Value Store list the filters check. The stream never redeploys.",stack:"Next.js \xb7 TypeScript \xb7 SSE",terminal:"wallet-tracking.js",code:"const senders = txs.map(tx => tx.from)\nconst hits = await qnLib.qnContainsListItems(\n  'watched_wallets', senders\n)",href:"https://www.quicknode.com/sample-app-library/wallet-tracking"},{title:"HyperCore Order Monitor",body:"Track trading orders on Hyperliquid Core in real time. Watched trader addresses and order statuses live in Key-Value Store lists, so filtering changes without a stream restart.",stack:"Next.js \xb7 TypeScript \xb7 SSE",terminal:"order-monitor.js",code:"const traders = orders.map(o => o.user)\nconst hits = await qnLib.qnContainsListItems(\n  'watched_traders', traders\n)",href:"https://www.quicknode.com/sample-app-library/hypercore-order-monitor"}];function I(){return(0,n.jsx)("div",{className:"grid w-full gap-8 md:grid-cols-2",children:L.map(e=>(0,n.jsxs)(u.A,{variant:"white",className:"print:break-inside-avoid",children:[(0,n.jsx)(u.A.Content,{texture:{patterns:C},className:"gap-0 p-6 lg:p-8",children:(0,n.jsx)(_,{title:e.terminal,code:e.code})}),(0,n.jsx)(u.A.Content,{className:"gap-6 p-8 lg:p-8",children:(0,n.jsx)(p.A,{level:3,badge:"Streams + Key-Value Store",title:e.title,subtitle:(0,n.jsxs)(n.Fragment,{children:[e.body,(0,n.jsx)("span",{className:"mt-4 block font-mono text-sm",children:e.stack})]}),buttons:[()=>(0,n.jsx)(A.A,{href:e.href,variant:"tertiary",showIcon:!0,children:"View sample app"})]})})]},e.title))})}let O={"KV Hero":"Available on every Quicknode plan."},P={"KV Hero":{centerVisual:!0},"KV The Gap":{leftClassName:"gap-8"},"KV Everywhere":{sticky:!0},"KV Data Types":{headerClassName:"max-w-3xl"},"KV Getting Started":{headerClassName:"max-w-3xl",nowrapFrom360:!0},"KV Closing":{footnoteClosingAction:!0}},R={"KV Hero":()=>(0,n.jsx)(d,{}),"KV Data Types":()=>(0,n.jsx)(k,{}),"KV Sample Apps":()=>(0,n.jsx)(I,{}),"KV The Gap":()=>(0,n.jsx)(h,{listBadge:"Your list",listTitle:"Changes on every PATCH.",edits:["+ 0x8f3c…9ad1","- 0xb44e…0f17","+ 0x6d1a…e830"],filterBadge:"Your filter",filterTitle:"Never changes.",code:"qnLib.qnContainsListItems(\n  'watched_wallets', senders\n)"}),"KV Everywhere":()=>(0,n.jsx)(b,{badge:"Read by",columnLabels:["Surface","Spec"],surfaces:[{title:"Streams",description:"Filters run batch membership checks with qnLib.qnContainsListItems as blocks arrive.",spec:"Batched lookups"},{title:"Webhooks",description:"Webhooks read the same lists your Streams filters check.",spec:"Shared list"},{title:"REST API",description:"13 endpoints for your backend, scripts, and CI
1/CD pipelines. The same data a filter reads.",spec:"Global access"}],footerBadge:"Lookups & reads included in Streams",footerText:"Read and compare lists and retrieve values in your Streams filter at no cost. Using your lists in Webhooks is included too."})}},32966:(e,t,r)=>{e.exports=r(48412)},35181:(e,t,r)=>{var n=r(39634);e.exports=r(21021)(n)},35746:e=>{e.exports=function(e){return function(){return e}}},37473:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},39634:(e,t,r)=>{var n=r(35746),a=r(91029),s=r(56556);e.exports=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:s},46206:(e,t,r)=>{var n=r(97588),a=r(41800),s=r(88481),l=r(58389);e.exports=function(e,t,r){if(!l(r))return!1;var o=typeof t;return("number"==o?!!(a(r)&&s(t,r.length)):"string"==o&&t in r)&&n(r[t],e)}},48412:(e,t,r)=>{var n=r(63257),a=r(48761),s=r(15513);e.exports=a(function(e,t){n(t,s(t),e)})},48761:(e,t,r)=>{var n=r(92224),a=r(46206);e.exports=function(e){return n(function(t,r){var n=-1,s=r.length,l=s>1?r[s-1]:void 0,o=s>2?r[2]:void 0;for(l=e.length>3&&"function"==typeof l?(s--,l):void 0,o&&a(r[0],r[1],o)&&(l=s<3?void 0:l,s=1),t=Object(t);++n<s;){var i=r[n];i&&e(t,i,n,l)}return t})}},59385:(e,t,r)=>{var n=r(58389),a=r(99411),s=r(7075),l=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=a(e),r=[];for(var o in e)"constructor"==o&&(t||!l.call(e,o))||r.push(o);return r}},63257:(e,t,r)=>{var n=r(29975),a=r(1488);e.exports=function(e,t,r,s){var l=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var c=t[o],d=s?s(r[c],e[c],c,r,e):void 0;void 0===d&&(d=e[c]),l?a(r,c,d):n(r,c,d)}return r}},71891:(e,t,r)=>{var n=r(29975),a=r(63257),s=r(48761),l=r(41800),o=r(99411),i=r(4834),c=Object.prototype.hasOwnProperty;e.exports=s(function(e,t){if(o(t)||l(t))return void a(t,i(t),e);for(var r in t)c.call(t,r)&&n(e,r,t[r])})},74173:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var n=r(73717),a=r(75082);function s(e){let{desktopOnly:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,a.W)(e,{amount:.3}
1),[s,l]=(0,n.useState)(!1),[o,i]=(0,n.useState)(!1),[c,d]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(min-width: 768px)"),r=()=>l(e.matches),n=()=>i(t.matches),a=()=>d("visible"===document.visibilityState);return r(),n(),a(),e.addEventListener("change",r),t.addEventListener("change",n),document.addEventListener("visibilitychange",a),()=>{e.removeEventListener("change",r),t.removeEventListener("change",n),document.removeEventListener("visibilitychange",a)}},[]),!!(r&&c&&!s&&(!t||o))}},75082:(e,t,r)=>{"use strict";r.d(t,{W:()=>l});var n=r(73717),a=r(99301);let s={some:0,all:1};function l(e){let{root:t,margin:r,amount:l,once:o=!1,initial:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[c,d]=(0,n.useState)(i);return(0,n.useEffect)(()=>{if(!e.current||o&&c)return;let n={root:t&&t.current||void 0,margin:r,amount:l};return function(e,t,{root:r,margin:n,amount:l="some"}={}){let o=(0,a.K)(e),i=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let r=i.get(e.target);if(!!r!==e.isIntersecting)if(e.isIntersecting){let r=t(e.target,e);"function"==typeof r?i.set(e.target,r):c.unobserve(e.target)}else"function"==typeof r&&(r(e),i.delete(e.target))})},{root:r,rootMargin:n,threshold:"number"==typeof l?l:s[l]});return o.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(d(!0),o?void 0:()=>d(!1)),n)},[t,e,r,o,l]),c}},79598:(e,t,r)=>{"use strict";r.d(t,{V:()=>p,z:()=>u});var n=r(50289),a=r(73717),s=r(25672),l=r(19362),o=r(21432);let i=/(\*[^*\n]+\*|`[^`\n]+`)/g,c=new Set(["purple","darkpurple"]);function d(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{variant:d,nowrapFrom360:u}=r;return e.split(i).filter(Boolean).map((e,r)=>{let i="".concat(t,"-").concat(r);return e.length>2&&e.startsWith("*")&&e.endsWith("*")?(0,n.jsx)(s.A,{className:(0,l.cn)(c.has(null!=d?d:"")&&"whitespace-nowrap text-[var(--accent-foreground)]",u&&"min-[360px]:whitespace-nowrap"),children:e.slice(1,-1)},i):e.length>2&&e.startsWith("`")&&e.endsWith("`")?(0,n.jsx)(o.A,{children:e.slice(1,-1)},i):(0,n.jsx)(a.Fragment,{children:e},i)})}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;let r=e.split(/\n{2,}/).map(e=>e.trim()).filter(Boolean);return 1===r.length?d(r[0],"t0",t):r.map((e,s)=>{let l=d(e,"t".concat(s),t);return s===r.length-1?(0,n.jsx)(a.Fragment,{children:l},s):(0,n.jsx)("span",{className:"block",children:l},s)})}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;let r=e.split(/\n{2,}/).map(e=>e.trim()).filter(Boolean);return 1===r.length?d(r[0],"s0",t):r.map((e,a)=>(0,n.jsx)("span",{className:a===r.length-1?"block":"mb-4 block",children:d(e,"s".concat(a),t)},a))}},87639:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.default});var n=r(21621)},89434:(e,t,r)=>{var n=r(1488),a=r(63027),s=r(36551);e.exports=function(e,t){var r={};return t=s(t,3),a(e,function(e,a,s){n(r,a,t(e,a,s))}),r}},91029:(e,t,r)=>{var n=r(94666);e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},91320:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(50289),a=r(73717),s=r(19362),l=r(29044);function o(e){let{title:t,inFocus:r,isMaximized:o,resizable:i=!0,maximizable:c=!0,scrollable:d=!0,interactive:u=!0,onClick:p,onClose:x,onMove:m,onResize:f,onMaximize:h,className:v,style:g,children:b}=e,[j,N]=(0,a.useState)(!1),[y,w]=(0,a.useState)(!1),E=(0,a.useRef)({x:0,y:0});return(0,a.useRef)({width:0,height:0,x:0,y:0}),(0,n.jsxs)("div",{className:(0,s.cn)("border flex flex-col gap-1 border-b-4 border-[var(--foreground)] bg-[var(--background)] p-1 text-xs uppercase font-mono relative",r?"z-10":"z-0",v,u?r?"pointer-events-auto":"pointer-events-none":"!pointer-events-none select-none"),style:g,children:[t&&(0,n.jsx)("div",{className:(0,s.cn)("flex flex-col gap-2 py-1 select-none",u&&!o&&"cursor-move"),onPointerDown:u?e=>{var t;if(o)return;N(!0);let r=null==(t=e.currentTarget.parentElement)?void 0:t.getBoundingClientRect();r&&(E.current={x:e.clientX-r.left,y:e.clientY-r.top}),e.currentTarget.setPointerCapture(e.pointerId)}:void 0,onPointerUp:u?e=>{N(!1),e.currentTarget.releasePointerCapture(e.pointerId)}:void 0,onPointerMove:u?e=>{if(j&&!o){var t,r;let n=null==(r=e.currentTarget.parentElement)||null==(t=r.parentElement)?void 0:t.getBoundingClientRect();if(n){let t=e.clientX-n.left-E.current.x,r=e.clientY-n.top-E.current.y;null==m||m(t,r)}}}:void 0,onClick:u?p:void 0,children:(0,n.jsxs)("div",{className:"relative flex h-[21px] items-center justify-between px-2 text-[var(--foreground)]",children:[(0,n.jsx)("div",{className:"relative z-10 flex gap-1 bg-[var(--background)] px-0.5",children:(0,n.jsx)("button",{type:"button",tabIndex:u?void 0:-1,"aria-hidden":!u,disabled:!u,className:(0,s.cn)("flex aspect-square h-full items-center justify-center bg-[var(--background)] px-2 ring ring-inset ring-[var(--foreground)]",u&&"cursor-pointer transition-colors hover:bg-[var(--foreground)] hover:text-[var(--background)]"),onPointerDown:u?e=>{e.stopPropagation()}:void 0,onClick:u?e=>{e.stopPropagation(),null==x||x()}:void 0,title:"Close",children:"\xd7"})}),(0,n.jsx)("label",{className:"pointer-events-none absolute left-1/2 top-1/2 z-10 flex -translate-x-1/2 -translate-y-1/2 items-center whitespace-nowrap bg-[var(--background)] px-2 text-center",children:t}),(0,n.jsx)("div",{className:"relative z-10 flex gap-1 bg-[var(--background)] px-0.5",children:c&&(0,n.jsx)("button",{type:"button",tabIndex:u?void 0:-1,"aria-hidden":!u,disabled:!u,className:(0,s.cn)("flex aspect-square h-full items-center justify-center bg-[var(--background)] px-2 ring ring-inset ring-[var(--foreground)]",u&&"cursor-pointer transition-colors hover:bg-[var(--foreground)] hover:text-[var(--background)]"),onPointerDown:u?e=>{e.stopPropagation()}:void 0,onClick:u?e=>{e.stopPropagation(),null==h||h()}:void 0,title:o?"Restore":"Maximize",children:o?"❐":"□"})}),(0,n.jsx)(l.default,{patterns:[{shape:{type:"line"},size:4}],position:"center",className:(0,s.cn)("absolute inset-0 transition-opacity text-[var(--foreground)] -z-10",r?"":"op
1acity-0",u&&r?"pointer-events-auto":"pointer-events-none"),onClick:u?p:void 0})]})}),(0,n.jsx)("div",{className:(0,s.cn)("flex flex-col border border-t-2 border-[var(--foreground)] grow bg-[var(--background)] z-10 @container/window relative",d?"overflow-y-auto":"overflow-hidden"),children:b}),(0,n.jsx)(l.default,{patterns:[{shape:{type:"diagonal"},size:4}],className:(0,s.cn)("absolute inset-0 top-1 bg-[var(--background)] text-[var(--foreground)] transition-opacity z-30",u&&!r?"pointer-events-auto opacity-40":"pointer-events-none opacity-0"),onClick:u?p:void 0})]})}},92224:(e,t,r)=>{var n=r(56556),a=r(96107),s=r(35181);e.exports=function(e,t){return s(a(e,t,n),e+"")}},93194:(e,t,r)=>{"use strict";r.d(t,{eI:()=>l,l2:()=>o,ss:()=>n});let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2?arguments[2]:void 0;return{shape:{type:"dot",size:t},size:e,...r&&{color:r}}},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0;return{shape:{type:"dashed",size:t},size:e,opacity:r,...n&&{color:n}}},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0;return{shape:{type:"square"},size:e,opacity:t,...r&&{color:r}}},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0;return{shape:{type:"diagonal"},size:e,opacity:t,...r&&{color:r}}},o={simpleGrid:[s(8,.5),n(32,4)],simpleSquareGrid:[s(8,.5)],dotsExtraSmall:[n(4,2),n(32,2,"var(--foreground)")],dotsSmall:[n(8,2),n(32,2,"var(--foreground)")],dotsMedium:[n(16,2),n(32,2,"var(--foreground)")],dotsWithDashed:[n(8,2),a(32,8,.5),n(32,2,"var(--foreground)")],purpleSection:[n(8,2),n(32,4),a(16,4,.5)],cardTexture:[n(8,2),n(64,4)],sectionTexture:[l(8,.5),n(8,2),n(16,2),a(32,4),n(32,2)],darkSection:[n(16,2),n(32,2,"var(--accent)")],sectionDotDashed:[n(8,2),a(128,16,.6)],metaballTexture:[n(8,8)]}},96107:(e,t,r)=>{var n=r(37473),a=Math.max;e.exports=function(e,t,r){return t=a(void 0===t?e.length-1:t,0),function(){for(var s=arguments,l=-1,o=a(s.length-t,0),i=Array(o);++l<o;)i[l]=s[t+l];l=-1;for(var c=Array(t+1);++l<t;)c[l]=s[l];return c[t]=r(i),n(e,this,c)}}},99301:(e,t,r)=>{"use strict";function n(e,t,r){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let a=r?.[e]??n.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(e=>null!=e)}r.d(t,{K:()=>n})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.