1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6276],{362627:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>o,contentTitle:()=>c,default:()=>p,frontMatter:()=>i,metadata:()=>a,toc:()=>l});var r=s(785893),t=s(511151);const i={},c="Function: getSigner()",a={id:"api/sdk/namespaces/helpers/functions/getSigner",title:"Function: getSigner()",description:"getSigner(external?): Promise \\",source:"@site/docs/api/sdk/namespaces/helpers/functions/getSigner.md",sourceDirName:"api/sdk/namespaces/helpers/functions",slug:"/api/sdk/namespaces/helpers/functions/getSigner",permalink:"/api/sdk/namespaces/helpers/functions/getSigner",draft:!1,unlisted:!1,editUrl:"https://github.com/tablelandnetwork/docs/tree/main/docs/api/sdk/namespaces/helpers/functions/getSigner.md",tags:[],version:"current",lastUpdatedBy:"Dan Buchholz",lastUpdatedAt:1715186607e3,frontMatter:{},sidebar:"apiSdk",previous:{title:"Function: getFeeData()",permalink:"/api/sdk/namespaces/helpers/functions/getFeeData"},next:{title:"Function: isTestnet()",permalink:"/api/sdk/namespaces/helpers/functions/isTestnet"}},o={},l=[{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2},{value:"Throws",id:"throws",level:2},{value:"Source",id:"source",level:2}];function d(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"function-getsigner",children:"Function: getSigner()"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"getSigner"}),"(",(0,r.jsx)(n.code,{children:"external"}),"?): ",(0,r.jsx)(n.code,{children:"Promise"})," <",(0,r.jsx)(n.a,{href:"/api/sdk/namespaces/helpers/interfaces/Signer",children:(0,r.jsx)(n.code,{children:"Signer"})}),">"]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Request a signer object from the global ethereum object."}),"\n",(0,r.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"external?"}),": ",(0,r.jsx)(n.a,{href:"/api/sdk/namespaces/helpers/interfaces/Eip1193Provider",children:(0,r.jsx)(n.code,{children:"Eip1193Provider"})})]}),"\n",(0,r.jsxs)(n.p,{children:["A valid external provider. Defaults to ",(0,r.jsx)(n.code,{children:"globalThis.ethereum"})," if not provided."]}),"\n",(0,r.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"})," <",(0,r.jsx)(n.a,{href:"/api/sdk/namespaces/helpers/interfaces/Signer",children:(0,r.jsx)(n.code,{children:"Signer"})}),">"]}),"\n",(0,r.jsx)(n.p,{children:"A promise that resolves to a valid web3 provider/signer"}),"\n",(0,r.jsx)(n.h2,{id:"throws",children:"Throws"}),"\n",(0,r.jsx)(n.p,{children:"If no global ethereum object is available."}),"\n",(0,r.jsx)(n.h2,{id:"source",children:"Source"}),"\n",(0,r.jsx)(n.p,{children:"@tableland/sdk/src/helpers/ethers.ts:207"})]})}function p(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},511151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>c});var r=s(667294);const t={},i=r.createContext(t);function c(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]);
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.