(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4659],{67258:function(s,e,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/discover/wallet-api/react/hooks/useCapabilities",function(){return l(82995)}])},82995:function(s,e,l){"use strict";l.r(e),l.d(e,{__toc:function(){return r}});var i=l(97458),n=l(48917),o=l(90134);let r=[{depth:3,value:"Introduction to useCapabilities Hook",id:"introduction-to-usecapabilities-hook"},{depth:3,value:"Sample Code",id:"sample-code"},{depth:3,value:"Understanding the Response",id:"understanding-the-response"},{depth:3,value:"Other fields",id:"other-fields"}];function a(s){let e=Object.assign({h1:"h1",code:"code",p:"p",h3:"h3",a:"a",strong:"strong",pre:"pre",span:"span",ul:"ul",li:"li"},(0,o.a)(),s.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(e.h1,{children:["Using the ",(0,i.jsx)(e.code,{children:"useCapabilities"})," Hook"]}),"\n",(0,i.jsxs)(e.p,{children:["In this section, we will be looking at how to use the ",(0,i.jsx)(e.code,{children:"useCapabilities"})," hook to retrieve a list of available cryptocurrencies and tokens."]}),"\n",(0,i.jsx)(e.p,{children:"This method is essential when you need to get information on what you can do with the user's account."}),"\n",(0,i.jsxs)(e.h3,{id:"introduction-to-usecapabilities-hook",children:["Introduction to ",(0,i.jsx)(e.code,{children:"useCapabilities"})," Hook"]}),"\n",(0,i.jsxs)(e.p,{children:["The ",(0,i.jsx)(e.code,{children:"useCapabilities"})," hook is part of the ",(0,i.jsx)(e.code,{children:"@ledgerhq/wallet-api-client-react"})," package. This hook allows you to fetch a list of permissions."]}),"\n",(0,i.jsx)(e.h3,{id:"sample-code",children:"Sample Code"}),"\n",(0,i.jsxs)(e.p,{children:["Here is an example that shows how to use the ",(0,i.jsx)(e.code,{children:"useCapabilities"})," hook inside a React component:"]}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsxs)(e.a,{href:"https://developers.ledger.com/APIs/wallet-api/appendix/manifest#permissions",children:[(0,i.jsx)(e.strong,{children:"Required permission"}),":"]}),"\n",(0,i.jsx)(e.code,{children:"wallet.capabilities"})]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",hasCopyCode:!0,children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { useState } "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"react"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"import"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { useCapabilities } "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"from"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"@ledgerhq/wallet-api-client-react"'}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:";"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"App"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"() {"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" { "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"capabilities"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" } "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"useCapabilities"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"return"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    <>"})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"      <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"h1"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">Capabilities</"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"h1"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"      <"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"button"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"onClick"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"{() "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"=>"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" {"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"console"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".log"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"(capabilities)}}> log Capabilities </"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-string-expression)"},children:"button"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:">"})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    </>"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  );"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"}"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:" "}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"default"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" App;"})]})]})}),"\n",(0,i.jsx)(e.p,{children:"In this example:"}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:["\n",(0,i.jsxs)(e.p,{children:["We import the ",(0,i.jsx)(e.code,{children:"useCapabilities"})," hook from the ",(0,i.jsx)(e.code,{children:"@ledgerhq/wallet-api-client-react"})," package."]}),"\n"]}),"\n",(0,i.jsxs)(e.li,{children:["\n",(0,i.jsxs)(e.p,{children:["We use the hook to get the ",(0,i.jsx)(e.code,{children:"capabilities"})," array."]}),"\n"]}),"\n",(0,i.jsxs)(e.li,{children:["\n",(0,i.jsx)(e.p,{children:"When the button is clicked, it log the list of capabilities."}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(e.h3,{id:"understanding-the-response",children:"Understanding the Response"}),"\n",(0,i.jsxs)(e.p,{children:["Here is an example of a partial response from the ",(0,i.jsx)(e.code,{children:"useCapabilities"})," hook:"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"json","data-theme":"default",hasCopyCode:!0,children:(0,i.jsxs)(e.code,{"data-language":"json","data-theme":"default",children:[(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"["})}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'account.list'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'account.receive'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'account.request'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'bitcoin.getXPub'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'currency.list'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'device.close'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'device.exchange'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'device.transport'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'exchange.complete'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'exchange.start'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'message.sign'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'storage.get'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'storage.set'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'transaction.sign'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'transaction.signAndBroadcast'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'wallet.capabilities'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'wallet.info'"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  'wallet.userId'"})}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"]"})})]})}),"\n",(0,i.jsxs)(e.p,{children:["Each string in the array represents a capability.\nThey are composed in two part ",(0,i.jsx)(e.code,{children:"group.method"})," :"]}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"group"}),": Specifies in which area does the permission belong."]}),"\n"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"text","data-theme":"default",hasCopyCode:!0,children:(0,i.jsx)(e.code,{"data-language":"text","data-theme":"default",children:(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"wallet, currency, account, exchange, bitcoin, device, transaction, storage, message, account"})})})}),"\n",(0,i.jsxs)(e.ul,{children:["\n",(0,i.jsxs)(e.li,{children:[(0,i.jsx)(e.code,{children:"method"}),": Specifies the method that you can call with this specific user."]}),"\n"]}),"\n",(0,i.jsx)(e.h3,{id:"other-fields",children:"Other fields"}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",hasCopyCode:!0,children:(0,i.jsx)(e.code,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"const"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"capabilitiesHook"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:"useCapabilities"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]})})}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"loading"})," : Loading state of capabilities field"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",hasCopyCode:!0,children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"capabilitiesHook"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".loading){"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"..."})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  };"})})]})}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"error"})," : State of the request"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",hasCopyCode:!0,children:(0,i.jsxs)(e.code,{"data-language":"jsx","data-theme":"default",children:[(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"if"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"capabilitiesHook"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:".error){"})]}),"\n",(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"    "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-keyword)"},children:"..."})]}),"\n",(0,i.jsx)(e.span,{className:"line",children:(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  };"})})]})}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"updateData"})," : Function that update the updateData"]}),"\n",(0,i.jsx)(e.pre,{"data-language":"jsx","data-theme":"default",hasCopyCode:!0,children:(0,i.jsx)(e.code,{"data-language":"jsx","data-theme":"default",children:(0,i.jsxs)(e.span,{className:"line",children:[(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-constant)"},children:"capabilitiesHook"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-token-function)"},children:".updateData"}),(0,i.jsx)(e.span,{style:{color:"var(--shiki-color-text)"},children:"();"})]})})}),"\n",(0,i.jsxs)(e.p,{children:[(0,i.jsx)(e.code,{children:"updatedAt"})," : Last update of capabilities"]})]})}e.default=(0,n.j)({MDXContent:function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:e}=Object.assign({},(0,o.a)(),s.components);return e?(0,i.jsx)(e,{...s,children:(0,i.jsx)(a,{...s})}):a(s)},pageOpts:{filePath:"pages/docs/discover/wallet-api/react/hooks/useCapabilities.mdx",route:"/docs/discover/wallet-api/react/hooks/useCapabilities",timestamp:1736262808e3,title:"Using the useCapabilities Hook",headings:r},pageNextRoute:"/docs/discover/wallet-api/react/hooks/useCapabilities"})}},function(s){s.O(0,[8917,2888,9774,179],function(){return s(s.s=67258)}),_N_E=s.O()}]);