PageSourceSearch

https://plug.to/_next/static/chunks/3i5d97o41xfb2.js

js plug.to collected 2026-10-10 00:25:23 UTC 16,526 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,709394,e=>{"use strict";let t=(0,e.i(86245).default)("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);e.s(["Ban",0,t],709394)},287479,e=>{"use strict";let t=(0,e.i(86245).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],287479)},811143,e=>{"use strict";let t=(0,e.i(86245).default)("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);e.s(["Hash",0,t],811143)},715581,e=>{"use strict";let t=(0,e.i(86245).default)("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);e.s(["History",0,t],715581)},970411,926717,e=>{"use strict";var t=e.i(86245);let a=(0,t.default)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["ImageIcon",0,a],970411);let r=(0,t.default)("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);e.s(["KeyRound",0,r],926717)},100734,e=>{"use strict";let t=(0,e.i(86245).default)("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);e.s(["default",0,t])},150055,e=>{"use strict";var t=e.i(100734);e.s(["Layers",()=>t.default])},206690,e=>{"use strict";let t=(0,e.i(86245).default)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],206690)},808354,e=>{"use strict";let t=(0,e.i(86245).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["default",0,t])},904217,e=>{"use strict";var t=e.i(808354);e.s(["SearchIcon",()=>t.default])},291153,e=>{"use strict";let t=(0,e.i(86245).default)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],291153)},373368,e=>{"use strict";let t=(0,e.i(86245).default)("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);e.s(["SlidersHorizontal",0,t],373368)},886140,e=>{"use strict";let t=(0,e.i(86245).default)("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);e.s(["UserCheck",0,t],886140)},530112,e=>{"use strict";let t=(0,e.i(86245).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],530112)},611270,533014,e=>{"use strict";var t=e.i(714287),a=e.i(169398);let r=(0,e.i(86245).default)("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}
1],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);e.s(["Loader",0,r],533014);var i=e.i(530112),s=e.i(559004),n=e.i(870596);e.s(["Search",0,({ref:e,icon:l,placeholder:o,search:c,clear:d=!1,focus:h=!1,textArea:u=!1,isNumber:p=!1,isLoading:y=!1,trailing:x,trailingEmpty:f,affordance:g,handleSearch:m,handleClick:v,handleFocus:k,handleBlur:w,handleSubmit:b,className:j})=>{let M=(0,a.useRef)(null),z=e??M,[C,N]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=()=>{z.current&&(z.current.style.height="auto",z.current.style.height=`${z.current.scrollHeight}px`)};if(!1===u||!z.current)return;let t=z.current;return e(),t?.addEventListener("input",e,!1),t?.addEventListener("change",e),window.addEventListener("resize",e),()=>{t?.removeEventListener("input",e,!1),t?.removeEventListener("change",e),window.removeEventListener("resize",e)}},[u,z,c]),(0,a.useEffect)(()=>{h&&z.current&&z.current.focus({preventScroll:!0})},[h,z]),(0,t.jsxs)("div",{className:(0,n.cn)("group/search flex min-w-0 flex-row",j),children:[(0,t.jsxs)("div",{className:(0,n.cn)("flex min-w-0 flex-1 items-center overflow-hidden",u?"min-h-[69px]":"h-[69px]",c&&"bg-surface"),children:[(0,t.jsxs)("div",{className:(0,n.cn)("group/search-cell flex min-w-0 flex-1 cursor-pointer gap-4 self-stretch pl-4 transition-colors duration-200 ease-in-out hover:bg-foreground
1/5",u?"items-start py-[14px] pr-4":"items-center py-2"),onClick:()=>{z.current?.focus(),v?.()},children:[(0,t.jsxs)("div",{className:"relative h-10 min-w-10",children:[(0,t.jsx)("div",{className:"absolute left-1/2 h-full w-full -translate-x-1/2 rounded-lg bg-surface/40 transition-all duration-100 ease-in-out group-hover/search-cell:scale-[120%]"}),(0,t.jsx)("div",{className:(0,n.cn)("relative mr-2 flex h-full w-full items-center justify-center rounded-lg transition-all duration-100 ease-in-out group-hover/search-cell:bg-surface",u&&""),children:y?(0,t.jsx)(r,{size:14,className:"animate-spin opacity-40 group-hover/search-cell:opacity-100"}):(0,t.jsx)("div",{className:"transition-all duration-100 ease-in-out group-hover/search-cell:opacity-100",children:l})})]}),!1===u?(0,t.jsx)("input",{ref:z,type:"text",placeholder:o,className:"peer w-full cursor-pointer overflow-ellipsis bg-transparent font-semibold text-foreground outline-none placeholder:text-foreground/60",value:c,onChange:e=>{if(!m)return;let t=e.target.value;(!p||!t||/^\d*\.?\d*$/.test(t))&&m(t)},onKeyDown:e=>{"Enter"!==e.key||e.nativeEvent.isComposing||b?.(e.currentTarget.value)},onFocus:()=>{N(!0),k?.()},onBlur:()=>{N(!1),w?.()},autoCorrect:"off"}):(0,t.jsx)("div",{className:"flex min-h-10 min-w-0 flex-1 items-center",children:(0,t.jsx)("textarea",{ref:z,placeholder:o,rows:1,className:"max-h-[40vh] w-full cursor-pointer resize-none bg-transparent font-semibold text-foreground opacity-60 outline-none placeholder:text-foreground/60 group-hover/search-cell:opacity-100",value:c,onChange:e=>m?void(m&&m(e.target.value)):null,onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),b?.(e.currentTarget.value))},onFocus:()=>{N(!0),k?.()},onBlur:()=>{N(!1),w?.()},autoCorrect:"off"})})]}),!x&&g,!x&&d&&!u&&m&&c&&(0,t.jsx)(s.HeaderButton,{bordered:!0,className:"w-auto self-stretch bg-surface px-3 py-3 opacity-0 transition-opacity duration-100 ease-in-out group-focus-within/search:opacity-100 group-hover/search:opacity-100",onMouseDown:e=>e.preventDefault(),onClick:()=>{m(""),z.current?.blur()},children:(0,t.jsx)(i.X,{size:14})}),!x&&!c&&f]}),c&&x]})}],611270)},693369,e=>{"use strict";var t=e.i(714287),a=e.i(357625),r=e.i(169398),i=e.i(904217),s=e.i(611270),n=e.i(838174),l=e.i(86245);let o=(0,l.default)("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);var c=e.i(709394);let d=(0,l.default)("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]),h=(0,l.default)("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
1],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]),u=(0,l.default)("FilePlus2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]]);var p=e.i(811143),y=e.i(715581),x=e.i(970411),f=e.i(926717),g=e.i(150055);let m=(0,l.default)("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),v=(0,l.default)("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);var k=e.i(206690);let w=(0,l.default)("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);var b=e.i(291153);let j=(0,l.default)("Signature",[["path",{d:"m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284",key:"y32ogt"}],["path",{d:"M3 21h18",key:"itz85i"}]]);var M=e.i(373368),z=e.i(886140);let C=(0,l.default)("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]),N={address:(0,t.jsx)(C,{size:14}),transaction:(0,t.jsx)(o,{size:14}),chain:(0,t.jsx)(m,{size:14}),auth:(0,t.jsx)(f.KeyRound,{size:14}),cdn:(0,t.jsx)(x.ImageIcon,{size:14})},S={getAddress:(0,t.jsx)(C,{size:14}),getPositions:(0,t.jsx)(g.Layers,{size:14}),getActivity:(0,t.jsx)(y.History,{size:14}),getSeries:(0,t.jsx)(d,{size:14}),getContext:(0,t.jsx)(M.SlidersHorizontal,{size:14}),getTransactions:(0,t.jsx)(w,{size:14}),createTransaction:(0,t.jsx)(u,{size:14}),compileTransaction:(0,t.jsx)(h,{size:14}),submitTransaction:(0,t.jsx)(b.Send,{size:14}),cancelTransaction:(0,t.jsx)(c.Ban,{size:14}),getChains:(0,t.jsx)(m,{size:14}),getColor:(0,t.jsx)(v,{size:14}),getNonce:(0,t.jsx)(p.Hash,{size:14}),verifySignature:(0,t.jsx)(j,{size:14}),refreshToken:(0,t.jsx)(k.RefreshCw,{size:14}),getSession:(0,t.jsx)(z.UserCheck,{size:14})},T={GET:"bg-teal-accent text-accent-foreground",POST:"bg-indigo-accent text-accent-foreground",PUT:"bg-lime-accent text-accent-foreground",DELETE:"bg-danger-accent text-accent-foreground"};var L=e.i(82596),E=e.i(739025),q=e.i(870596);e.s(["DocsIndex",0,({groups:e})=>{let[l,o]=(0,r.useState)(""),[c,d]=(0,r.useState)({}),h=l.trim().toLowerCase(),u=(0,r.useMemo)(()=>h?e.map(e=>({...e,endpoints:e.endpoints.filter(e=>[e.summary,e.description,e.path,e.method,e.tag,e.operationId].join(" ").toLowerCase().includes(h))})).filter(e=>e.endpoints.length>0):e,[e,h]),p=u.reduce((e,t)=>e+t.endpoints.length,0);return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"sticky top-0 z-section-header flex flex-row items-center border-b border-foreground
1/10 bg-surface",children:[(0,t.jsx)(s.Search,{icon:(0,t.jsx)(i.SearchIcon,{size:14}),placeholder:"Search endpoints...",search:l,handleSearch:o,clear:!0,className:"min-w-0 flex-1"}),(0,t.jsx)("p",{className:"flex h-[69px] w-[69px] min-w-[69px] shrink-0 items-center justify-center whitespace-nowrap border-l border-foreground/10 text-sm font-semibold tabular-nums opacity-60",children:p})]}),0===u.length&&(0,t.jsxs)("p",{className:"px-6 py-6 opacity-60",children:["No endpoint matches “",l,"”."]}),u.map((e,r)=>{let i=!h&&(c[e.tag]??!1),s=r===u.length-1;return(0,t.jsxs)("section",{className:"flex flex-col",children:[(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)(L.CollapsibleSectionHeader,{icon:N[e.tag],label:`${E.TAG_META[e.tag].label} \xb7 ${e.endpoints.length}`,collapsed:i,onToggle:()=>d(t=>({...t,[e.tag]:!t[e.tag]})),className:(0,q.cn)(s&&i&&"border-b-0")})}),!i&&(0,t.jsx)("ul",{className:"flex shrink-0 flex-col",children:e.endpoints.map((r,i)=>(0,t.jsx)("li",{className:(0,q.cn)("flex overflow-hidden border-b border-foreground
1/10",s&&i===e.endpoints.length-1&&"border-b-0"),children:(0,t.jsxs)(a.default,{href:(0,E.endpointPath)(r),className:"group relative flex h-[69px] w-full shrink-0 flex-row items-center gap-4 overflow-hidden px-4",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-foreground opacity-0 transition-opacity duration-100 ease-in-out group-hover:opacity-5"}),(0,t.jsx)("div",{className:(0,q.cn)("relative flex h-10 w-10 min-w-10 items-center justify-center rounded-lg",T[r.method]),children:S[r.operationId]}),(0,t.jsxs)("div",{className:"relative flex min-w-0 flex-1 flex-col",children:[(0,t.jsx)(n.OverflowMarquee,{className:"font-semibold",children:r.summary}),(0,t.jsx)(n.OverflowMarquee,{className:"text-sm opacity-60",children:r.description})]})]})},r.operationId))})]},e.tag)})]})}],693369)},198857,e=>{"use strict";var t=e.i(714287),a=e.i(169398),r=e.i(287479);let i=(0,e.i(86245).default)("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var s=e.i(853762);let n="pnpm add @terminallyonline/plug-sdk";e.s(["SdkInstallRow",0,()=>{let[e,l]=(0,a.useState)(!1),o=async()=>{await navigator.clipboard.writeText(n),l(!0),setTimeout(()=>l(!1),2e3)};
1return(0,t.jsx)("div",{className:"border-b border-foreground/10",children:(0,t.jsx)(s.LandingNavItem,{icon:e?(0,t.jsx)(r.Check,{size:14}):(0,t.jsx)(i,{size:14}),label:e?"Copied":n,primary:!0,chevron:!1,onClick:o})})}],198857)},739025,e=>{"use strict";e.i(788897),e.i(850698),e.i(736894),e.s(["API_BASE_URL",0,"https://api.plug.to","TAG_META",0,{address:{label:"Address",description:"Read any EVM address without a key or a wallet connection: metadata and graph signals, every indexed fungible, non-fungible and non-tokenized position, transaction history, and portfolio value over time."},transaction:{label:"Transaction",description:"Compose, compile and submit intents. Resolve the inputs an action accepts, build calldata from structured inputs, preview a draft sequence without persisting it, then broadcast or cancel."},chain:{label:"Chain",description:"Configuration and metadata for every blockchain network Plug indexes and executes on."},auth:{label:"Authentication",description:"Sign in with Ethereum. Issue a nonce, exchange a signed SIWE message for a token pair, and rotate it. Only writes bound to a wallet need this — every read surface is open."},cdn:{label:"CDN",description:"Derived presentation data for remote assets, such as the dominant color of a hosted image."}},"endpointDefaults",0,e=>{let t={};return e.params.forEach(e=>{e.default?t[e.name]=e.default:e.example&&(t[e.name]=e.example)}),t},"endpointPath",0,e=>`/docs/${e.operationId.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}/`])}]);

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.