Chain forking creates a local copy of a live blockchain network. Your local environment gets the complete state of the target network — all contracts, all balances, all storage — at a specific block. This lets you:
Test against real DeFi protocols — Interact with Uniswap, Aave, Compound, etc. locally
Reproduce mainnet bugs — Fork at the block before a bug and replay the transaction
Test token integrations — Use real USDC, WETH, DAI balances in your tests
Simulate governance — Impersonate any address and execute transactions
# Start your environmentdokrypt up# Fork Ethereum mainnet at the latest blockdokrypt fork mainnet# Fork at a specific blockdokrypt fork mainnet --block 18500000# Fork Polygondokrypt fork polygon
# Fork mainnetdokrypt fork mainnet# Your local chain now has all of Uniswap's contracts# Interact with the Router at 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
# Fork mainnetdokrypt fork mainnet# Impersonate a USDC whaledokrypt accounts impersonate 0x47ac0Fb4F2D84898e4D9E7b4DaB3C24507a6D503# Now you can send USDC from this address without the private key
# Fork at the block just before the bugdokrypt fork mainnet --block 17999999# Impersonate the affected accountdokrypt accounts impersonate 0xAffectedAddress...# Replay or investigate
Resolution — The network name is resolved to an RPC URL
Reset — anvil_reset (or hardhat_reset) is called with the fork configuration
Wait — Dokrypt waits up to 120 seconds for the fork to complete
Funding — Test accounts are funded with 10,000 ETH each
Ready — The local chain is now a fork of the target network
Forking from public RPCs can be slow. For production testing, use a dedicated RPC provider (Alchemy, Infura, QuickNode) for much faster fork times.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Dokrypt","colors":{"primary":"#7c3aed","light":"#8b5cf6","dark":"#6d28d9"},"logo":{"light":"https://mintcdn.com/keldra/u0p1gIPxvIRAB676/logo/light.svg?fit=max\u0026auto=format\u0026n=u0p1gIPxvIRAB676\u0026q=85\u0026s=0cbe726a13fd8ff81d7f1eef863f17ff","dark":"https://mintcdn.com/keldra/u0p1gIPxvIRAB676/logo/dark.svg?fit=max\u0026auto=format\u0026n=u0p1gIPxvIRAB676\u0026q=85\u0026s=02a7becb39cce4b86353031282d6274e"},"favicon":"/favicon.svg","navbar":{"links":[{"href":"https://github.com/dokrypt-org/dokrypt","label":"GitHub"}],"primary":{"type":"button","label":"Install","href":"/installation"}},"footer":{"socials":{"github":"https://github.com/dokrypt-org/dokrypt","discord":"https://discord.gg/HG94Jg6PS2"}},"fonts":{"heading":{"family":"Inter","weight":600},"body":{"family":"Inter","weight":400}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/dokrypt-org/dokrypt"},{"anchor":"npm","icon":"npm","href":"https://www.npmjs.com/package/dokrypt"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"keldra","hasAudioNarration":false,"actualSubdomain":"keldra","customDomains":["docs.dokrypt.com"],"gitSource":{"type":"github","owner":"utabk","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9495cc52e7db43c80d1b0:success","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"CLI Reference","count":24},{"language":"default","tag":"Documentation","count":16},{"language":"default","tag":"Templates","count":14},{"language":"default","tag":"Project Lifecycle","count":7},{"language":"default","tag":"Features","count":7},{"language":"default","tag":"Blockchain Operations","count":5},{"language":"default","tag":"Configuration \u0026 Templates","count":4},{"language":"default","tag":"Advanced","count":3},{"language":"default","tag":"Deployment \u0026 Verification","count":3},{"language":"default","tag":"Core Concepts","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"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":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"features/forking","slug":"/features/forking","pageMetadata":{"title":"Chain Forking","description":"Fork Ethereum mainnet, Polygon, Arbitrum, and other EVM chains at any block.","href":"/features/forking","hidden":false},"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: \"Fork Ethereum mainnet, Polygon, Arbitrum, and other EVM chains at any block.\"\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={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Chain forking creates a local copy of a live blockchain network. Your local environment gets the complete state of the target network — all contracts, all balances, all storage — at a specific block. This lets you:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Test against real DeFi protocols`}),` — Interact with Uniswap, Aave, Compound, etc. locally`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Reproduce mainnet bugs`}),` — Fork at the block before a bug and replay the transaction`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Test token integrations`}),` — Use real USDC, WETH, DAI balances in your tests`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Simulate governance`}),` — Impersonate any address and execute transactions`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start`,children:`Quick Start`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,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:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Start your environment`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` up`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Fork Ethereum mainnet at the latest block`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fork`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mainnet`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Fork at a specific block`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fork`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mainnet`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --block`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 18500000`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Fork Polygon`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fork`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` polygon`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`supported-networks`,children:`Supported Networks`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Network`}),_jsx(_components.th,{children:`Aliases`}),_jsx(_components.th,{children:`Chain ID`}),_jsx(_components.th,{children:`Public RPC`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Ethereum`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`mainnet`}),`, `,_jsx(_components.code,{children:`ethereum`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://eth.llamarpc.com`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sepolia`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`sepolia`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`11155111`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://rpc.sepolia.org`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Goerli`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`goerli`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`5`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://rpc.ankr.com/eth_goerli`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Polygon`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`polygon`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`137`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://polygon-rpc.com`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Arbitrum`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`arbitrum`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`42161`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://arb1.arbitrum.io/rpc`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Optimism`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`optimism`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`10`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://mainnet.optimism.io`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Base`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`base`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`8453`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://mainnet.base.org`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`BSC`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bsc`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`56`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://bsc-dataseed.binance.org`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Avalanche`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`avalanche`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`43114`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://api.avax.network/ext/bc/C/rpc`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`using-custom-rpc-urls`,children:`Using Custom RPC URLs`}),`\n`,_jsx(_components.p,{children:`For faster forks or private access, use your own RPC URL:`}),`\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:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fork`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://eth-mainnet.alchemyapi.io/v2/YOUR_KEY`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Or with the `,_jsx(_components.code,{children:`--fork`}),` flag on `,_jsx(_components.code,{children:`dokrypt up`}),`:`]}),`\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:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` up`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --fork`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mainnet`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` up`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --fork`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` polygon`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --fork-block`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 50000000`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`fork-on-startup-via-config`,children:`Fork on Startup via Config`}),`\n`,_jsxs(_components.p,{children:[`You can configure forking directly in `,_jsx(_components.code,{children:`dokrypt.yaml`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`yaml`,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:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`chains`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` ethereum`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` engine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`anvil`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` chain_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`31337`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` fork`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` network`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`mainnet`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` block_number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`18500000`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`use-cases`,children:`Use Cases`}),`\n`,_jsx(Heading,{level:`3`,id:`test-against-uniswap`,children:`Test Against Uniswap`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Fork mainnet`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fork`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mainnet`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Your local chain now has all of Uniswap's contracts`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Interact with the Router at 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`impersonate-a-whale`,children:`Impersonate a Whale`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Fork mainnet`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fork`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mainnet`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Impersonate a USDC whale`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` accounts`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` impersonate`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0x47ac0Fb4F2D84898e4D9E7b4DaB3C24507a6D503`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Now you can send USDC from this address without the private key`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reproduce-a-bug`,children:`Reproduce a Bug`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Fork at the block just before the bug`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fork`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mainnet`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --block`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 17999999`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Impersonate the affected account`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` accounts`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` impersonate`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 0xAffectedAddress...`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Replay or investigate`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`multi-chain-fork`,children:`Multi-chain Fork`}),`\n`,_jsxs(_components.p,{children:[`If your `,_jsx(_components.code,{children:`dokrypt.yaml`}),` has multiple chains, specify which one to fork:`]}),`\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:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fork`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mainnet`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --chain`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` l1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`dokrypt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fork`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` polygon`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --chain`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` l2`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How It Works`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Resolution`}),` — The network name is resolved to an RPC URL`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Reset`}),` — `,_jsx(_components.code,{children:`anvil_reset`}),` (or `,_jsx(_components.code,{children:`hardhat_reset`}),`) is called with the fork configuration`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Wait`}),` — Dokrypt waits up to 120 seconds for the fork to complete`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Funding`}),` — Test accounts are funded with 10,000 ETH each`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Ready`}),` — The local chain is now a fork of the target network`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Forking from public RPCs can be slow. For production testing, use a dedicated RPC provider (Alchemy, Infura, QuickNode) for much faster fork times.`})})]})}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":"Chain Forking","description":"Fork Ethereum mainnet, Polygon, Arbitrum, and other EVM chains at any block.","href":"/features/forking","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Quick Start","slug":"quick-start","depth":2,"children":[]},{"title":"Supported Networks","slug":"supported-networks","depth":2,"children":[]},{"title":"Using Custom RPC URLs","slug":"using-custom-rpc-urls","depth":2,"children":[]},{"title":"Fork on Startup via Config","slug":"fork-on-startup-via-config","depth":2,"children":[]},{"title":"Use Cases","slug":"use-cases","depth":2,"children":[{"title":"Test Against Uniswap","slug":"test-against-uniswap","depth":3,"children":[]},{"title":"Impersonate a Whale","slug":"impersonate-a-whale","depth":3,"children":[]},{"title":"Reproduce a Bug","slug":"reproduce-a-bug","depth":3,"children":[]},{"title":"Multi-chain Fork","slug":"multi-chain-fork","depth":3,"children":[]}]},{"title":"How It Works","slug":"how-it-works","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"keldra","siteName":"Dokrypt","title":"Chain Forking - Dokrypt","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-05T15:56:07.290Z","originalFileLocation":"features/forking.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=\"description\" content=\"Fork Ethereum mainnet, Polygon, Arbitrum, and other EVM chains at any block.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dokrypt\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/keldra/IsTvTMEpP0Exi4Y8/_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/keldra/IsTvTMEpP0Exi4Y8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/keldra/IsTvTMEpP0Exi4Y8/_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/keldra/IsTvTMEpP0Exi4Y8/_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/keldra/IsTvTMEpP0Exi4Y8/_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/keldra/IsTvTMEpP0Exi4Y8/_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/keldra/IsTvTMEpP0Exi4Y8/_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/keldra/IsTvTMEpP0Exi4Y8/_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/keldra/IsTvTMEpP0Exi4Y8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Chain Forking - Dokrypt\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fork Ethereum mainnet, Polygon, Arbitrum, and other EVM chains at any block.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dokrypt\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dokrypt.com/features/forking\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://keldra.mintlify.site/_mintlify/api/og/v2?division=Features\u0026amp;title=Chain+Forking\u0026amp;description=Fork+Ethereum+mainnet%2C+Polygon%2C+Arbitrum%2C+and+other+EVM+chains+at+any+block.\u0026amp;theme=7398d9d310b5deaab5d40396\u0026amp;signature=ccf516b7c8484f561af5094243a84a3617a8898f38ea9e23d94943f82de986ac\">\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=\"Chain Forking - Dokrypt\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fork Ethereum mainnet, Polygon, Arbitrum, and other EVM chains at any block.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://keldra.mintlify.site/_mintlify/api/og/v2?division=Features\u0026amp;title=Chain+Forking\u0026amp;description=Fork+Ethereum+mainnet%2C+Polygon%2C+Arbitrum%2C+and+other+EVM+chains+at+any+block.\u0026amp;theme=7398d9d310b5deaab5d40396\u0026amp;signature=ccf516b7c8484f561af5094243a84a3617a8898f38ea9e23d94943f82de986ac\">\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/keldra/IsTvTMEpP0Exi4Y8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dokrypt\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7c3aed\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dokrypt.com/features/forking\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/forking.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dokrypt.com/#organization\",\"name\":\"Dokrypt\",\"url\":\"https://docs.dokrypt.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/keldra/u0p1gIPxvIRAB676/logo/light.svg?fit=max\u0026auto=format\u0026n=u0p1gIPxvIRAB676\u0026q=85\u0026s=0cbe726a13fd8ff81d7f1eef863f17ff\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dokrypt.com#website\",\"name\":\"Dokrypt\",\"url\":\"https://docs.dokrypt.com\",\"publisher\":{\"@id\":\"https://docs.dokrypt.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dokrypt.com/features/forking#webpage\",\"url\":\"https://docs.dokrypt.com/features/forking\",\"name\":\"Chain Forking\",\"description\":\"Fork Ethereum mainnet, Polygon, Arbitrum, and other EVM chains at any block.\",\"dateModified\":\"2026-03-05T15:56:07.290Z\",\"isPartOf\":{\"@id\":\"https://docs.dokrypt.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dokrypt.com/features/forking#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dokrypt.com/features/forking#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Features\",\"item\":\"https://docs.dokrypt.com/features/snapshots\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chain Forking\",\"item\":\"https://docs.dokrypt.com/features/forking\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.dokrypt.com/features/forking#article\",\"headline\":\"Chain Forking\",\"name\":\"Chain Forking\",\"description\":\"Fork Ethereum mainnet, Polygon, Arbitrum, and other EVM chains at any block.\",\"url\":\"https://docs.dokrypt.com/features/forking\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dokrypt.com/features/forking#webpage\"},\"dateModified\":\"2026-03-05T15:56:07.290Z\",\"publisher\":{\"@id\":\"https://docs.dokrypt.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dokrypt.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dokrypt\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Dokrypt","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/dokrypt-org/dokrypt"},{"anchor":"npm","icon":"npm","href":"https://www.npmjs.com/package/dokrypt"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Installation","href":"/installation"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Core Concepts","pages":[{"title":"dokrypt.yaml","href":"/configuration/dokrypt-yaml"},{"title":"Chains","href":"/configuration/chains"},{"title":"Services","href":"/configuration/services"}]},{"group":"Features","pages":[{"title":"State Snapshots","description":"Save, restore, diff, export, and import chain state for reproducible testing.","href":"/features/snapshots"},{"title":"Chain Forking","href":"/features/forking"},{"title":"Testing Framework","description":"Run Solidity and JavaScript tests with gas reports, coverage, and parallel execution.","href":"/features/testing"},{"title":"Chain Utilities","href":"/features/chain-utils"},{"title":"Account Management","href":"/features/accounts"},{"title":"Cross-Chain Bridge","href":"/features/bridge"},{"title":"CI/CD Integration","href":"/features/ci-cd"}]},{"group":"Advanced","pages":[{"title":"Plugins","href":"/advanced/plugins"},{"title":"Template Marketplace","href":"/advanced/marketplace"},{"title":"Docker \u0026 Container Runtime","href":"/advanced/docker"}]}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/cli/overview"}]},{"tab":"Templates","pages":[{"title":"Templates","href":"/templates/overview"}]}]},"basePath":"","title":"Chain Forking - Dokrypt","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":[],"chunks":[]}