mirror of
https://github.com/logos-co/logos-docs.git
synced 2026-08-31 02:21:15 +00:00
1 line
5.8 KiB
JavaScript
1 line
5.8 KiB
JavaScript
"use strict";(self.webpackChunklogos_docs=self.webpackChunklogos_docs||[]).push([["6620"],{3842(e,t,n){n.r(t),n.d(t,{metadata:()=>l,default:()=>d,frontMatter:()=>a,contentTitle:()=>c,toc:()=>r,assets:()=>i});var l=JSON.parse('{"id":"lez/get-started/connect-wallet-cli-to-lez-testnet","title":"Connect the wallet CLI to the LEZ testnet","description":"Try the wallet CLI against the live LEZ testnet instead of a local sequencer.","source":"@site/docs/lez/get-started/connect-wallet-cli-to-lez-testnet.md","sourceDirName":"lez/get-started","slug":"/lez/get-started/connect-wallet-cli-to-lez-testnet","permalink":"/lez/get-started/connect-wallet-cli-to-lez-testnet","draft":false,"unlisted":false,"editUrl":"https://github.com/logos-co/logos-docs/tree/main/docs/lez/get-started/connect-wallet-cli-to-lez-testnet.md","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"Connect the wallet CLI to the LEZ testnet","doc_type":"procedure","product":"lez","topics":"lez","steps_layout":"flat","authors":"moudyellaz, kashepavadan","owner":"logos","doc_version":1,"slug":"connect-wallet-cli-to-lez-testnet","sidebar_position":3},"sidebar":"lezSidebar","previous":{"title":"Quickstart for the Logos Execution Zone wallet","permalink":"/lez/get-started/lez-quickstart"},"next":{"title":"Initiate native token transfers on the LEZ with the wallet UI","permalink":"/lez/get-started/initiate-native-token-transfers-on-lez-with-wallet-ui"}}'),s=n(4848),o=n(8453);let a={title:"Connect the wallet CLI to the LEZ testnet",doc_type:"procedure",product:"lez",topics:"lez",steps_layout:"flat",authors:"moudyellaz, kashepavadan",owner:"logos",doc_version:1,slug:"connect-wallet-cli-to-lez-testnet",sidebar_position:3},c="Connect the wallet CLI to the LEZ testnet",i={},r=[{value:"Try the wallet CLI against the live LEZ testnet instead of a local sequencer.",id:"try-the-wallet-cli-against-the-live-lez-testnet-instead-of-a-local-sequencer",level:4},{value:"What to expect",id:"what-to-expect",level:2},{value:"Install the wallet and connect it to the testnet",id:"install-the-wallet-and-connect-it-to-the-testnet",level:2},{value:"Verify the connection",id:"verify-the-connection",level:2}];function h(e){let t={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"connect-the-wallet-cli-to-the-lez-testnet",children:"Connect the wallet CLI to the LEZ testnet"})}),"\n",(0,s.jsx)(t.h4,{id:"try-the-wallet-cli-against-the-live-lez-testnet-instead-of-a-local-sequencer",children:"Try the wallet CLI against the live LEZ testnet instead of a local sequencer."}),"\n",(0,s.jsxs)(t.p,{children:["This procedure explains how to install the wallet CLI from the ",(0,s.jsx)(t.a,{href:"https://github.com/logos-blockchain/logos-execution-zone/",children:"LEZ repository"})," and point it at the ",(0,s.jsx)(t.a,{href:"https://docs.logos.co/get-started/glossary#lez",children:"LEZ"})," testnet sequencer. It is intended for developers who have previously run the wallet against a local sequencer and want to test against testnet v0.2 instead."]}),"\n",(0,s.jsx)(t.h2,{id:"what-to-expect",children:"What to expect"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"You can run wallet commands against the live LEZ testnet sequencer."}),"\n",(0,s.jsxs)(t.li,{children:["Your wallet is configured to target ",(0,s.jsx)(t.code,{children:"https://testnet.lez.logos.co"})," as the sequencer address."]}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"install-the-wallet-and-connect-it-to-the-testnet",children:"Install the wallet and connect it to the testnet"}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsx)(t.p,{children:"In the LEZ repository, check out the correct release tag:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-sh",children:"git clone https://github.com/logos-blockchain/logos-execution-zone.git\ncd logos-execution-zone\ngit checkout v0.2.0\n"})}),"\n"]}),"\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsx)(t.p,{children:"Rename the existing wallet directory (if you have one) to avoid conflicts:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-sh",children:"mv ~/.nssa/wallet ~/.nssa/wallet.old 2>/dev/null || true\n"})}),"\n"]}),"\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsx)(t.p,{children:"Install the wallet CLI:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-sh",children:"cargo install --path lez/wallet --force\n"})}),"\n"]}),"\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsx)(t.p,{children:"Set the testnet sequencer address:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-sh",children:"wallet config set sequencer_addr https://testnet.lez.logos.co\n"})}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"verify-the-connection",children:"Verify the connection"}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsx)(t.p,{children:"Run the health check command:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-sh",children:"wallet check-health\n"})}),"\n",(0,s.jsx)(t.p,{children:"A successful connection returns:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-sh",children:"\u2705All looks good!\n"})}),"\n"]}),"\n"]})]})}function d(e={}){let{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8453(e,t,n){n.d(t,{R:()=>a,x:()=>c});var l=n(6540);let s={},o=l.createContext(s);function a(e){let t=l.useContext(o);return l.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),l.createElement(o.Provider,{value:t},e.children)}}}]); |