How to deploy a smart contract to the Quai Network.
To deploy a smart contract on Quai Network, you simply send a transaction containing the contract bytecode without specifying a recipient.Once deployed, your smart contract will be available to any user on the network to interact with.
To deploy a smart contract on Quai, you’ll need a few things:
QUAI to cover gas: similar to a normal transaction, you’ll need to set your gas limit. Be aware that contract deployment requires significantly more gas than a simple transfer.
Smart contracts on Quai Network can be deployed using a number of different methods. The most straightforward and widely used methods are using deployment tools like Hardhat. Contracts can also be deployed using the quais.js library, which offers increased flexibility and the ability to deploy via frontend or simple script.Information on how to deploy a simple smart contract with hardhat can be found in the Solidity Deployment Tutorial.
Documentation for deploying cross-chain smart contracts with SolidityX is
coming soon. Developers interested in converting their existing contracts to
be cross-chain compatible in the future should implement upgradeable (proxy)
patterns.
Contrary to monolithic blockchains, Quai Network’s multi-threaded architecture allows for the deployment of cross-chain smart contracts. These are smart contracts present in a single network context that contain references to sister contracts in alternate context(s). Multi-chain referencing smart contracts allow you as a developer to create seamless cross-chain applications that can:
Asynchronously track the state of contracts within other chains in the network
Natively transfer value and tokens to different contexts without bridges
Sister contracts are created by deploying contracts across all chains that the project intends to support. After the deployment of these sister contracts, a trust on first-use (TOFU) strategy is used to link the contracts together, allowing each contract to be aware of the state and activities of all of its sisters. Each sister contract contains an objective reference to the public address of every other sister contract.Contracts intended to function across many chains will contain initially empty slots for the addresses of its sisters. If a contract intends to maintain functionality across the initial network of 9 chains, 8 slots are required for all 8 sister contracts to be referenced.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Quai Network Docs","colors":{"primary":"#e22901","light":"#e22901","dark":"#e22901"},"logo":{"light":"https://mintcdn.com/dominantstrategies/X4sucm2SYhI37-ls/images/logo.png?fit=max\u0026auto=format\u0026n=X4sucm2SYhI37-ls\u0026q=85\u0026s=1f1a4f07057d96ead9647663a2ac51ba","dark":"https://mintcdn.com/dominantstrategies/X4sucm2SYhI37-ls/images/logo.png?fit=max\u0026auto=format\u0026n=X4sucm2SYhI37-ls\u0026q=85\u0026s=1f1a4f07057d96ead9647663a2ac51ba","href":"https://qu.ai"},"favicon":"https://mintcdn.com/dominantstrategies/aPJM9c-DC_HldUMy/favicon.svg?fit=max\u0026auto=format\u0026n=aPJM9c-DC_HldUMy\u0026q=85\u0026s=4f96cad85b6fc0956877ad043cb427b7","navbar":{"links":[{"href":"https://discord.gg/FwvzQkJPK9","label":"Developer Discord"}]},"footer":{"socials":{"x":"https://twitter.com/QuaiNetwork","github":"https://github.com/dominant-strategies/quais.js/tree/alpha","linkedin":"https://www.linkedin.com/company/dominant-strategies","instagram":"https://instagram.com/quainetwork"}},"search":{"prompt":"What can I build on Quai?"},"integrations":{"ga4":{"measurementId":"G-XQMRKWKTEQ"},"intercom":{"appId":"crmoyy2i"}},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"learn/introduction"},{"language":"cn","href":"cn/learn/introduction"},{"language":"jp","href":"jp/learn/introduction"},{"language":"ko","href":"ko/learn/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dominantstrategies","hasAudioNarration":false,"actualSubdomain":"dominantstrategies","customDomains":["docs.qu.ai"],"gitSource":{"type":"github","owner":"dominant-strategies","repo":"quai-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6abbc5cc018f6a8bb47e6b8e","collectionId":"6e0666e5-f7a6-4468-a220-55f4dda3d1e3","schemaVersion":"v2","latestBuiltDeploymentHistoryId":"6abbc5cc018f6a8bb47e6b8e"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6abbc5cc018f6a8bb47e6b8e","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"en","tag":"SDK","count":278},{"language":"cn","tag":"SDK","count":278},{"language":"jp","tag":"SDK","count":278},{"language":"ko","tag":"SDK","count":278},{"language":"en","tag":"Reference","count":269},{"language":"cn","tag":"参考","count":269},{"language":"jp","tag":"リファレンス","count":269},{"language":"ko","tag":"참조","count":269},{"language":"en","tag":"Utils","count":74},{"language":"cn","tag":"Utils","count":74},{"language":"jp","tag":"Utils","count":74},{"language":"ko","tag":"Utils","count":74},{"language":"en","tag":"Build","count":66},{"language":"cn","tag":"构建","count":66},{"language":"jp","tag":"ビルド","count":66},{"language":"ko","tag":"빌드","count":66},{"language":"en","tag":"API Playground","count":53},{"language":"cn","tag":"API 游乐场","count":53},{"language":"jp","tag":"APIプレイグラウンド","count":53},{"language":"ko","tag":"API 플레이그라운드","count":53},{"language":"en","tag":"Providers","count":51},{"language":"cn","tag":"Providers","count":51},{"language":"jp","tag":"Providers","count":51},{"language":"ko","tag":"Providers","count":51},{"language":"en","tag":"Learn","count":32},{"language":"cn","tag":"学习","count":31},{"language":"jp","tag":"学習","count":31},{"language":"ko","tag":"학습","count":31},{"language":"en","tag":"Application Binary Interface","count":25},{"language":"cn","tag":"Application Binary Interface","count":25},{"language":"jp","tag":"Application Binary Interface","count":25},{"language":"ko","tag":"Application Binary Interface","count":25},{"language":"en","tag":"Contract","count":21},{"language":"cn","tag":"Contract","count":21},{"language":"jp","tag":"Contract","count":21},{"language":"ko","tag":"Contract","count":21},{"language":"en","tag":"Advanced Topics","count":20},{"language":"cn","tag":"高级介绍","count":19},{"language":"jp","tag":"高度なトピック","count":19},{"language":"ko","tag":"고급 주제","count":19}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"llms-txt-v2","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"build/smart-contracts/deployment","slug":"/build/smart-contracts/deployment","pageMetadata":{"title":"Deploy","description":"How to deploy a smart contract to the Quai Network.","sidebar_position":2,"keywords":["smart contract","solidityx","deploy","hardhat","quai hardhat"],"href":"/build/smart-contracts/deployment"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"How to deploy a smart contract to the Quai Network.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"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`,em:`em`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`To deploy a smart contract on Quai Network, you simply send a transaction containing the contract bytecode without specifying a recipient.`}),`\n`,_jsx(_components.p,{children:`Once deployed, your smart contract will be available to any user on the network to interact with.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-deploy-a-smart-contract`,children:`How to Deploy a Smart Contract`}),`\n`,_jsx(Heading,{level:`3`,id:`requirements`,children:`Requirements`}),`\n`,_jsx(_components.p,{children:`To deploy a smart contract on Quai, you’ll need a few things:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.em,{children:`QUAI to cover gas`}),`: similar to a normal transaction, you’ll need to set your gas limit. Be aware that contract deployment requires significantly more gas than a simple transfer.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.em,{children:`Contract Bytecode`}),`: generated using a `,_jsx(_components.a,{href:`https://www.alchemy.com/overviews/solidity-compiler`,children:`compiler`}),`.`]}),`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`Deployment script or plugin`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.em,{children:`Access to a Quai node`}),`: you can do this either by `,_jsx(_components.a,{href:`/guides/client/node`,children:`running your own node`}),`, `,_jsx(_components.a,{href:`/build/networks`,children:`accessing a publicly available node`}),`, or through API key via a node service.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`deployment`,children:`Deployment`}),`\n`,_jsx(_components.p,{children:`Smart contracts on Quai Network can be deployed using a number of different methods. The most straightforward and widely used methods are using deployment tools like Hardhat. Contracts can also be deployed using the quais.js library, which offers increased flexibility and the ability to deploy via frontend or simple script.`}),`\n`,_jsxs(_components.p,{children:[`Information on how to deploy a simple smart contract with hardhat can be found in the `,_jsx(_components.a,{href:`/guides/development/solidity`,children:`Solidity Deployment Tutorial`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`cross-chain-smart-contracts`,children:`Cross-Chain Smart Contracts`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Documentation for deploying cross-chain smart contracts with SolidityX is\ncoming soon. Developers interested in converting their existing contracts to\nbe cross-chain compatible in the future should implement upgradeable (proxy)\npatterns.`})}),`\n`,_jsx(_components.p,{children:`Contrary to monolithic blockchains, Quai Network’s multi-threaded architecture allows for the deployment of cross-chain smart contracts. These are smart contracts present in a single network context that contain references to sister contracts in alternate context(s). Multi-chain referencing smart contracts allow you as a developer to create seamless cross-chain applications that can:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Asynchronously track the state of contracts within other chains in the network`}),`\n`,_jsx(_components.li,{children:`Natively transfer value and tokens to different contexts without bridges`}),`\n`,_jsx(_components.li,{children:`Create a network secured mesh of smart contracts`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`cross-chain-deployment`,children:`Cross-Chain Deployment`}),`\n`,_jsx(_components.p,{children:`Sister contracts are created by deploying contracts across all chains that the project intends to support. After the deployment of these sister contracts, a trust on first-use (TOFU) strategy is used to link the contracts together, allowing each contract to be aware of the state and activities of all of its sisters. Each sister contract contains an objective reference to the public address of every other sister contract.`}),`\n`,_jsx(_components.p,{children:`Contracts intended to function across many chains will contain initially empty slots for the addresses of its sisters. If a contract intends to maintain functionality across the initial network of 9 chains, 8 slots are required for all 8 sister contracts to be referenced.`})]})}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":"Deploy","description":"How to deploy a smart contract to the Quai Network.","sidebar_position":2,"keywords":["smart contract","solidityx","deploy","hardhat","quai hardhat"],"href":"/build/smart-contracts/deployment"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How to Deploy a Smart Contract","slug":"how-to-deploy-a-smart-contract","depth":2,"children":[{"title":"Requirements","slug":"requirements","depth":3,"children":[]},{"title":"Deployment","slug":"deployment","depth":3,"children":[]}]},{"title":"Cross-Chain Smart Contracts","slug":"cross-chain-smart-contracts","depth":2,"children":[{"title":"Cross-Chain Deployment","slug":"cross-chain-deployment","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"dominantstrategies","siteName":"Quai Network Docs","title":"Deploy - Quai Network Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/build/smart-contracts/deployment","matchLevel":0},"cn":{"href":"/cn/build/smart-contracts/deployment","matchLevel":1},"jp":{"href":"/jp/build/smart-contracts/deployment","matchLevel":1},"ko":{"href":"/ko/build/smart-contracts/deployment","matchLevel":1}}},"lastModified":"2025-08-13T02:56:54.892Z","originalFileLocation":"build/smart-contracts/deployment.mdx","locale":"en"},"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=\"description\" content=\"How to deploy a smart contract to the Quai Network.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Quai Network Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dominantstrategies/FutXLxhNGxK-_03f/_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/dominantstrategies/FutXLxhNGxK-_03f/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dominantstrategies/FutXLxhNGxK-_03f/_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/dominantstrategies/FutXLxhNGxK-_03f/_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/dominantstrategies/FutXLxhNGxK-_03f/_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/dominantstrategies/FutXLxhNGxK-_03f/_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/dominantstrategies/FutXLxhNGxK-_03f/_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/dominantstrategies/FutXLxhNGxK-_03f/_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/dominantstrategies/FutXLxhNGxK-_03f/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Deploy - Quai Network Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"How to deploy a smart contract to the Quai Network.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Quai Network Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.qu.ai/build/smart-contracts/deployment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dominantstrategies.mintlify.app/_mintlify/api/og/v2?division=Smart+Contracts\u0026amp;title=Deploy\u0026amp;description=How+to+deploy+a+smart+contract+to+the+Quai+Network.\u0026amp;theme=ade61136264ab5f937d561f7\u0026amp;signature=5a2ce6245995abb720ce253431ebfafa3780b58d79f6a8e40984c2536ff6e850\">\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=\"Deploy - Quai Network Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How to deploy a smart contract to the Quai Network.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dominantstrategies.mintlify.app/_mintlify/api/og/v2?division=Smart+Contracts\u0026amp;title=Deploy\u0026amp;description=How+to+deploy+a+smart+contract+to+the+Quai+Network.\u0026amp;theme=ade61136264ab5f937d561f7\u0026amp;signature=5a2ce6245995abb720ce253431ebfafa3780b58d79f6a8e40984c2536ff6e850\">\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/dominantstrategies/FutXLxhNGxK-_03f/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Quai Network Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e22901\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.qu.ai/build/smart-contracts/deployment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/build/smart-contracts/deployment.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.qu.ai/build/smart-contracts/deployment\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.qu.ai/cn/build/smart-contracts/deployment\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.qu.ai/jp/build/smart-contracts/deployment\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.qu.ai/ko/build/smart-contracts/deployment\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.qu.ai/build/smart-contracts/deployment\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.qu.ai/#organization\",\"name\":\"Quai Network Docs\",\"url\":\"https://docs.qu.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dominantstrategies/X4sucm2SYhI37-ls/images/logo.png?fit=max\u0026auto=format\u0026n=X4sucm2SYhI37-ls\u0026q=85\u0026s=1f1a4f07057d96ead9647663a2ac51ba\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.qu.ai#website\",\"name\":\"Quai Network Docs\",\"url\":\"https://docs.qu.ai\",\"publisher\":{\"@id\":\"https://docs.qu.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.qu.ai/build/smart-contracts/deployment#webpage\",\"url\":\"https://docs.qu.ai/build/smart-contracts/deployment\",\"name\":\"Deploy\",\"description\":\"How to deploy a smart contract to the Quai Network.\",\"dateModified\":\"2025-08-13T02:56:54.892Z\",\"isPartOf\":{\"@id\":\"https://docs.qu.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.qu.ai/build/smart-contracts/deployment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.qu.ai/build/smart-contracts/deployment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Smart Contracts\",\"item\":\"https://docs.qu.ai/build/smart-contracts/solidity\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deploy\",\"item\":\"https://docs.qu.ai/build/smart-contracts/deployment\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.qu.ai/build/smart-contracts/deployment#article\",\"headline\":\"Deploy\",\"name\":\"Deploy\",\"description\":\"How to deploy a smart contract to the Quai Network.\",\"url\":\"https://docs.qu.ai/build/smart-contracts/deployment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.qu.ai/build/smart-contracts/deployment#webpage\"},\"dateModified\":\"2025-08-13T02:56:54.892Z\",\"keywords\":\"smart contract, solidityx, deploy, hardhat, quai hardhat\",\"publisher\":{\"@id\":\"https://docs.qu.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.qu.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Quai Network Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Quai Network Docs","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Learn","pages":[{"title":"Learn","href":"/learn/introduction"}]},{"tab":"Build","groups":[{"group":"Getting Started","pages":[{"title":"Development Introduction","sidebarTitle":"Introduction","href":"/build/introduction"},{"title":"Networks","href":"/build/networks"},{"title":"Quick Links","href":"/build/quick-links"},{"title":"Quai Builders Program \u0026 Grants","sidebarTitle":"Builders Program \u0026 Grants","href":"/build/grants"}]},{"group":"Smart Contracts","pages":[{"title":"Solidity","description":"The Solidity smart contract programming language.","href":"/build/smart-contracts/solidity"},{"title":"Deploy","href":"/build/smart-contracts/deployment"},{"title":"Opcode Additions","description":"Specification of the isaddrinternal and etx opcodes additions on Quai Network.","href":"/build/smart-contracts/opcode-additions"}]},{"group":"Transactions","pages":[{"title":"Overview","href":"/build/transactions/overview"},{"title":"Types","href":"/build/transactions/types"}]},{"group":"API Libaries","pages":[{"title":"JavaScript Libraries","href":"/build/apis/javascript-libraries"},{"group":"Postman","pages":[{"title":"Setting Up Postman","href":"/build/apis/postman/setup"},{"title":"Variables","href":"/build/apis/postman/environment"},{"title":"Making Requests","href":"/build/apis/postman/use"}]}]},{"group":"API Playground","pages":[{"title":"JSON-RPC Overview","href":"/build/playground/overview"},{"group":"Addresses","icon":"address-card","pages":[{"title":"getBalance","openapi":"openapi-getBalance POST /","href":"/build/playground/addresses/getBalance"},{"title":"getCode","openapi":"openapi-getCode POST /","href":"/build/playground/addresses/getCode"},{"title":"getStorageAt","openapi":"openapi-getStorageAt POST /","href":"/build/playground/addresses/getStorageAt"},{"title":"getProof","openapi":"openapi-getProof POST /","href":"/build/playground/addresses/getProof"},{"title":"getTransactionCount","openapi":"openapi-getTransactionCount POST /","href":"/build/playground/addresses/getTransactionCount"},{"title":"getOutpointsByAddressAndRange","openapi":"openapi-getOutpointsByAddressAndRange POST /","href":"/build/playground/addresses/getOutpointsByAddressAndRange"}]},{"group":"Blocks","icon":"cube","pages":[{"title":"blockNumber","openapi":"openapi-blockNumber POST /","href":"/build/playground/blocks/blockNumber"},{"title":"getHeaderhashByNumber","openapi":"openapi-getHeaderHashByNumber POST /","href":"/build/playground/blocks/getHeaderHashByNumber"},{"title":"getHeaderByHash","openapi":"openapi-getHeaderByHash POST /","href":"/build/playground/blocks/getHeaderByHash"},{"title":"getHeaderByNumber","openapi":"openapi-getHeaderByNumber POST /","href":"/build/playground/blocks/getHeaderByNumber"},{"title":"getPendingHeader","openapi":"openapi-getPendingHeader POST /","href":"/build/playground/blocks/getPendingHeader"},{"title":"getBlockByNumber","openapi":"openapi-getBlockByNumber POST /","href":"/build/playground/blocks/getBlockByNumber"},{"title":"getBlockByHash","openapi":"openapi-getBlockByHash POST /","href":"/build/playground/blocks/getBlockByHash"},{"title":"getBlockOrCandidateByHash","openapi":"openapi-getBlockOrCandidateByHash POST /","href":"/build/playground/blocks/getBlockOrCandidateByHash"},{"title":"uncleByNumberAndIndex","openapi":"openapi-getUncleByBlockNumberAndIndex POST /","href":"/build/playground/blocks/getUncleByBlockNumberAndIndex"},{"title":"uncleByHashAndIndex","openapi":"openapi-getUncleByBlockHashAndIndex POST /","href":"/build/playground/blocks/getUncleByBlockHashAndIndex"},{"title":"uncleCountByNumber","openapi":"openapi-getUncleCountByBlockNumber POST /","href":"/build/playground/blocks/getUncleCountByBlockNumber"},{"title":"uncleCountByHash","openapi":"openapi-getUncleCountByBlockHash POST /","href":"/build/playground/blocks/getUncleCountByBlockHash"}]},{"group":"Transactions","icon":"right-left","pages":[{"title":"blockTxCountByHash","openapi":"openapi-getBlockTransactionCountByHash POST /","href":"/build/playground/transactions/getBlockTransactionCountByHash"},{"title":"blockTxCountByNumber","openapi":"openapi-getBlockTransactionCountByNumber POST /","href":"/build/playground/transactions/getBlockTransactionCountByNumber"},{"title":"txByBlockAndIndex","openapi":"openapi-getTransactionByBlockNumberAndIndex POST /","href":"/build/playground/transactions/getTransactionByBlockNumberAndIndex"},{"title":"txByBlockHashAndIndex","openapi":"openapi-getTransactionByBlockHashAndIndex POST /","href":"/build/playground/transactions/getTransactionByBlockHashAndIndex"},{"title":"rawTxByNumberAndIndex","openapi":"openapi-getRawTransactionByBlockNumberAndIndex POST /","href":"/build/playground/transactions/getRawTransactionByBlockNumberAndIndex"},{"title":"rawTxByHashAndIndex","openapi":"openapi-getRawTransactionByBlockHashAndIndex POST /","href":"/build/playground/transactions/getRawTransactionByBlockHashAndIndex"},{"title":"rawTxByHash","openapi":"openapi-getRawTransactionByHash POST /","href":"/build/playground/transactions/getRawTransactionByHash"},{"title":"getTransactionByHash","openapi":"openapi-getTransactionByHash POST /","href":"/build/playground/transactions/getTransactionByHash"},{"title":"getTransactionReceipt","openapi":"openapi-getTransactionReceipt POST /","href":"/build/playground/transactions/getTransactionReceipt"},{"title":"sendRawTransaction","openapi":"openapi-sendRawTransaction POST /","href":"/build/playground/transactions/sendRawTransaction"},{"title":"createAccessList","openapi":"openapi-createAccessList POST /","href":"/build/playground/transactions/createAccessList"},{"title":"call","openapi":"openapi-call POST /","href":"/build/playground/transactions/call"}]},{"group":"Gas and Fee","icon":"gas-pump","pages":[{"title":"gasPrice","openapi":"openapi-gasPrice POST /","href":"/build/playground/gas-and-fee/gasPrice"},{"title":"feeHistory","openapi":"openapi-feeHistory POST /","href":"/build/playground/gas-and-fee/feeHistory"},{"title":"estimateGas","openapi":"openapi-estimateGas POST /","href":"/build/playground/gas-and-fee/estimateGas"}]},{"group":"Txpool","icon":"line-columns","pages":[{"title":"content","openapi":"openapi-content POST /","href":"/build/playground/txpool/content"},{"title":"contentFrom","openapi":"openapi-contentFrom POST /","href":"/build/playground/txpool/contentFrom"},{"title":"inspect","openapi":"openapi-inspect POST /","href":"/build/playground/txpool/inspect"},{"title":"status","openapi":"openapi-status POST /","href":"/build/playground/txpool/status"}]},{"group":"Debug","icon":"bug","pages":[{"title":"getBlockRlp","openapi":"openapi-getBlockRlp POST /","href":"/build/playground/debug/getBlockRlp"},{"title":"printBlock","openapi":"openapi-printBlock POST /","href":"/build/playground/debug/printBlock"},{"title":"traceTransaction","openapi":"openapi-traceTransaction POST /","href":"/build/playground/debug/traceTransaction"}]},{"group":"Net","icon":"wifi","pages":[{"title":"listening","openapi":"openapi-listening POST /","href":"/build/playground/net/listening"},{"title":"peerCount","openapi":"openapi-peerCount POST /","href":"/build/playground/net/peerCount"},{"title":"version","openapi":"openapi-version POST /","href":"/build/playground/net/version"}]},{"group":"Miner","icon":"pickaxe","pages":[{"title":"setLockupByte","openapi":"openapi-setLockupByte POST /","href":"/build/playground/miner/setLockupByte"},{"title":"setMinerPreference","openapi":"openapi-setMinerPreference POST /","href":"/build/playground/miner/setMinerPreference"}]},{"group":"Other","icon":"screwdriver-wrench","pages":[{"title":"chainId","openapi":"openapi-chainId POST /","href":"/build/playground/other/chainId"},{"title":"nodeLocation","openapi":"openapi-nodeLocation POST /","href":"/build/playground/other/nodeLocation"},{"title":"listRunningChains","openapi":"openapi-listRunningChains POST /","href":"/build/playground/other/listRunningChains"},{"title":"getProtocolExpansionNumber","openapi":"openapi-getProtocolExpansionNumber POST /","href":"/build/playground/other/getProtocolExpansionNumber"}]},{"group":"Conversion","icon":"right-left","pages":[{"title":"quaiToQi","openapi":"openapi-quaiToQi POST /","href":"/build/playground/conversion/quaiToQi"},{"title":"qiToQuai","openapi":"openapi-qiToQuai POST /","href":"/build/playground/conversion/qiToQuai"},{"title":"calculateConversionAmount","openapi":"openapi-calculateConversionAmount POST /","href":"/build/playground/conversion/calculateConversionAmount"}]}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/introduction"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/client/node"}]},{"tab":"Get Involved","pages":[{"title":"Get Involved","href":"/get-involved"}]}]},{"language":"cn","pages":[{"title":"cn","href":"/cn/build/smart-contracts/deployment"}]},{"language":"jp","pages":[{"title":"jp","href":"/jp/build/smart-contracts/deployment"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/build/smart-contracts/deployment"}]}]},"basePath":"","title":"Deploy - Quai Network Docs","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":[],"chunks":[]}