PageSourceSearch

https://solana.com/docs-assets/_next/static/chunks/3513-bd3eba44dd…?dpl=dpl_H4bDF4iCtpav6g7Ljf9E9jvysUAm

js solana.com collected 2026-09-24 08:54:17 UTC 198,743 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0cf08d5f-15af-4ac4-b8cd-09f85e270466",e._sentryDebugIdIdentifier="sentry-dbid-0cf08d5f-15af-4ac4-b8cd-09f85e270466")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3513],{6440:(e,t,r)=>{"use strict";r.r(t),r.d(t,{MultiCode:()=>m});var i=r(36822),n=r(66774),o=r(76015),s=r(97690);let a=o.bL,c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,i.jsx)(o.B8,{ref:t,className:(0,s.cn)("inline-flex h-10 items-center justify-center rounded-md bg-zinc-100 p-1 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400",r),...n})});c.displayName=o.B8.displayName;let p=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,i.jsx)(o.l9,{ref:t,className:(0,s.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-zinc-950 data-[state=active]:shadow-sm dark:ring-offset-zinc-950 dark:focus-visible:ring-zinc-300 dark:data-[state=active]:bg-zinc-950 dark:data-[state=active]:text-zinc-50",r),...n})});p.displayName=o.l9.displayName;let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,i.jsx)(o.UC,{ref:t,className:(0,s.cn)("mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-950 focus-visible:ring-offset-2 dark:ring-offset-zinc-950 dark:focus-visible:ring-zinc-300",r),...n})});d.displayName=o.UC.displayName;var l=r(98273),u=r(67010),f=r(79217);function m(e){let{group:t,className:r}=e,[n,o]=(0,u.i)(t.storage,t.tabs[0].title),m=t.tabs.find(e=>e.title===n)||t.tabs[0],{code:g}=m,y=null==m?void 0:m.title,h=t.options.runnable,b=(0,i.jsxs)(a,{"data-ch-container":"true",value:y,onValueChange:o,className:(0,s.cn)("border rounded selection:bg-ch-selection border-ch-border overflow-hidden relative flex flex-col max-h-full min-h-0 !bg-ch-background",h?"h-full":"my-4",r),children:[(0,i.jsxs)(c,{className:(0,s.cn)("border-b-[1px] border-ch-border bg-ch-tabs-background px-2 py-1 w-full h-9 min-h-9 shrink-0","rounded-none p-0 m-0 justify-start items-stretch !pt-0"),children:[t.tabs.map(e=>{let{icon:t,title:r}=e;return(0,i.jsxs)(p,{value:r,className:(0,s.cn)("rounded-none relative transition-colors duration-200 gap-2 px-3 font-mono","[&[data-state=active]>.absolute]:bg-ch-background","border-transparent border-x data-[state=active]:border-x-ch-border first:border-l-0","border-t data-[state=active]:border-t-ch-active-border","text-ch-tab-inactive-foreground data-[state=active]:text-ch-tab-active-foreground hover:text-ch-tab-active-foreground","data-[state=active]:!bg-ch-background"),children:[(0,i.jsx)("div",{className:"size-4",children:t}),(0,i.jsx)("span",{className:"leading-none",children:r}),(0,i.jsx)("div",{className:"absolute h-[1px] top-full left-0 right-0 transition-colors duration-200"})]},r)}),t.options.copyButton&&(0,i.jsx)("div",{className:(0,s.cn)("ml-auto mr-3 items-center flex shrink-0"),children:(0,i.jsx)(l.CopyButton,{text:g})})]}),(0,i.jsx)(d,{value:m.title,className:"min-h-0 mt-0 flex flex-col",children:m.pre})]});return h?(0,i.jsx)(f.RunnableLayout,{code:m.code,language:m.lang,title:m.title,output:m.output,runner:t.runner,className:"my-4",children:b},m.title):b}},22987:(e,t,r)=>{"use strict";r.d(t,{CommandBlock:()=>o});var i=r(36822);r(73848);var n=r(66774);let o=e=>{let{children:t,annotation:r}=e,[o,s]=n.useState(!1);return(0,i.jsxs)("div",{className:"px-1 flex ch-terminal-line","data-active":o,children:[(0,i.jsx)("span",{className:"select-none text-ch-line-number shrink-0",children:"$ "}),(0,i.jsx)("span",{className:"ch-terminal-content break-all",children:t}),(0,i.jsx)("button",{"aria-label":"Copy command",className:"ch-terminal-button select-none self-start",onClick:()=>{navigator.clipboard.writeText((null==r?void 0:r.query)||""),s(!0),setTimeout(()=>s(!1),350)},children:"Copy"})]})}},24879:(e,t,r)=>{"use strict";r.d(t,{WebSocketsRpc:()=>f});var i=r(36822);let n=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"SurfpoolWebSocketEndpoints","de
1scription":"Complete mapping of all Surfpool WebSocket RPC endpoints","type":"object","properties":{"accountSubscriptions":{"$ref":"#/$defs/AccountSubscriptionEndpoints"},"signatureSubscriptions":{"$ref":"#/$defs/SignatureSubscriptionEndpoints"},"slotSubscriptions":{"$ref":"#/$defs/SlotSubscriptionEndpoints"}},"required":["signatureSubscriptions","accountSubscriptions","slotSubscriptions"],"$defs":{"AccountNotification":{"description":"Account change notification","type":"object","properties":{"result":{"description":"Notification result","$ref":"#/$defs/RpcResponse_for_UiAccountSchema"},"subscription":{"description":"Subscription ID","type":"integer","format":"uint64","minimum":0}},"required":["result","subscription"]},"AccountSubscribeEndpoint":{"description":"Account subscribe endpoint specification","type":"object","properties":{"notification":{"description":"Notification type sent to subscribers","$ref":"#/$defs/AccountNotification"},"request":{"description":"Request parameters for account subscription","$ref":"#/$defs/AccountSubscribeRequest"},"response":{"description":"Response type for subscription confirmation","$ref":"#/$defs/SubscriptionResponse"}},"required":["request","response","notification"]},"AccountSubscribeRequest":{"description":"Request parameters for account subscription","type":"object","properties":{"config":{"description":"Optional subscription configuration","anyOf":[{"$ref":"#/$defs/RpcAccountSubscribeConfig"},{"type":"null"}]},"pubkey":{"description":"Account public key to monitor (base-58 encoded)","type":"string"}},"required":["pubkey"]},"AccountSubscriptionEndpoints":{"description":"Account subscription WebSocket endpoints","type":"object","properties":{"accountSubscribe":{"description":"accountSubscribe - Subscribe to account change notifications","$ref":"#/$defs/AccountSubscribeEndpoint"},"accountUnsubscribe":{"description":"accountUnsubscribe - Unsubscribe from account notifications","$ref":"#/$defs/AccountUnsubscribeEndpoint"}},"required":["accountSubscribe","accountUnsubscribe"]},"AccountUnsubscribeEndpoint":{"description":"Account unsubscribe endpoint specification","type":"object","properties":{"request":{"description":"Request parameters for account unsubscription","$ref":"#/$defs/UnsubscribeRequest"},"response":{"description":"Response indicating unsubscription success","type":"boolean"}},"required":["request","response"]},"CommitmentLevel":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'","oneOf":[{"description":"Transaction is processed but not yet confirmed","type":"string","const":"processed"},{"description":"Transaction is confirmed","type":"string","const":"confirmed"},{"description":"Transaction is finalized","type":"string","const":"finalized"}]},"ProcessedSignatureResult":{"description":"Processed signature result with optional error","type":"object","properties":{"err":{"anyOf":[{"$ref":"#/$defs/TransactionErrorSchema"},{"type":"null"}]}}},"ReceivedSignatureResult":{"description":"Received signature confirmation","type":"string","enum":["receivedSignature"]},"RpcAccountSubscribeConfig":{"description":"Configuration for account subscription","type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"},"encoding":{"description":"Encoding format for account data","anyOf":[{"$ref":"#/$defs/UiAccountEncoding"},{"type":"null"}]}}},"RpcResponseContext":{"description":"Response context containing slot and API version information","type":"object","properties":{"apiVersion":{"description":"The API version","type":["string","null"]},"slot":{"description":"The current slot","type":"integer","format":"uint64","minimum":0}},"required":["slot"]},"RpcResponse_for_RpcSignatureResult":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"$ref":"#/$defs/RpcSignatureResult"}},"required":["context","value"]},"RpcResponse_for_UiAccountSchema":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"$ref":"#/$defs/UiAccountSchema"}},"required":["context","value"]},"RpcSignatureResult":{"description":"Signature confirmation result","anyOf":[{"$ref":"#/$defs/ProcessedSignatureResult"},{"$ref":"#/$defs/ReceivedSignatureResult"}]},"RpcSignatureSubscribeConfig":{"description":"Configuration for signature subscription","type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in t
1ime. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"},"enableReceivedNotification":{"description":"Whether to enable received notification","type":["boolean","null"]}}},"SignatureNotification":{"description":"Signature status notification","type":"object","properties":{"result":{"description":"Notification result","$ref":"#/$defs/RpcResponse_for_RpcSignatureResult"},"subscription":{"description":"Subscription ID","type":"integer","format":"uint64","minimum":0}},"required":["result","subscription"]},"SignatureSubscribeEndpoint":{"description":"Signature subscribe endpoint specification","type":"object","properties":{"notification":{"description":"Notification type sent to subscribers","$ref":"#/$defs/SignatureNotification"},"request":{"description":"Request parameters for signature subscription","$ref":"#/$defs/SignatureSubscribeRequest"},"response":{"description":"Response type for subscription confirmation","$ref":"#/$defs/SubscriptionResponse"}},"required":["request","response","notification"]},"SignatureSubscribeRequest":{"description":"Request parameters for signature subscription","type":"object","properties":{"config":{"description":"Optional subscription configuration","anyOf":[{"$ref":"#/$defs/RpcSignatureSubscribeConfig"},{"type":"null"}]},"signature":{"description":"Transaction signature to monitor (base-58 encoded)","type":"string"}},"required":["signature"]},"SignatureSubscriptionEndpoints":{"description":"Signature subscription WebSocket endpoints","type":"object","properties":{"signatureSubscribe":{"description":"signatureSubscribe - Subscribe to signature status notifications","$ref":"#/$defs/SignatureSubscribeEndpoint"},"signatureUnsubscribe":{"description":"signatureUnsubscribe - Unsubscribe from signature notifications","$ref":"#/$defs/SignatureUnsubscribeEndpoint"}},"required":["signatureSubscribe","signatureUnsubscribe"]},"SignatureUnsubscribeEndpoint":{"description":"Signature unsubscribe endpoint specification","type":"object","properties":{"request":{"description":"Request parameters for signature unsubscription","$ref":"#/$defs/UnsubscribeRequest"},"response":{"description":"Response indicating unsubscription success","type":"boolean"}},"required":["request","response"]},"SlotInfo":{"description":"Slot information including current slot, parent slot, and root slot","type":"object","properties":{"parent":{"type":"integer","format":"uint64","minimum":0},"root":{"type":"integer","format":"uint64","minimum":0},"slot":{"type":"integer","format":"uint64","minimum":0}},"required":["slot","parent","root"]},"SlotNotification":{"description":"Slot change notification","type":"object","properties":{"result":{"description":"Notification result","$ref":"#/$defs/SlotInfo"},"subscription":{"description":"Subscription ID","type":"integer","format":"uint64","minimum":0}},"required":["result","subscription"]},"SlotSubscribeEndpoint":{"description":"Slot subscribe endpoint specification","type":"object","properties":{"notification":{"description":"Notification type sent to subscribers","$ref":"#/$defs/SlotNotification"},"request":{"description":"Request parameters for slot subscription","$ref":"#/$defs/SlotSubscribeRequest"},"response":{"description":"Response type for subscription confirmation","$ref":"#/$defs/SubscriptionResponse"}},"required":["request","response","notification"]},"SlotSubscribeRequest":{"description":"Request parameters for slot subscription","type":"object"},"SlotSubscriptionEndpoints":{"description":"Slot subscription WebSocket endpoints","type":"object","properties":{"slotSubscribe":{"description":"slotSubscribe - Subscribe to slot change notifications","$ref":"#/$defs/SlotSubscribeEndpoint"},"slotUnsubscribe":{"description":"slotUnsubscribe - Unsubscribe from slot notifications","$ref":"#/$defs/SlotUnsubscribeEndpoint"}},"required":["slotSubscribe","slotUnsubscribe"]},"SlotUnsubscribeEndpoint":{"description":"Slot unsubscribe endpoint specification","type":"object","properties":{"request":{"description":"Request parameters for slot unsubscription","$ref":"#/$defs/UnsubscribeRequest"},"response":{"description":"Response indicating unsubscription success","type":"boolean"}},"required":["request","response"]},"SubscriptionResponse":{"description":"Subscription response containing subscription ID","type":"object","properties":{"subscriptionId":{"de
1scription":"Unique subscription identifier","type":"integer","format":"uint64","minimum":0}},"required":["subscriptionId"]},"TransactionErrorSchema":{"description":"Transaction error information","type":"object","properties":{"errorType":{"description":"Error type","type":"string"},"message":{"description":"Error message","type":["string","null"]}},"required":["errorType"]},"UiAccountEncoding":{"description":"Account data encoding formats","oneOf":[{"description":"Base58 encoding","type":"string","const":"Base58"},{"description":"Base64 encoding","type":"string","const":"Base64"},{"description":"Base64+zstd encoding","type":"string","const":"base64+zstd"},{"description":"JSON parsed data","type":"string","const":"JsonParsed"}]},"UiAccountSchema":{"description":"UI representation of an account","type":"object","properties":{"data":{"description":"Account data"},"executable":{"description":"Whether this account contains executable code","type":"boolean"},"lamports":{"description":"Account balance in lamports","type":"integer","format":"uint64","minimum":0},"owner":{"description":"Program that owns this account","type":"string"},"rentEpoch":{"description":"Epoch at which this account will next owe rent","type":"integer","format":"uint64","minimum":0}},"required":["lamports","data","owner","executable","rentEpoch"]},"UnsubscribeRequest":{"description":"Unsubscribe request parameters","type":"object","properties":{"subscriptionId":{"description":"Subscription ID to remove","type":"integer","format":"uint64","minimum":0}},"required":["subscriptionId"]}}}');var o=r(38536),s=r(76979);function a(e,t){var r,i;if(!e)return null;let n=e.split("/").pop();return n&&null!=(i=null==(r=t.$defs)?void 0:r[n])?i:null}let c=e=>e.charAt(0).toUpperCase()+e.slice(1),p=function(){var e,t;let r=[],i={...n.properties||{},...(null==(t=o.$defs)||null==(e=t.WebSocketSubscriptions)?void 0:e.properties)||{}},p={account:"account",signature:"signature",slot:"slot",logs:"logs",program:"program",block:"block"};for(let e in i)if(e.endsWith("Subscribe")){let t=Object.keys(p).find(t=>e.toLowerCase().includes(t));if(t){let i=p[t];if(!r.some(t=>t.method_name===e)){let t=function(e,t){var r,i,p,d,l,u,f,m,g;let y=n.$defs,h=o.$defs,b=a(null==y||null==(p=y["".concat(c(t),"SubscriptionEndpoints")])||null==(i=p.properties)||null==(r=i[e])?void 0:r.$ref,n)||(null==h||null==(l=h.WebSocketSubscriptions)||null==(d=l.properties)?void 0:d[e]);if(!b)return null;let x=e.replace("Subscribe","Unsubscribe"),$=a(null==(f=b.properties)||null==(u=f.request)?void 0:u.$ref,n),S=null==h||null==(g=h.WebSocketSubscriptions)||null==(m=g.properties)?void 0:m[e],j=(e,t)=>JSON.stringify({jsonrpc:"2.0",id:1,method:e,params:t},null,2),v=e=>JSON.stringify({jsonrpc:"2.0",id:1,result:e},null,2),R=(null==$?void 0:$.properties)?Object.keys($.properties).map(e=>{var t;return(0,s.Zj)(null==(t=$.properties)?void 0:t[e],n)}):[];return{method_name:e,description:b.description||"No description available.",category:t,params:function(e){if(!(null==e?void 0:e.properties))return[];let t=[],r=new Set(e.required||[]);for(let[i,n]of Object.entries(e.properties).sort((e,t)=>{let[i]=e,[n]=t;return!r.has(i)-!r.has(n)})){let e="any",o=n.description||"No description provided.",s=r.has(i);n.$ref?e=n.$ref.split("/").pop()||"object":n.anyOf?e=n.anyOf.map(e=>{var t;return(null==(t=e.$ref)?void 0:t.split("/").pop())||e.type}).filter(e=>"null"!==e).join(" | "):n.oneOf?e=n.oneOf.map(e=>{var t;return(null==(t=e.$ref)?void 0:t.split("/").pop())||e.type}).join(" | "):n.type&&(e=String(n.type)),t.push({name:i,type:s?e:"".concat(e," (optional)"),description:o,required:s})}return t}($),subscribe_example:j(e,R),subscribe_response_example:v(12345),notification_example:JSON.stringify({jsonrpc:"2.0",method:"".concat(t,"Notification"),params:(0,s.Zj)(S,o)},null,2),unsubscribe_example:j(x,[12345]),unsubscribe_response_example:v(!0)}}(e,i);t&&r.push(t)}}}return r}();p.filter(e=>"account"===e.category),p.filter(e=>"signature"===e.category),p.filter(e=>"slot"===e.category),p.filter(e=>"logs"===e.category),p.filter(e=>"program"===e.category),p.filter(e=>"block"===e.category);var d=r(66774);function l(e){let{type:t}=e,r=t.replace(" (optional)","").trim();
1return(0,i.jsx)("code",{className:"text-[11px] text-fd-primary font-medium",children:r})}function u(e){let{endpoint:t}=e,[r,n]=(0,d.useState)("subscribe"),o=t.method_name.includes("Subscribe"),s=[],a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null==e)return void s.push({name:t||"result",type:"null",indent:r});if(Array.isArray(e)){if(e.length>0&&"object"==typeof e[0]&&null!==e[0])s.push({name:t||"result",type:"array",indent:r}),a(e[0],"[]",r+1);else{let i=e.length>0?typeof e[0]:"any";s.push({name:t||"result",type:"array<".concat(i,">"),indent:r})}return}if("object"==typeof e){t&&s.push({name:t,type:"object",indent:r}),Object.entries(e).forEach(e=>{let[i,n]=e;if(null===n)s.push({name:i,type:"null",indent:t?r+1:r});else if(Array.isArray(n))if(n.length>0&&"object"==typeof n[0]&&null!==n[0])s.push({name:i,type:"array",indent:t?r+1:r}),a(n[0],"[]",t?r+2:r+1);else{let e=n.length>0?typeof n[0]:"any";s.push({name:i,type:"array<".concat(e,">"),indent:t?r+1:r})}else"object"==typeof n?a(n,i,t?r+1:r):s.push({name:i,type:typeof n,indent:t?r+1:r})});return}s.push({name:t||"result",type:typeof e,indent:r})};try{var c;let e=JSON.parse(t.notification_example);(null==(c=e.params)?void 0:c.result)!==void 0&&a(e.params.result)}catch(e){}return(0,i.jsxs)("div",{className:"mb-8 pb-8 border-b border-fd-border last:border-0",children:[(0,i.jsxs)("h3",{id:t.method_name,className:"flex items-center gap-2 text-base font-semibold text-fd-foreground font-mono mb-1 scroll-mt-20",children:[(0,i.jsx)("span",{className:"w-2 h-2 rounded-full bg-purple-500 shrink-0",title:"WebSocket"}),t.method_name]}),(0,i.jsx)("p",{className:"text-sm text-fd-muted-foreground mb-4",children:t.description}),t.params.length>0&&(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)("div",{className:"text-[11px] font-semibold text-fd-muted-foreground uppercase tracking-wide mb-2",children:"Parameters"}),(0,i.jsxs)("table",{className:"w-full text-sm",children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{className:"text-left text-[11px] text-fd-muted-foreground border-b border-fd-border/50",children:[(0,i.jsx)("th",{className:"pb-2 font-medium",children:"Name"}),(0,i.jsx)("th",{className:"pb-2 font-medium",children:"Type"}),(0,i.jsx)("th",{className:"pb-2 font-medium w-full",children:"Description"})]})}),(0,i.jsx)("tbody",{className:"align-top",children:t.params.map((e,t)=>(0,i.jsxs)("tr",{className:"border-b border-fd-border/30 last:border-0",children:[(0,i.jsx)("td",{className:"py-2 pr-4",children:(0,i.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,i.jsx)("code",{className:"text-fd-foreground font-mono text-[13px]",children:e.name}),e.required&&(0,i.jsx)("span",{className:"text-[9px] text-red-400",children:"*"})]})}),(0,i.jsx)("td",{className:"py-2 pr-4 whitespace-nowrap",children:(0,i.jsx)(l,{type:e.type})}),(0,i.jsx)("td",{className:"py-2 text-fd-muted-foreground text-[13px]",children:e.description})]},t))})]})]}),s.length>0&&(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)("div",{className:"text-[11px] font-semibold text-fd-muted-foreground uppercase tracking-wide mb-2",children:"Notification Result"}),(0,i.jsxs)("table",{className:"w-full text-sm",children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{className:"text-left text-[11px] text-fd-muted-foreground border-b border-fd-border/50",children:[(0,i.jsx)("th",{className:"pb-2 font-medium",children:"Field"}),(0,i.jsx)("th",{className:"pb-2 font-medium",children:"Type"})]})}),(0,i.jsx)("tbody",{className:"align-top",children:s.map((e,t)=>(0,i.jsxs)("tr",{className:"border-b border-fd-border/30 last:border-0",children:[(0,i.jsx)("td",{className:"py-2 pr-4",children:(0,i.jsxs)("div",{className:"flex items-center gap-1.5",style:{paddingLeft:"".concat(16*e.indent,"px")},children:[e.indent>0&&(0,i.jsx)("span",{className:"text-fd-border text-xs",children:"└"}),(0,i.jsx)("code",{className:"text-fd-foreground font-mono text-[13px]",children:e.name})]})}),(0,i.jsx)("td",{className:"py-2 pr-4 whitespace-nowrap",children:(0,i.jsx)(l,{type:e.type})})]},t))})]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"text-[11px] font-semibold text-fd-muted-foreground uppercase tracking-wide mb-2",children:"Example"}),(0,i.jsxs)("div",{className:"rounded-lg border border-fd-border overflow-hidden",children:[(0,i.jsx)("div",{className:"flex bg-fd-muted/50 border-b border-fd-border overflow-x-auto",children:[{id:"subscribe",label:"Subscribe",show:!0},{id:"response",label:"Response",show:!0},{id:"notification",label:"Notification",show:!0},{id:"unsubscribe",label:"Unsubscribe",show:o}].filter(e=>e.show).map(e=>(0,i.jsx)("button",{onClick:()=>n(e.id),className:"px-4 py-2 text-xs font-medium transition-colors border-b-2 -mb-px whitespace-nowrap ".concat(r===e.id?"border-fd-primary text-fd-
1primary bg-fd-background":"border-transparent text-fd-muted-foreground hover:text-fd-foreground"),children:e.label},e.id))}),(0,i.jsx)("pre",{className:"bg-fd-background text-fd-foreground text-[13px] leading-relaxed font-mono p-4 overflow-x-auto",children:(0,i.jsx)("code",{children:(e=>{switch(e){case"subscribe":return t.subscribe_example;case"response":return t.subscribe_response_example;case"notification":return t.notification_example;case"unsubscribe":return"".concat(t.unsubscribe_example,"\n\n// Response\n").concat(t.unsubscribe_response_example);default:return""}})(r)})})]})]})]})}function f(){return(0,i.jsxs)("div",{children:[(0,i.jsxs)("p",{className:"text-fd-muted-foreground text-base leading-relaxed mb-10",children:["Real-time WebSocket subscriptions for monitoring blockchain state changes. Connect to"," ",(0,i.jsx)("code",{className:"text-fd-primary font-mono",children:"ws://localhost:8900"})," ","when running Surfnet."]}),p.map((e,t)=>{let r=e.method_name.toLowerCase().replace(/[^a-z0-9]/g,"-");return(0,i.jsx)("div",{id:r,children:(0,i.jsx)(u,{endpoint:e})},t)})]})}},25467:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ResizableHandle:()=>p,ResizablePanel:()=>c,ResizablePanelGroup:()=>a});var i=r(36822),n=r(85884),o=r(17235),s=r(97690);let a=e=>{let{className:t,...r}=e;return(0,i.jsx)(o.YZ,{className:(0,s.cn)("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...r})},c=o.Zk,p=e=>{let{withHandle:t,className:r,...a}=e;return(0,i.jsx)(o.TW,{className:(0,s.cn)("relative flex w-px items-center justify-center bg-zinc-200 after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-zinc-950 focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90 dark:bg-zinc-800 dark:focus-visible:ring-zinc-300",r),...a,children:t&&(0,i.jsx)("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border border-zinc-200 bg-zinc-200 dark:border-zinc-800 dark:bg-zinc-800",children:(0,i.jsx)(n.t,{className:"h-2.5 w-2.5"})})})}},31376:(e,t,r)=>{"use strict";r.d(t,{PreWithFocus:()=>s});var i=r(36822),n=r(66774),o=r(74507);let s=e=>((function(e){let t=(0,n.useRef)(!0);(0,n.useLayoutEffect)(()=>{if(e.current){let r=e.current.querySelectorAll("[data-focus=true]"),i=e.current.getBoundingClientRect(),n=1/0,o=-1/0;r.forEach(e=>{let t=e.getBoundingClientRect();n=Math.min(n,t.top-i.top),o=Math.max(o,t.bottom-i.top)}),(o>i.height||n<0)&&e.current.scrollTo({top:e.current.scrollTop+n-10,behavior:t.current?"instant":"smooth"}),t.current=!1}})})((0,o.J2)(e)),(0,i.jsx)(o.AX,{merge:e}))},34726:e=>{e.exports={"markdown-renderer-video":"MarkdownVideo_markdown-renderer-video__5XiFo"}},38536:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"SurfpoolRpcEndpoints","description":"Complete mapping of all Surfpool RPC endpoints to their response types","type":"object","properties":{"accountsData":{"$ref":"#/$defs/AccountsDataEndpoints"},"accountsScan":{"$ref":"#/$defs/AccountsScanEndpoints"},"admin":{"$ref":"#/$defs/AdminEndpoints"},"bankData":{"$ref":"#/$defs/BankDataEndpoints"},"full":{"$ref":"#/$defs/FullEndpoints"},"minimal":{"$ref":"#/$defs/MinimalEndpoints"},"surfnetCheatcodes":{"$ref":"#/$defs/SurfnetCheatcodesEndpoints"},"websocketSubscriptions":{"$ref":"#/$defs/WebSocketSubscriptions"}},"required":["minimal","full","admin","accountsData","accountsScan","bankData","surfnetCheatcodes","websocketSubscriptions"],"$defs":{"AccountsDataEndpoints":{"description":"Account data RPC endpoints for retrieving account information","type":"object","properties":{"getAccountInfo":{"description":"getAccountInfo - Returns account information","$ref":"#/$defs/RpcResponse8"},"getBlockCommitment":{"description":"getBlockCommitment - Returns commitment levels for a given block","$ref":"#/$defs/RpcBlockCommitment"},"getLargestAccounts":{"description":"getLargestAccounts - Returns largest accounts by balance","$ref":"#/$defs/RpcResponse10"},"getMultipleAccounts":{"description":"getMultipleAccounts - Returns multiple accounts information","$ref":"#/$defs/RpcResponse9"},"getProgramAccounts":{"description":"getProgramAccounts - Returns program-owned accounts","type":"array","items":{"$ref":"#/$defs/RpcKeyedAccount"}}
1,"getSupply":{"description":"getSupply - Returns supply information","$ref":"#/$defs/RpcResponse11"},"getTokenAccountBalance":{"description":"getTokenAccountBalance - Returns token account balance","$ref":"#/$defs/RpcResponse12"},"getTokenAccountsByDelegate":{"description":"getTokenAccountsByDelegate - Returns token accounts by delegate","$ref":"#/$defs/RpcResponse13"},"getTokenAccountsByOwner":{"description":"getTokenAccountsByOwner - Returns token accounts by owner","$ref":"#/$defs/RpcResponse13"},"getTokenLargestAccounts":{"description":"getTokenLargestAccounts - Returns largest token accounts","$ref":"#/$defs/RpcResponse14"},"getTokenSupply":{"description":"getTokenSupply - Returns token supply information","$ref":"#/$defs/RpcResponse12"}},"required":["getAccountInfo","getBlockCommitment","getMultipleAccounts","getProgramAccounts","getLargestAccounts","getSupply","getTokenAccountBalance","getTokenAccountsByOwner","getTokenAccountsByDelegate","getTokenLargestAccounts","getTokenSupply"]},"AccountsScanEndpoints":{"description":"Account scan endpoints for filtered account searches","type":"object","properties":{"getFilteredProgramAccounts":{"description":"getFilteredProgramAccounts - Returns filtered program accounts","type":"array","items":{"$ref":"#/$defs/RpcKeyedAccount"}},"scanAccounts":{"description":"scanAccounts - Scans accounts with filters","type":"array","items":{"$ref":"#/$defs/RpcKeyedAccount"}}},"required":["scanAccounts","getFilteredProgramAccounts"]},"AddressTableLookupSchema":{"description":"Address table lookup","type":"object","properties":{"accountKey":{"description":"Address table account key","type":"string"},"readonlyIndexes":{"description":"Readonly indices","type":"array","items":{"type":"integer","format":"uint8","maximum":255,"minimum":0}},"writableIndexes":{"description":"Writable indices","type":"array","items":{"type":"integer","format":"uint8","maximum":255,"minimum":0}}},"required":["accountKey","writableIndexes","readonlyIndexes"]},"AdminEndpoints":{"description":"Admin RPC endpoints for cluster administration","type":"object","properties":{"addAuthorizedVoter":{"description":"addAuthorizedVoter - Adds authorized voter","type":"null"},"addAuthorizedVoterFromBytes":{"description":"addAuthorizedVoterFromBytes - Adds voter from bytes","type":"null"},"exit":{"description":"exit - Immediately shuts down the RPC server","type":"null"},"getSecondaryIndexKeySize":{"description":"getSecondaryIndexKeySize - Gets secondary index key size","type":"integer","format":"uint64","minimum":0},"listPlugins":{"description":"listPlugins - Lists all loaded plugins","type":"array","items":{"type":"string"}},"loadPlugin":{"description":"loadPlugin - Loads a new plugin","$ref":"#/$defs/LoadPlugin"},"reloadPlugin":{"description":"reloadPlugin - Reloads a runtime plugin","$ref":"#/$defs/ReloadPlugin"},"removeAllAuthorizedVoters":{"description":"removeAllAuthorizedVoters - Removes all voters","type":"null"},"repairShredFromPeer":{"description":"repairShredFromPeer - Repairs shred from peer","type":"null"},"rpcAddress":{"description":"rpcAddress - Returns RPC server address","$ref":"#/$defs/SocketAddrSchema"},"setIdentity":{"description":"setIdentity - Sets cluster identity","type":"null"},"setIdentityFromBytes":{"description":"setIdentityFromBytes - Sets identity from bytes","type":"null"},"setLogFilter":{"description":"setLogFilter - Sets log filter","type":"null"},"setPublicTpuAddress":{"description":"setPublicTpuAddress - Sets public TPU address","type":"null"},"setPublicTpuForwardsAddress":{"description":"setPublicTpuForwardsAddress - Sets public TPU forwards address","type":"null"},"setRepairWhitelist":{"description":"setRepairWhitelist - Sets repair whitelist","type":"null"},"setStakedNodesOverrides":{"description":"setStakedNodesOverrides - Sets staked nodes overrides","type":"null"},"startTime":{"description":"startTime - Returns system start time","$ref":"#/$defs/SystemTimeSchema"},"unloadPlugin":{"description":"unloadPlugin - Unloads a runtime plugin","$ref":"#/$defs/UnloadPlugin"}},"required":["exit","reloadPlugin","unloadPlugin","loadPlugin","listPlugins","rpcAddress","setLogFilter","startTime","addAuthorizedVoter","addAuthorizedVoterFromBytes","removeAllAuthorizedVoters","setIdentity","setIdentityFromBytes","setStakedNodesOverrides","repairShredFromPeer","setRepairWhitelist","getSecondaryIndexKeySize","setPublicTpuAddress","setPublicTpuForwardsAddress"]},"BankDataEndpoints":{"description":"Bank data endpoints for blockchain state information","type":"object","properties":{"getBlockProduction":{"description":"getBlockProduction - Returns block production information","$ref":"#/$defs/RpcResponse15"},"getEpochSchedule":{"description":"getEpochSchedule - Returns epoch schedule","$ref":"#/$defs/EpochScheduleSchema"},"getFeeRateGovernor":{"description":"getFeeRateGovernor - Returns fee rate governor (deprecated)","$ref":"#/$defs/RpcFeeRateGovernor"},"getFees":{"description":"getFees - Returns fee information (deprecated)","$ref":"#/$defs/RpcFeeC
1alculator"},"getInflationGovernor":{"description":"getInflationGovernor - Returns inflation governor","$ref":"#/$defs/RpcInflationGovernor"},"getInflationRate":{"description":"getInflationRate - Returns inflation rate","$ref":"#/$defs/RpcInflationRate"},"getMinimumBalanceForRentExemption":{"description":"getMinimumBalanceForRentExemption - Returns minimum balance for rent exemption","type":"integer","format":"uint64","minimum":0},"getRent":{"description":"getRent - Returns rent information","$ref":"#/$defs/RentSchema"},"getSlotLeader":{"description":"getSlotLeader - Returns the leader of the current slot","type":"string"},"getSlotLeaders":{"description":"getSlotLeaders - Returns leaders for a specified range of slots","type":"array","items":{"type":"string"}}},"required":["getInflationGovernor","getInflationRate","getEpochSchedule","getFees","getFeeRateGovernor","getRent","getMinimumBalanceForRentExemption","getSlotLeader","getSlotLeaders","getBlockProduction"]},"ClockSchema":{"description":"Clock information including current slot and timestamp","type":"object","properties":{"epoch":{"description":"Current epoch","type":"integer","format":"uint64","minimum":0},"epochStartTimestamp":{"description":"Estimated production time of the current slot as Unix timestamp","type":"integer","format":"int64"},"leaderScheduleEpoch":{"description":"Future leader schedule epoch","type":"integer","format":"uint64","minimum":0},"slot":{"description":"Current slot","type":"integer","format":"uint64","minimum":0},"unixTimestamp":{"description":"Unix timestamp of current slot","type":"integer","format":"int64"}},"required":["slot","epochStartTimestamp","epoch","leaderScheduleEpoch","unixTimestamp"]},"ComputeUnitsEstimationResultSchema":{"description":"Result of compute units estimation","type":"object","properties":{"computeUnitsConsumed":{"description":"Number of compute units consumed","type":"integer","format":"uint64","minimum":0},"errorMessage":{"description":"Error message if estimation failed","type":["string","null"]},"logMessages":{"description":"Log messages from the transaction","type":["array","null"],"items":{"type":"string"}},"success":{"description":"Indicates if the estimation was successful","type":"boolean"}},"required":["success","computeUnitsConsumed"]},"EncodedConfirmedTransactionSchema":{"description":"Encoded confirmed transaction with status metadata","type":"object","properties":{"blockTime":{"description":"Block time","type":["integer","null"],"format":"int64"},"meta":{"description":"Transaction metadata","anyOf":[{"$ref":"#/$defs/TransactionMetaSchema"},{"type":"null"}]},"slot":{"description":"The transaction slot","type":"integer","format":"uint64","minimum":0},"transaction":{"description":"The encoded transaction","$ref":"#/$defs/EncodedTransactionSchema"},"version":{"description":"Transaction version","type":["integer","null"],"format":"uint8","maximum":255,"minimum":0}},"required":["slot","transaction"]},"EncodedTransactionSchema":{"description":"Encoded transaction information","type":"object","properties":{"message":{"description":"Transaction message","$ref":"#/$defs/TransactionMessageSchema"},"signatures":{"description":"List of signatures","type":"array","items":{"type":"string"}}},"required":["signatures","message"]},"EpochInfoSchema":{"description":"Epoch information including current epoch, slot index, and slots in epoch","type":"object","properties":{"absoluteSlot":{"description":"Absolute root slot","type":"integer","format":"uint64","minimum":0},"blockHeight":{"description":"Block height","type":["integer","null"],"format":"uint64","minimum":0},"epoch":{"description":"Current epoch","type":"integer","format":"uint64","minimum":0},"slotIndex":{"description":"Current slot index within the epoch","type":"integer","format":"uint64","minimum":0},"slotsInEpoch":{"description":"Total number of slots in the epoch","type":"integer","format":"uint64","minimum":0},"transactionCount":{"description":"Current transaction count","type":["integer","null"],"format":"uint64","minimum":0}},"required":["epoch","slotIndex","slotsInEpoch","absoluteSlot"]},"EpochScheduleSchema":{"description":"Epoch schedule configuration","type":"object","properties":{"firstNormalEpoch":{"de
1scription":"First normal-length epoch, if any","type":"integer","format":"uint64","minimum":0},"firstNormalSlot":{"description":"First normal-length slot","type":"integer","format":"uint64","minimum":0},"leaderScheduleSlotOffset":{"description":"Duration of leader schedule slot in each epoch","type":"integer","format":"uint64","minimum":0},"slotsPerEpoch":{"description":"Number of slots in each epoch","type":"integer","format":"uint64","minimum":0},"warmup":{"description":"Whether epochs start short and grow","type":"boolean"}},"required":["slotsPerEpoch","leaderScheduleSlotOffset","warmup","firstNormalEpoch","firstNormalSlot"]},"FeeCalculatorSchema":{"description":"Fee calculator with lamports per signature","type":"object","properties":{"lamportsPerSignature":{"description":"Cost in lamports to validate a signature","type":"integer","format":"uint64","minimum":0}},"required":["lamportsPerSignature"]},"FeeRateGovernorSchema":{"description":"Fee rate governor configuration","type":"object","properties":{"burnPercent":{"description":"Burn percent","type":"integer","format":"uint8","maximum":255,"minimum":0},"maxLamportsPerSignature":{"description":"Maximum lamports per signature","type":"integer","format":"uint64","minimum":0},"minLamportsPerSignature":{"description":"Minimum lamports per signature","type":"integer","format":"uint64","minimum":0},"targetLamportsPerSignature":{"description":"Target lamports per signature","type":"integer","format":"uint64","minimum":0},"targetSignaturesPerSlot":{"description":"Target signatures per slot","type":"integer","format":"uint64","minimum":0}},"required":["targetLamportsPerSignature","targetSignaturesPerSlot","minLamportsPerSignature","maxLamportsPerSignature","burnPercent"]},"FullEndpoints":{"description":"Full RPC endpoints providing comprehensive transaction and block information","type":"object","properties":{"getBlock":{"description":"getBlock - Returns block information for a given slot","anyOf":[{"$ref":"#/$defs/UiConfirmedBlockSchema"},{"type":"null"}]},"getBlockTime":{"description":"getBlockTime - Returns block time for a given slot","type":["integer","null"],"format":"int64"},"getBlocks":{"description":"getBlocks - Returns blocks for a range of slots","type":"array","items":{"type":"integer","format":"uint64","minimum":0}},"getBlocksWithLimit":{"description":"getBlocksWithLimit - Returns blocks with limit","type":"array","items":{"type":"integer","format":"uint64","minimum":0}},"getClusterNodes":{"description":"getClusterNodes - Returns cluster nodes information","type":"array","items":{"$ref":"#/$defs/RpcContactInfo"}},"getFeeForMessage":{"description":"getFeeForMessage - Returns fee for a message","$ref":"#/$defs/RpcResponse7"},"getFirstAvailableBlock":{"description":"getFirstAvailableBlock - Returns first available block","type":"integer","format":"uint64","minimum":0},"getInflationReward":{"description":"getInflationReward - Returns inflation rewards for given addresses","type":"array","items":{"$ref":"#/$defs/RpcInflationReward"}},"getLatestBlockhash":{"description":"getLatestBlockhash - Returns latest blockhash","$ref":"#/$defs/RpcResponse5"},"getMaxRetransmitSlot":{"description":"getMaxRetransmitSlot - Returns maximum retransmit slot","type":"integer","format":"uint64","minimum":0},"getMaxShredInsertSlot":{"description":"getMaxShredInsertSlot - Returns maximum shred insert slot","type":"integer","format":"uint64","minimum":0},"getRecentPerformanceSamples":{"description":"getRecentPerformanceSamples - Returns recent performance samples","type":"array","items":{"$ref":"#/$defs/RpcPerfSample"}},"getRecentPrioritizationFees":{"description":"getRecentPrioritizationFees - Returns recent prioritization fees","type":"array","items":{"$ref":"#/$defs/RpcPrioritizationFee"}},"getSignatureStatuses":{"description":"getSignatureStatuses - Returns signature statuses","$ref":"#/$defs/RpcResponse3"},"getSignaturesForAddress":{"description":"getSignaturesForAddress - Returns signatures for an address","type":"array","items":{"$ref":"#/$defs/RpcConfirmedTransactionStatusWithSignature"}},"getStakeMinimumDelegation":{"description":"getStakeMinimumDelegation - Returns stake minimum delegation","$ref":"#/$defs/RpcResponse"},"getTransaction":{"description":"getTransaction - Returns transaction information","anyOf":[{"$ref":"#/$defs/EncodedConfirmedTransactionSchema"},{"type":"null"}]}
1,"isBlockhashValid":{"description":"isBlockhashValid - Checks if blockhash is valid","$ref":"#/$defs/RpcResponse6"},"minimumLedgerSlot":{"description":"minimumLedgerSlot - Returns minimum ledger slot","type":"integer","format":"uint64","minimum":0},"requestAirdrop":{"description":"requestAirdrop - Requests an airdrop to a given address","type":"string"},"sendTransaction":{"description":"sendTransaction - Sends a transaction to the cluster","type":"string"},"simulateTransaction":{"description":"simulateTransaction - Simulates a transaction","$ref":"#/$defs/RpcResponse4"}},"required":["getInflationReward","getClusterNodes","getRecentPerformanceSamples","getSignatureStatuses","getMaxRetransmitSlot","getMaxShredInsertSlot","requestAirdrop","sendTransaction","simulateTransaction","minimumLedgerSlot","getBlocks","getBlocksWithLimit","getSignaturesForAddress","getFirstAvailableBlock","getLatestBlockhash","isBlockhashValid","getFeeForMessage","getStakeMinimumDelegation","getRecentPrioritizationFees"]},"Idl":{"type":"object","properties":{"accounts":{"description":"The IDL accounts array defining all account types that the program can create or interact with.","type":"array","items":true},"address":{"description":"The program address that this IDL describes, as a base-58 encoded string.","type":"string"},"constants":{"description":"The IDL constants array defining constant values used by the program.","type":"array","items":true},"errors":{"description":"The IDL errors array defining custom error types that the program can return.","type":"array","items":true},"events":{"description":"The IDL events array defining events that the program can emit.","type":"array","items":true},"instructions":{"description":"The IDL instructions array defining all available program instructions and their parameters.","type":"array","items":true},"metadata":{"description":"The IDL metadata containing program name, version, and description information."},"state":{"description":"The IDL state object defining the program\'s state account structure (if applicable)."},"types":{"description":"The IDL types array defining custom data types used by the program.","type":"array","items":true}},"required":["address","metadata","instructions","accounts","types","events","errors","constants"]},"InstructionSchema":{"description":"Transaction instruction","type":"object","properties":{"accounts":{"description":"Account indices","type":"array","items":{"type":"integer","format":"uint8","maximum":255,"minimum":0}},"data":{"description":"Instruction data","type":"string"},"programIdIndex":{"description":"Program ID index","type":"integer","format":"uint8","maximum":255,"minimum":0}},"required":["programIdIndex","accounts","data"]},"LoadPlugin":{"type":"object","properties":{"configFile":{"type":"string"}},"required":["configFile"]},"MinimalEndpoints":{"description":"Minimal RPC endpoints providing basic cluster information","type":"object","properties":{"getBalance":{"description":"getBalance - Returns the balance for a given address","$ref":"#/$defs/RpcResponse"},"getBlockHeight":{"description":"getBlockHeight - Returns the block height","$ref":"#/$defs/RpcResponse"},"getEpochInfo":{"description":"getEpochInfo - Returns epoch information","$ref":"#/$defs/RpcResponse2"},"getGenesisHash":{"description":"getGenesisHash - Returns the genesis hash","type":"string"},"getHealth":{"description":"getHealth - Returns the health of the cluster","type":"string"},"getHighestSnapshotSlot":{"description":"getHighestSnapshotSlot - Returns the highest snapshot slot","$ref":"#/$defs/RpcSnapshotSlotInfo"},"getIdentity":{"description":"getIdentity - Returns the identity of the cluster","$ref":"#/$defs/RpcIdentity"},"getLeaderSchedule":{"description":"getLeaderSchedule - Returns the leader schedule","type":"object","additionalProperties":{"type":"array","items":{"type":"integer","format":"uint","minimum":0}}},"getSlot":{"description":"getSlot - Returns the current slot","$ref":"#/$defs/RpcResponse"},"getTransactionCount":{"description":"getTransactionCount - Returns the transaction count","$ref":"#/$defs/RpcResponse"},"getVersion":{"description":"getVersion - Returns the version of the cluster","$ref":"#/$defs/RpcVersionInfo"},"getVoteAccounts":{"description":"getVoteAccounts - Returns the vote accounts","$ref":"#/$defs/RpcVoteAccountStatus"}},"required":["getBalance","getEpochInfo","getGenesisHash","getHealth","getIdentity","getSlot","getBlockHeight","getHighestSnapshotSlot","getTransactionCount","getVersion","getVoteAccounts","getLeaderSchedule"]},"ProcessedSignatureResult":{"description":"Processed signature result with optional error","type":"object","properties":{"err":{"anyOf":[{"$ref":"#/$defs/TransactionErrorSchema"},{"type":"null"}]}}},"ProfileResultSchema":{"description":"Profile result","type":"object","properties":{"computeUnits":{"description":"Compute units estimation result","$ref":"#/$defs/ComputeUnitsEstimationResultSchema"},"state":{"description":"Profile state containing pre and post execution states","$ref":"#/$defs/ProfileStateSchema"}},"required":["computeUnits","state"]},"ProfileStateSchema":{"description":"State of accounts before and after execution","type":"object","properties":{"postExecution":{"description":"Account states after execution","type":"object","additionalProperties":{"anyOf":[{"$ref":"#/$defs/UiAccountSchema"},{"type":"null"}]}},"preExecution":{"description":"Account states before execution","type":"object","additionalProperties":{"anyOf":[{"$ref":"#/$defs/UiAccountSchema"},{"type":"null"}]}}},"required":["preExecution","postExecution"]},"ReceivedSignatureResult":{"description":"Received signature confirmation","type":"string","enum":["receivedSignature"]},"ReloadPlugin":{"type":"object","properties":{"configFile":{"type":"string"},"name":{"type":"string"}},"required":["name","configFile"]},"RentSchema":{"description":"Rent configuration including lamports per byte-year and exemption threshold","type":"object","properties":{"burnPercent":{"description":"Percentage of collected rent burned","type":"integer","format":"uint8","maximum":255,"minimum":0},"exemptionThreshold":{"description":"Rent exemption threshold in years","type":"integer","format":"uint64","minimum":0},"lamportsPerByteYear":{"description":"Rental rate in lamports/byte-year","type":"integer","format":"uint64","minimum":0}},"required":["lamportsPerByteYear","exemptionThreshold","burnPercent"]},"RpcAccountBalance":{"description":"Account balance information","type":"object","properties":{"address":{"type":"string"},"lamports":{"type":"integer","format":"uint64","minimum":0}},"required":["address","lamports"]},"RpcBlockCommitment":{"description":"Block commitment information with optional commitment and total stake","type":"object","properties":{"commitment":{"type":["array","null"],"items":{"type":"integer","format":"uint64","minimum":0},"maxItems":32,"minItems":32},"totalStake":{"type":"integer","format":"uint64","minimum":0}},"required":["totalStake"]},"RpcBlockProduction":{"description":"Block production statistics by validator identity","type":"object","properties":{"byIdentity":{"type":"object","additionalProperties":{"type":"array","maxItems":2,"minItems":2,"prefixItems":[{"type":"integer","format":"uint","minimum":0},{"type":"integer","format":"uint","minimum":0}]}},"range":{"$ref":"#/$defs/RpcBlockProductionRange"}},"required":["byIdentity","range"]},"RpcBlockProductionRange":{"description":"Block production range information","type":"object","properties":{"firstSlot":{"type":"integer","format":"uint64","minimum":0},"lastSlot":{"type":"integer","format":"uint64","minimum":0}},"required":["firstSlot","lastSlot"]},"RpcBlockUpdate":{"description":"Block update notification","type":"object","properties":{"block":{"anyOf":[{"$ref":"#/$defs/UiConfirmedBlockSchema"},{"type":"null"}]},"err":{"anyOf":[{"$ref":"#/$defs/RpcBlockUpdateError"},{"type":"null"}]},"slot":{"type":"integer","format":"uint64","minimum":0}},"required":["slot"]},"RpcBlockUpdateError":{"description":"Block update error","oneOf":[{"type":"object","properties":{"unsupportedTransactionVersion":{"type":"integer","format":"uint8","maximum":255,"minimum":0}},"additionalProperties":false,"required":["unsupportedTransactionVersion"]}]}
1,"RpcBlockhash":{"description":"Blockhash with last valid block height","type":"object","properties":{"blockhash":{"type":"string"},"lastValidBlockHeight":{"type":"integer","format":"uint64","minimum":0}},"required":["blockhash","lastValidBlockHeight"]},"RpcConfirmedTransactionStatusWithSignature":{"description":"Confirmed transaction status with signature and metadata","type":"object","properties":{"blockTime":{"type":["integer","null"],"format":"int64"},"confirmationStatus":{"anyOf":[{"$ref":"#/$defs/TransactionConfirmationStatusSchema"},{"type":"null"}]},"err":{"anyOf":[{"$ref":"#/$defs/TransactionErrorSchema"},{"type":"null"}]},"memo":{"type":["string","null"]},"signature":{"type":"string"},"slot":{"type":"integer","format":"uint64","minimum":0}},"required":["signature","slot"]},"RpcContactInfo":{"description":"Contact information for a cluster node","type":"object","properties":{"featureSet":{"type":["integer","null"],"format":"uint32","minimum":0},"gossip":{"anyOf":[{"$ref":"#/$defs/SocketAddrSchema"},{"type":"null"}]},"pubkey":{"type":"string"},"pubsub":{"anyOf":[{"$ref":"#/$defs/SocketAddrSchema"},{"type":"null"}]},"rpc":{"anyOf":[{"$ref":"#/$defs/SocketAddrSchema"},{"type":"null"}]},"serveRepair":{"anyOf":[{"$ref":"#/$defs/SocketAddrSchema"},{"type":"null"}]},"shredVersion":{"type":["integer","null"],"format":"uint16","maximum":65535,"minimum":0},"tpu":{"anyOf":[{"$ref":"#/$defs/SocketAddrSchema"},{"type":"null"}]},"tpuForwards":{"anyOf":[{"$ref":"#/$defs/SocketAddrSchema"},{"type":"null"}]},"tpuForwardsQuic":{"anyOf":[{"$ref":"#/$defs/SocketAddrSchema"},{"type":"null"}]},"tpuQuic":{"anyOf":[{"$ref":"#/$defs/SocketAddrSchema"},{"type":"null"}]},"tpuVote":{"anyOf":[{"$ref":"#/$defs/SocketAddrSchema"},{"type":"null"}]},"tvu":{"anyOf":[{"$ref":"#/$defs/SocketAddrSchema"},{"type":"null"}]},"version":{"type":["string","null"]}},"required":["pubkey"]},"RpcFeeCalculator":{"description":"Fee calculator information","type":"object","properties":{"feeCalculator":{"description":"Fee calculator with lamports per signature","$ref":"#/$defs/FeeCalculatorSchema"}},"required":["feeCalculator"]},"RpcFeeRateGovernor":{"description":"Fee rate governor information","type":"object","properties":{"feeRateGovernor":{"$ref":"#/$defs/FeeRateGovernorSchema"}},"required":["feeRateGovernor"]},"RpcIdentity":{"description":"Identity information for the current node","type":"object","properties":{"identity":{"type":"string"}},"required":["identity"]},"RpcInflationGovernor":{"description":"Inflation governor parameters","type":"object","properties":{"foundation":{"type":"number","format":"double"},"foundationTerm":{"type":"number","format":"double"},"initial":{"type":"number","format":"double"},"taper":{"type":"number","format":"double"},"terminal":{"type":"number","format":"double"}},"required":["initial","terminal","taper","foundation","foundationTerm"]},"RpcInflationRate":{"description":"Inflation rate information for a specific epoch","type":"object","properties":{"epoch":{"type":"integer","format":"uint64","minimum":0},"foundation":{"type":"number","format":"double"},"total":{"type":"number","format":"double"},"validator":{"type":"number","format":"double"}},"required":["total","validator","foundation","epoch"]},"RpcInflationReward":{"description":"Inflation reward information for an account","type":"object","properties":{"amount":{"type":"integer","format":"uint64","minimum":0},"commission":{"type":["integer","null"],"format":"uint8","maximum":255,"minimum":0},"effectiveSlot":{"type":"integer","format":"uint64","minimum":0},"epoch":{"type":"integer","format":"uint64","minimum":0},"postBalance":{"type":"integer","format":"uint64","minimum":0}},"required":["epoch","effectiveSlot","amount","postBalance"]},"RpcKeyedAccount":{"description":"Account information with associated public key","type":"object","properties":{"account":{"$ref":"#/$defs/UiAccountSchema"},"pubkey":{"type":"string"}},"required":["pubkey","account"]},"RpcLogsResponse":{"description":"Log response containing signature, error, and log messages","type":"object","properties":{"err":{"anyOf":[{"$ref":"#/$defs/TransactionErrorSchema"},{"type":"null"}]},"logs":{"type":"array","items":{"type":"string"}},"signature":{"type":"string"}},"required":["signature","logs"]},"RpcPerfSample":{"description":"Performance sample data","type":"object","properties":{"numNonVoteTransactions":{"type":["integer","null"],"format":"uint64","minimum":0},"numSlots":{"type":"integer","format":"uint64","minimum":0},"numTransactions":{"type":"integer","format":"uint64","minimum":0},"samplePeriodSecs":{"type":"integer","format":"uint16","maximum":65535,"minimum":0},"slot":{"type":"integer","format":"uint64","minimum":0}},"required":["slot","numTransactions","numSlots","samplePeriodSecs"]},"RpcPrioritizationFee":{"description":"Prioritization fee information for a slot","type":"object","properties":{"prioritizationFee":{"type":"integer","format":"uint64","minimum":0},"slot":{"type":"integer","format":"uint64","minimum":0}},"required":["slot","prioritizationFee"]},"RpcResponse":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"integer","format":"uint64","minimum":0}},"required":["context","value"]},"RpcResponse10":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"array","items":{"$ref":"#/$defs/RpcAccountBalance"}}},"required":["context","value"]},"RpcResponse11":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"$ref":"#/$defs/RpcSupply"}},"required":["context","value"]},"RpcResponse12":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"$ref":"#/$defs/UiTokenAmountSchema"}},"required":["context","value"]},"RpcResponse13":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"array","items":{"$ref":"#/$defs/RpcKeyedAccount"}}},"required":["context","value"]},"RpcResponse14":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"array","items":{"$ref":"#/$defs/RpcTokenAccountBalance"}}},"required":["context","value"]},"RpcResponse15":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"$ref":"#/$defs/RpcBlockProduction"}},"required":["context","value"]},"RpcResponse16":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"null"}},"required":["context","value"]},"RpcResponse17":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"$ref":"#/$defs/ProfileResultSchema"}},"required":["context","value"]},"RpcResponse18":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"array","items":{"$ref":"#/$defs/ProfileResultSchema"}}},"required":["context","value"]},"RpcResponse19":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"anyOf":[{"$ref":"#/$defs/UiKeyedProfileResultSchema"},{"type":"null"}]}},"required":["context"]},"RpcResponse2":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"$ref":"#/$defs/EpochInfoSchema"}},"required":["context","value"]},"RpcResponse20":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"anyOf":[{"$ref":"#/$defs/Idl"},{"type":"null"}]}},"required":["context"]},"RpcResponse21":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"array","items":{"$ref":"#/$defs/RpcLogsResponse"}}},"required":["context","value"]},"RpcResponse3":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"array","items":{"anyOf":[{"$ref":"#/$defs/TransactionStatus"},{"type":"null"}]}}},"required":["context","value"]},"RpcResponse4":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"$ref":"#/$defs/RpcSimulateTransactionResult"}},"required":["context","value"]},"RpcResponse5":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"$ref":"#/$defs/RpcBlockhash"}},"required":["context","value"]},"RpcResponse6":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"boolean"}},"required":["context","value"]},"RpcResponse7":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":["integer","null"],"format":"uint64","minimum":0}},"required":["context"]},"RpcResponse8":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"anyOf":[{"$ref":"#/$defs/UiAccountSchema"},{"type":"null"}]}},"required":["context"]},"RpcResponse9":{"description":"RPC response wrapper with context","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"array","items":{"anyOf":[{"$ref":"#/$defs/UiAccountSchema"},{"type":"null"}]}}},"required":["context","value"]},"RpcResponseContext":{"description":"Response context containing slot and API version information","type":"object","properties":{"apiVersion":{"description":"The API version","type":["string","null"]},"slot":{"description":"The current slot","type":"integer","format":"uint64","minimum":0}},"required":["slot"]},"RpcSignatureResult":{"description":"Signature confirmation result","anyOf":[{"$ref":"#/$defs/ProcessedSignatureResult"},{"$ref":"#/$defs/ReceivedSignatureResult"}]},"RpcSimulateTransactionResult":{"description":"Transaction simulation result","type":"object","properties":{"accounts":{"type":["array","null"],"items":{"anyOf":[{"$ref":"#/$defs/UiAccountSchema"},{"type":"null"}]}},"err":{"anyOf":[{"$ref":"#/$defs/TransactionErrorSchema"},{"type":"null"}]},"innerInstructions":{"type":["array","null"],"items":{"$ref":"#/$defs/UiInnerInstructionsSchema"}},"logs":{"type":["array","null"],"items":{"type":"string"}},"replacementBlockhash":{"anyOf":[{"$ref":"#/$defs/RpcBlockhash"},{"type":"null"}]},"returnData":{"anyOf":[{"$ref":"#/$defs/UiTransactionReturnDataSchema"},{"type":"null"}]},"unitsConsumed":{"type":["integer","null"],"format":"uint64","minimum":0}}},"RpcSnapshotSlotInfo":{"description":"Snapshot slot information","type":"object","properties":{"full":{"type":"integer","format":"uint64","minimum":0},"incremental":{"type":["integer","null"],"format":"uint64","minimum":0}},"required":["full"]}
1,"RpcSupply":{"description":"Supply information including total, circulating, and non-circulating amounts","type":"object","properties":{"circulating":{"type":"integer","format":"uint64","minimum":0},"nonCirculating":{"type":"integer","format":"uint64","minimum":0},"nonCirculatingAccounts":{"type":"array","items":{"type":"string"}},"total":{"type":"integer","format":"uint64","minimum":0}},"required":["total","circulating","nonCirculating","nonCirculatingAccounts"]},"RpcTokenAccountBalance":{"description":"Token account balance information","type":"object","properties":{"address":{"type":"string"},"amount":{"description":"Token amount as string","type":["string","null"]},"decimals":{"description":"Number of decimals","type":"integer","format":"uint8","maximum":255,"minimum":0},"uiAmount":{"description":"Human readable amount as float","type":["number","null"],"format":"double"},"uiAmountString":{"description":"Human readable amount as string","type":"string"}},"required":["address","decimals","uiAmountString"]},"RpcVersionInfo":{"description":"Version information for the Solana software","type":"object","properties":{"feature-set":{"type":["integer","null"],"format":"uint32","minimum":0},"solana-core":{"type":"string"}},"required":["solana-core"]},"RpcVote":{"description":"Vote information including account, slots, hash, and signature","type":"object","properties":{"hash":{"type":"string"},"signature":{"type":"string"},"slots":{"type":"array","items":{"type":"integer","format":"uint64","minimum":0}},"timestamp":{"type":["integer","null"],"format":"int64"},"votePubkey":{"type":"string"}},"required":["votePubkey","slots","hash","signature"]},"RpcVoteAccountInfo":{"description":"Detailed information about a vote account","type":"object","properties":{"activatedStake":{"type":"integer","format":"uint64","minimum":0},"commission":{"type":"integer","format":"uint8","maximum":255,"minimum":0},"epochCredits":{"type":"array","items":{"type":"array","maxItems":3,"minItems":3,"prefixItems":[{"type":"integer","format":"uint64","minimum":0},{"type":"integer","format":"uint64","minimum":0},{"type":"integer","format":"uint64","minimum":0}]}},"epochVoteAccount":{"type":"boolean"},"lastVote":{"type":"integer","format":"uint64","minimum":0},"nodePubkey":{"type":"string"},"rootSlot":{"type":"integer","format":"uint64","minimum":0},"votePubkey":{"type":"string"}},"required":["votePubkey","nodePubkey","activatedStake","commission","epochVoteAccount","epochCredits","lastVote","rootSlot"]},"RpcVoteAccountStatus":{"description":"Vote account status including current and delinquent accounts","type":"object","properties":{"current":{"type":"array","items":{"$ref":"#/$defs/RpcVoteAccountInfo"}},"delinquent":{"type":"array","items":{"$ref":"#/$defs/RpcVoteAccountInfo"}}},"required":["current","delinquent"]},"SlotInfo":{"description":"Slot information including current slot, parent slot, and root slot","type":"object","properties":{"parent":{"type":"integer","format":"uint64","minimum":0},"root":{"type":"integer","format":"uint64","minimum":0},"slot":{"type":"integer","format":"uint64","minimum":0}},"required":["slot","parent","root"]},"SlotTransactionStats":{"description":"Transaction statistics for a slot","type":"object","properties":{"maxTransactionsPerEntry":{"type":"integer","format":"uint64","minimum":0},"numFailedTransactions":{"type":"integer","format":"uint64","minimum":0},"numSuccessfulTransactions":{"type":"integer","format":"uint64","minimum":0},"numTransactionEntries":{"type":"integer","format":"uint64","minimum":0}},"required":["numTransactionEntries","numSuccessfulTransactions","numFailedTransactions","maxTransactionsPerEntry"]},"SlotUpdate":{"description":"Slot update notifications from the validator","oneOf":[{"description":"First shred received for a slot","type":"object","properties":{"slot":{"type":"integer","format":"uint64","minimum":0},"timestamp":{"type":"integer","format":"uint64","minimum":0},"type":{"type":"string","const":"firstShredReceived"}},"required":["type","slot","timestamp"]},{"description":"Slot completed","type":"object","properties":{"slot":{"type":"integer","format":"uint64","minimum":0},"timestamp":{"type":"integer","format":"uint64","minimum":0},"type":{"type":"string","const":"completed"}},"required":["type","slot","timestamp"]},{"description":"Bank created for a slot","type":"object","properties":{"parent":{"type":"integer","format":"uint64","minimum":0},"slot":{"type":"integer","format":"uint64","minimum":0},"timestamp":{"type":"integer","format":"uint64","minimum":0},"type":{"type":"string","const":"createdBank"}},"required":["type","slot","parent","timestamp"]},{"description":"Slot frozen with transaction statistics","type":"object","properties":{"slot":{"type":"integer","format":"uint64","minimum":0},"stats":{"$ref":"#/$defs/SlotTransactionStats"},"timestamp":{"type":"integer","format":"uint64","minimum":0},"type":{"type":"string","const":"frozen"}},"required":["type","slot","timestamp","stats"]},{"description":"Slot marked as dead due to an error","type":"object","properties":{"err":{"type":"string"},"slot":{"type":"integer","format":"uint64","minimum":0},"timestamp":{"type":"integer","format":"uint64","minimum":0},"type":{"type":"string","const":"dead"}},"required":["type","slot","timestamp","err"]},{"description":"Optimistic confirmation for a slot","type":"object","properties":{"slot":{"type":"integer","format":"uint64","minimum":0},"timestamp":{"type":"integer","format":"uint64","minimum":0},"type":{"type":"string","const":"optimisticConfirmation"}},"required":["type","slot","timestamp"]},{"description":"Slot marked as root","type":"object","properties":{"slot":{"type":"integer","format":"uint64","minimum":0},"timestamp":{"type":"integer","format":"uint64","minimum":0},"type":{"type":"string","const":"root"}},"required":["type","slot","timestamp"]}]},"SocketAddrSchema":{"description":"Socket address","type":"object","properties":{"ip":{"type":"string"},"port":{"type":"integer","format":"uint16","maximum":65535,"minimum":0}},"required":["ip","port"]},"SurfnetCheatcodesEndpoints":{"description":"Surfnet cheatcodes endpoints for testing and development","type":"object","properties":{"cloneProgramAccount":{"description":"cloneProgramAccount - Clones a program account","$ref":"#/$defs/RpcResponse16"},"getActiveIdl":{"description":"getActiveIdl - Returns the active IDL at an optional slot","$ref":"#/$defs/RpcResponse20"},"getLocalSignatures":{"description":"getLocalSignatures - Returns recent local signatures","$ref":"#/$defs/RpcResponse21"},"getProfileResultsByTag":{"description":"getProfileResultsByTag - Gets profiling results for a tag","$ref":"#/$defs/RpcResponse18"},"getTransactionProfile":{"description":"getTransactionProfile - Returns a profile by signature or UUID","$ref":"#/$defs/RpcResponse19"},"pauseClock":{"description":"pauseClock - Freezes the local clock","$ref":"#/$defs/EpochInfoSchema"},"profileTransaction":{"description":"profileTransaction - Profiles a transaction for compute unit estimation","$ref":"#/$defs/RpcResponse17"},"registerIdl":{"description":"registerIdl - Registers an IDL at an optional slot","$ref":"#/$defs/RpcResponse16"},"resumeClock":{"description":"resumeClock - Resumes the local clock","$ref":"#/$defs/EpochInfoSchema"},"setAccount":{"description":"setAccount - Sets account data","$ref":"#/$defs/RpcResponse16"}
1,"setSupply":{"description":"setSupply - Sets supply information for testing","$ref":"#/$defs/RpcResponse16"},"setTokenAccount":{"description":"setTokenAccount - Sets token account data","$ref":"#/$defs/RpcResponse16"},"timeTravel":{"description":"timeTravel - Moves the local clock","$ref":"#/$defs/EpochInfoSchema"},"resetAccount":{"description":"resetAccount - Resets an account to its original state from the remote datasource","$ref":"#/$defs/RpcResponse16"},"resetNetwork":{"description":"resetNetwork - Resets the entire network to its initial state","$ref":"#/$defs/RpcResponse16"},"exportSnapshot":{"description":"exportSnapshot - Exports a snapshot of all accounts in the Surfnet SVM","$ref":"#/$defs/ExportSnapshotResponse"},"streamAccount":{"description":"streamAccount - Registers an account for streaming from the datasource","$ref":"#/$defs/RpcResponse16"},"getStreamedAccounts":{"description":"getStreamedAccounts - Retrieves the list of accounts registered for streaming","$ref":"#/$defs/GetStreamedAccountsResponse"},"getSurfnetInfo":{"description":"getSurfnetInfo - Retrieves Surfnet network information","$ref":"#/$defs/GetSurfnetInfoResponse"},"writeProgram":{"description":"writeProgram - Writes program data at a specified offset","$ref":"#/$defs/RpcResponse16"},"registerScenario":{"description":"registerScenario - Registers a scenario with account overrides","$ref":"#/$defs/RpcResponse16"},"setProgramAuthority":{"description":"setProgramAuthority - Sets or removes the upgrade authority for a program","$ref":"#/$defs/RpcResponse16"},"enableCheatcode":{"description":"enableCheatcode - Re-enables one or more previously disabled cheatcode RPC methods","$ref":"#/$defs/RpcResponse16"},"disableCheatcode":{"description":"disableCheatcode - Disables one or more cheatcode RPC methods, optionally with lockout","$ref":"#/$defs/RpcResponse16"},"offlineAccount":{"description":"offlineAccount - Marks an account as offline so it is not downloaded from the remote RPC","$ref":"#/$defs/RpcResponse16"},"streamAccounts":{"description":"streamAccounts - Registers multiple accounts for streaming from the datasource in one batch","$ref":"#/$defs/RpcResponse16"}},"required":["setAccount","setTokenAccount","cloneProgramAccount","profileTransaction","getProfileResultsByTag","setSupply","getTransactionProfile","registerIdl","getActiveIdl","getLocalSignatures","timeTravel","pauseClock","resumeClock","resetAccount","resetNetwork","exportSnapshot","streamAccount","getStreamedAccounts","getSurfnetInfo","writeProgram","registerScenario","setProgramAuthority","enableCheatcode","disableCheatcode","offlineAccount","streamAccounts"]},"ExportSnapshotResponse":{"description":"Response containing exported account snapshots","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"object","description":"Map of account public keys to their snapshots","additionalProperties":{"$ref":"#/$defs/AccountSnapshotSchema"}}},"required":["context","value"]},"AccountSnapshotSchema":{"description":"Snapshot of an account\'s state","type":"object","properties":{"lamports":{"description":"Account balance in lamports","type":"integer","format":"uint64","minimum":0},"owner":{"description":"Owner program ID as base-58 string","type":"string"},"executable":{"description":"Whether the account is executable","type":"boolean"},"rentEpoch":{"description":"Rent epoch","type":"integer","format":"uint64","minimum":0},"data":{"description":"Account data as base64 encoded string","type":"string"}},"required":["lamports","owner","executable","rentEpoch","data"]},"GetStreamedAccountsResponse":{"description":"Response containing list of streamed accounts","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/$defs/StreamedAccountInfoSchema"}}},"required":["accounts"]}},"required":["context","value"]},"StreamedAccountInfoSchema":{"description":"Information about a streamed account","type":"object","properties":{"pubkey":{"description":"Account public key as base-58 string","type":"string"},"includeOwnedAccounts":{"description":"Whether owned accounts are also streamed","type":"boolean"}},"required":["pubkey","includeOwnedAccounts"]},"GetSurfnetInfoResponse":{"description":"Response containing Surfnet network information","type":"object","properties":{"context":{"$ref":"#/$defs/RpcResponseContext"},"value":{"type":"object","properties":{"runbookExecutions":{"type":"array","items":{"$ref":"#/$defs/RunbookExecutionStatusSchema"}}},"required":["runbookExecutions"]}},"required":["context","value"]},"RunbookExecutionStatusSchema":{"description":"Status of a runbook execution","type":"object","properties":{"startedAt":{"description":"Unix timestamp when execution started","type":"integer","format":"uint32","minimum":0},"completedAt":{"description":"Unix timestamp when execution completed (null if still running)","type":["integer","null"],"format":"uint32","minimum":0}
1,"runbookId":{"description":"Identifier of the runbook","type":"string"},"errors":{"description":"List of errors encountered during execution","type":["array","null"],"items":{"type":"string"}}},"required":["startedAt","runbookId"]},"SurfpoolRpcVersionInfo":{"description":"Surfpool RPC version information - used by: get_surfpool_version","type":"object","properties":{"featureSet":{"type":["integer","null"],"format":"uint32","minimum":0},"solanaCore":{"type":"string"},"surfnetVersion":{"type":"string"}},"required":["surfnetVersion","solanaCore"]},"SystemTimeSchema":{"description":"System time representation","type":"object","properties":{"nanos":{"description":"Nanoseconds","type":"integer","format":"uint32","minimum":0},"secsSinceEpoch":{"description":"Seconds since Unix epoch","type":"integer","format":"uint64","minimum":0}},"required":["secsSinceEpoch","nanos"]},"TransactionConfirmationStatusSchema":{"description":"Transaction confirmation status","type":"object","properties":{"status":{"description":"Confirmation level","type":"string"}},"required":["status"]},"TransactionErrorSchema":{"description":"Transaction error information","type":"object","properties":{"errorType":{"description":"Error type","type":"string"},"message":{"description":"Error message","type":["string","null"]}},"required":["errorType"]},"TransactionMessageSchema":{"description":"Transaction message containing accounts and instructions","type":"object","properties":{"accountKeys":{"description":"List of account keys","type":"array","items":{"type":"string"}},"addressTableLookups":{"description":"List of address table lookups","type":["array","null"],"items":{"$ref":"#/$defs/AddressTableLookupSchema"}},"instructions":{"description":"List of instructions","type":"array","items":{"$ref":"#/$defs/InstructionSchema"}},"numReadonlySignedAccounts":{"description":"Number of readonly signed accounts","type":"integer","format":"uint8","maximum":255,"minimum":0},"numReadonlyUnsignedAccounts":{"description":"Number of readonly unsigned accounts","type":"integer","format":"uint8","maximum":255,"minimum":0},"numRequiredSignatures":{"description":"Number of required signatures","type":"integer","format":"uint8","maximum":255,"minimum":0},"recentBlockhash":{"description":"Recent blockhash","type":"string"}},"required":["numRequiredSignatures","numReadonlySignedAccounts","numReadonlyUnsignedAccounts","accountKeys","recentBlockhash","instructions"]},"TransactionMetaSchema":{"description":"Transaction metadata including fee, balances, and logs","type":"object","properties":{"computeUnitsConsumed":{"description":"Compute units consumed","type":["integer","null"],"format":"uint64","minimum":0},"err":{"description":"Transaction error","anyOf":[{"$ref":"#/$defs/TransactionErrorSchema"},{"type":"null"}]},"fee":{"description":"Transaction fee","type":"integer","format":"uint64","minimum":0},"innerInstructions":{"description":"Inner instructions","type":["array","null"],"items":{"$ref":"#/$defs/UiInnerInstructionsSchema"}},"logMessages":{"description":"Log messages","type":["array","null"],"items":{"type":"string"}},"postBalances":{"description":"Account balances after transaction","type":"array","items":{"type":"integer","format":"uint64","minimum":0}},"postTokenBalances":{"description":"Post token balances","type":["array","null"],"items":{"$ref":"#/$defs/UiTokenAmountSchema"}},"preBalances":{"description":"Account balances before transaction","type":"array","items":{"type":"integer","format":"uint64","minimum":0}},"preTokenBalances":{"description":"Pre token balances","type":["array","null"],"items":{"$ref":"#/$defs/UiTokenAmountSchema"}},"returnData":{"description":"Return data","anyOf":[{"$ref":"#/$defs/UiTransactionReturnDataSchema"},{"type":"null"}]}},"required":["fee","preBalances","postBalances"]},"TransactionResultSchema":{"description":"Transaction result","type":"object","properties":{"error":{"description":"Error if transaction failed","anyOf":[{"$ref":"#/$defs/TransactionErrorSchema"},{"type":"null"}]},"success":{"description":"Success indicator","type":"boolean"}},"required":["success"]},"TransactionStatus":{"description":"Transaction status information","type":"object","properties":{"confirmationStatus":{"anyOf":[{"$ref":"#/$defs/TransactionConfirmationStatusSchema"},{"type":"null"}]},"confirmations":{"type":["integer","null"],"format":"uint","minimum":0},"err":{"anyOf":[{"$ref":"#/$defs/TransactionErrorSchema"},{"type":"null"}]},"slot":{"type":"integer","format":"uint64","minimum":0},"status":{"$ref":"#/$defs/TransactionResultSchema"}},"required":["slot","status"]},"UiAccountChangeSchema":{"oneOf":[{"type":"object","properties":{"data":{"$ref":"#/$defs/UiAccountSchema"},"type":{"type":"string","const":"create"}},"required":["type","data"]},{"type":"object","properties":{"data":{"type":"array","maxItems":2,"minItems":2,"prefixItems":[{"$ref":"#/$defs/UiAccountSchema"},{"$ref":"#/$defs/UiAccountSchema"}]},"type":{"type":"string","const":"update"}},"required":["type","data"]},{"type":"object","properties":{"data":{"$ref":"#/$defs/UiAccountSchema"},"type":{"type":"string","const":"delete"}},"required":["type","data"]},{"type":"object","properties":{"data":{"anyOf":[{"$ref":"#/$defs/UiAccountSchema"},{"type":"null"}]},"type":{"type":"string","const":"unchanged"}},"required":["type","data"]}]},"UiAccountProfileStateSchema":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"readonly"}},"required":["type"]},{"type":"object","properties":{"accountChange":{"$ref":"#/$defs/UiAccountChangeSchema"},"type":{"type":"string","const":"writable"}},"required":["type","accountChange"]}]},"UiAccountSchema":{"description":"UI representation of an account","type":"object","properties":{"data":{"description":"Account data","type":"array","items":{"type":"string"}},"executable":{"description":"Whether this account contains executable code","type":"boolean"}
1,"lamports":{"description":"Account balance in lamports","type":"integer","format":"uint64","minimum":0},"owner":{"description":"Program that owns this account","type":"string"},"rentEpoch":{"description":"Epoch at which this account will next owe rent","type":"integer","format":"uint64","minimum":0}},"required":["lamports","data","owner","executable","rentEpoch"]},"UiConfirmedBlockSchema":{"description":"Confirmed block information","type":"object","properties":{"blockHeight":{"description":"Block height","type":["integer","null"],"format":"uint64","minimum":0},"blockTime":{"description":"Block time","type":["integer","null"],"format":"int64"},"blockhash":{"description":"Block hash","type":"string"},"parentSlot":{"description":"Parent slot","type":"integer","format":"uint64","minimum":0},"previousBlockhash":{"description":"Previous block hash","type":"string"}},"required":["previousBlockhash","blockhash","parentSlot"]},"UiInnerInstructionsSchema":{"description":"Inner instructions","type":"object","properties":{"index":{"description":"Instruction index","type":"integer","format":"uint8","maximum":255,"minimum":0},"instructions":{"description":"List of instructions","type":"array","items":{"type":"string"}}},"required":["index","instructions"]},"UiKeyedProfileResultSchema":{"type":"object","properties":{"instructionProfiles":{"type":["array","null"],"items":{"$ref":"#/$defs/UiProfileResultSchema"}},"key":{"$ref":"#/$defs/UuidOrSignature"},"readonlyAccountStates":{"type":"object","additionalProperties":{"$ref":"#/$defs/UiAccountSchema"}},"slot":{"type":"integer","format":"uint64","minimum":0},"transactionProfile":{"$ref":"#/$defs/UiProfileResultSchema"}},"required":["slot","key","transactionProfile","readonlyAccountStates"]},"UiProfileResultSchema":{"type":"object","properties":{"accountStates":{"type":"object","additionalProperties":{"$ref":"#/$defs/UiAccountProfileStateSchema"}},"computeUnitsConsumed":{"type":"integer","format":"uint64","minimum":0},"errorMessage":{"type":["string","null"]},"logMessages":{"type":["array","null"],"items":{"type":"string"}}},"required":["accountStates","computeUnitsConsumed"]},"UiTokenAmountSchema":{"description":"Token amount information","type":"object","properties":{"amount":{"description":"Token amount as string","type":["string","null"]},"decimals":{"description":"Number of decimals","type":"integer","format":"uint8","maximum":255,"minimum":0},"uiAmount":{"description":"Human readable amount as float","type":["number","null"],"format":"double"},"uiAmountString":{"description":"Human readable amount as string","type":"string"}},"required":["decimals","uiAmountString"]},"UiTransactionReturnDataSchema":{"description":"Transaction return data","type":"object","properties":{"data":{"description":"Returned data","type":"array","items":{"type":"string"}},"programId":{"description":"Program ID that returned the data","type":"string"}},"required":["programId","data"]},"UnloadPlugin":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"UuidOrSignature":{"oneOf":[{"description":"A UUID string that uniquely identifies a transaction profile in the system.","type":"object","properties":{"uuid":{"type":"string"}},"additionalProperties":false,"required":["uuid"]},{"description":"A transaction signature as a base-58 encoded string that identifies a specific transaction.","type":"object","properties":{"signature":{"type":"string"}},"additionalProperties":false,"required":["signature"]}]},"WebSocketSubscriptions":{"description":"WebSocket subscription endpoints for real-time updates","type":"object","properties":{"accountSubscribe":{"description":"accountSubscribe - Subscribe to account changes","$ref":"#/$defs/UiAccountSchema"},"blockSubscribe":{"description":"blockSubscribe - Subscribe to block updates","$ref":"#/$defs/RpcBlockUpdate"},"logsSubscribe":{"description":"logsSubscribe - Subscribe to transaction logs","$ref":"#/$defs/RpcLogsResponse"},"programSubscribe":{"description":"programSubscribe - Subscribe to program account changes","$ref":"#/$defs/RpcKeyedAccount"},"signatureSubscribe":{"description":"signatureSubscribe - Subscribe to signature confirmations","$ref":"#/$defs/RpcSignatureResult"},"slotSubscribe":{"description":"slotSubscribe - Subscribe to slot changes","$ref":"#/$defs/SlotInfo"},"slotUpdatesSubscribe":{"description":"slotUpdatesSubscribe - Subscribe to slot updates","$ref":"#/$defs/SlotUpdate"},"voteSubscribe":{"description":"voteSubscribe - Subscribe to vote account updates","$ref":"#/$defs/RpcVote"}}
1,"required":["accountSubscribe","blockSubscribe","logsSubscribe","programSubscribe","signatureSubscribe","slotSubscribe","slotUpdatesSubscribe","voteSubscribe"]}}}')},43148:(e,t,r)=>{"use strict";r.d(t,{PreWithRef:()=>a});var i=r(36822),n=r(74507),o=r(46533),s=r(66774);class a extends s.Component{render(){return(0,i.jsx)(n.AX,{merge:this.props,style:{position:"relative"}})}getSnapshotBeforeUpdate(){return(0,o.BL)(this.ref.current)}componentDidUpdate(e,t,r){(0,o.nv)(this.ref.current,r).forEach(e=>{let{element:t,keyframes:r,options:i}=e,{translateX:n,translateY:o,...s}=r;n&&o&&(s.translate=["".concat(n[0],"px ").concat(o[0],"px"),"".concat(n[1],"px ").concat(o[1],"px")]),t.animate(s,{duration:900*i.duration,delay:900*i.delay,easing:i.easing,fill:"backwards"})})}constructor(e){super(e),this.ref=(0,n.J2)(this.props)}}},45050:(e,t,r)=>{"use strict";r.d(t,{Mermaid:()=>u});var i=r(36822),n=r(98273),o=r(33976),s=r(66774),a=r(98500);function c(e){let{content:t,isModal:n=!1}=e,o=(0,s.useId)(),[c,p]=(0,s.useState)(""),[d,l]=(0,s.useState)(!0),u=(0,s.useRef)(null),f=function(e){let[t,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let t=new IntersectionObserver(e=>{let[i]=e;i.isIntersecting&&(t.disconnect(),r(!0))});return e.current&&t.observe(e.current),()=>{t.disconnect()}},[e]),t}(u),m=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(n&&u.current){let e=u.current.querySelector("svg");e&&(async()=>{try{let t=(await r.e(9808).then(r.t.bind(r,99808,23))).default;m.current&&m.current.destroy(),m.current=t(e,{zoomEnabled:!0,controlIconsEnabled:!0,fit:!0,center:!0,minZoom:.1,maxZoom:10,zoomScaleSensitivity:.3})}catch(e){console.error("Failed to load svg-pan-zoom:",e)}})()}return()=>{m.current&&(m.current.destroy(),m.current=null)}},[n,c]),(0,s.useEffect)(()=>{if(l(!0),!f)return;let e=document.documentElement,i=new MutationObserver(s);return i.observe(e,{attributes:!0}),s(),()=>{i.disconnect()};async function s(){var i;l(!0);let s=e.classList.contains("dark")||(null==(i=e.attributes.getNamedItem("data-theme"))?void 0:i.value)==="dark";try{let{default:e}=await Promise.all([r.e(5233),r.e(1063),r.e(1439)]).then(r.bind(r,26307));if(e.initialize({startOnLoad:!1,securityLevel:"loose",fontFamily:"inherit",themeCSS:"margin: 0;",theme:s?"dark":"neutral"}),u.current){let{svg:r}=await e.render(o.replaceAll(":",""),t.replaceAll("\\n","\n"),u.current),i=r.replace(/width="[^"]*"/,'width="100%"').replace(/style="[^"]*"/,'style="width:100%;height:100%;max-height:'.concat(n?"calc(100vh - 140px)":"auto",";").concat(n?"position:relative;":"",'"')).replace(/<svg/,'<svg preserveAspectRatio="xMidYMid meet"');i.match(/<svg[^>]*height="([^"]*)"[^>]*>/)&&(i=i.replace(/<svg([^>]*)height="[^"]*"([^>]*)>/,"<svg$1$2>")),p(i),l(!1)}}catch(e){console.error("Error while rendering mermaid",e),p('\n            <pre class="mt-2 p-2 bg-gray-100 text-xs overflow-auto">'.concat(t,"</pre>\n        ")),l(!1)}}},[t,o,f,n]),(0,i.jsxs)("div",{className:"relative w-full h-full",children:[d&&(0,i.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-ch-background/80",children:(0,i.jsx)(a.$,{className:"w-8 h-8 text-ch-tab-active-foreground animate-spin"})}),(0,i.jsx)("div",{ref:u,dangerouslySetInnerHTML:{__html:c},className:"w-full h-full",style:{position:"relative",maxHeight:n?"calc(100vh - 140px)":"auto",width:"100%",overflow:"visible",padding:"0"}})]})}var p=r(11394),d=r(97690);function l(e){let{content:t,isOpen:r,onClose:n}=e,o=(0,s.useRef)(null),a=(0,s.useRef)(null);return((0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n()};return r&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow=""}},[r,n]),r)?(0,i.jsx)("div",{className:"fixed inset-0 z-50 flex items-start justify-center bg-black/50 backdrop-blur-sm pt-[72px] sm:pt-[80px]",onClick:n,children:(0,i.jsxs)("div",{ref:o,className:"relative overflow-visible border rounded shadow-lg border-ch-border bg-ch-background w-[90vw] h-[calc(100vh-88px)] sm:h-[calc(100vh-96px)]",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("div",{className:(0,d.cn)("border-b-[1px] border-ch-border bg-ch-tabs-background px-3 py-0","w-full h-9 flex items-center justify-between sticky top-0 z-10","text-ch-tab-inactive-foreground text-sm font-mono"),children:(0,i.jsxs)("div",{className:"flex items-center w-full h-5 gap-2",children:[(0,i.jsx)("span",{className:"leading-none",children:"Diagram"}),(0,i.jsx)("div",{className:"flex items-center gap-2 ml-auto mr-1",children:(0,i.jsx)("button",{onClick:n,className:"text-ch-tab-inactive-foreground hover:text-ch-tab-active-foreground focus:outline-none","aria-label":"Close modal",children:(0,i.jsx)(p.X,{className:"w-4 h-4"})})})]})}),(0,i.jsx)("div",{ref:a,className:"bg-ch-background",style:{height:"calc(100% - 36px)",width:"100%",overflow:"hidden",position:"relative"},children:(0,i.jsx)("div",{className:"relative w-full h-full",children:(0,i.jsx)(c,{content:t,isModal:!0})})})]})}):null}
1function u(e){let[t,r]=(0,s.useState)(!1),a=e.codeblocks[0],p=a.value,u=function(e){let t=(e.meta||"").match(/title=(["'])(.*?)\1/);return t?t[2]:null}(a);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"relative my-4 overflow-hidden border rounded border-ch-border",children:[u?(0,i.jsx)("div",{className:(0,d.cn)("border-b-[1px] border-ch-border bg-ch-tabs-background px-3 py-0","w-full h-9 flex items-center justify-between","text-ch-tab-inactive-foreground text-sm font-mono"),children:(0,i.jsxs)("div",{className:"flex items-center w-full h-5 gap-2",children:[(0,i.jsx)("span",{className:"leading-none",children:u}),(0,i.jsxs)("div",{className:"flex items-center gap-2 ml-auto mr-1",children:[(0,i.jsx)("button",{onClick:()=>r(!0),className:"text-ch-tab-inactive-foreground hover:text-ch-tab-active-foreground focus:outline-none","aria-label":"Open in fullscreen",children:(0,i.jsx)(o.h,{className:"w-4 h-4"})}),(0,i.jsx)(n.CopyButton,{text:p,className:"text-ch-tab-inactive-foreground"})]})]})}):(0,i.jsxs)("div",{className:"absolute right-3 my-0 top-2.5 flex gap-2 text-ch-tab-inactive-foreground bg-ch-background/90",children:[(0,i.jsx)("button",{onClick:()=>r(!0),className:"hover:text-ch-tab-active-foreground focus:outline-none","aria-label":"Open in fullscreen",children:(0,i.jsx)(o.h,{className:"w-4 h-4"})}),(0,i.jsx)(n.CopyButton,{text:p,className:"text-ch-tab-inactive-foreground"})]}),(0,i.jsx)("div",{className:"p-4 bg-ch-background",children:(0,i.jsx)(c,{content:p})})]}),(0,i.jsx)(l,{content:p,isOpen:t,onClose:()=>r(!1)})]})}},48810:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CodePlaceholder:()=>l,CodePlaceholderProvider:()=>f,SelectionSticker:()=>c});var i=r(36822),n=r(59057),o=r(66774),s=r(97690),a=r(12508);function c(e){let{steps:t}=e,r=(0,o.useMemo)(()=>{let e={};return t.map(t=>
1(Object.entries(t.codeblocks).forEach(t=>{let[r,i]=t;e[r]=i}),{...t,codeblocks:{...e}}))},[t]);return(0,i.jsx)(a.Selection,{from:r.map(e=>(0,i.jsx)(p,{step:e}))})}function p(e){let{step:t}=e,{codeblocks:r}=t,s=(0,o.useMemo)(()=>(function(e){let t=[];for(let r of Object.keys(e)){let e=r.split("/"),i={name:"",title:"",children:t};for(let t=0;t<e.length;t++){let r=e[t],n=i.children.find(e=>e.name===r);n||(n={name:r,title:e.slice(0,t+1).join("/"),children:[]},i.children.push(n)),i=n}}return t})(r),[r]),a=t.selected,[c,p]=(0,o.useState)(null!=a?a:null);return(0,o.useEffect)(()=>{a&&p(a)},[a]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.Files,{className:"flex-1 shrink-0",children:(0,i.jsx)(d,{nodes:s,onSelect:p,selected:c})}),c&&r[c]]})}function d(e){let{nodes:t,onSelect:r,selected:o}=e;return t.sort((e,t)=>e.children.length>0&&0===t.children.length?-1:0===e.children.length&&t.children.length>0?1:e.name.localeCompare(t.name)),t.map(e=>e.children.length>0?(0,i.jsx)(n.Folder,{name:e.name,className:"text-fd-muted-foreground",defaultOpen:!0,children:(0,i.jsx)(d,{nodes:e.children,onSelect:r,selected:o})},e.name):(0,i.jsx)(n.File,{name:e.name,onClick:()=>e.title&&r(e.title),className:(0,s.cn)("transition-colors duration-300",o===e.title?"bg-fd-primary/10 text-fd-primary":"text-fd-muted-foreground")},e.name))}function l(e){let{title:t,children:r}=e,{codeblocks:n}=(0,o.useContext)(u),s=n[t];if(s)return(0,i.jsxs)(i.Fragment,{children:[r,s]})}let u=(0,o.createContext)({codeblocks:{}});function f(e){let{codeblocks:t,children:r}=e;return(0,i.jsx)(u.Provider,{value:{codeblocks:t},children:r})}},53511:(e,t,r)=>{"use strict";r.r(t),r.d(t,{NoteTooltip:()=>u});var i=r(36822),n=r(66774),o=r(95499),s=r(97690);let a=o.Kq,c=o.bL,p=o.l9,d=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...a}=e;return(0,i.jsx)(o.ZL,{children:(0,i.jsx)(o.UC,{ref:t,sideOffset:n,className:(0,s.cn)("z-50 overflow-hidden rounded-md border border-zinc-200 bg-zinc-50 px-3 py-1.5 text-sm text-zinc-950 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50",r),...a})})});d.displayName=o.UC.displayName;var l=r(54401);function u(e){let{children:t,name:r}=e,n=(0,l.K)(r);return n||(n={name:r,type:"prose",children:r}),(0,i.jsx)(a,{delayDuration:100,children:(0,i.jsxs)(c,{children:[(0,i.jsx)(p,{asChild:!0,children:(0,i.jsx)("span",{className:"underline decoration-dotted underline-offset-4 cursor-help",children:t})}),"code"===n.type?(0,i.jsx)(d,{className:(0,s.cn)("min-w-44 max-w-96 whitespace-normal","p-0 [&>div]:!my-0 border-none overflow-auto rounded-none bg-transparent"),children:null==n?void 0:n.children}):"image"===n.type?(0,i.jsx)(d,{className:(0,s.cn)("min-w-44 max-w-96 whitespace-normal","p-0 [&>*]:first:mt-0 [&>*]:last:mb-0 border-none bg-transparent"),children:null==n?void 0:n.children}):(0,i.jsx)(d,{className:(0,s.cn)("min-w-44 max-w-96 whitespace-normal","p-4 prose dark:prose-invert bg-fd-background"),children:(0,i.jsx)("div",{className:"[&>:first-child]:mt-0 [&>:last-child]:mb-0",children:null==n?void 0:n.children})})]})})}},54393:(e,t,r)=>{"use strict";r.d(t,{InlineFold:()=>o});var i=r(36822),n=r(66774);let o=e=>{let{children:t}=e,[r,o]=(0,n.useState)(!0);return r?(0,i.jsx)("button",{onClick:()=>o(!1),"aria-label":"Expand",title:"Click to expand",className:"bg-ch-tabs-background rounded px-1",children:"..."}):(0,i.jsx)(i.Fragment,{children:t})}},54401:(e,t,r)=>{"use strict";r.d(t,{K:()=>a,WithClientNotes:()=>s});var i=r(36822),n=r(66774);let o=n.createContext([]);function s(e){let{children:t,notes:r}=e;return(0,i.jsx)(o.Provider,{value:r,children:t})}function a(e){return n.useContext(o).find(t=>{let{name:r}=t;return r===e})}},56690:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HoverBlock:()=>p,HoverInline:()=>u,HoverLine:()=>l,HoverProvider:()=>a,Hoverable:()=>c});var i=r(36822),n=r(74507),o=r(66774);let s=(0,o.createContext)({hoveredNames:[],addHoveredName:()=>{},removeHoveredName:()=>{}});function a(e){let{children:t}=e,[r,n]=(0,o.useState)([]);return(0,i.jsx)(s.Provider,{value:{hoveredNames:r,addHoveredName:e=>{n(t=>[...t,e])},removeHoveredName:e=>{n(t=>t.filter(t=>t!==e))}},children:t})}function c(e){let{name:t,children:r,className:n,style:a}=e,{addHoveredName:c,removeHoveredName:p,hoveredNames:d}=(0,o.useContext)(s),l=d.length>0&&d[d.length-1]===t;return(0,i.jsx)("span",{className:n,onMouseEnter:()=>c(t),onMouseLeave:()=>p(t),"data-hovered":l,style:a,children:r})}let p=e=>{let{annotation:t,children:r}=e,n=t.query,{hoveredNames:a}=(0,o.useContext)(s),c=a[a.length-1]===n;return(0,i.jsx)("div",{className:c?"bg-sky-500/20":"bg-sky-500/0",style:{transition:"background-color 0.3s ease"},"data-block-hovered":c?"true":void 0,children:r})},d="var(--ch-2)",l=e=>{var t,r;let{annotation:a,...c}=e,{hoveredNames:p}=(0,o.useContext)(s),l=null==(t=c.style)?void 0:t.opacity,u=p.length>0,f=null==a?void 0:a.query,m=f&&p[p.length-1]===f;return(0,i.jsx)(n.F,{merge:c,style:{opacity:m?1:l||(u?.5:1),transition:"opacity 0.3s ease, background-color 0.3s ease",backgroundColor:!m||(null==(r=a.data)?void 0:r.inline)?void 0:"rgb(from ".concat(d," r g b / 0.13)")}})},u=e=>{let{annotation:t,children:r}=e,{hoveredNames:n}=(0,o.useContext)(s),a=n[n.length-1]===t.query;return(0,i.jsx)("span",{className:"rounded px-0.5 py-0 -mx-0.5",style:{transition:"background-color 0.3s ease, box-shadow 0.3s ease",boxShadow:a?"0 0 0 1px rgb(from ".concat(d," r g b / 0.5)"):void 0,backgroundColor:a?"rgb(from ".concat(d," r g b / 0.13)"):void 0},children:r})}},58150:(e,t,r)=>{"use strict";r.d(t,{AccountsRpc:()=>I,AdminRpc:()=>L,CheatcodesRpc:()=>O,NetworkRpc:()=>E,NodeRpc:()=>B,TransactionsRpc:()=>N});var i,n=r(36822),o=r(84098),s=r(38536),a=r(76979);function c(e){var t;return e?null==(t=o.$defs)?void 0:t[e]:void 0}function p(e){var t;return e?null==(t=s.$defs)?void 0:t[e]:void 0}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";return Array.isArray(e)?e.filter(e=>"null"!==e).join(" | "):e||t}let l=null==(i=s.$defs)?void 0:i.SurfnetCheatcodesEndpoints,u=Object.fromEntries(Object.keys((null==l?void 0:l.properties)||{}).map(e=>
1[e,"surfnet_".concat(e)])),f={accounts:"AccountsDataEndpoints",accountsScan:"AccountsScanEndpoints",admin:"AdminEndpoints",bank:"BankDataEndpoints",full:"FullEndpoints",minimal:"MinimalEndpoints",cheatcodes:"SurfnetCheatcodesEndpoints"},m=new Map;for(let[e,t]of Object.entries(f)){let r=p(t);if(null==r?void 0:r.properties)for(let t of Object.keys(r.properties))m.set(t,e)}let g={network:["getBlock","getBlockCommitment","getBlockHeight","getBlockProduction","getBlockTime","getBlocks","getBlocksWithLimit","getEpochInfo","getEpochSchedule","getFirstAvailableBlock","getGenesisHash","getHighestSnapshotSlot","getInflationGovernor","getInflationRate","getInflationReward","getLatestBlockhash","getLeaderSchedule","getMaxRetransmitSlot","getMaxShredInsertSlot","getMinimumBalanceForRentExemption","getRecentPerformanceSamples","getRecentPrioritizationFees","getRent","getSlot","getSlotLeader","getSlotLeaders","getSupply","getTransactionCount","getVersion","isBlockhashValid","minimumLedgerSlot"],node:["getClusterNodes","getHealth","getIdentity","getVoteAccounts"],accounts:["getBalance"],transaction:["getFeeForMessage","getSignatureStatuses","getSignaturesForAddress","getStakeMinimumDelegation","getTransaction","requestAirdrop","sendTransaction","simulateTransaction"]};function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return[];let i=[];if(e.$ref){let i=p(e.$ref.split("/").pop());return i?y(i,t,r):[]}if(e.anyOf){let i=e.anyOf.find(e=>"null"!==e.type);return i?y(i,t,r):[]}if(e.oneOf){let i=e.oneOf.find(e=>"null"!==e.type);return i?y(i,t,r):[]}if("object"===e.type&&e.properties&&Object.entries(e.properties).forEach(e=>{let[r,n]=e,o=n.description||"";if(n.$ref){let e=n.$ref.split("/").pop(),s=p(e);if((null==s?void 0:s.type)==="object"&&s.properties)i.push({name:r,type:"object",description:o,indent:t}),i.push(...y(s,t+1,r));else{let n=d(null==s?void 0:s.type,e||"object");i.push({name:r,type:n,description:o,indent:t})}}else if(n.anyOf||n.oneOf){let e=n.anyOf||n.oneOf||[],s=e.find(e=>"null"!==e.type);if(null==s?void 0:s.$ref){let e=s.$ref.split("/").pop(),n=p(e);(null==n?void 0:n.type)==="object"&&n.properties?(i.push({name:r,type:"object",description:o,indent:t}),i.push(...y(n,t+1,r))):i.push({name:r,type:e||"any",description:o,indent:t})}else if((null==s?void 0:s.type)==="object"&&s.properties)i.push({name:r,type:"object",description:o,indent:t}),i.push(...y(s,t+1,r));else{let n=e.map(e=>e.type).filter(e=>!!e&&"null"!==e).map(e=>d(e,"")).filter(Boolean);i.push({name:r,type:n.join(" | ")||"any",description:o,indent:t})}}else if("object"===n.type&&n.properties)i.push({name:r,type:"object",description:o,indent:t}),i.push(...y(n,t+1,r));else if("array"===n.type&&n.items){var s;let e=Array.isArray(n.items)?void 0:n.items,a=d(null==e?void 0:e.type,"")||(null==e||null==(s=e.$ref)?void 0:s.split("/").pop())||"any";if(i.push({name:r,type:"array<".concat(a,">"),description:o,indent:t}),null==e?void 0:e.$ref){let r=p(e.$ref.split("/").pop());(null==r?void 0:r.type)==="object"&&r.properties&&(i.push({name:"[]",type:"object",description:"Array item",indent:t+1}),i.push(...y(r,t+2,"[]")))}}else{let e=d(n.type,"any");i.push({name:r,type:e,description:o,indent:t})}}),"array"===e.type&&e.items){var n;let r=Array.isArray(e.items)?void 0:e.items,o=d(null==r?void 0:r.type,"")||(null==r||null==(n=r.$ref)?void 0:n.split("/").pop())||"any";if(i.push({name:"result",type:"array<".concat(o,">"),description:e.description||"",indent:t}),null==r?void 0:r.$ref){let e=p(r.$ref.split("/").pop());(null==e?void 0:e.type)==="object"&&e.properties&&(i.push({name:"[]",type:"object",description:"Array item",indent:t+1}),i.push(...y(e,t+2,"[]")))}}if(e.type&&"object"!==e.type&&"array"!==e.type&&!e.properties){let r=d(e.type,"any");i.push({name:"result",type:r,description:e.description||"",indent:t})}return i}function h(e,t,r){var i;let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=e;if(n){let t=u[e];t&&(s=t)}if("object"==typeof r&&r.const){let e=$(s=String(r.const));return{method_name:s,description:r.description||"".concat(s," method"),example_request:JSON.stringify({jsonrpc:"2.0",id:1,method:s,params:[]},null,2),example_response:(0,a.Gl)(e,s),status:"implemented",params:[],resultFields:y(e)}}let p=null==(i=t.$ref)?void 0:i.split("/").pop(),d=p?c(p):t,l=(0,a.hC)(d,e,"",0),f=(null==d?void 0:d.properties)?Object.keys(d.properties).map(e=>{var t;return(0,a.Zj)(null==(t=d.properties)?void 0:t[e],o,e)}):[],m=$(s);return{method_name:s,description:r.description||"".concat(s," method"),example_request:JSON.stringify({jsonrpc:"2.0",id:1,method:s,params:f},null,2),example_response:(0,a.Gl)(m,s),status:"implemented",params:l,resultFields:y(m)}}function b(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=c(e);if(!r||!r.oneOf)return[];let i=[];
1return r.oneOf.forEach(e=>{"string"===e.type&&e.const?i.push(h(String(e.const),{},e,t)):"object"===e.type&&e.properties&&Object.entries(e.properties).forEach(r=>{let[n,o]=r;i.push(h(n,o,e,t))})}),i}function x(e){let t=g[e];return t?Array.from(new Map([...b("endpoints4"),...b("endpoints5"),...b("endpoints6")].filter(e=>t.includes(e.method_name)).map(e=>[e.method_name,e])).values()):[]}function $(e,t){var r,i,n;let o=t||m.get(e);if(!o&&e.startsWith("surfnet_")){let t=Object.keys(u).find(t=>u[t]===e);t&&(o=m.get(t))}if(o&&f[o]){let t=p(f[o]);if(null==t||null==(r=t.properties)?void 0:r[e])return t.properties[e];if(e.startsWith("surfnet_")){let r=e.replace("surfnet_","");if(null==t||null==(i=t.properties)?void 0:i[r])return t.properties[r]}}for(let t of Object.values(f)){let r=p(t);if(null==r||null==(n=r.properties)?void 0:n[e])return r.properties[e]}return{result:{type:["object","array","string","integer","boolean","null"],description:"The result data returned by the RPC method depends on the specific implementation."}}}let S=function(){var e;let t=null==(e=s.$defs)?void 0:e.SurfnetCheatcodesEndpoints;if(!(null==t?void 0:t.properties))return[];let r=[],i=b("endpoints7",!0),n=new Set(i.map(e=>e.method_name.replace("surfnet_","")));return r.push(...i),Object.entries(t.properties).forEach(e=>{var t;let[i,o]=e;if(n.has(i))return;let s=u[i]||"surfnet_".concat(i),c=(null==(t=o.description)?void 0:t.replace("".concat(i," - "),""))||"".concat(i," method");r.push({method_name:s,description:c,example_request:JSON.stringify({jsonrpc:"2.0",id:1,method:s,params:[]},null,2),example_response:(0,a.Gl)(o,i),status:"implemented",params:[],resultFields:y(o)})}),r}(),j=Array.from(new Map([...b("endpoints"),...b("endpoints2"),...x("accounts")].map(e=>[e.method_name,e])).values()),v=b("endpoints3"),R=x("network"),k=x("node"),w={transactions:x("transaction"),accounts:j,cheatcodes:S,node:k,network:R,admin:v};var T=r(66774);function C(e){let{type:t}=e,r=t.replace(" (optional)","").trim();return(0,n.jsx)("code",{className:"text-[11px] text-fd-primary font-medium",children:r})}function q(e){let{endpoint:t}=e,[r,i]=(0,T.useState)("request"),o=t.params.filter(e=>!e.parentName&&!e.isObjectHeader),s=t.params.filter(e=>e.isObjectHeader&&!e.parentName),a={};t.params.forEach(e=>{e.parentName&&(a[e.parentName]||(a[e.parentName]=[]),a[e.parentName].push(e))});let c=[];o.forEach(e=>c.push({...e,indent:0}));let p=(e,t)=>{c.push({...e,indent:t}),(a[e.name]||[]).forEach(e=>{e.isObjectHeader?p(e,t+1):c.push({...e,indent:t+1})})};s.forEach(e=>p(e,0));let d=t.resultFields||[];return(0,n.jsxs)("div",{className:"mb-8 pb-8 border-b border-fd-border last:border-0",children:[(0,n.jsxs)("h3",{id:t.method_name,className:"flex items-center gap-2 text-base font-semibold text-fd-foreground font-mono mb-1 scroll-mt-20",children:["implemented"===t.status?(0,n.jsx)("span",{className:"w-2 h-2 rounded-full bg-green-500 shrink-0",title:"Available"}):(0,n.jsx)("span",{className:"w-2 h-2 rounded-full bg-yellow-500 shrink-0",title:"Coming Soon"}),t.method_name]}),(0,n.jsx)("p",{className:"text-sm text-fd-muted-foreground mb-4",children:t.description}),c.length>0&&(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("div",{className:"text-[11px] font-semibold text-fd-muted-foreground uppercase tracking-wide mb-2",children:"Parameters"}),(0,n.jsxs)("table",{className:"w-full text-sm",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{className:"text-left text-[11px] text-fd-muted-foreground border-b border-fd-border/50",children:[(0,n.jsx)("th",{className:"pb-2 font-medium",children:"Name"}),(0,n.jsx)("th",{className:"pb-2 font-medium",children:"Type"}),(0,n.jsx)("th",{className:"pb-2 font-medium w-full",children:"Description"})]})}),(0,n.jsx)("tbody",{className:"align-top",children:c.map((e,t)=>(0,n.jsxs)("tr",{className:"border-b border-fd-border/30 last:border-0",children:[(0,n.jsx)("td",{className:"py-2 pr-4",children:(0,n.jsxs)("div",{className:"flex items-center gap-1.5",style:{paddingLeft:"".concat(16*e.indent,"px")},children:[e.indent>0&&(0,n.jsx)("span",{className:"text-fd-border text-xs",children:"└"}),(0,n.jsx)("code",{className:"text-fd-foreground font-mono text-[13px]",children:e.name}),e.required&&(0,n.jsx)("span",{className:"text-[9px] text-red-400",children:"*"})]})}),(0,n.jsx)("td",{className:"py-2 pr-4 whitespace-nowrap",children:(0,n.jsx)(C,{type:e.type})}),(0,n.jsx)("td",{className:"py-2 text-fd-muted-foreground text-[13px]",children:e.description})]},t))})]})]}),d.length>0&&(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("div",{className:"text-[11px] font-semibold text-fd-muted-foreground uppercase tracking-wide mb-2",children:"Result"}),(0,n.jsxs)("table",{className:"w-full text-sm",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{className:"text-left text-[11px] text-fd-muted-foreground border-b border-fd-border/50",children:[(0,n.jsx)("th",{className:"pb-2 font-medium",children:"Field"}),(0,n.jsx)("th",{className:"pb-2 font-medium",children:"Type"}),(0,n.jsx)("th",{className:"pb-2 font-medium w-full",children:"Description"})]})}),(0,n.jsx)("tbody",{className:"align-top",children:d.map((e,t)=>(0,n.jsxs)("tr",{className:"border-b border-fd-border/30 last:border-0",children:[(0,n.jsx)("td",{className:"py-2 pr-4",children:(0,n.jsxs)("div",{className:"flex items-center gap-1.5",style:{paddingLeft:"".concat(16*e.indent,"px")},children:[e.indent>0&&(0,n.jsx)("span",{className:"text-fd-border text-xs",children:"└"}),(0,n.jsx)("code",{className:"text-fd-foreground font-mono text-[13px]",children:e.name})]})}),(0,n.jsx)("td",{className:"py-2 pr-4 whitespace-nowrap",children:(0,n.jsx)(C,{type:e.type})}),(0,n.jsx)("td",{className:"py-2 text-fd-muted-foreground text-[13px]",children:e.description})]},t))})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-[11px] font-semibold text-fd-muted-foreground uppercase tracking-wide mb-2",children:"Example"}),(0,n.jsxs)("div",{className:"rounded-lg border border-fd-border overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex bg-fd-muted/50 border-b border-fd-border",children:[(0,n.jsx)("button",{onClick:()=>i("request"),className:"px-4 py-2 text-xs font-medium transition-colors border-b-2 -mb-px ".concat("request"===r?"border-fd-primary text-fd-
1primary bg-fd-background":"border-transparent text-fd-muted-foreground hover:text-fd-foreground"),children:"Request"}),(0,n.jsx)("button",{onClick:()=>i("response"),className:"px-4 py-2 text-xs font-medium transition-colors border-b-2 -mb-px ".concat("response"===r?"border-fd-primary text-fd-primary bg-fd-background":"border-transparent text-fd-muted-foreground hover:text-fd-foreground"),children:"Response"})]}),(0,n.jsx)("pre",{className:"bg-fd-background text-fd-foreground text-[13px] leading-relaxed font-mono p-4 overflow-x-auto",children:(0,n.jsx)("code",{children:"request"===r?t.example_request:t.example_response})})]})]})]})}let A={transactions:"These methods handle the creation, simulation, and inspection of transactions on the blockchain. They are essential for executing state changes, estimating fees, checking transaction outcomes, and monitoring transaction lifecycles.",accounts:"Query account states, balances, token holdings, and program-specific storage data.",cheatcodes:"Powerful testing utilities unique to Surfpool that allow you to directly modify account and token states. These methods are only available on Surfnet.",node:"Monitor node status, health checks, cluster information, and validator details.",network:"Access network-wide information like epoch data, inflation rates, and performance metrics.",admin:"Administrative controls for managing the Surfnet instance, plugins, and system configuration."};function P(e){let{category:t}=e,r=w[t],i=A[t];return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-fd-muted-foreground text-base leading-relaxed mb-10",children:i}),r.map((e,t)=>(0,n.jsx)("div",{children:(0,n.jsx)(q,{endpoint:e})},t))]})}function N(){return(0,n.jsx)(P,{category:"transactions"})}function I(){return(0,n.jsx)(P,{category:"accounts"})}function O(){return(0,n.jsx)(P,{category:"cheatcodes"})}function B(){return(0,n.jsx)(P,{category:"node"})}function E(){return(0,n.jsx)(P,{category:"network"})}function L(){return(0,n.jsx)(P,{category:"admin"})}},59057:(e,t,r)=>{"use strict";r.d(t,{File:()=>f,Files:()=>u,Folder:()=>m});var i=r(36822),n=r(78054),o=r(40108),s=r(92374),a=r(99902),c=r(66774),p=r(97690),d=r(71120);let l=(0,n.F)("flex flex-row items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4");function u(e){let{className:t,...r}=e;return(0,i.jsx)("div",{className:(0,p.cn)("not-prose rounded-md border bg-fd-card p-2",t),...r,children:r.children})}function f(e){let{name:t,icon:r=(0,i.jsx)(o.Z,{}),className:n,...s}=e;return(0,i.jsxs)("div",{className:(0,p.cn)(l({className:n})),...s,children:[r,t]})}function m(e){let{name:t,defaultOpen:r=!1,...n}=e,[o,u]=(0,c.useState)(r);return(0,i.jsxs)(d.Collapsible,{open:o,onOpenChange:u,...n,children:[(0,i.jsxs)(d.CollapsibleTrigger,{className:(0,p.cn)(l({className:"w-full"})),children:[o?(0,i.jsx)(a.B,{}):(0,i.jsx)(s.v,{}),t]}),(0,i.jsx)(d.CollapsibleContent,{children:(0,i.jsx)("div",{className:"ml-2 flex flex-col border-l pl-2",children:n.children})})]})}},67010:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var i=r(66774),n=r(39239);function o(e,t){if(!e)return i.useState(t);let[r,o]=i.useState(t);return i.useLayoutEffect(()=>{if(!e)return;let r=(0,n.KP)("localStorage"),i=(0,n.Ub)(r,e);null!=i&&o(i);let s=i=>{i.key===e&&o((0,n.Ub)(r,e)||t)};return window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[e]),[r,e?t=>{(0,n.Ij)((0,n.KP)("localStorage"),e,t),window.dispatchEvent(new StorageEvent("storage",{key:e}))}:o]}},71120:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Collapsible:()=>n,CollapsibleContent:()=>s,CollapsibleTrigger:()=>o});var i=r(22376);let n=i.bL,o=i.R6,s=i.Ke},73808:(e,t,r)=>{"use strict";r.d(t,{CalloutContent:()=>o});var i=r(36822),n=r(54401);function o(e){let{query:t}=e,r=(0,n.K)(t);if(!r)return(0,i.jsx)("div",{className:"px-2",children:t});let o="code"===r.type?"p-0 [&>div]:!my-0 [&>div]:!border-none overflow-auto rounded-none":"[&>*]:first:mt-0 p-2 prose dark:prose-invert prose-sm";return(0,i.jsx)("div",{className:o,style:{"--ch-16":"transparent"},children:r.children})}},73848:()=>{},76979:(e,t,r)=>{"use strict";r.d(t,{Gl:()=>l,Zj:()=>d,hC:()=>function e(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,d=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";if(!t||"object"!=typeof t)return[];let u=t.properties||{},f=new Set(t.required||[]),m=[];return Object.entries(u).forEach(t=>{let[u,g]=t,y=d||!f.has(u);function h(e,t){var r;if(e&&e.description)return e.description;if(e&&e.$ref){let t=o(e.$ref,i);if(t&&t.description)return t.description}let n=(null==(r=t.split(".").pop())?void 0:r.toLowerCase())||"";return"".concat(n.charAt(0).toUpperCase()+n.slice(1))}if(g.$ref){let t=o(g.$ref,i);if(t&&"object"===t.type&&t.properties){m.push({name:u,type:y?"object (optional)":"object",description:h(g,u)||h(t,u)||"Configuration object",isObjectHeader:!0,parentName:l||void 0,required:!y});let i=e(t,r,n,a+1,y,u);m.push(...i);return}{let e=g.$ref.split("/").pop(),r=s(t);return r?void m.push(...p(r,u,h(g,u)||h(t,u),l,y)):void m.push({name:u,type:c(t,e),description:h(g,u)||h(t,u),isNested:a>0,parentName:l||void 0,required:!y})}}if(g.anyOf){let t=g.anyOf.find(e=>"null"!==e.type&&e.$ref);if(t&&t.$ref){let d=o(t.$ref,i);if(d&&"object"===d.type&&d.properties){m.push({name:u,type:"object",description:h(g,u)||h(d,u)||"Configuration object",isObjectHeader:!0,parentName:l||void 0,required:!1});let t=e(d,r,n,a+1,!0,u);m.push(...t);return}let f=h(g,u)||h(d,u),y=s(d);return y?void m.push(...p(y,u,f,l,!0)):void m.push({name:u,type:c(d,t.$ref.split("/").pop()),description:f,isNested:a>0,parentName:l||void 0,required:!1})}}if("object"===g.type&&g.properties){m.push({name:u,type:"object",description:h(g,u)||"Configuration object",isObjectHeader:!0,parentName:l||void 0,required:!y});let t=e(g,r,n,a+1,y,u);m.push(...t);return}let b="string",x=h(g,u);if(g.type){if(Array.isArray(g.type))b=g.type.filter(e=>"null"!==e).join(" | "),g.type.includes("null")&&(b+=" (optional)");else if(b=g.type,g.format&&(b=g.type),"array"===b&&g.items&&!Array.isArray(g.items)){let e=g.items;if(e.type)b="array[".concat(e.type,"]"),!x&&e.description&&(x=e.description);else if(e.$ref){let t=e.$ref.split("/").pop();b="array[".concat(t,"]");let r=o(e.$ref,i);
1!x&&r&&r.description&&(x=r.description)}else b="array"}}else if(g.oneOf){b="union type";let e=g.oneOf.map(e=>e.type?e.type:e.const?'"'.concat(String(e.const),'"'):e.$ref?e.$ref.split("/").pop():"unknown");e.length>0&&(b=e.join(" | "))}m.push({name:u,type:b,description:x,isNested:a>0,parentName:l||void 0,required:!y})}),m}});var i=r(84098),n=r(38536);function o(e,t){var r,i;let n=e.split("/").pop();return n&&null!=(i=null==(r=t.$defs)?void 0:r[n])?i:null}function s(e){let t=null==e?void 0:e.oneOf;if(!(null==t?void 0:t.length))return null;let r=[];for(let e of t){let t=e.properties;if("object"!==e.type||!t)return null;let i=Object.keys(t);if(1!==i.length)return null;let n=t[i[0]];r.push({name:i[0],schema:n,description:e.description||n.description||""})}return r}function a(e){if(!(null==e?void 0:e.type))return"any";if(!Array.isArray(e.type))return e.type;let t=e.type.filter(e=>"null"!==e).join(" | ");return e.type.includes("null")?"".concat(t," (optional)"):t}function c(e,t){var r;if(!e)return t||"object";if(e.type)return a(e);if(e.enum)return e.enum.map(e=>JSON.stringify(e)).join(" | ");let i=null!=(r=e.oneOf)?r:e.anyOf;return i?i.map(e=>void 0!==e.const?'"'.concat(String(e.const),'"'):e.type?a(e):e.$ref?e.$ref.split("/").pop():"unknown").filter((e,t,r)=>r.indexOf(e)===t).join(" | "):t||"object"}function p(e,t,r,i,n){let o="Provide exactly one of the fields below.";return[{name:t,type:n?"object (optional)":"object",description:r?"".concat(r," ").concat(o):o,isObjectHeader:!0,parentName:i||void 0,required:!n},...e.map(e=>({name:e.name,type:a(e.schema),description:e.description,isNested:!0,parentName:t,required:!1}))]}function d(e,t,r){var i,n;if(!e)return null;if(e.$ref){let n=e.$ref.replace("#/$defs/",""),o=null==(i=t.$defs)?void 0:i[n];return o?d(o,t,n||r):null}if(void 0!==e.const)return e.const;if(e.enum&&Array.isArray(e.enum)&&e.enum.length>0)return e.enum[0];if(e.anyOf){let i=e.anyOf.find(e=>"null"!==e.type);return i?d(i,t,r):null}if(e.oneOf){let i=e.oneOf.find(e=>"null"!==e.type);return i?d(i,t,r):null}if("object"===e.type&&e.properties){let r={};return Object.entries(e.properties).forEach(e=>{let[i,n]=e;r[i]=d(n,t,i)}),r}if("array"===e.type&&e.items)return Array.isArray(e.items)?e.items.map(e=>d(e,t,r)):"accounts"===r||"constants"===r||"instructions"===r||"errors"===r||"events"===r||"types"===r?[]:[d(e.items,t,r)];if(e.type){let[t]=Array.isArray(n=e.type)?[n[0]||"string",n.includes("null")]:[n,!1];switch(t){case"string":if(r){let e=r.toLowerCase();if(e.includes("pubkey")||e.includes("address")||e.includes("account"))return"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri";if(e.includes("signature")||e.includes("sig"))return"5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW";if(e.includes("hash")||e.includes("blockhash"))return"EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N";if(e.includes("encoding"))return"base64";if(e.includes("commitment"))return"finalized";if(e.includes("data"))return"0x3b9aca00";if(e.includes("owner"))return"11111111111111111111111111111111";if("destinationprogramid"===e)return"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";if(e.includes("tokenprogram")||e.includes("programid"))return"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";if("depth"===e)return"instruction";return"<some-".concat(e,">")}return"string";case"integer":if(r){let e=r.toLowerCase();if(e.includes("slot"))return 0x75bcd15;if(e.includes("lamport")||e.includes("balance")||e.includes("amount"))return 1e9;if(e.includes("epoch"))return 100}return 0;case"number":return 0;case"boolean":return!0;case"null":return null;case"array":return[];case"object":return{};default:return e.type}}return void 0!==e.default?e.default:null}function l(e,t){return e?JSON.stringify({jsonrpc:"2.0",id:1,result:d(e,n,t)},null,2):JSON.stringify({error:"Schema not found"},null,2)}},79217:(e,t,r)=>{"use strict";r.d(t,{RunnableLayout:()=>y});var i=r(36822),n=r(66774),o=r(98500),s=r(63376),a=r(97690),c=r(25467);let p={"cookbook/wallets/create-keypair":()=>Promise.all([r.e(5e3),r.e(3980)]).then(r.bind(r,93980))};async function d(e,t){var r,i;let{title:n,language:o}=t,s=p[e];if(!s)return null;let{default:a}=await s();return null!=(i=null!=(r=a[n])?r:a[o])?i:null}function l(e){let{className:t}=e;return(0,i.jsx)("div",{className:(0,a.cn)("flex gap-2 justify-between items-center px-2 py-1 h-9 text-sm border-b-[1px] border-ch-border bg-ch-tabs-background min-h-9 shrink-0 text-ch-tab-active-foreground",t),children:(0,i.jsx)("span",{children:"Console"})})}function u(e){let{running:t,error:r,handleRun:n}=e;return(0,i.jsxs)("div",{className:"flex flex-col gap-2 justify-center items-center py-3 w-full",children:[(0,i.jsx)("span",{className:"md:h-4"}),(0,i.jsx)("button",{onClick:n,className:"w-28 px-3 py-1 relative z-10 rounded bg-[#9945FF] text-white text-sm font-bold cursor-pointer flex justify-center items-center gap-2 ".concat(t?"opacity-80":"hover:bg-[#8838e0]"),disabled:t,children:t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.$,{className:"inline-block w-4 h-4 animate-spin"}),(0,i.jsx)("span",{children:"Running"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.j,{className:"w-4 h-4"}),(0,i.jsx)("span",{children:"Run"})]})}),(0,i.jsx)("span",{className:"px-4 text-center text-sm min-h-4 whitespace-pre-wrap ".concat(t?"opacity-0":"opacity-80"," transition-opacity duration-100 ").concat(r?"text-red-500":""),children:null!=r?r:"Click to execute the code."})]})}
1async function f(e){let{code:t,language:r,title:i,output:n,runner:o}=e;if(o){let e=await d(o,{title:i,language:r});if(e)return e({code:t,language:r,title:i})}return null!=n?n:"This example doesn't have output to show yet."}function m(e){let t=500-(Date.now()-e);return t<=0?Promise.resolve():new Promise(e=>setTimeout(e,t))}function g(e){let{state:t,className:r}=e,{running:n,result:o,error:s,handleRun:c}=t;return(0,i.jsxs)("div",{className:(0,a.cn)("rounded border bg-ch-background border-ch-border",r),children:[(0,i.jsx)(l,{}),o?(0,i.jsx)("pre",{className:"overflow-auto flex-1 p-2 font-mono text-sm text-ch-foreground",children:null==o?void 0:o.output}):(0,i.jsx)(u,{running:n,error:s,handleRun:c})]})}function y(e){let{children:t,className:r,...o}=e,s=function(e){let[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(null),[s,a]=(0,n.useState)(null);return{running:t,result:i,error:s,handleRun:async()=>{r(!0),o(null),a(null);let t=Date.now();try{let r=await f(e);await m(t),o({output:r})}catch(e){await m(t),a(e instanceof Error?e.message:"Could not run example")}finally{r(!1)}}}}(o);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"md:hidden",children:[t,(0,i.jsx)(g,{state:s,className:"mt-2"})]}),(0,i.jsx)("div",{className:"hidden wider md:block",children:(0,i.jsxs)(c.ResizablePanelGroup,{direction:"horizontal",className:(0,a.cn)("overflow-hidden max-h-[700px] min-h-[275px]",r),children:[(0,i.jsx)(c.ResizablePanel,{defaultSize:50,minSize:0,children:(0,i.jsx)("div",{className:"min-w-0 h-full min-h-0",children:t})}),(0,i.jsx)(c.ResizableHandle,{withHandle:!0,className:"w-1 bg-transparent"}),(0,i.jsx)(c.ResizablePanel,{defaultSize:50,minSize:0,children:(0,i.jsx)(g,{state:s,className:"flex overflow-hidden flex-col h-full"})})]})})]})}},84098:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"RpcGroups","oneOf":[{"description":"The accounts scan group, which includes operations related to scanning accounts.","type":"object","properties":{"accountsScan":{"$ref":"#/$defs/endpoints"}},"additionalProperties":false,"required":["accountsScan"]},{"description":"The accounts data group, which includes operations related to fetching account data.","type":"object","properties":{"accountsData":{"$ref":"#/$defs/endpoints2"}},"additionalProperties":false,"required":["accountsData"]},{"description":"The admin group, which includes administrative operations.","type":"object","properties":{"admin":{"$ref":"#/$defs/endpoints3"}},"additionalProperties":false,"required":["admin"]},{"description":"The bank data group, which includes operations related to fetching bank data.","type":"object","properties":{"bankData":{"$ref":"#/$defs/endpoints4"}},"additionalProperties":false,"required":["bankData"]},{"description":"The full group, which includes all other operations.","type":"object","properties":{"full":{"$ref":"#/$defs/endpoints5"}},"additionalProperties":false,"required":["full"]},{"description":"The minimal group, which includes a minimal set of operations.","type":"object","properties":{"minimal":{"$ref":"#/$defs/endpoints6"}},"additionalProperties":false,"required":["minimal"]},{"description":"The surfnet cheatcodes group, which includes operations for testing and simulation.","type":"object","properties":{"surfnetCheatcodes":{"$ref":"#/$defs/endpoints7"}},"additionalProperties":false,"required":["surfnetCheatcodes"]}],"$defs":{"AccountUpdate":{"type":"object","properties":{"data":{"description":"The new account data, as a hex encoded string. This contains the actual data stored in the account.","type":["string","null"]},"executable":{"description":"Whether the account should be executable (true for program accounts, false for data accounts).","type":["boolean","null"]},"lamports":{"description":"The new balance in lamports (1 SOL = 1,000,000,000 lamports).","type":["integer","null"],"format":"uint64","minimum":0},"owner":{"description":"The new owner program ID, as a base-58 encoded string.","type":["string","null"]},"rentEpoch":{"description":"The new rent epoch in which this account will next owe rent.","type":["integer","null"],"format":"uint64","minimum":0}}},"AddAuthorizedVoter":{"type":"object","properties":{"keypairFile":{"description":"Path to the keypair file for the authorized voter.","type":"string"}},"required":["keypairFile"]},"AddAuthorizedVoterFromBytes":{"type":"object","properties":{"keypair":{"description":"Byte array representing the keypair for the authorized voter.","type":"array","items":{"type":"integer","format":"uint8","maximum":255,"minimum":0}}},"required":["keypair"]},"CloneProgramAccount":{"type":"object","properties":{"sourceProgramId":{"description":"The public key of the source program to clone, as a base-58 encoded string.","type":"string"},"destinationProgramId":{"description":"The public key of the destination program, as a base-58 encoded string.","type":"string"}}
1,"required":["sourceProgramId","destinationProgramId"]},"CommitmentConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"}},"required":["commitment"]},"CommitmentLevel":{"description":"An attribute of a slot. It describes how finalized a block is at some point in time. For example, a slot\\nis said to be at the max level immediately after the cluster recognizes the block at that slot as\\nfinalized. When querying the ledger state, use lower levels of commitment to report progress and higher\\nlevels to ensure state changes will not be rolled back.","oneOf":[{"description":"The highest slot of the heaviest fork processed by the node. Ledger state at this slot is\\nnot derived from a confirmed or finalized block, but if multiple forks are present, is from\\nthe fork the validator believes is most likely to finalize.","type":"string","const":"processed"},{"description":"The highest slot that has been voted on by supermajority of the cluster, ie. is confirmed.\\nConfirmation incorporates votes from gossip and replay. It does not count votes on\\ndescendants of a block, only direct votes on that block, and upholds \\"optimistic\\nconfirmation\\" guarantees in release 1.3 and onwards.","type":"string","const":"confirmed"},{"description":"The highest slot having reached max vote lockout, as recognized by a supermajority of the\\ncluster.","type":"string","const":"finalized"}]},"GetAccountInfo":{"type":"object","properties":{"pubkey":{"description":"The public key of the account to query, as a base-58 encoded string.","type":"string"},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcAccountInfoConfig"},{"type":"null"}]}},"required":["pubkey"]},"GetBalance":{"type":"object","properties":{"pubkey":{"description":"The public key of the account to query, as a base-58 encoded string.","type":"string"},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}},"required":["pubkey"]},"GetBlock":{"type":"object","properties":{"slot":{"description":"The slot to query for the block.","type":"integer","format":"uint64","minimum":0},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcBlockConfig"},{"type":"null"}]}},"required":["slot"]},"GetBlockCommitment":{"type":"object","properties":{"block":{"description":"The slot to query for block commitment.","type":"integer","format":"uint64","minimum":0}},"required":["block"]},"GetBlockHeight":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}}},"GetBlockProduction":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcBlockProductionConfig"},{"type":"null"}]}}},"GetBlockTime":{"type":"object","properties":{"slot":{"description":"The slot to query for the block time.","type":"integer","format":"uint64","minimum":0}},"required":["slot"]},"GetBlocks":{"type":"object","properties":{"startSlot":{"description":"The starting slot to query for blocks.","type":"integer","format":"uint64","minimum":0},"wrapper":{"description":"Wrapper for end slot or context configuration.","anyOf":[{"$ref":"#/$defs/RpcBlocksConfigWrapper"},{"type":"null"}]},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}},"required":["startSlot"]},"GetBlocksWithLimit":{"type":"object","properties":{"startSlot":{"description":"The starting slot to query for blocks.","type":"integer","format":"uint64","minimum":0},"limit":{"description":"The maximum number of blocks to return.","type":"integer","format":"uint","minimum":0},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}},"required":["startSlot","limit"]},"GetEpochInfo":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}}},"GetFeeForMessage":{"type":"object","properties":{"message":{"description":"The message to calculate the fee for, as a base-64 encoded string.","type":"string"},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}},"required":["message"]},"GetIdentity":{"type":"object","properties":{},"required":[]},"GetActiveIdl":{"type":"object","properties":{"programId":{"description":"The public key of the program whose IDL is being requested, as a base-58 encoded string. This identifies which program\'s IDL to retrieve.","type":"string"},"slot":{"description":"The slot at which to query the IDL. If omitted, the latest slot will be used. This determines which version of the IDL to return.","type":["integer","null"],"format":"uint64","minimum":0}},"required":["programId"]},"GetInflationGovernor":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in t
1ime. Options are \'processed\', \'confirmed\', or \'finalized\'.","anyOf":[{"$ref":"#/$defs/CommitmentConfig"},{"type":"null"}]}}},"GetInflationReward":{"type":"object","properties":{"addresses":{"description":"An array of public keys to query, as base-58 encoded strings.","type":"array","items":{"type":"string"}},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcEpochConfig"},{"type":"null"}]}},"required":["addresses"]},"GetLargestAccounts":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcLargestAccountsConfig"},{"type":"null"}]}}},"GetLatestBlockhash":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}}},"GetLeaderSchedule":{"type":"object","properties":{"options":{"description":"Wrapper for slot or configuration.","anyOf":[{"$ref":"#/$defs/RpcLeaderScheduleConfigWrapper"},{"type":"null"}]},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcLeaderScheduleConfig"},{"type":"null"}]}}},"GetLocalSignatures":{"type":"object","properties":{"limit":{"description":"The maximum number of signatures to return. Defaults to 50 if not specified. Returns the most recent signatures first.","type":["integer","null"],"format":"uint64","minimum":0}}},"GetMinimumBalanceForRentExemption":{"type":"object","properties":{"dataLen":{"description":"The account data length in bytes.","type":"integer","format":"uint","minimum":0},"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'.","anyOf":[{"$ref":"#/$defs/CommitmentConfig"},{"type":"null"}]}},"required":["dataLen"]},"GetMultipleAccounts":{"type":"object","properties":{"pubkeys":{"description":"An array of public keys to query, as base-58 encoded strings.","type":"array","items":{"type":"string"}},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcAccountInfoConfig"},{"type":"null"}]}},"required":["pubkeys"]},"GetProfileResultsByTag":{"type":"object","properties":{"tag":{"description":"The tag to retrieve profiling results for. Returns all transaction profiles that were tagged with this identifier.","type":"string"},"config":{"description":"Configuration for the profile result, including encoding format and profiling depth.","anyOf":[{"$ref":"#/$defs/RpcProfileResultConfig"},{"type":"null"}]}},"required":["tag"]},"GetProgramAccounts":{"type":"object","properties":{"programId":{"description":"The public key of the program, as a base-58 encoded string.","type":"string"},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcProgramAccountsConfig"},{"type":"null"}]}},"required":["programId"]},"GetRecentPerformanceSamples":{"type":"object","properties":{"limit":{"description":"The maximum number of samples to return.","type":["integer","null"],"format":"uint","minimum":0}}},"GetRecentPrioritizationFees":{"type":"object","properties":{"pubkeys":{"description":"An array of account public keys to query for prioritization fees, as base-58 encoded strings.","type":["array","null"],"items":{"type":"string"}}}},"GetSecondaryIndexKeySize":{"type":"object","properties":{"pubkeyStr":{"description":"The public key of the account to get the secondary index key size for, as a base-58 encoded string.","type":"string"}},"required":["pubkeyStr"]},"GetSignatureStatuses":{"type":"object","properties":{"signatures":{"description":"An array of transaction signatures to query, as base-58 encoded strings.","type":"array","items":{"type":"string"}},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcSignatureStatusConfig"},{"type":"null"}]}},"required":["signatures"]},"GetSignaturesForAddress":{"type":"object","properties":{"address":{"description":"The address to query for transaction signatures, as a base-58 encoded string.","type":"string"},"before":{"description":"Start searching backwards from this transaction signature.","type":["string","null"]},"limit":{"description":"The maximum number of signatures to return.","type":["integer","null"],"format":"uint","minimum":0},"until":{"description":"Search until this transaction signature.","type":["string","null"]}},"required":["address"]},"GetSlot":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}}},"GetSlotLeader":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}}},"GetSlotLeaders":{"type":"object","properties":{"startSlot":{"description":"The starting slot to query for leaders.","type":"integer","format":"uint64","minimum":0},"limit":{"description":"The maximum number of leaders to return.","type":"integer","format":"uint64","minimum":0}},"required":["startSlot","limit"]},"GetStakeMinimumDelegation":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}}},"GetSupply":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcSupplyConfig"},{"type":"null"}]}}},"GetTokenAccountBalance":{"type":"object","properties":{"pubkey":{"de
1scription":"The public key of the token account to query, as a base-58 encoded string.","type":"string"},"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'.","anyOf":[{"$ref":"#/$defs/CommitmentConfig"},{"type":"null"}]}},"required":["pubkey"]},"GetTokenAccountsByDelegate":{"type":"object","properties":{"delegate":{"description":"The public key of the delegate, as a base-58 encoded string.","type":"string"},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcAccountInfoConfig"},{"type":"null"}]}},"oneOf":[{"description":"Filter by mint address.","type":"object","properties":{"mint":{"type":"string"}},"required":["mint"]},{"description":"Filter by program ID.","type":"object","properties":{"programId":{"type":"string"}},"required":["programId"]}],"required":["delegate"]},"GetTokenAccountsByOwner":{"type":"object","properties":{"owner":{"description":"The public key of the account owner, as a base-58 encoded string.","type":"string"},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcAccountInfoConfig"},{"type":"null"}]}},"oneOf":[{"description":"Filter by mint address.","type":"object","properties":{"mint":{"type":"string"}},"required":["mint"]},{"description":"Filter by program ID.","type":"object","properties":{"programId":{"type":"string"}},"required":["programId"]}],"required":["owner"]},"GetTokenLargestAccounts":{"type":"object","properties":{"mint":{"description":"The public key of the token mint, as a base-58 encoded string.","type":"string"},"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'.","anyOf":[{"$ref":"#/$defs/CommitmentConfig"},{"type":"null"}]}},"required":["mint"]},"GetTokenSupply":{"type":"object","properties":{"mint":{"description":"The public key of the token mint, as a base-58 encoded string.","type":"string"},"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'.","anyOf":[{"$ref":"#/$defs/CommitmentConfig"},{"type":"null"}]}},"required":["mint"]},"GetTransaction":{"type":"object","properties":{"signature":{"description":"The transaction signature to query, as a base-58 encoded string.","type":"string"},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcTransactionConfig"},{"type":"null"}]}},"required":["signature"]},"GetTransactionCount":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}}},"GetTransactionProfile":{"type":"object","properties":{"signatureOrUuid":{"description":"The transaction signature (as a base-58 string) or a UUID (as a string) for which to retrieve the profile. This identifies the specific transaction to analyze.","$ref":"#/$defs/UuidOrSignature"},"config":{"description":"Configuration for the profile result, including encoding format and profiling depth.","anyOf":[{"$ref":"#/$defs/RpcProfileResultConfig"},{"type":"null"}]}},"required":["signatureOrUuid"]},"GetVoteAccounts":{"type":"object","properties":{"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcGetVoteAccountsConfig"},{"type":"null"}]}}},"Idl":{"type":"object","properties":{"accounts":{"description":"The IDL accounts array defining all account types that the program can create or interact with.","type":"array","items":true},"address":{"description":"The program address that this IDL describes, as a base-58 encoded string.","type":"string"},"constants":{"description":"The IDL constants array defining constant values used by the program.","type":"array","items":true},"errors":{"description":"The IDL errors array defining custom error types that the program can return.","type":"array","items":true},"events":{"description":"The IDL events array defining events that the program can emit.","type":"array","items":true},"instructions":{"description":"The IDL instructions array defining all available program instructions and their parameters.","type":"array","items":true},"metadata":{"description":"The IDL metadata containing program name, version, and description information."},"state":{"description":"The IDL state object defining the program\'s state account structure (if applicable)."}
1,"types":{"description":"The IDL types array defining custom data types used by the program.","type":"array","items":true}},"required":["address","metadata","instructions","accounts","types","events","errors","constants"]},"IsBlockhashValid":{"type":"object","properties":{"blockhash":{"description":"The blockhash to check, as a base-58 encoded string.","type":"string"},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcContextConfig"},{"type":"null"}]}},"required":["blockhash"]},"LoadPlugin":{"type":"object","properties":{"configFile":{"description":"The path to the configuration file for the new plugin.","type":"string"}},"required":["configFile"]},"Memcmp":{"type":"object","properties":{"offset":{"description":"Data offset to begin match","type":"integer","format":"uint","minimum":0}},"oneOf":[{"description":"Base-58 encoded bytes.","type":"object","properties":{"bytes":{"type":"string"},"encoding":{"type":"string","const":"base58"}},"required":["encoding","bytes"]},{"description":"Base-64 encoded bytes.","type":"object","properties":{"bytes":{"type":"string"},"encoding":{"type":"string","const":"base64"}},"required":["encoding","bytes"]},{"description":"Raw byte array.","type":"object","properties":{"bytes":{"type":"array","items":{"type":"integer","format":"uint8","maximum":255,"minimum":0}},"encoding":{"type":"string","const":"bytes"}},"required":["encoding","bytes"]}],"required":["offset"]},"PauseClock":{"type":"object"},"ProfileTransaction":{"type":"object","properties":{"transactionData":{"description":"The transaction data to profile, as a base-64 encoded string. This should be a serialized VersionedTransaction.","type":"string"},"tag":{"description":"An optional tag to identify the profiling results. Useful for grouping related transaction profiles.","type":["string","null"]},"config":{"description":"Configuration for the profile result, including encoding format and profiling depth.","anyOf":[{"$ref":"#/$defs/RpcProfileResultConfig"},{"type":"null"}]}},"required":["transactionData"]},"RegisterIdl":{"type":"object","properties":{"idl":{"description":"The full IDL object to be registered in memory. The `address` field should match the program\'s public key. This enables account data parsing for the program.","$ref":"#/$defs/Idl"},"slot":{"description":"The slot at which to register the IDL. If omitted, uses the latest slot. This determines when the IDL becomes active for account parsing.","type":["integer","null"],"format":"uint64","minimum":0}},"required":["idl"]},"ReloadPlugin":{"type":"object","properties":{"name":{"description":"The name of the plugin to reload.","type":"string"},"configFile":{"description":"The path to the new configuration file for the plugin.","type":"string"}},"required":["name","configFile"]},"RepairShredFromPeer":{"type":"object","properties":{"pubkey":{"description":"The public key of the peer to repair from, as a base-58 encoded string.","type":["string","null"]},"slot":{"description":"The slot of the shred to repair.","type":"integer","format":"uint64","minimum":0},"shredIndex":{"description":"The index of the shred to repair.","type":"integer","format":"uint64","minimum":0}},"required":["slot","shredIndex"]},"RequestAirdrop":{"type":"object","properties":{"pubkey":{"description":"The public key of the account to receive the airdrop, as a base-58 encoded string.","type":"string"},"lamports":{"description":"The amount of lamports to airdrop.","type":"integer","format":"uint64","minimum":0},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcRequestAirdropConfig"},{"type":"null"}]}},"required":["pubkey","lamports"]},"ResumeClock":{"type":"object"},"ResetAccount":{"type":"object","properties":{"pubkey":{"description":"The base-58 encoded public key of the account to reset.","type":"string"},"config":{"description":"Configuration for the reset operation.","anyOf":[{"$ref":"#/$defs/ResetAccountConfig"},{"type":"null"}]}},"required":["pubkey"]},"ResetAccountConfig":{"type":"object","properties":{"includeOwnedAccounts":{"description":"If true, also resets accounts owned by the specified account.","type":["boolean","null"]}}},"ExportSnapshot":{"type":"object","properties":{"config":{"description":"Configuration for the export operation.","anyOf":[{"$ref":"#/$defs/ExportSnapshotConfig"},{"type":"null"}]}}},"ExportSnapshotConfig":{"type":"object","properties":{"includeParsedAccounts":{"description":"If true, includes parsed account data in the snapshot.","type":["boolean","null"]},"filter":{"description":"Filter configuration to limit which accounts are included.","anyOf":[{"$ref":"#/$defs/ExportSnapshotFilter"},{"type":"null"}]},"scope":{"description":"Scope to limit the accounts included. Options are \'network\' (all accounts) or \'preTransaction\' (accounts touched by a transaction).","$ref":"#/$defs/ExportSnapshotScope"}}},"ExportSnapshotFilter":{"type":"object","properties":{"includeProgramAccounts":{"description":"Whether to include program accounts in the snapshot.","type":["boolean","null"]},"includeAccounts":{"description":"List of specific account public keys to include.","type":["array","null"],"items":{"type":"string"}},"excludeAccounts":{"description":"List of specific account public keys to exclude.","type":["array","null"],"items":{"type":"string"}}}},"ExportSnapshotScope":{"oneOf":[{"description":"Includes all accounts in the network.","type":"string","const":"network"},{"description":"Only includes accounts touched by the given transaction.","type":"object","properties":{"preTransaction":{"description":"The transaction signature to scope the export to.","type":"string"}},"required":["preTransaction"]}]}
1,"StreamAccount":{"type":"object","properties":{"pubkey":{"description":"The base-58 encoded public key of the account to stream.","type":"string"},"config":{"description":"Configuration for the stream operation.","anyOf":[{"$ref":"#/$defs/StreamAccountConfig"},{"type":"null"}]}},"required":["pubkey"]},"StreamAccountConfig":{"type":"object","properties":{"includeOwnedAccounts":{"description":"If true, also streams accounts owned by the specified account.","type":["boolean","null"]}}},"StreamAccountsEntry":{"type":"object","properties":{"pubkey":{"description":"The base-58 encoded public key of the account to stream.","type":"string"},"includeOwnedAccounts":{"description":"If true, also streams accounts owned by the specified account.","type":["boolean","null"]}},"required":["pubkey"]},"StreamAccounts":{"type":"object","properties":{"accounts":{"description":"List of accounts to register for streaming. Each entry specifies a pubkey and an optional flag to also stream accounts it owns.","type":"array","items":{"$ref":"#/$defs/StreamAccountsEntry"}}},"required":["accounts"]},"OfflineAccount":{"type":"object","properties":{"pubkey":{"description":"The base-58 encoded public key of the account or program to mark offline.","type":"string"},"config":{"description":"Configuration for the offline operation.","anyOf":[{"$ref":"#/$defs/OfflineAccountConfig"},{"type":"null"}]}},"required":["pubkey"]},"OfflineAccountConfig":{"type":"object","properties":{"includeOwnedAccounts":{"description":"If true, also marks accounts owned by the specified account as offline.","type":["boolean","null"]}}},"CheatcodeFilter":{"description":"Either the string literal \\"all\\" to target every cheatcode, or an explicit list of cheatcode method names (e.g. [\\"surfnet_setAccount\\", \\"surfnet_timeTravel\\"]).","oneOf":[{"description":"Target every registered cheatcode.","type":"string","const":"all"},{"description":"Explicit list of cheatcode method names (full `surfnet_*` form).","type":"array","items":{"type":"string"}}]},"CheatcodeControlConfig":{"type":"object","properties":{"lockout":{"description":"If true, the disable operation is permitted to disable `surfnet_enableCheatcode` and `surfnet_disableCheatcode` themselves, locking the cheatcode surface for the rest of the session.","type":["boolean","null"]}}},"EnableCheatcode":{"type":"object","properties":{"cheatcodesFilter":{"description":"Which cheatcodes to enable: either the string \\"all\\" or an explicit list of method names.","$ref":"#/$defs/CheatcodeFilter"}},"required":["cheatcodesFilter"]},"DisableCheatcode":{"type":"object","properties":{"cheatcodesFilter":{"description":"Which cheatcodes to disable: either the string \\"all\\" or an explicit list of method names.","$ref":"#/$defs/CheatcodeFilter"},"config":{"description":"Optional control config. When `lockout` is true, `surfnet_enableCheatcode` and `surfnet_disableCheatcode` may themselves be disabled.","anyOf":[{"$ref":"#/$defs/CheatcodeControlConfig"},{"type":"null"}]}},"required":["cheatcodesFilter"]},"WriteProgram":{"type":"object","properties":{"programId":{"description":"The public key of the program account, as a base-58 encoded string.","type":"string"},"data":{"description":"Hex-encoded program data chunk to write.","type":"string"},"offset":{"description":"The byte offset at which to write this data chunk.","type":"integer","minimum":0},"authority":{"description":"The base-58 encoded public key of the authority allowed to write to the program. Defaults to the system program if omitted.","type":["string","null"]}},"required":["programId","data","offset"]},"RegisterScenario":{"type":"object","properties":{"scenario":{"description":"The scenario object containing overrides.","$ref":"#/$defs/Scenario"},"slot":{"description":"The base slot from which relative slot offsets are calculated. If omitted, uses the current slot.","type":["integer","null"],"format":"uint64","minimum":0}},"required":["scenario"]},"Scenario":{"type":"object","properties":{"id":{"description":"Unique identifier for the scenario.","type":"string"},"name":{"description":"Human-readable name.","type":"string"},"description":{"description":"Description of this scenario.","type":"string"}
1,"overrides":{"description":"List of override instances in this scenario.","type":"array","items":{"$ref":"#/$defs/OverrideInstance"}},"tags":{"description":"Tags for categorization.","type":"array","items":{"type":"string"}}},"required":["id","name","description","overrides","tags"]},"OverrideInstance":{"type":"object","properties":{"id":{"description":"Unique identifier for this override instance.","type":"string"},"templateId":{"description":"Reference to the override template.","type":"string"},"values":{"description":"HashMap of field paths to override values.","type":"object","additionalProperties":true},"scenarioRelativeSlot":{"description":"The relative slot offset (from base slot) when this override should be applied.","type":"integer","minimum":0},"label":{"description":"Optional label for this override.","type":["string","null"]},"enabled":{"description":"Whether this override is active.","type":"boolean"},"fetchBeforeUse":{"description":"If true, fetch fresh account data just before transaction execution.","type":"boolean"},"account":{"description":"Account address (either pubkey or PDA).","$ref":"#/$defs/AccountAddress"}},"required":["id","templateId","values","scenarioRelativeSlot","enabled","fetchBeforeUse","account"]},"AccountAddress":{"oneOf":[{"type":"object","properties":{"pubkey":{"description":"The base-58 encoded public key of the account.","type":"string"}},"required":["pubkey"]},{"type":"object","properties":{"pda":{"description":"Program Derived Address configuration.","$ref":"#/$defs/PdaConfig"}},"required":["pda"]}]},"PdaConfig":{"type":"object","properties":{"programId":{"description":"The program ID for the PDA.","type":"string"},"seeds":{"description":"The seeds used to derive the PDA.","type":"array","items":{}}},"required":["programId","seeds"]},"RpcAccountInfoConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"},"dataSlice":{"description":"The data slice configuration.","anyOf":[{"$ref":"#/$defs/UiDataSliceConfig"},{"type":"null"}]},"encoding":{"description":"The encoding for the account data.","anyOf":[{"$ref":"#/$defs/UiAccountEncoding"},{"type":"null"}]},"minContextSlot":{"description":"The minimum context slot for the account info.","type":["integer","null"],"format":"uint64","minimum":0}}},"RpcBlockConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'.","anyOf":[{"$ref":"#/$defs/CommitmentConfig"},{"type":"null"}]},"encoding":{"description":"Encoding for transaction data.","anyOf":[{"$ref":"#/$defs/UiTransactionEncoding"},{"type":"null"}]},"maxSupportedTransactionVersion":{"description":"The maximum transaction version to support.","type":["integer","null"],"format":"uint8","maximum":255,"minimum":0},"rewards":{"description":"Whether to return rewards.","type":["boolean","null"]},"transactionDetails":{"description":"Level of transaction detail to return.","anyOf":[{"$ref":"#/$defs/TransactionDetails"},{"type":"null"}]}}},"RpcBlockProductionConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'.","anyOf":[{"$ref":"#/$defs/CommitmentConfig"},{"type":"null"}]},"identity":{"description":"Filter by validator identity, as a base-58 encoded string.","type":["string","null"]},"range":{"description":"Slot range to query.","anyOf":[{"$ref":"#/$defs/RpcBlockProductionConfigRange"},{"type":"null"}]}}},"RpcBlockProductionConfigRange":{"type":"object","properties":{"firstSlot":{"description":"The first slot to include in the range.","type":"integer","format":"uint64","minimum":0},"lastSlot":{"description":"The last slot to include in the range.","type":["integer","null"],"format":"uint64","minimum":0}},"required":["firstSlot"]},"RpcBlocksConfigWrapper":{"anyOf":[{"description":"Specify only the end slot.","type":["integer","null"],"format":"uint64","minimum":0},{"description":"Specify only the configuration.","$ref":"#/$defs/RpcContextConfig"}]},"RpcContextConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in t
1ime. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"},"minContextSlot":{"description":"The minimum context slot for the context.","type":["integer","null"],"format":"uint64","minimum":0}}},"RpcEpochConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"},"epoch":{"description":"The epoch number to query.","type":["integer","null"],"format":"uint64","minimum":0},"minContextSlot":{"description":"The minimum context slot for the epoch.","type":["integer","null"],"format":"uint64","minimum":0}}},"RpcFilterType":{"oneOf":[{"description":"Filter by program ID","type":"object","properties":{"programId":{"type":"string"}},"additionalProperties":false,"required":["programId"]},{"description":"Filter by data size","type":"object","properties":{"dataSize":{"type":"integer","format":"uint64","minimum":0}},"additionalProperties":false,"required":["dataSize"]},{"description":"Filter by memory comparison","type":"object","properties":{"memcmp":{"$ref":"#/$defs/Memcmp"}},"additionalProperties":false,"required":["memcmp"]},{"description":"Filter by token account state","type":"string","const":"tokenAccountState"}]},"RpcGetVoteAccountsConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'.","anyOf":[{"$ref":"#/$defs/CommitmentConfig"},{"type":"null"}]},"delinquentSlotDistance":{"description":"The distance in slots to consider a vote account delinquent.","type":["integer","null"],"format":"uint64","minimum":0},"keepUnstakedDelinquents":{"description":"Whether to keep unstaked delinquent vote accounts.","type":"boolean"},"votePubkey":{"description":"Filter by vote account public key.","type":["string","null"]}}},"RpcLargestAccountsConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"},"filter":{"description":"The filter to apply to the largest accounts.","anyOf":[{"$ref":"#/$defs/RpcLargestAccountsFilter"},{"type":"null"}]}}},"RpcLargestAccountsFilter":{"oneOf":[{"description":"Filter for circulating accounts.","type":"string","const":"circulating"},{"description":"Filter for non-circulating accounts.","type":"string","const":"nonCirculating"}]},"RpcLeaderScheduleConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'.","anyOf":[{"$ref":"#/$defs/CommitmentConfig"},{"type":"null"}]},"identity":{"description":"Filter by validator identity.","type":["string","null"]}}},"RpcLeaderScheduleConfigWrapper":{"anyOf":[{"description":"Specify only the slot.","type":["integer","null"],"format":"uint64","minimum":0},{"description":"Specify only the configuration.","$ref":"#/$defs/RpcLeaderScheduleConfig"}]},"RpcProfileResultConfig":{"type":"object","properties":{"depth":{"description":"The depth of profiling - \'transaction\' for overall transaction profile, \'instruction\' for per-instruction breakdown.","type":["string","null"]},"encoding":{"description":"The encoding format for returned account data (e.g., \'base64\', \'base58\', \'jsonParsed\').","type":["string","null"]}}},"RpcProgramAccountsConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"},"dataSlice":{"description":"The data slice configuration.","anyOf":[{"$ref":"#/$defs/UiDataSliceConfig"},{"type":"null"}]},"encoding":{"description":"The encoding for the account data.","anyOf":[{"$ref":"#/$defs/UiAccountEncoding"},{"type":"null"}]}
1,"filters":{"description":"Filters to apply to the program accounts. Each filter is a base58-encoded string representing an address or a specific filter type.","type":["array","null"],"items":{"$ref":"#/$defs/RpcFilterType"}},"minContextSlot":{"description":"The minimum context slot for the account info.","type":["integer","null"],"format":"uint64","minimum":0},"sortResults":{"description":"Whether to sort the results.","type":["boolean","null"]},"withContext":{"description":"Whether to include the context in the response.","type":["boolean","null"]}}},"RpcRequestAirdropConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"}}},"RpcSendTransactionConfig":{"type":"object","properties":{"encoding":{"description":"The encoding for the transaction.","anyOf":[{"$ref":"#/$defs/UiTransactionEncoding"},{"type":"null"}]},"maxRetries":{"description":"The maximum number of retries for the transaction.","type":["integer","null"],"format":"uint","minimum":0},"minContextSlot":{"description":"The minimum context slot for the transaction.","type":["integer","null"],"format":"uint64","minimum":0},"preflightCommitment":{"description":"The commitment level for the preflight check.","anyOf":[{"$ref":"#/$defs/CommitmentLevel"},{"type":"null"}]},"skipPreflight":{"description":"Whether to skip the preflight check.","type":"boolean"},"skipSigVerify":{"description":"Whether to skip signature verification for the transaction.","type":"boolean"}},"required":["skipPreflight"]},"RpcSignatureStatusConfig":{"type":"object","properties":{"searchTransactionHistory":{"description":"Whether to search the transaction history.","type":"boolean"}},"required":["searchTransactionHistory"]},"RpcSimulateTransactionAccountsConfig":{"type":"object","properties":{"addresses":{"description":"An array of account addresses to return, as base-58 encoded strings.","type":"array","items":{"type":"string"}},"encoding":{"description":"Encoding for the account data.","anyOf":[{"$ref":"#/$defs/UiAccountEncoding"},{"type":"null"}]}},"required":["addresses"]},"RpcSimulateTransactionConfig":{"type":"object","properties":{"accounts":{"description":"Accounts to return in the simulation result.","anyOf":[{"$ref":"#/$defs/RpcSimulateTransactionAccountsConfig"},{"type":"null"}]},"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"},"encoding":{"description":"Encoding for the transaction data.","anyOf":[{"$ref":"#/$defs/UiTransactionEncoding"},{"type":"null"}]},"innerInstructions":{"description":"Whether to include inner instructions in the simulation result.","type":"boolean"},"minContextSlot":{"type":["integer","null"],"format":"uint64","minimum":0},"replaceRecentBlockhash":{"description":"Whether to replace the recent blockhash with a new one.","type":"boolean"},"sigVerify":{"description":"Whether to verify transaction signatures.","type":"boolean"}},"required":["sigVerify"]},"RpcSupplyConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'","$ref":"#/$defs/CommitmentLevel"},"excludeNonCirculatingAccountsList":{"description":"Whether to exclude non-circulating accounts.","type":"boolean"}},"required":["excludeNonCirculatingAccountsList"]},"RpcTransactionConfig":{"type":"object","properties":{"commitment":{"description":"The commitment describes how finalized a block is at that point in time. Options are \'processed\', \'confirmed\', or \'finalized\'.","anyOf":[{"$ref":"#/$defs/CommitmentConfig"},{"type":"null"}]},"maxSupportedTransactionVersion":{"description":"The maximum transaction version to support.","type":["integer","null"],"format":"uint8","maximum":255,"minimum":0}}},"SendTransaction":{"type":"object","properties":{"transaction":{"description":"The signed transaction, as a base-64 encoded string.","type":"string"},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcSendTransactionConfig"},{"type":"null"}]}},"required":["transaction"]}
1,"SetAccount":{"type":"object","properties":{"pubkey":{"description":"The public key of the account to update, as a base-58 encoded string. This identifies which account will be modified.","type":"string"},"update":{"description":"The account data to update. Contains the new values for lamports, owner, executable status, rent epoch, and data.","$ref":"#/$defs/AccountUpdate"}},"required":["pubkey","update"]},"SetIdentity":{"type":"object","properties":{"keypairFile":{"description":"Path to the keypair file to be used as the node\'s identity.","type":"string"},"requireTower":{"description":"Boolean indicating if a tower is required for this identity.","type":"boolean"}},"required":["keypairFile","requireTower"]},"SetIdentityFromBytes":{"type":"object","properties":{"identityKeypair":{"description":"Byte array representing the identity keypair.","type":"array","items":{"type":"integer","format":"uint8","maximum":255,"minimum":0}},"requireTower":{"description":"Boolean indicating if a tower is required for this identity.","type":"boolean"}},"required":["identityKeypair","requireTower"]},"SetLogFilter":{"type":"object","properties":{"filter":{"description":"The log filter string to apply.","type":"string"}},"required":["filter"]},"SetProgramAuthority":{"type":"object","properties":{"programId":{"description":"The public key of the program, as a base-58 encoded string. This is the program whose upgrade authority will be modified.","type":"string"},"newAuthority":{"description":"The public key of the new authority, as a base-58 encoded string. If omitted, the program will have no upgrade authority (immutable).","type":["string","null"]}},"required":["programId"]},"SetPublicTpuAddress":{"type":"object","properties":{"publicTpuAddr":{"description":"The public TPU address as a string.","type":"string"}},"required":["publicTpuAddr"]},"SetPublicTpuForwardsAddress":{"type":"object","properties":{"publicTpuForwardsAddr":{"description":"The public TPU forwards address as a string.","type":"string"}},"required":["publicTpuForwardsAddr"]},"SetRepairWhitelist":{"type":"object","properties":{"whitelist":{"description":"A list of public keys (base-58 encoded strings) to set as the repair whitelist.","type":"array","items":{"type":"string"}}},"required":["whitelist"]},"SetSomeAccount":{"oneOf":[{"description":"Specifies an account, as a base-58 encoded string. Use this to set a specific account as the delegate or authority.","type":"string","additionalProperties":false,"required":["account"]},{"description":"Specifies no account. Use this to remove a delegate or authority (set to None).","type":"string","const":"noAccount"}]},"SetStakedNodesOverrides":{"type":"object","properties":{"path":{"description":"Path to the file containing staked nodes overrides.","type":"string"}},"required":["path"]},"SetSupply":{"type":"object","properties":{"update":{"description":"The supply data to update. Contains new values for total, circulating, and non-circulating SOL amounts.","$ref":"#/$defs/SupplyUpdate"}},"required":["update"]},"SetTokenAccount":{"type":"object","properties":{"owner":{"description":"The public key of the token account owner, as a base-58 encoded string. This is the wallet that owns the token account.","type":"string"},"mint":{"description":"The public key of the token mint, as a base-58 encoded string. This identifies the specific token type (e.g., USDC, SOL).","type":"string"},"update":{"description":"The token account data to update. Contains new values for balance, delegate, state, and authorities.","$ref":"#/$defs/TokenAccountUpdate"},"tokenProgram":{"description":"The token program ID, as a base-58 encoded string. Defaults to SPL Token program if not specified.","type":["string","null"]}},"required":["owner","mint","update"]},"SimulateTransaction":{"type":"object","properties":{"transaction":{"description":"The transaction to simulate, as a base-64 encoded string.","type":"string"},"config":{"description":"Configuration object for the query.","anyOf":[{"$ref":"#/$defs/RpcSimulateTransactionConfig"},{"type":"null"}]}},"required":["transaction"]},"SupplyUpdate":{"type":"object","properties":{"circulating":{"description":"The new circulating supply of SOL in lamports (total supply minu
1s non-circulating).","type":["integer","null"],"format":"uint64","minimum":0},"nonCirculating":{"description":"The new non-circulating supply of SOL in lamports (locked in non-circulating accounts).","type":["integer","null"],"format":"uint64","minimum":0},"nonCirculatingAccounts":{"description":"The new list of non-circulating account addresses that hold locked SOL.","type":["array","null"],"items":{"type":"string"}},"total":{"description":"The new total supply of SOL in lamports across the entire network.","type":["integer","null"],"format":"uint64","minimum":0}}},"TimeTravel":{"type":"object","properties":{"config":{"description":"Configuration specifying how to modify the clock. Can move to a specific epoch, slot, or timestamp.","anyOf":[{"$ref":"#/$defs/TimeTravelConfig"},{"type":"null"}]}}},"TimeTravelConfig":{"oneOf":[{"description":"Move to the specified absolute epoch number (each epoch = 432,000 slots).","type":"object","properties":{"absoluteEpoch":{"type":"integer","format":"uint64","minimum":0}},"additionalProperties":false,"required":["absoluteEpoch"]},{"description":"Move to the specified absolute slot number in the blockchain.","type":"object","properties":{"absoluteSlot":{"type":"integer","format":"uint64","minimum":0}},"additionalProperties":false,"required":["absoluteSlot"]},{"description":"Move to the specified UNIX timestamp, in MILLISECONDS since epoch. The Clock sysvar that programs read reports seconds, so a value taken from it must be multiplied by 1000.","type":"object","properties":{"absoluteTimestamp":{"type":"integer","format":"uint64","minimum":0}},"additionalProperties":false,"required":["absoluteTimestamp"]}]},"TokenAccountUpdate":{"type":"object","properties":{"amount":{"description":"The new token balance amount in the smallest unit (e.g., lamports for SOL, or the smallest token unit).","type":["integer","null"],"format":"uint64","minimum":0},"closeAuthority":{"description":"The new close authority that can close the account and recover rent.","anyOf":[{"$ref":"#/$defs/SetSomeAccount"},{"type":"null"}]},"delegate":{"description":"The new delegate account that can spend tokens on behalf of the owner.","anyOf":[{"$ref":"#/$defs/SetSomeAccount"},{"type":"null"}]},"delegatedAmount":{"description":"The new delegated amount that the delegate is authorized to spend.","type":["integer","null"],"format":"uint64","minimum":0},"state":{"description":"The new account state (e.g., \'initialized\', \'frozen\', \'closed\').","type":["string","null"]}}},"TransactionDetails":{"oneOf":[{"description":"Return full transaction details.","type":"string","const":"full"},{"description":"Return only account details.","type":"string","const":"accounts"},{"description":"Return only signature details.","type":"string","const":"signatures"},{"description":"Return no transaction details.","type":"string","const":"none"}]},"UiAccountEncoding":{"oneOf":[{"description":"Binary encoding (legacy).","type":"string","const":"binary"},{"description":"Base-58 encoding.","type":"string","const":"base58"},{"description":"Base-64 encoding.","type":"string","const":"base64"},{"description":"JSON parsed encoding.","type":"string","const":"jsonParsed"},{"description":"Base-64 encoded with Zstandard compression.","type":"string","const":"base64+zstd"}]},"UiDataSliceConfig":{"type":"object","properties":{"length":{"description":"The length of the data slice.","type":"integer","format":"uint","minimum":0},"offset":{"description":"The offset of the data slice.","type":"integer","format":"uint","minimum":0}},"required":["offset","length"]},"UiTransactionEncoding":{"oneOf":[{"description":"Binary encoding (legacy).","type":"string","const":"binary"},{"description":"Base-58 encoding.","type":"string","const":"base58"},{"description":"Base-64 encoding.","type":"string","const":"base64"},{"description":"JSON encoding.","type":"string","const":"json"},{"description":"JSON parsed encoding.","type":"string","const":"jsonParsed"},{"description":"Base-64 encoded with Zstandard compression.","type":"string","const":"base64+zstd"}]},"UnloadPlugin":{"type":"object","properties":{"name":{"description":"The name of the plugin to unload.","type":"string"}},"required":["name"]},"UuidOrSignature":{"oneOf":[{"description":"A UUID string that uniquely identifies a transaction profile in the system.","type":"object","properties":{"uuid":{"type":"string"}},"additionalProperties":false,"required":["uuid"]},{"description":"A transaction signature as a base-58 encoded string that identifies a specific transaction.","type":"object","properties":{"signature":{"type":"string"}},"additionalProperties":false,"required":["signature"]}]},"endpoints":{"oneOf":[{"description":"Get program accounts owned by a specific program ID.","type":"object","properties":{"getProgramAccounts":{"$ref":"#/$defs/GetProgramAccounts"}},"additionalProperties":false,"required":["getProgramAccounts"]},{"description":"Returns the 20 largest accounts by lamport balance.","type":"object","properties":{"getLargestAccounts":{"$ref":"#/$defs/GetLargestAccounts"}},"additionalProperties":false,"required":["getLargestAccounts"]},{"description":"Returns information about the current token supply.","type":"object","properties":{"getSupply":{"$ref":"#/$defs/GetSupply"}},"additionalProperties":false,"required":["getSupply"]},{"description":"Returns the largest accounts for a given token mint.","type":"object","properties":{"getTokenLargestAccounts":{"$ref":"#/$defs/GetTokenLargestAccounts"}},"additionalProperties":false,"required":["getTokenLargestAccounts"]},{"description":"Returns all SPL Token accounts by owner.","type":"object","properties":{"getTokenAccountsByOwner":{"$ref":"#/$defs/GetTokenAccountsByOwner"}},"additionalProperties":false,"required":["getTokenAccountsByOwner"]},{"description":"Returns all SPL Token accounts by delegate.","type":"object","properties":{"getTokenAccountsByDelegate":{"$ref":"#/$defs/GetTokenAccountsByDelegate"}},"additionalProperties":false,"required":["getTokenAccountsByDelegate"]}]},"endpoints2":{"oneOf":[{"description":"Returns detailed information about an account given its public key.","type":"object","properties":{"getAccountInfo":{"$ref":"#/$defs/GetAccountInfo"}},"additionalProperties":false,"required":["getAccountInfo"]},{"description":"Returns commitment levels for a given block (slot).","type":"object","properties":{"getBlockCommitment":{"$ref":"#/$defs/GetBlockCommitment"}},"additionalProperties":false,"required":["getBlockCommitment"]},{"description":"Returns account information for multiple public keys in a single call.","type":"object","properties":{"getMultipleAccounts":{"$ref":"#/$defs/GetMultipleAccounts"}},"additionalProperties":false,"required":["getMultipleAccounts"]},{"description":"Returns the balance of a token account, given its public key.","type":"object","properties":{"getTokenAccountBalance":{"$ref":"#/$defs/GetTokenAccountBalance"}},"additionalProperties":false,"required":["getTokenAccountBalance"]},{"description":"Returns the total supply of a token, given its mint address.","type":"object","properties":{"getTokenSupply":{"$ref":"#/$defs/GetTokenSupply"}},"additionalProperties":false,"required":["getTokenSupply"]}]},"endpoints3":{"oneOf":[{"description":"Immediately shuts down the RPC server.","type":"string","const":"exit"},{"description":"Reloads a runtime plugin with new configuration.","type":"object","properties":{"reloadPlugin":{"$ref":"#/$defs/ReloadPlugin"}},"additionalProperties":false,"required":["reloadPlugin"]},{"description":"Unloads a runtime plugin.","type":"object","properties":{"unloadPlugin":{"$ref":"#/$defs/UnloadPlugin"}},"additionalProperties":false,"required":["unloadPlugin"]},{"description":"Dynamically loads a new plugin into the runtime from a configuration file.","type":"object","properties":{"loadPlugin":{"$ref":"#/$defs/LoadPlugin"}},"additionalProperties":false,"required":["loadPlugin"]},{"description":"Returns a list of all currently loaded plugin names.","type":"string","const":"listPlugins"},{"description":"Returns the address of the RPC server.","type":"string","const":"rpcAddress"}
1,{"description":"Sets a filter for log messages in the system.","type":"object","properties":{"setLogFilter":{"$ref":"#/$defs/SetLogFilter"}},"additionalProperties":false,"required":["setLogFilter"]},{"description":"Returns the system start time.","type":"string","const":"startTime"},{"description":"Adds an authorized voter to the system.","type":"object","properties":{"addAuthorizedVoter":{"$ref":"#/$defs/AddAuthorizedVoter"}},"additionalProperties":false,"required":["addAuthorizedVoter"]},{"description":"Adds an authorized voter to the system using a byte-encoded keypair.","type":"object","properties":{"addAuthorizedVoterFromBytes":{"$ref":"#/$defs/AddAuthorizedVoterFromBytes"}},"additionalProperties":false,"required":["addAuthorizedVoterFromBytes"]},{"description":"Removes all authorized voters from the system.","type":"string","const":"removeAllAuthorizedVoters"},{"description":"Sets the identity for the system using the provided keypair.","type":"object","properties":{"setIdentity":{"$ref":"#/$defs/SetIdentity"}},"additionalProperties":false,"required":["setIdentity"]},{"description":"Sets the identity for the system using a keypair provided as a byte array.","type":"object","properties":{"setIdentityFromBytes":{"$ref":"#/$defs/SetIdentityFromBytes"}},"additionalProperties":false,"required":["setIdentityFromBytes"]},{"description":"Sets the overrides for staked nodes using a specified path.","type":"object","properties":{"setStakedNodesOverrides":{"$ref":"#/$defs/SetStakedNodesOverrides"}},"additionalProperties":false,"required":["setStakedNodesOverrides"]},{"description":"Repairs a shred from a peer node in the network.","type":"object","properties":{"repairShredFromPeer":{"$ref":"#/$defs/RepairShredFromPeer"}},"additionalProperties":false,"required":["repairShredFromPeer"]},{"description":"Sets the whitelist of nodes allowed to repair shreds.","type":"object","properties":{"setRepairWhitelist":{"$ref":"#/$defs/SetRepairWhitelist"}},"additionalProperties":false,"required":["setRepairWhitelist"]},{"description":"Retrieves the size of the secondary index key for a given account.","type":"object","properties":{"getSecondaryIndexKeySize":{"$ref":"#/$defs/GetSecondaryIndexKeySize"}},"additionalProperties":false,"required":["getSecondaryIndexKeySize"]},{"description":"Sets the public TPU (Transaction Processing Unit) address.","type":"object","properties":{"setPublicTpuAddress":{"$ref":"#/$defs/SetPublicTpuAddress"}},"additionalProperties":false,"required":["setPublicTpuAddress"]},{"description":"Sets the public TPU forwards address.","type":"object","properties":{"setPublicTpuForwardsAddress":{"$ref":"#/$defs/SetPublicTpuForwardsAddress"}},"additionalProperties":false,"required":["setPublicTpuForwardsAddress"]}]},"endpoints4":{"oneOf":[{"description":"Returns the minimum balance required for rent exemption.","type":"object","properties":{"getMinimumBalanceForRentExemption":{"$ref":"#/$defs/GetMinimumBalanceForRentExemption"}},"additionalProperties":false,"required":["getMinimumBalanceForRentExemption"]},{"description":"Retrieves the inflation governor settings.","type":"object","properties":{"getInflationGovernor":{"$ref":"#/$defs/GetInflationGovernor"}},"additionalProperties":false,"required":["getInflationGovernor"]},{"description":"Retrieves the current inflation rate.","type":"string","const":"getInflationRate"},{"description":"Retrieves the epoch schedule.","type":"string","const":"getEpochSchedule"},{"description":"Retrieves the leader of the current slot.","type":"object","properties":{"getSlotLeader":{"$ref":"#/$defs/GetSlotLeader"}},"additionalProperties":false,"required":["getSlotLeader"]},{"description":"Retrieves the leaders for a specified range of slots.","type":"object","properties":{"getSlotLeaders":{"$ref":"#/$defs/GetSlotLeaders"}},"additionalProperties":false,"required":["getSlotLeaders"]},{"description":"Retrieves block production information.","type":"object","properties":{"getBlockProduction":{"$ref":"#/$defs/GetBlockProduction"}},"additionalProperties":false,"required":["getBlockProduction"]}]},"endpoints5":{"oneOf":[{"description":"Returns the inflation reward for a given address.","type":"object","properties":{"getInflationReward":{"$ref":"#/$defs/GetInflationReward"}},"additionalProperties":false,"required":["getInflationReward"]},{"description":"Returns the cluster nodes.","type":"string","const":"getClusterNodes"},{"description":"Returns the recent performance samples.","type":"object","properties":{"getRecentPerformanceSamples":{"$ref":"#/$defs/GetRecentPerformanceSamples"}},"additionalProperties":false,"required":["getRecentPerformanceSamples"]},{"description":"Returns the signature statuses for a given signature.","type":"object","properties":{"getSignatureStatuses":{"$ref":"#/$defs/GetSignatureStatuses"}},"additionalProperties":false,"required":["getSignatureStatuses"]},{"description":"Returns the maximum retransmit slot.","type":"string","const":"getMaxRetransmitSlot"},{"description":"Returns the maximum shred insert slot.","type":"string","const":"getMaxShredInsertSlot"},{"description":"Requests an airdrop to a given address.","type":"object","properties":{"requestAirdrop":{"$ref":"#/$defs/RequestAirdrop"}},"additionalProperties":false,"required":["requestAirdrop"]},{"description":"Sends a transaction to the cluster.","type":"object","properties":{"sendTransaction":{"$ref":"#/$defs/SendTransaction"}},"additionalProperties":false,"required":["sendTransaction"]},{"description":"Simulates a transaction.","type":"object","properties":{"simulateTransaction":{"$ref":"#/$defs/SimulateTransaction"}},"additionalProperties":false,"required":["simulateTransaction"]},{"description":"Returns the minimum ledger slot.","type":"string","const":"minimumLedgerSlot"},{"description":"Returns the block for a given slot.","type":"object","properties":{"getBlock":{"$ref":"#/$defs/GetBlock"}},"additionalProperties":false,"required":["getBlock"]},{"description":"Returns the block time for a given slot.","type":"object","properties":{"getBlockTime":{"$ref":"#/$defs/GetBlockTime"}}
1,"additionalProperties":false,"required":["getBlockTime"]},{"description":"Returns the blocks for a given range of slots.","type":"object","properties":{"getBlocks":{"$ref":"#/$defs/GetBlocks"}},"additionalProperties":false,"required":["getBlocks"]},{"description":"Returns the blocks for a given range of slots with a limit.","type":"object","properties":{"getBlocksWithLimit":{"$ref":"#/$defs/GetBlocksWithLimit"}},"additionalProperties":false,"required":["getBlocksWithLimit"]},{"description":"Returns the transaction for a given signature.","type":"object","properties":{"getTransaction":{"$ref":"#/$defs/GetTransaction"}},"additionalProperties":false,"required":["getTransaction"]},{"description":"Returns the signatures for a given address.","type":"object","properties":{"getSignaturesForAddress":{"$ref":"#/$defs/GetSignaturesForAddress"}},"additionalProperties":false,"required":["getSignaturesForAddress"]},{"description":"Returns the first available block.","type":"string","const":"getFirstAvailableBlock"},{"description":"Returns the latest blockhash.","type":"object","properties":{"getLatestBlockhash":{"$ref":"#/$defs/GetLatestBlockhash"}},"additionalProperties":false,"required":["getLatestBlockhash"]},{"description":"Returns the blockhash validity.","type":"object","properties":{"isBlockhashValid":{"$ref":"#/$defs/IsBlockhashValid"}},"additionalProperties":false,"required":["isBlockhashValid"]},{"description":"Returns the fee for a given message.","type":"object","properties":{"getFeeForMessage":{"$ref":"#/$defs/GetFeeForMessage"}},"additionalProperties":false,"required":["getFeeForMessage"]},{"description":"Returns the stake minimum delegation.","type":"object","properties":{"getStakeMinimumDelegation":{"$ref":"#/$defs/GetStakeMinimumDelegation"}},"additionalProperties":false,"required":["getStakeMinimumDelegation"]},{"description":"Returns the recent prioritization fees.","type":"object","properties":{"getRecentPrioritizationFees":{"$ref":"#/$defs/GetRecentPrioritizationFees"}},"additionalProperties":false,"required":["getRecentPrioritizationFees"]}]},"endpoints6":{"oneOf":[{"description":"Returns the balance for a given address.","type":"object","properties":{"getBalance":{"$ref":"#/$defs/GetBalance"}},"additionalProperties":false,"required":["getBalance"]},{"description":"Returns the epoch info.","type":"object","properties":{"getEpochInfo":{"$ref":"#/$defs/GetEpochInfo"}},"additionalProperties":false,"required":["getEpochInfo"]},{"description":"Returns the genesis hash.","type":"string","const":"getGenesisHash"},{"description":"Returns the health of the cluster.","type":"string","const":"getHealth"},{"description":"Returns the identity of the cluster.","type":"object","properties":{"getIdentity":{"$ref":"#/$defs/GetIdentity"}},"additionalProperties":false,"required":["getIdentity"]},{"description":"Returns the current slot.","type":"object","properties":{"getSlot":{"$ref":"#/$defs/GetSlot"}},"additionalProperties":false,"required":["getSlot"]},{"description":"Returns the block height.","type":"object","properties":{"getBlockHeight":{"$ref":"#/$defs/GetBlockHeight"}},"additionalProperties":false,"required":["getBlockHeight"]},{"description":"Returns the highest snapshot slot.","type":"string","const":"getHighestSnapshotSlot"},{"description":"Returns the transaction count.","type":"object","properties":{"getTransactionCount":{"$ref":"#/$defs/GetTransactionCount"}},"additionalProperties":false,"required":["getTransactionCount"]},{"description":"Returns the version of the cluster.","type":"string","const":"getVersion"},{"description":"Returns the vote accounts.","type":"object","properties":{"getVoteAccounts":{"$ref":"#/$defs/GetVoteAccounts"}},"additionalProperties":false,"required":["getVoteAccounts"]},{"description":"Returns the leader schedule.","type":"object","properties":{"getLeaderSchedule":{"$ref":"#/$defs/GetLeaderSchedule"}},"additionalProperties":false,"required":["getLeaderSchedule"]}]},"endpoints7":{"oneOf":[{"description":"Sets or updates an account\'s properties including lamports, data, owner, and executable status.","type":"object","properties":{"setAccount":{"$ref":"#/$defs/SetAccount"}},"additionalProperties":false,"required":["setAccount"]}
1,{"description":"Sets or updates a token account\'s properties including balance, delegate, state, and authorities.","type":"object","properties":{"setTokenAccount":{"$ref":"#/$defs/SetTokenAccount"}},"additionalProperties":false,"required":["setTokenAccount"]},{"description":"Clones a program account from one program ID to another, including its associated program data.","type":"object","properties":{"cloneProgramAccount":{"$ref":"#/$defs/CloneProgramAccount"}},"additionalProperties":false,"required":["cloneProgramAccount"]},{"description":"Profiles a transaction to analyze compute units, account changes, and execution details.","type":"object","properties":{"profileTransaction":{"$ref":"#/$defs/ProfileTransaction"}},"additionalProperties":false,"required":["profileTransaction"]},{"description":"Retrieves all profiling results for transactions tagged with a specific identifier.","type":"object","properties":{"getProfileResultsByTag":{"$ref":"#/$defs/GetProfileResultsByTag"}},"additionalProperties":false,"required":["getProfileResultsByTag"]},{"description":"Configures the network supply information including total, circulating, and non-circulating amounts.","type":"object","properties":{"setSupply":{"$ref":"#/$defs/SetSupply"}},"additionalProperties":false,"required":["setSupply"]},{"description":"Sets or removes the upgrade authority for a program\'s ProgramData account.","type":"object","properties":{"setProgramAuthority":{"$ref":"#/$defs/SetProgramAuthority"}},"additionalProperties":false,"required":["setProgramAuthority"]},{"description":"Retrieves the detailed profile of a specific transaction by signature or UUID.","type":"object","properties":{"getTransactionProfile":{"$ref":"#/$defs/GetTransactionProfile"}},"additionalProperties":false,"required":["getTransactionProfile"]},{"description":"Registers an IDL (Interface Definition Language) for a program to enable account data parsing.","type":"object","properties":{"registerIdl":{"$ref":"#/$defs/RegisterIdl"}},"additionalProperties":false,"required":["registerIdl"]},{"description":"Retrieves the registered IDL for a specific program ID at a given slot.","type":"object","properties":{"getActiveIdl":{"$ref":"#/$defs/GetActiveIdl"}},"additionalProperties":false,"required":["getActiveIdl"]},{"description":"Retrieves the most recent transaction signatures from the local network.","type":"object","properties":{"getLocalSignatures":{"$ref":"#/$defs/GetLocalSignatures"}},"additionalProperties":false,"required":["getLocalSignatures"]},{"description":"Moves the local network\'s clock forward to an absolute epoch, slot, or timestamp, and returns the epoch info after the jump. Omit config entirely to jump one hour ahead. The clock only moves forward: a target in the past is rejected with an error.","type":"object","properties":{"timeTravel":{"$ref":"#/$defs/TimeTravel"}},"additionalProperties":false,"required":["timeTravel"]},{"description":"Freezes the local network\'s clock. Slot production and time progression halt until surfnet_resumeClock is called. Returns the epoch info at the moment of the pause; it carries no timestamp, and the paused state is not reported by any other method. For the simulated unix time, call getAccountInfo on SysvarC1ock11111111111111111111111111111111 with jsonParsed encoding.","type":"object","properties":{"pauseClock":{"$ref":"#/$defs/PauseClock"}},"additionalProperties":false,"required":["pauseClock"]},{"description":"Resumes the local network\'s clock progression after a pause, restarting slot production. Returns the epoch info after resuming.","type":"object","properties":{"resumeClock":{"$ref":"#/$defs/ResumeClock"}},"additionalProperties":false,"required":["resumeClock"]},{"description":"Resets an account on the local network to its original state from the remote datasource.","type":"object","properties":{"resetAccount":{"$ref":"#/$defs/ResetAccount"}},"additionalProperties":false,"required":["resetAccount"]},{"description":"Resets the entire network to its initial state.","type":"object","properties":{},"additionalProperties":false},{"description":"Exports a snapshot of all accounts in the Surfnet SVM.","type":"object","properties":{"exportSnapshot":{"$ref":"#/$defs/ExportSnapshot"}},"additionalProperties":false,"required":["exportSnapshot"]},{"description":"Registers an account for streaming, downloading it from the datasource every time rather than caching it in the SVM.","type":"object","properties":{"streamAccount":{"$ref":"#/$defs/StreamAccount"}},"additionalProperties":false,"required":["streamAccount"]},{"description":"Registers multiple accounts for streaming from the datasource in a single batch call. See also `surfnet_streamAccount`.","type":"object","properties":{"streamAccounts":{"$ref":"#/$defs/StreamAccounts"}},"additionalProperties":false,"required":["streamAccounts"]}
1,{"description":"Prevents an account (and optionally accounts it owns) from being downloaded from the remote RPC. See also `surfnet_streamAccount`.","type":"object","properties":{"offlineAccount":{"$ref":"#/$defs/OfflineAccount"}},"additionalProperties":false,"required":["offlineAccount"]},{"description":"Retrieves the list of accounts currently registered for streaming.","type":"object","additionalProperties":false},{"description":"Retrieves Surfnet network information including runbook execution status.","type":"object","additionalProperties":false},{"description":"Writes program data at a specified offset, allowing deployment of large programs by sending data in chunks.","type":"object","properties":{"writeProgram":{"$ref":"#/$defs/WriteProgram"}},"additionalProperties":false,"required":["writeProgram"]},{"description":"Registers a scenario with account overrides for testing different network states.","type":"object","properties":{"registerScenario":{"$ref":"#/$defs/RegisterScenario"}},"additionalProperties":false,"required":["registerScenario"]},{"description":"Re-enables one or more previously disabled Surfpool cheatcode RPC methods for the current session. See also `surfnet_disableCheatcode`.","type":"object","properties":{"enableCheatcode":{"$ref":"#/$defs/EnableCheatcode"}},"additionalProperties":false,"required":["enableCheatcode"]},{"description":"Disables one or more Surfpool cheatcode RPC methods for the current session. Without `lockout=true`, `surfnet_enableCheatcode` and `surfnet_disableCheatcode` themselves cannot be disabled. See also `surfnet_enableCheatcode`.","type":"object","properties":{"disableCheatcode":{"$ref":"#/$defs/DisableCheatcode"}},"additionalProperties":false,"required":["disableCheatcode"]}]}}}')},84632:(e,t,r)=>{"use strict";r.d(t,{MarkdownEmbed:()=>p});var i=r(36822),n=r(66774),o=r(98500);let s=(0,n.memo)(function(e){let{url:t,loaded:r,autoplay:n=!1,enabled:s=!0,onLoad:a}=e,c=function(e){let t=e.match(/[=/]([\w\d_-]{10,12})/);if(!t)throw Error("".concat(e," is not a YouTube URL or regex couldn't find id"));return t[1]}(t),p="https://i.ytimg.com/vi_webp/".concat(c,"/maxresdefault.webp"),d=function(e,t){let{autoplay:r}=t;return"https://www.youtube-nocookie.com/embed/".concat(e,"?controls=1&amp;autoplay=").concat(r,"&amp;mute=1&amp;autohide=1&amp;modestbranding=1&amp;iv_load_policy=3&amp;rel=0")}(c,{autoplay:n});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("link",{rel:"preload",href:p,as:"image"}),(0,i.jsx)("link",{rel:"preconnect",href:"https://www.youtube-nocookie.com"}),(0,i.jsx)("link",{rel:"preconnect",href:"https://www.google.com"}),(0,i.jsx)("link",{rel:"preconnect",href:"https://static.doubleclick.net"}),(0,i.jsx)("link",{rel:"preconnect",href:"https://googleads.g.doubleclick.net"}),!r&&(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("img",{src:p,alt:""}),(0,i.jsx)("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,i.jsx)(o.$,{className:"animate-spin","aria-hidden":"true"})})]}),s&&(0,i.jsx)("iframe",{src:d,frameBorder:"0",allow:"autoplay; encrypted-media",allowFullScreen:!0,title:"Youtube video",className:"youtube-embed",style:{visibility:r?"visible":"hidden"},onLoad:a})]})});var a=r(34726),c=r.n(a);let p=(0,n.memo)(e=>{let{url:t,width:r,height:n}=e;if(!t||r&&"number"!=typeof r||n&&"number"!=typeof n)return null;if(new RegExp(/^(https:\/\/)?whimsical.com\/embed\/(?:[a-zA-Z0-9-]+-)?([a-km-zA-HJ-NP-Z1-9]{16,22})/gi).test(t))return(0,i.jsx)(d,{src:t,width:r||380,height:n||180});if(new RegExp(/^(https:\/\/)?(www.)?(youtube.com|youtu.be)\//gi).test(t)){var o;let e=null==(o=t.match(/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|.*[?&]v=))([^?&]+)/))?void 0:o[1];if(e)return(0,i.jsx)(l,{videoId:e})}return(0,i.jsx)(i.Fragment,{children:t})}),d=e=>(0,i.jsx)("iframe",{src:e.src,width:e.width,height:e.height||200}),l=e=>{let{videoId:t}=e;return(0,i.jsx)("div",{className:c()["markdown-renderer-video"],children:(0,i.jsx)(s,{url:"https://www.youtube.com/watch?v=".concat(t),loaded:!0})})}},89131:(e,t,r)=>{"use strict";r.d(t,{OutputBlock:()=>o});var i=r(36822),n=r(66774);let o=e=>{let{children:t}=e,[r,o]=n.useState(!0);return r?(0,i.jsx)("div",{className:"px-1",children:(0,i.jsx)("button",{"aria-label":"Show command output",className:"opacity-70 cursor-pointer hover:opacity-90 select-none transition-opacity",onClick:()=>o(!1),children:"[show output]"})}):(0,i.jsx)("div",{className:"px-1 pt-1 pb-2",children:t})}},98273:(e,t,r)=>{"use strict";r.d(t,{CopyButton:()=>c});var i=r(36822),n=r(51707),o=r(87850),s=r(97690),a=r(66774);function c(e){let{text:t,className:r}=e,[c,p]=(0,a.useState)(!1);return(0,i.jsx)("button",{className:(0,s.cn)("hover:text-fd-foreground -mx-1 p-1 rounded hidden sm:block",r),onClick:()=>{navigator.clipboard.writeText(t),p(!0),setTimeout(()=>p(!1),1200)},"aria-label":"Copy to clipboard",children:c?(0,i.jsx)(o.J,{width:16,height:16,className:"block"}):(0,i.jsx)(n.Q,{width:16,height:16,className:"block"})})}},98628:(e,t,r)=>{"use strict";r.d(t,{TerminalClient:()=>m});var i=r(36822),n=r(66774),o=r(92148),s=r(97690),a=r(19482);let c=(0,r(78054).F)("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-white transition-colors hover:bg-zinc-100 hover:text-zinc-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-zinc-100 data-[state=on]:text-zinc-900 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2 dark:ring-offset-zinc-950 dark:hover:bg-zinc-800 dark:hover:text-zinc-400 dark:focus-visible:ring-zinc-300 dark:data-[state=on]:bg-zinc-800 dark:data-[state=on]:text-zinc-50",{variants:{variant:{default:"bg-transparent",outline:"border border-zinc-200 bg-transparent hover:bg-zinc-100 hover:text-zinc-900 dark:border-zinc-800 dark:hover:bg-zinc-800 dark:hover:text-zinc-50"},size:{default:"h-10 px-3 min-w-10",sm:"h-9 px-2.5 min-w-9",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"default",size:"default"}});n.forwardRef((e,t)=>
1{let{className:r,variant:n,size:o,...p}=e;return(0,i.jsx)(a.b,{ref:t,className:(0,s.cn)(c({variant:n,size:o,className:r})),...p})}).displayName=a.b.displayName;let p=n.createContext({size:"default",variant:"default"}),d=n.forwardRef((e,t)=>{let{className:r,variant:n,size:a,children:c,...d}=e;return(0,i.jsx)(o.bL,{ref:t,className:(0,s.cn)("flex items-center justify-center gap-1",r),...d,children:(0,i.jsx)(p.Provider,{value:{variant:n,size:a},children:c})})});d.displayName=o.bL.displayName;let l=n.forwardRef((e,t)=>{let{className:r,children:a,variant:d,size:l,...u}=e,f=n.useContext(p);return(0,i.jsx)(o.q7,{ref:t,className:(0,s.cn)(c({variant:f.variant||d,size:f.size||l}),r),...u,children:a})});l.displayName=o.q7.displayName;var u=r(97362),f=r(67010);function m(e){var t;let{tabs:r,storeKey:n}=e,[o,a]=(0,f.i)(n&&"terminal-picker-"+n,null==(t=r[0])?void 0:t.name),c=r.find(e=>e.name===o)||r[0];return(0,i.jsxs)("div",{className:"border rounded border-ch-border overflow-hidden my-4 relative",children:[(0,i.jsx)("div",{className:(0,s.cn)("border-b-[1px] border-ch-border bg-ch-tabs-background px-3 py-0","w-full h-9 flex items-center justify-between","text-ch-tab-inactive-foreground text-sm font-mono"),children:(0,i.jsxs)("div",{className:"flex items-center gap-2 w-full h-5",children:[(0,i.jsx)("div",{className:"size-4",children:(0,i.jsx)(u.B,{width:16,height:16,className:"-mt-1.5"})}),(0,i.jsx)("span",{className:"leading-none",children:"Terminal"}),r.length>1&&(0,i.jsx)("div",{className:"ml-auto",children:(0,i.jsx)(d,{type:"single",className:"rounded-md inline-flex px-1 bg-ch-background",variant:"outline",value:o,onValueChange:e=>{e&&a(e)},children:r.map((e,t)=>(0,i.jsx)(l,{value:e.name,"aria-label":"Toggle ".concat(e.name),className:"py-0 px-0.5 h-6 !bg-transparent border-none text-ch-tab-active-foreground opacity-60 data-[state=on]:opacity-100",children:e.name},t))})})]})}),c.pre]})}}}]);

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.