This guide is retained only for maintaining an existing Sophon v1 deployment.
Do not start a new production deployment on the chain.
The ZKsync CLI is a powerful tool designed to simplify the setup, development, testing, and deployment of contracts on ZK Chains. It also provides a way to scaffold dApps using templates leveraging various frontend and web3 libraries.
ZKsync CLI is published on npm as zksync-cli. Commands are invoked using npx zksync-cli in the terminal.
You can run commands without installation: npx zksync-cli (For example: npx zksync-cli dev start).
Available Commands
To learn more about the available commands in ZKsync CLI, see the CLI reference.
Here are the main command categories and their common use cases:
Bridge
Transfer assets between L1 and L2.
npx zksync-cli bridge deposit # Move funds from Ethereum (L1) to ZKsync (L2)npx zksync-cli bridge withdraw # Initiate withdrawal from L2 to L1npx zksync-cli bridge withdraw-finalize # Complete the withdrawal process to L1
Config Chains
Manage custom chain configurations.
npx zksync-cli config chains add # Add a new custom chainnpx zksync-cli config chains edit # Modify existing chain settings
npx zksync-cli create # Create new projects with various templates: # - Frontend (Vue, React, Next.js, Nuxt, Vite) # - Contracts (Hardhat with Solidity/Vyper) # - Scripting (Node.js automation)
Dev
Manage local development environment.
npx zksync-cli dev start # Start local dev environmentnpx zksync-cli dev clean # Clean data for configured modulesnpx zksync-cli dev config # Select modules to run locally
Transaction
Query transaction details.
npx zksync-cli transaction info # Get detailed information about a transaction
Wallet
Manage wallet operations.
npx zksync-cli wallet balance # Check token balance for an addressnpx zksync-cli wallet transfer # Send funds on L2 to another account
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Sophon","colors":{"primary":"#175aad","light":"#2b95ff","dark":"#1710a1"},"favicon":"https://mintcdn.com/sophon-29bed8dc/H_vTEXh6tSwXlF5E/favicon.svg?fit=max\u0026auto=format\u0026n=H_vTEXh6tSwXlF5E\u0026q=85\u0026s=34a706a5d568b29f649fe1f0bef22c98","logo":{"light":"https://mintcdn.com/sophon-29bed8dc/H_vTEXh6tSwXlF5E/logo/light.svg?fit=max\u0026auto=format\u0026n=H_vTEXh6tSwXlF5E\u0026q=85\u0026s=a49869449255758e1035ef7541684e80","dark":"https://mintcdn.com/sophon-29bed8dc/H_vTEXh6tSwXlF5E/logo/dark.svg?fit=max\u0026auto=format\u0026n=H_vTEXh6tSwXlF5E\u0026q=85\u0026s=6bce2c0943ef511e574729744f589bca"},"background":{"decoration":"gradient"},"seo":{"metatags":{"og:title":"Sophon Documentation","og:description":"Sophon Chain migration, SOPH, and legacy chain documentation","og:image":"/images/og.png","twitter:image":"/images/og.png","og:image:width":"1200","og:image:height":"675","twitter:image:width":"1200","twitter:image:height":"675","og:image:type":"image/png","og:image:alt":"Sophon Docs","keywords":"Sophon, SOPH, Chain Migration, Guardian Rewards, Tokenomics, Legacy Chain"},"indexing":"navigable"},"footer":{"socials":{"x":"https://x.com/sophon","github":"https://github.com/sophon-org","linkedin":"https://www.linkedin.com/company/sophon-labs"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sophon-29bed8dc","hasAudioNarration":false,"actualSubdomain":"sophon-29bed8dc","customDomains":["docs.sophon.xyz"],"gitSource":{"type":"github","owner":"sophon-org","repo":"sophon-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6acb75ebe1b639bd58c22c76","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Legacy Build","count":26},{"language":"default","tag":"Introduction","count":20},{"language":"default","tag":"Account","count":18},{"language":"default","tag":"Chain Exit","count":13},{"language":"default","tag":"Guardians","count":11},{"language":"default","tag":"Partners","count":8},{"language":"default","tag":"Legacy Farming","count":8},{"language":"default","tag":"Legacy Chain Architecture","count":6},{"language":"default","tag":"Deploy \u0026 Interact","count":6},{"language":"default","tag":"Authentication","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":".soph-button{padding:14px 20px;color:white;background-color:rgb(0, 150, 247);font-size:14px;font-weight:700;border-radius:24px;cursor:pointer;margin:8px 0;display:inline-block}.wallet-related{display:none}.visible{display:inline-block}"}]}
{"page":{"pagePath":"build/interact/zksync-cli","slug":"/build/interact/zksync-cli","pageMetadata":{"title":"ZKsync CLI","description":null,"href":"/build/interact/zksync-cli"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsx(_components.p,{children:`This guide is retained only for maintaining an existing Sophon v1 deployment.\nDo not start a new production deployment on the chain.`})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`https://github.com/matter-labs/zksync-cli`,children:`ZKsync CLI`}),` is a powerful tool designed to simplify the setup, development, testing, and deployment of contracts on ZK Chains. It also provides a way to scaffold dApps using templates leveraging various frontend and web3 libraries.`]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.strong,{children:`ZKsync CLI`}),` is published on npm as `,_jsx(_components.a,{href:`https://www.npmjs.com/package/zksync-cli`,children:_jsx(_components.strong,{children:_jsx(_components.code,{children:`zksync-cli`})})}),`. Commands are invoked using `,_jsx(_components.code,{children:`npx zksync-cli`}),` in the terminal.`]}),`\n`,_jsxs(Note,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Prerequisites`})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://nodejs.org/en`,children:`Node.js v18 or higher`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://git-scm.com/downloads`,children:`Git`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://www.docker.com/get-started/`,children:`Docker`}),` (for `,_jsx(_components.code,{children:`zksync-cli dev`}),` commands)`]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsxs(_components.p,{children:[`You can run commands without installation: `,_jsx(_components.code,{children:`npx zksync-cli`}),` (For example: `,_jsx(_components.code,{children:`npx zksync-cli dev start`}),`).`]}),`\n`,_jsx(Heading,{level:`2`,id:`available-commands`,children:`Available Commands`}),`\n`,_jsxs(Tip,{children:[`To learn more about the available commands in ZKsync CLI, see the `,_jsx(_components.a,{href:`https://docs.zksync.io/zksync-era/tooling/zksync-cli/reference`,children:_jsx(_components.strong,{children:`CLI reference`})}),`.`]}),`\n`,_jsx(_components.p,{children:`Here are the main command categories and their common use cases:`}),`\n`,_jsx(Heading,{level:`3`,id:`bridge`,children:`Bridge`}),`\n`,_jsx(_components.p,{children:`Transfer assets between L1 and L2.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli bridge deposit `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Move funds from Ethereum (L1) to ZKsync (L2)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli bridge withdraw `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Initiate withdrawal from L2 to L1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli bridge withdraw-finalize `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Complete the withdrawal process to L1`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`config-chains`,children:`Config Chains`}),`\n`,_jsx(_components.p,{children:`Manage custom chain configurations.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli config chains add `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Add a new custom chain`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli config chains edit `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Modify existing chain settings`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`contract`,children:`Contract`}),`\n`,_jsx(_components.p,{children:`Interact with smart contracts.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli contract read `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Execute read-only contract methods`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli contract write `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Send transactions to contracts`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli contract encode `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Generate calldata from contract methods`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`create`,children:`Create`}),`\n`,_jsx(_components.p,{children:`Bootstrap new projects using templates.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli create `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create new projects with various templates:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # - Frontend (Vue, React, Next.js, Nuxt, Vite)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # - Contracts (Hardhat with Solidity/Vyper)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # - Scripting (Node.js automation)`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`dev`,children:`Dev`}),`\n`,_jsx(_components.p,{children:`Manage local development environment.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli dev start `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Start local dev environment`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli dev clean `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Clean data for configured modules`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli dev config `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Select modules to run locally`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`transaction`,children:`Transaction`}),`\n`,_jsx(_components.p,{children:`Query transaction details.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli transaction info `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Get detailed information about a transaction`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`wallet`,children:`Wallet`}),`\n`,_jsx(_components.p,{children:`Manage wallet operations.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli wallet balance `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Check token balance for an address`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` zksync-cli wallet transfer `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Send funds on L2 to another account`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"ZKsync CLI","description":null,"href":"/build/interact/zksync-cli"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Available Commands","slug":"available-commands","depth":2,"children":[{"title":"Bridge","slug":"bridge","depth":3,"children":[]},{"title":"Config Chains","slug":"config-chains","depth":3,"children":[]},{"title":"Contract","slug":"contract","depth":3,"children":[]},{"title":"Create","slug":"create","depth":3,"children":[]},{"title":"Dev","slug":"dev","depth":3,"children":[]},{"title":"Transaction","slug":"transaction","depth":3,"children":[]},{"title":"Wallet","slug":"wallet","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/sophon-29bed8dc/8465623af85b6903/wallet.js"],"subdomain":"sophon-29bed8dc","siteName":"Sophon","title":"Sophon Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-16T16:12:07.682Z","originalFileLocation":"build/interact/zksync-cli.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"keywords\" content=\"Sophon, SOPH, Chain Migration, Guardian Rewards, Tokenomics, Legacy Chain\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sophon\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sophon-29bed8dc/b0RpH67SbVbcWfVy/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/sophon-29bed8dc/b0RpH67SbVbcWfVy/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sophon-29bed8dc/b0RpH67SbVbcWfVy/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sophon-29bed8dc/b0RpH67SbVbcWfVy/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sophon-29bed8dc/b0RpH67SbVbcWfVy/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sophon-29bed8dc/b0RpH67SbVbcWfVy/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sophon-29bed8dc/b0RpH67SbVbcWfVy/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sophon-29bed8dc/b0RpH67SbVbcWfVy/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sophon-29bed8dc/b0RpH67SbVbcWfVy/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Sophon Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Sophon Chain migration, SOPH, and legacy chain documentation\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sophon\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sophon.xyz/build/interact/zksync-cli\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sophon-29bed8dc.mintlify.site/images/og.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Sophon Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Sophon Chain migration, SOPH, and legacy chain documentation\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sophon-29bed8dc.mintlify.site/images/og.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/sophon-29bed8dc/b0RpH67SbVbcWfVy/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sophon\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#175aad\">\u003cmeta data-mint-head name=\"og:image:type\" content=\"image/png\">\u003cmeta data-mint-head name=\"og:image:alt\" content=\"Sophon Docs\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sophon.xyz/build/interact/zksync-cli\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/build/interact/zksync-cli.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sophon.xyz/#organization\",\"name\":\"Sophon\",\"url\":\"https://docs.sophon.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sophon-29bed8dc/H_vTEXh6tSwXlF5E/logo/light.svg?fit=max\u0026auto=format\u0026n=H_vTEXh6tSwXlF5E\u0026q=85\u0026s=a49869449255758e1035ef7541684e80\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sophon.xyz#website\",\"name\":\"Sophon\",\"url\":\"https://docs.sophon.xyz\",\"publisher\":{\"@id\":\"https://docs.sophon.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sophon.xyz/build/interact/zksync-cli#webpage\",\"url\":\"https://docs.sophon.xyz/build/interact/zksync-cli\",\"name\":\"ZKsync CLI\",\"dateModified\":\"2026-07-16T16:12:07.682Z\",\"isPartOf\":{\"@id\":\"https://docs.sophon.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sophon.xyz/build/interact/zksync-cli#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sophon.xyz/build/interact/zksync-cli#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Deploy \u0026 Interact\",\"item\":\"https://docs.sophon.xyz/build/interact/hardhat\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ZKsync CLI\",\"item\":\"https://docs.sophon.xyz/build/interact/zksync-cli\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.sophon.xyz/build/interact/zksync-cli#article\",\"headline\":\"ZKsync CLI\",\"name\":\"ZKsync CLI\",\"url\":\"https://docs.sophon.xyz/build/interact/zksync-cli\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sophon.xyz/build/interact/zksync-cli#webpage\"},\"image\":\"https://docs.sophon.xyz/images/og.png\",\"dateModified\":\"2026-07-16T16:12:07.682Z\",\"publisher\":{\"@id\":\"https://docs.sophon.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sophon.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sophon\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Sophon\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/build/interact/zksync-cli.md","siteName":"Sophon","nav":{"global":null,"tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/welcome"}]},{"tab":"Legacy Build","groups":[{"group":"Legacy Chain Development","pages":[{"title":"Legacy Chain Development","href":"/build/start-building"}]},{"group":"Setup","pages":[{"title":"Early Partners Program","href":"/build/early-partners"},{"title":"Network Information","href":"/build/network-information"},{"title":"Paymasters","href":"/build/setting-up-paymasters"}]},{"group":"EVM Compatibility","pages":[{"title":"Overview","href":"/build/evm-compatibility/index"},{"title":"EVM Bytecode Interpreter","href":"/build/evm-compatibility/evm-interpreter"},{"title":"zkVM vs EVM Differences","href":"/build/evm-compatibility/differences"}]},{"group":"Deploy \u0026 Interact","pages":[{"title":"Hardhat/Ethers","href":"/build/interact/hardhat"},{"title":"Viem/Wagmi","href":"/build/interact/viem-wagmi"},{"title":"Foundry","description":null,"href":"/build/interact/foundry"},{"title":"ZKsync CLI","href":"/build/interact/zksync-cli"},{"title":"Tenderly","description":null,"href":"/build/interact/tenderly"},{"title":"SDKs","href":"/build/interact/sdks"}]},{"group":"Contracts","pages":[{"title":"Mainnet","href":"/build/mainnet"},{"title":"Testnet","href":"/build/testnet"}]},{"group":"Tokens","pages":[{"title":"SOPH Bridging","mode":"wide","href":"/build/tokens/soph-bridging"},{"title":"USDC (Legacy)","href":"/build/tokens/USDC"},{"title":"Bridge SOPH with LayerZero","href":"/build/tokens/layerzero_integration"}]},{"group":"Partners","pages":[{"title":"Overview","href":"/build/partners/overview"},{"title":"Block Explorers","icon":"magnifying-glass-chart","iconType":"solid","href":"/build/partners/block-explorers"},{"title":"Indexers","icon":"database","iconType":"solid","href":"/build/partners/indexers"},{"title":"Infrastructure","icon":"server","iconType":"solid","href":"/build/partners/infrastructure"},{"title":"Account Abstraction","icon":"wallet","iconType":"solid","href":"/build/partners/account-abstraction"},{"title":"Oracles \u0026 zkTLS","icon":"satellite-dish","iconType":"solid","href":"/build/partners/oracles"},{"title":"Gaming","icon":"gamepad","iconType":"solid","href":"/build/partners/gaming"},{"title":"Payment Solutions","icon":"credit-card","iconType":"solid","href":"/build/partners/payments"}]}]},{"tab":"Account","pages":[{"title":"Account","href":"/sophon-account/intro"}]},{"tab":"Chain Exit","pages":[{"title":"Chain Exit","href":"/discover/our-universe"}]},{"tab":"Guardians","pages":[{"title":"Guardians","href":"/nodes/our-infra"}]}]},"basePath":"","title":"Sophon Documentation","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":[],"chunks":[]}