The Injective Ethereum bridge enables the Injective Chain to support a trustless, on-chain bidirectional token bridge. In this system, holders of ERC-20 tokens on Ethereum can convert their ERC-20 tokens to native coins on the Injective Chain and vice-versa.The Injective Peggy bridge consists of three main components:
Peggy Contract on Ethereum
Peggo Orchestrator
Peggy Module on the Injective Chain
Peggy Contract
The function of the Peggy contract is to facilitate efficient, bidirectional cross-chain transfers of ERC-20 tokens from Ethereum to the Injective Chain. Unlike other token bridge setups, the Injective Peggy bridge is a decentralized, non-custodial bridge operated solely by the validators on Injective. The bridge is secured by the proof of stake security of the Injective Chain, as deposits and withdrawals are processed in accordance with attestations made by at least two-thirds of the validators based on consensus staking power.
Peggo Orchestrator
The orchestrator is an off-chain relayer that every Injective Chain validator operates which serves the function of transmitting ERC-20 token transfer data from Ethereum to the Injective Chain.
Peggy Module
On a basic level, the Peggy module mints new tokens on the Injective Chain upon an ERC-20 deposit from Ethereum and burns tokens upon withdrawing a token from the Injective Chain back to Ethereum. The Peggy module also manages the economic incentives to ensure that validators act honestly and efficiently, through a variety of mechanisms including slashing penalties, native token rewards, and withdrawal fees.
From Ethereum to Injective
To transfer from Ethereum to Injective you have to make a Web3 Transaction and interact with the Peggy contract on Ethereum. There are two steps required to make a transfer:
As we are basically locking our ERC20 assets on the Peggy Contract which lives on Ethereum, we need to set an allowance for the assets we are transferring to the Peggy Contract. You can use any web3 provider (such as ethers.js or web3.js) to call the ERC-20 approve function with the Peggy contract address as the spender.
After the allowance is set, we need to call the sendToInjective function on the Peggy Contract with the desired amount and asset that we want to transfer to the Injective Chain, You can use the PeggyContract class from @injectivelabs/contracts (see example below) or interact with the contract directly using the ABI. Once the transaction is confirmed, it’ll take a couple of minutes for the assets to show on the Injective Chain.
Couple of notes about the examples above:
The destination address (if you want to build the transaction yourself) is in the following format
where the Ethereum address is the corresponding Ethereum address of the destination Injective address.
walletStrategywalletStrategy is an abstraction that we’ve built which supports a lot of wallets which can be used to sign and broadcast transactions (both on Ethereum and on the Injective Chain), more details can be found in the documentation of the npm package @injectivelabs/wallet-strategy and @injectivelabs/wallet-core. Obviously, this is just an example and you can use the web3 package directly, or any web3 provider to handle the transaction.
import { PeggyContract } from "@injectivelabs/contracts";const contract = new PeggyContract({ ethereumChainId, address: peggyContractAddress, web3: web3 as any,});
The snippet below instantiates a PeggyContract instance which can easily estimateGas and sendTransaction using the web3 we provide to the contract’s constructor. Its implementation can be found here. Obviously, this is just an example and you can use the web3 package directly + the ABI of the contract to instantiate the contract, and then handle the logic of signing and broadcasting the transaction using some web3 provider.
From Injective to Ethereum
Now that you have the ERC20 version of INJ transferred over to Injective, the native inj denom on the Injective Chain is minted and it is the canonical version of the INJ token. To withdraw inj from Injective to Ethereum we have to prepare, sign and then broadcast a native Cosmos transaction on the Injective Chain.If you are not familiar with how Transactions (and Messages) work on Cosmos you can find more information here. The Message we need to pack into a transaction to instruct Injective to withdraw funds from Injective to Ethereum is MsgSendToEth.When MsgSendToEth is called on the chain, some of the validators will pick up the transaction, batch multiple MsgSendToEth requests into one and: burn the assets being withdrawn on Injective, unlock these funds on the Peggy Smart Contract on Ethereum and send them to the respective address.There is a bridgeFee included in these transactions to incentivize Validators to pick up and process your withdrawal requests faster. The bridgeFee is in the asset the user wants to withdraw to Ethereum (if you withdraw INJ you have to pay the bridgeFee in INJ as well).Here is an example implementation that prepares the transaction, uses a privateKey to sign it and finally, broadcasts it to Injective:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Injective Docs","description":"Injective is a high-performance, interoperable layer-one blockchain for building premier Web3 financial applications.","colors":{"primary":"#0082FA","light":"#E6F2FF","dark":"#0082FA"},"logo":{"light":"https://mintcdn.com/injectivelabs/QlZaYS7qaDAyLKCM/img/injective-logo-192x192.png?fit=max\u0026auto=format\u0026n=QlZaYS7qaDAyLKCM\u0026q=85\u0026s=07e0ad67fc7a332d74f7d418e2727dbd","dark":"https://mintcdn.com/injectivelabs/QlZaYS7qaDAyLKCM/img/injective-logo-192x192.png?fit=max\u0026auto=format\u0026n=QlZaYS7qaDAyLKCM\u0026q=85\u0026s=07e0ad67fc7a332d74f7d418e2727dbd"},"favicon":"https://mintcdn.com/injectivelabs/QlZaYS7qaDAyLKCM/img/injective-logo-192x192.png?fit=max\u0026auto=format\u0026n=QlZaYS7qaDAyLKCM\u0026q=85\u0026s=07e0ad67fc7a332d74f7d418e2727dbd","navbar":{"links":[{"href":"https://status.injective.network","label":"Status"},{"href":"https://testnet.faucet.injective.network","label":"Faucet"},{"href":"https://github.com/InjectiveLabs","type":"github"},{"href":"https://sentry.lcd.injective.network/swagger/#/","label":"API"},{"href":"https://chain.injective.network","label":"Operator Portal"},{"href":"/upgrade/latest","label":"Latest Upgrade"}]},"search":{"prompt":"Search Injective docs..."},"seo":{"metatags":{"og:type":"website","og:site_name":"Injective Docs","canonical":"https://docs.injective.network","indexnow-verification":"83e83a6368fb4defb4ae2ae309922656","msvalidate.01":"C0245176149C1961102F102F1E76F150"},"indexing":"all"},"styling":{"eyebrows":"breadcrumbs","latex":true},"integrations":{"gtm":{"tagId":"GTM-T4827WQD"}},"metadata":{"timestamp":true},"navigation":{"languages":[{"language":"en","footer":{"socials":{"website":"https://injective.com/","github":"https://github.com/InjectiveLabs","x":"https://x.com/injective","youtube":"https://youtube.com/@injective_","discord":"https://discord.gg/injective","telegram":"https://t.me/+8Y_0HOFLhnRlZDU9","linkedin":"https://www.linkedin.com/company/injectivelabs","reddit":"https://www.reddit.com/r/injective"},"links":[{"header":"About docs","items":[{"label":"Maintained by Injective Labs' Developer Relations Team","href":"https://injective.com/"},{"label":"Open an issue","href":"https://github.com/InjectiveLabs/injective-docs/issues"},{"label":"Submit a PR","href":"https://github.com/InjectiveLabs/injective-docs/pulls"}]},{"header":"Resources","items":[{"label":"Operator Portal","href":"https://chain.injective.network"},{"label":"Network Status","href":"https://status.injective.network"},{"label":"Blog","href":"https://injective.com/blog"},{"label":"Build","href":"https://injective.com/build"},{"label":"7 days of Injective","href":"https://youtube.com/watch?v=bE9JbFpsDFM\u0026list=PLTS_stt4XpDBGDXxrx4crxijAemFr3Mix"}]}]},"href":""},{"language":"zh-Hans","href":"cn"},{"language":"ko","href":"ko"},{"language":"jp","href":"jp"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"injectivelabs","hasAudioNarration":false,"actualSubdomain":"injectivelabs","customDomains":["docs.injective.network"],"gitSource":{"type":"github","owner":"injectivelabs","repo":"injective-docs","deployBranch":"main","contentDirectory":".gitbook","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b06d7b04d746179e791e6c8","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"en","tag":"Develop","count":264},{"language":"en","tag":"BUILD","count":264},{"language":"ko","tag":"개발","count":255},{"language":"ko","tag":"빌드","count":255},{"language":"en","tag":"Native Developers","count":198},{"language":"ko","tag":"Native 개발자","count":175},{"language":"zh-Hans","tag":"开发","count":158},{"language":"zh-Hans","tag":"构建","count":158},{"language":"jp","tag":"開発","count":133},{"language":"jp","tag":"ビルド","count":133},{"language":"en","tag":"Getting Started","count":123},{"language":"en","tag":"INJECTIVE","count":123},{"language":"en","tag":"Injective Modules","count":100},{"language":"ko","tag":"Injective Modules","count":93},{"language":"zh-Hans","tag":"Native 开发者","count":73},{"language":"zh-Hans","tag":"快速开始","count":71},{"language":"zh-Hans","tag":"INJECTIVE","count":71},{"language":"jp","tag":"ネイティブ開発者","count":66},{"language":"en","tag":"Network Infrastructure","count":65},{"language":"ko","tag":"시작하기","count":64},{"language":"ko","tag":"INJECTIVE","count":64},{"language":"jp","tag":"はじめに","count":58},{"language":"jp","tag":"INJECTIVE","count":58},{"language":"en","tag":"DeFi on Injective","count":52},{"language":"en","tag":"Upgrades","count":45},{"language":"zh-Hans","tag":"DeFi","count":41},{"language":"en","tag":"Historical Upgrades","count":40},{"language":"jp","tag":"DeFi","count":40},{"language":"ko","tag":"DeFi","count":40},{"language":"zh-Hans","tag":"EVM 开发者","count":31},{"language":"zh-Hans","tag":"开发者","count":30},{"language":"ko","tag":"개발자","count":30},{"language":"jp","tag":"EVM開発者","count":28},{"language":"ko","tag":"EVM 개발자","count":28},{"language":"zh-Hans","tag":"在 Injective 上构建","count":26},{"language":"jp","tag":"Injectiveで構築","count":26},{"language":"zh-Hans","tag":"交易","count":24},{"language":"ko","tag":"Injective에서 빌드","count":22},{"language":"jp","tag":"チェーンのクエリ","count":18},{"language":"jp","tag":"開発者","count":17},{"language":"default","tag":"개발","count":8},{"language":"default","tag":"빌드","count":8},{"language":"default","tag":"개발자","count":8},{"language":"default","tag":"INJECTIVE","count":2},{"language":"default","tag":"Develop","count":2},{"language":"default","tag":"BUILD","count":2},{"language":"default","tag":"EVM Developers","count":2},{"language":"default","tag":"시작하기","count":1},{"language":"default","tag":"인프라","count":1},{"language":"default","tag":"Getting Started","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"utility-bar.css","content":"nav a[href*=\"chain-portal\"]{color:#0082FA!important;font-weight:600!important}aside [data-active=\"true\"],[data-component-name=\"sidebar\"] [data-active=\"true\"]{color:#0082FA!important;background:rgba(0, 130, 250, 0.08)!important}nav [data-active=\"true\"],[data-component-name=\"tabs\"] [data-active=\"true\"]{background:transparent!important}nav a[href*=\"/upgrade/latest\"]{color:#0082FA!important;font-weight:600!important;background:#E6F2FF!important;padding:4px 10px!important;border-radius:6px!important}"}]}
{"page":{"pagePath":"developers-native/bridges/ethereum","slug":"/developers-native/bridges/ethereum","pageMetadata":{"title":"Ethereum Bridge","updatedAt":"2025-11-28","description":null,"href":"/developers-native/bridges/ethereum"},"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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Injective Ethereum bridge enables the Injective Chain to support a trustless, on-chain bidirectional token bridge. In this system, holders of ERC-20 tokens on Ethereum can convert their ERC-20 tokens to native coins on the Injective Chain and vice-versa.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/injectivelabs/GCIaizwZ3roM4oA8/img/peggy-bridge-architecture.svg?fit=max\u0026auto=format\u0026n=GCIaizwZ3roM4oA8\u0026q=85\u0026s=07980a4545032579c4790424009f6502`,alt:`Peggy bridge architecture and flow`,\"data-og-width\":`800`,width:`800`,\"data-og-height\":`520`,height:`520`,\"data-path\":`img/peggy-bridge-architecture.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/injectivelabs/GCIaizwZ3roM4oA8/img/peggy-bridge-architecture.svg?w=280\u0026fit=max\u0026auto=format\u0026n=GCIaizwZ3roM4oA8\u0026q=85\u0026s=d4de96722b3e730cafe03868f40727bb 280w, https://mintcdn.com/injectivelabs/GCIaizwZ3roM4oA8/img/peggy-bridge-architecture.svg?w=560\u0026fit=max\u0026auto=format\u0026n=GCIaizwZ3roM4oA8\u0026q=85\u0026s=080fe057786bca9ab0f6565f8c17ae6f 560w, https://mintcdn.com/injectivelabs/GCIaizwZ3roM4oA8/img/peggy-bridge-architecture.svg?w=840\u0026fit=max\u0026auto=format\u0026n=GCIaizwZ3roM4oA8\u0026q=85\u0026s=6e17e8f8203ecb3a7f9cccc06c1e232d 840w, https://mintcdn.com/injectivelabs/GCIaizwZ3roM4oA8/img/peggy-bridge-architecture.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=GCIaizwZ3roM4oA8\u0026q=85\u0026s=18b9aa5e813e8f5cba145348f9c4882c 1100w, https://mintcdn.com/injectivelabs/GCIaizwZ3roM4oA8/img/peggy-bridge-architecture.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=GCIaizwZ3roM4oA8\u0026q=85\u0026s=c37cfad501c1aebd712a905d9566c94c 1650w, https://mintcdn.com/injectivelabs/GCIaizwZ3roM4oA8/img/peggy-bridge-architecture.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=GCIaizwZ3roM4oA8\u0026q=85\u0026s=758f73904ef0351c1a9a015f235c0fa6 2500w`}),`\n`,_jsx(_components.p,{children:`The Injective Peggy bridge consists of three main components:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Peggy Contract on Ethereum`}),`\n`,_jsx(_components.li,{children:`Peggo Orchestrator`}),`\n`,_jsx(_components.li,{children:`Peggy Module on the Injective Chain`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`peggy-contract`,children:`Peggy Contract`}),`\n`,_jsx(_components.p,{children:`The function of the Peggy contract is to facilitate efficient, bidirectional cross-chain transfers of ERC-20 tokens from Ethereum to the Injective Chain. Unlike other token bridge setups, the Injective Peggy bridge is a decentralized, non-custodial bridge operated solely by the validators on Injective. The bridge is secured by the proof of stake security of the Injective Chain, as deposits and withdrawals are processed in accordance with attestations made by at least two-thirds of the validators based on consensus staking power.`}),`\n`,_jsx(Heading,{level:`2`,id:`peggo-orchestrator`,children:`Peggo Orchestrator`}),`\n`,_jsx(_components.p,{children:`The orchestrator is an off-chain relayer that every Injective Chain validator operates which serves the function of transmitting ERC-20 token transfer data from Ethereum to the Injective Chain.`}),`\n`,_jsx(Heading,{level:`2`,id:`peggy-module`,children:`Peggy Module`}),`\n`,_jsx(_components.p,{children:`On a basic level, the Peggy module mints new tokens on the Injective Chain upon an ERC-20 deposit from Ethereum and burns tokens upon withdrawing a token from the Injective Chain back to Ethereum. The Peggy module also manages the economic incentives to ensure that validators act honestly and efficiently, through a variety of mechanisms including slashing penalties, native token rewards, and withdrawal fees.`}),`\n`,_jsx(Heading,{level:`2`,id:`from-ethereum-to-injective`,children:`From Ethereum to Injective`}),`\n`,_jsx(_components.p,{children:`To transfer from Ethereum to Injective you have to make a Web3 Transaction and interact with the Peggy contract on Ethereum. There are two steps required to make a transfer:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`As we are basically locking our ERC20 assets on the Peggy Contract which lives on Ethereum, we need to set an allowance for the assets we are transferring to the Peggy Contract. You can use any web3 provider (such as ethers.js or web3.js) to call the ERC-20 `,_jsx(_components.code,{children:`approve`}),` function with the Peggy contract address as the spender.`]}),`\n`,_jsxs(_components.li,{children:[`After the allowance is set, we need to call the `,_jsx(_components.code,{children:`sendToInjective`}),` function on the Peggy Contract with the desired amount and asset that we want to transfer to the Injective Chain, You can use the `,_jsx(_components.code,{children:`PeggyContract`}),` class from `,_jsx(_components.code,{children:`@injectivelabs/contracts`}),` (see example below) or interact with the contract directly using the ABI. Once the transaction is confirmed, it’ll take a couple of minutes for the assets to show on the Injective Chain.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Couple of notes about the examples above:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The destination address (if you want to build the transaction yourself) is in the following format`}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x000000000000000000000000{ETHEREUM_ADDRESS_HERE_WITHOUT_0X_PREFIX}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// example`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x000000000000000000000000e28b3b32b6c345a34ff64674606124dd5aceca30\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`where the Ethereum address is the corresponding Ethereum address of the destination Injective address.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`walletStrategy`}),` `,_jsx(_components.code,{children:`walletStrategy`}),` is an abstraction that we’ve built which supports a lot of wallets which can be used to sign and broadcast transactions (both on Ethereum and on the Injective Chain), more details can be found in the documentation of the npm package `,_jsx(_components.a,{href:`https://github.com/InjectiveLabs/injective-ts/tree/master/packages/wallets/wallet-strategy`,children:`@injectivelabs/wallet-strategy`}),` and `,_jsx(_components.a,{href:`https://github.com/InjectiveLabs/injective-ts/tree/master/packages/wallets/wallet-core`,children:`@injectivelabs/wallet-core`}),`. Obviously, this is just an example and you can use the web3 package directly, or any web3 provider to handle the transaction.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PeggyContract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@injectivelabs/contracts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` contract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PeggyContract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ethereumChainId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` address:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` peggyContractAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` web3:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` web3`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` any`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The snippet below instantiates a PeggyContract instance which can easily `,_jsx(_components.code,{children:`estimateGas`}),` and `,_jsx(_components.code,{children:`sendTransaction`}),` using the `,_jsx(_components.code,{children:`web3`}),` we provide to the contract’s constructor. Its implementation can be found `,_jsx(_components.a,{href:`https://github.com/InjectiveLabs/injective-ts`,children:`here`}),`. Obviously, this is just an example and you can use the web3 package directly + the ABI of the contract to instantiate the contract, and then handle the logic of signing and broadcasting the transaction using some web3 provider.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`from-injective-to-ethereum`,children:`From Injective to Ethereum`}),`\n`,_jsxs(_components.p,{children:[`Now that you have the ERC20 version of INJ transferred over to Injective, the native `,_jsx(_components.code,{children:`inj`}),` denom on the Injective Chain is minted and it is the canonical version of the INJ token. To withdraw `,_jsx(_components.code,{children:`inj`}),` from Injective to Ethereum we have to prepare, sign and then broadcast a native Cosmos transaction on the Injective Chain.`]}),`\n`,_jsxs(_components.p,{children:[`If you are not familiar with how Transactions (and Messages) work on Cosmos you can find more information here. The Message we need to pack into a transaction to instruct Injective to withdraw funds from Injective to Ethereum is `,_jsx(_components.code,{children:`MsgSendToEth`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`MsgSendToEth`}),` is called on the chain, some of the validators will pick up the transaction, batch multiple `,_jsx(_components.code,{children:`MsgSendToEth`}),` requests into one and: burn the assets being withdrawn on Injective, unlock these funds on the Peggy Smart Contract on Ethereum and send them to the respective address.`]}),`\n`,_jsx(_components.p,{children:`There is a bridgeFee included in these transactions to incentivize Validators to pick up and process your withdrawal requests faster. The bridgeFee is in the asset the user wants to withdraw to Ethereum (if you withdraw INJ you have to pay the bridgeFee in INJ as well).`}),`\n`,_jsx(_components.p,{children:`Here is an example implementation that prepares the transaction, uses a privateKey to sign it and finally, broadcasts it to Injective:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`93`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`93`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`getNetworkInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Network`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@injectivelabs/networks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TxClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TxRestApi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` createTransaction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@injectivelabs/sdk-ts/core/tx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PrivateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@injectivelabs/sdk-ts/core/accounts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` MsgSendToEth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@injectivelabs/sdk-ts/core/modules\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ChainRestAuthApi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@injectivelabs/sdk-ts/client/chain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`toChainFormat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`getDefaultStdFee`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@injectivelabs/utils\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/** MsgSendToEth Example */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` network`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getNetworkInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Network`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Mainnet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Gets the rpc/lcd endpoints`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` privateKeyHash`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"f9db9bf330e23cb7839039e944adef6e9df447b90b503d5b4464c90bea9022f3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` privateKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PrivateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fromPrivateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`privateKeyHash`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` injectiveAddress`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` privateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toBech32`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` ethAddress`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` privateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toHex`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` publicKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` privateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toPublicKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toBase64`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /** Account Details **/`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` accountDetails`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` ChainRestAuthApi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`network`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`rest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fetchAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` injectiveAddress`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /** Prepare the Message */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` amount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` amount:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` toChainFormat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.01`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toFixed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` denom:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"inj\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` bridgeFee`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` amount:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` toChainFormat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.01`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toFixed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` denom:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"inj\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` msg`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` MsgSendToEth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fromJSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` amount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bridgeFee`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` injectiveAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` address:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ethAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /** Prepare the Transaction **/`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`signBytes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`txRaw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` createTransaction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` message:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` msg`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pubKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` publicKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fee:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getDefaultStdFee`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sequence:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` parseInt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accountDetails`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`account`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base_account`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sequence`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` accountNumber:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` parseInt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` accountDetails`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`account`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base_account`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`account_number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 10`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` chainId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` network`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chainId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /** Sign transaction */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` signature`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` privateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`sign`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Buffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signBytes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /** Append Signatures */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` txRaw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signatures`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signature`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /** Calculate hash of the transaction */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Transaction Hash: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TxClient`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`hash`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`txRaw`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` txService`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` TxRestApi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`network`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`rest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /** Simulate transaction */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` simulationResponse`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` txService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`simulate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`txRaw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Transaction simulation response: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` simulationResponse`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`gasInfo`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:` )`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /** Broadcast transaction */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` txResponse`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` txService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`broadcast`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`txRaw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`txResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Transaction failed: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`txResponse`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`rawLog`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Broadcasted transaction hash: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`txResponse`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`txhash`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})();`})}),`\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":"Ethereum Bridge","updatedAt":"2025-11-28","description":null,"href":"/developers-native/bridges/ethereum"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Peggy Contract","slug":"peggy-contract","depth":2,"children":[]},{"title":"Peggo Orchestrator","slug":"peggo-orchestrator","depth":2,"children":[]},{"title":"Peggy Module","slug":"peggy-module","depth":2,"children":[]},{"title":"From Ethereum to Injective","slug":"from-ethereum-to-injective","depth":2,"children":[]},{"title":"From Injective to Ethereum","slug":"from-injective-to-ethereum","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/injectivelabs/afb6b70adb7c4270/layout-tweaks.js"],"subdomain":"injectivelabs","siteName":"Injective Docs","title":"Ethereum Bridge - Injective Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/developers-native/bridges/ethereum","matchLevel":0},"zh-Hans":{"href":"/cn/developers-native/bridges/ethereum","matchLevel":1},"ko":{"href":"/ko/developers-native/bridges/ethereum","matchLevel":1},"jp":{"href":"/jp/developers-native/bridges/ethereum","matchLevel":1}}},"lastModified":"2026-10-11T10:31:52.365Z","gitLastModified":"2026-09-24T11:02:16.000Z","originalFileLocation":"developers-native/bridges/ethereum.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=\"application-name\" content=\"Injective 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/injectivelabs/dGav8VeqGBHoojU_/_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/injectivelabs/dGav8VeqGBHoojU_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/injectivelabs/dGav8VeqGBHoojU_/_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/injectivelabs/dGav8VeqGBHoojU_/_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/injectivelabs/dGav8VeqGBHoojU_/_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/injectivelabs/dGav8VeqGBHoojU_/_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/injectivelabs/dGav8VeqGBHoojU_/_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/injectivelabs/dGav8VeqGBHoojU_/_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/injectivelabs/dGav8VeqGBHoojU_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ethereum Bridge - Injective Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Injective Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.injective.network/developers-native/bridges/ethereum\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://injectivelabs.mintlify.site/_mintlify/api/og/v2?division=Bridges\u0026amp;title=Ethereum+Bridge\u0026amp;theme=899fdb1d0593f9b560558788\u0026amp;signature=f486e5fa05f91491cabe5a28e61a82680a36e5b8fd0d9dac09081058468e6bd9\">\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=\"Ethereum Bridge - Injective Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://injectivelabs.mintlify.site/_mintlify/api/og/v2?division=Bridges\u0026amp;title=Ethereum+Bridge\u0026amp;theme=899fdb1d0593f9b560558788\u0026amp;signature=f486e5fa05f91491cabe5a28e61a82680a36e5b8fd0d9dac09081058468e6bd9\">\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/injectivelabs/dGav8VeqGBHoojU_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Injective Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0082FA\">\u003cmeta data-mint-head name=\"indexnow-verification\" content=\"83e83a6368fb4defb4ae2ae309922656\">\u003cmeta data-mint-head name=\"msvalidate.01\" content=\"C0245176149C1961102F102F1E76F150\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.injective.network/developers-native/bridges/ethereum\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/developers-native/bridges/ethereum.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.injective.network/developers-native/bridges/ethereum\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://docs.injective.network/cn/developers-native/bridges/ethereum\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.injective.network/ko/developers-native/bridges/ethereum\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.injective.network/jp/developers-native/bridges/ethereum\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.injective.network/developers-native/bridges/ethereum\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.injective.network/#organization\",\"name\":\"Injective Docs\",\"url\":\"https://docs.injective.network\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/injectivelabs/QlZaYS7qaDAyLKCM/img/injective-logo-192x192.png?fit=max\u0026auto=format\u0026n=QlZaYS7qaDAyLKCM\u0026q=85\u0026s=07e0ad67fc7a332d74f7d418e2727dbd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.injective.network#website\",\"name\":\"Injective Docs\",\"url\":\"https://docs.injective.network\",\"publisher\":{\"@id\":\"https://docs.injective.network/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.injective.network/developers-native/bridges/ethereum#webpage\",\"url\":\"https://docs.injective.network/developers-native/bridges/ethereum\",\"name\":\"Ethereum Bridge\",\"dateModified\":\"2026-09-24T11:02:16.000Z\",\"isPartOf\":{\"@id\":\"https://docs.injective.network#website\"},\"breadcrumb\":{\"@id\":\"https://docs.injective.network/developers-native/bridges/ethereum#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.injective.network/developers-native/bridges/ethereum#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"BUILD\",\"item\":\"https://docs.injective.network/build-index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Native Developers\",\"item\":\"https://docs.injective.network/developers-native\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bridges\",\"item\":\"https://docs.injective.network/developers-native/bridges\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Ethereum Bridge\",\"item\":\"https://docs.injective.network/developers-native/bridges/ethereum\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.injective.network/developers-native/bridges/ethereum#article\",\"headline\":\"Ethereum Bridge\",\"name\":\"Ethereum Bridge\",\"url\":\"https://docs.injective.network/developers-native/bridges/ethereum\",\"mainEntityOfPage\":{\"@id\":\"https://docs.injective.network/developers-native/bridges/ethereum#webpage\"},\"dateModified\":\"2026-09-24T11:02:16.000Z\",\"publisher\":{\"@id\":\"https://docs.injective.network/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.injective.network#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Injective Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Injective Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/developers-native/bridges/ethereum.md","siteName":"Injective Docs","nav":{"global":null,"languages":[{"language":"en","footer":{"socials":{"website":"https://injective.com/","github":"https://github.com/InjectiveLabs","x":"https://x.com/injective","youtube":"https://youtube.com/@injective_","discord":"https://discord.gg/injective","telegram":"https://t.me/+8Y_0HOFLhnRlZDU9","linkedin":"https://www.linkedin.com/company/injectivelabs","reddit":"https://www.reddit.com/r/injective"},"links":[{"header":"About docs","items":[{"label":"Maintained by Injective Labs' Developer Relations Team","href":"https://injective.com/"},{"label":"Open an issue","href":"https://github.com/InjectiveLabs/injective-docs/issues"},{"label":"Submit a PR","href":"https://github.com/InjectiveLabs/injective-docs/pulls"}]},{"header":"Resources","items":[{"label":"Operator Portal","href":"https://chain.injective.network"},{"label":"Network Status","href":"https://status.injective.network"},{"label":"Blog","href":"https://injective.com/blog"},{"label":"Build","href":"https://injective.com/build"},{"label":"7 days of Injective","href":"https://youtube.com/watch?v=bE9JbFpsDFM\u0026list=PLTS_stt4XpDBGDXxrx4crxijAemFr3Mix"}]}]},"tabs":[{"tab":"Getting Started","pages":[{"title":"Getting Started","href":""}]},{"tab":"Build on Injective","pages":[{"title":"Build on Injective","href":"/developers-defi/integrator-guide"}]},{"tab":"Develop","groups":[{"group":"BUILD","pages":[{"title":"Overview","icon":"hammer","href":"/build-index"},{"group":"Developer Setup","icon":"screwdriver-wrench","pages":[{"title":"Developer Setup","sidebarTitle":"Overview","href":"/developers/setup"}]},{"group":"EVM Developers","icon":"rectangle-code","expanded":false,"pages":[{"title":"Overview","href":"/developers-evm/index"},{"title":"EVM Network Information","href":"/developers-evm/network-information"},{"title":"Local EVM Development","href":"/developers-evm/local-development"},{"group":"Your First EVM Smart Contract","pages":[{"title":"Your First EVM Smart Contract","href":"/developers-evm/smart-contracts/index"},{"title":"Set up Hardhat and compile a smart contract","href":"/developers-evm/smart-contracts/compile-hardhat"},{"title":"Test a smart contract using Hardhat","href":"/developers-evm/smart-contracts/test-hardhat"},{"title":"Deploy a smart contract using Hardhat","href":"/developers-evm/smart-contracts/deploy-hardhat"},{"title":"Verify a smart contract using Hardhat","href":"/developers-evm/smart-contracts/verify-hardhat"},{"title":"Interact with a smart contract using Hardhat","href":"/developers-evm/smart-contracts/interact-hardhat"},{"title":"Set up Foundry and compile a smart contract","href":"/developers-evm/smart-contracts/compile-foundry"},{"title":"Test a smart contract using Foundry","href":"/developers-evm/smart-contracts/test-foundry"},{"title":"Deploy a smart contract using Foundry","href":"/developers-evm/smart-contracts/deploy-foundry"},{"title":"Verify a smart contract using Foundry","href":"/developers-evm/smart-contracts/verify-foundry"},{"title":"Interact with a smart contract using Foundry","href":"/developers-evm/smart-contracts/interact-foundry"}]},{"group":"Your First EVM dApp","pages":[{"title":"Your First EVM dApp","href":"/developers-evm/dapps/index"},{"title":"Connect with MetaMask","href":"/developers-evm/dapps/connect-with-metamask"},{"title":"Connect with WalletConnect","href":"/developers-evm/dapps/connect-with-walletconnect"}]},{"title":"EVM Equivalence","href":"/developers-evm/evm-equivalence"},{"title":"MultiVM Token Standard","href":"/developers-evm/multivm-token-standard"},{"title":"Permissioned MTS Tokens","href":"/developers-evm/permissioned-multivm-token"},{"title":"Wrapped INJ (wINJ)","href":"/developers-evm/wrapped-inj"},{"title":"Precompiles","href":"/developers-evm/precompiles"},{"title":"Bank Precompile","href":"/developers-evm/bank-precompile"},{"title":"Exchange Precompile","href":"/developers-evm/exchange-precompile"},{"title":"Oracle Precompile","href":"/developers-evm/oracle-precompile"},{"title":"Swap Precompile","href":"/developers-evm/swap-precompile"},{"title":"IBC Precompile","href":"/developers-evm/ibc-precompile"},{"title":"ERC20 Module","href":"/developers-evm/erc20-module"},{"title":"Infrastructure \u0026 Tooling","href":"/developers-evm/infrastructure-and-tooling"},{"title":"EVM Gateway","href":"/developers-evm/evm-gateway"},{"title":"Alchemy RPC Setup","href":"/developers-evm/alchemy-rpc-setup"},{"title":"Add Injective to Your dApp","href":"/developers-evm/add-injective-to-your-dapp"},{"title":"EVM Integrations Cheat Sheet","href":"/developers-evm/evm-integrations-cheat-sheet"},{"title":"EVM Integrations FAQ","href":"/developers-evm/evm-integrations-faq"},{"title":"EVM Testnet Faucet","url":"https://testnet.faucet.injective.network/","href":"/redirects/https_testnet_faucet_injective_network"},{"title":"EVM Testnet Explorer","url":"https://testnet.blockscout.injective.network/blocks","href":"/redirects/https_testnet_blockscout_injective_network_blocks"}]},{"group":"dApp Developers","icon":"browser","expanded":false,"pages":[{"title":"Building dApps","href":"/developers/dapps/index"},{"title":"Configuring Nuxt","href":"/developers/dapps/configure-nuxt"},{"title":"Configuring React","href":"/developers/dapps/configure-react"},{"title":"Running examples","href":"/developers/dapps/run-examples"},{"title":"Smart Contract","href":"/developers/dapps/example-smart-contract"},{"title":"DEX","href":"/developers/dapps/example-dex"},{"title":"Simple HTML example with Webpack","href":"/developers/dapps/example-webpack"}]},{"group":"Native Developers","icon":"microchip","expanded":false,"pages":[{"title":"Overview","href":"/developers-native/index"},{"group":"Developer Setup","pages":[{"group":"Injective Node and CLI","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/developers/injectived/index"},{"title":"Install","href":"/developers/injectived/install"},{"title":"Usage","href":"/developers/injectived/use"},{"title":"Commands","href":"/developers/injectived/advanced"}]},{"title":"Run a Local Node","href":"/developers-native/developer-setup/local-network"}]},{"group":"Wallets","pages":[{"title":"Wallets","href":"/developers-native/wallets/index"},{"title":"Accounts","href":"/developers-native/wallets/accounts"},{"title":"Wallet Connections","href":"/developers-native/wallets/connections"},{"title":"Wallet Strategy","href":"/developers-native/wallets/strategy"},{"title":"Offchain (Arbitrary) Data","href":"/developers-native/wallets/offchain-data"}]},{"group":"Bridges","pages":[{"title":"Bridges","description":null,"href":"/developers-native/bridges/index"},{"title":"Ethereum Bridge","href":"/developers-native/bridges/ethereum"}]},{"group":"Transactions","pages":[{"title":"Transactions","description":null,"href":"/developers-native/transactions/index"},{"title":"Cosmos Transactions","href":"/developers-native/transactions/cosmos"},{"title":"Ledger through Keplr Wallet Transaction","href":"/developers-native/transactions/cosmos-ledger-keplr"},{"title":"Ethereum Transaction","href":"/developers-native/transactions/ethereum"},{"title":"Ethereum Ledger Transaction","href":"/developers-native/transactions/ethereum-ledger"},{"title":"MsgBroadcaster Transaction","href":"/developers-native/transactions/msgbroadcaster"},{"title":"Private Key Transaction","href":"/developers-native/transactions/private-key"},{"title":"Web3 Gateway Transaction","href":"/developers-native/transactions/web3-gateway"}]},{"group":"Transaction Examples","pages":[{"title":"Transaction Examples","href":"/developers-native/examples/index"},{"title":"Auction","href":"/developers-native/examples/auction"},{"title":"AuthZ","href":"/developers-native/examples/authz"},{"title":"Bank","href":"/developers-native/examples/bank"},{"title":"Distribution","href":"/developers-native/examples/distribution"},{"title":"Exchange","href":"/developers-native/examples/exchange"},{"title":"Fee Grant","href":"/developers-native/examples/feegrant"},{"title":"Governance","href":"/developers-native/examples/governance"},{"title":"IBC","href":"/developers-native/examples/ibc"},{"title":"Insurance","href":"/developers-native/examples/insurance"},{"title":"Peggy","href":"/developers-native/examples/peggy"},{"title":"Permissions","href":"/developers-native/examples/permissions"},{"title":"Staking","href":"/developers-native/examples/staking"},{"title":"Token Factory","href":"/developers-native/examples/token-factory"},{"title":"Wasm","href":"/developers-native/examples/wasm"}]},{"group":"Querying the Chain","pages":[{"title":"Querying the Chain","href":"/developers-native/query-chain/index"},{"title":"Auction","href":"/developers-native/query-chain/auction"},{"title":"Auth","href":"/developers-native/query-chain/auth"},{"title":"Bank","href":"/developers-native/query-chain/bank"},{"title":"Distribution","href":"/developers-native/query-chain/distribution"},{"title":"Exchange","href":"/developers-native/query-chain/exchange"},{"title":"Governance","href":"/developers-native/query-chain/governance"},{"title":"IBC","href":"/developers-native/query-chain/ibc"},{"title":"Mint","href":"/developers-native/query-chain/mint"},{"title":"Insurance Funds","href":"/developers-native/query-chain/insurance-funds"},{"title":"Oracle","href":"/developers-native/query-chain/oracle"},{"title":"Peggy","href":"/developers-native/query-chain/peggy"},{"title":"Permissions","href":"/developers-native/query-chain/permissions"},{"title":"Staking","href":"/developers-native/query-chain/staking"},{"title":"Tendermint","href":"/developers-native/query-chain/tendermint"},{"title":"Wasm","href":"/developers-native/query-chain/wasm"},{"title":"WasmX","href":"/developers-native/query-chain/wasmx"},{"title":"Token Factory","href":"/developers-native/query-chain/token-factory"}]},{"group":"Querying the Indexer","pages":[{"title":"Querying the Indexer","href":"/developers-native/query-indexer/index"},{"title":"Account","href":"/developers-native/query-indexer/account"},{"title":"Auction","href":"/developers-native/query-indexer/auction"},{"title":"Derivatives","href":"/developers-native/query-indexer/derivatives"},{"title":"Explorer","href":"/developers-native/query-indexer/explorer"},{"title":"Insurance Funds","href":"/developers-native/query-indexer/insurance-funds"},{"title":"Markets","href":"/developers-native/query-indexer/markets"},{"title":"Leaderboard","href":"/developers-native/query-indexer/leaderboard"},{"title":"Mito","href":"/developers-native/query-indexer/mito"},{"title":"Oracle","href":"/developers-native/query-indexer/oracle"},{"title":"Portfolio","href":"/developers-native/query-indexer/portfolio"},{"title":"Spot","href":"/developers-native/query-indexer/spot"},{"title":"Web3 Gateway Transactions","href":"/developers-native/query-indexer/transaction"}]},{"group":"Streaming the Indexer","pages":[{"title":"Streaming the Indexer","href":"/developers-native/query-indexer-stream/index"},{"title":"Account","href":"/developers-native/query-indexer-stream/account"},{"title":"Archiver","href":"/developers-native/query-indexer-stream/archiver"},{"title":"Auction","href":"/developers-native/query-indexer-stream/auction"},{"title":"Derivatives","href":"/developers-native/query-indexer-stream/derivatives"},{"title":"Mito","href":"/developers-native/query-indexer-stream/mito"},{"title":"Oracle","href":"/developers-native/query-indexer-stream/oracle"},{"title":"Portfolio","href":"/developers-native/query-indexer-stream/portfolio"},{"title":"Spot","href":"/developers-native/query-indexer-stream/spot"},{"title":"Trading","href":"/developers-native/query-indexer-stream/trading"},{"title":"Explorer","href":"/developers-native/query-indexer-stream/explorer"}]},{"title":"Querying GraphQL Endpoints","href":"/developers-native/query-ethereum"},{"group":"Injective Modules","pages":[{"title":"Injective","href":"/developers-native/injective/index"},{"group":"Auction","pages":[{"title":"Auction","href":"/developers-native/injective/auction/index"},{"title":"State","href":"/developers-native/injective/auction/01_state"},{"title":"Messages","href":"/developers-native/injective/auction/02_messages"},{"title":"End-Block","href":"/developers-native/injective/auction/03_end_block"},{"title":"Events","href":"/developers-native/injective/auction/04_events"},{"title":"Parameters","href":"/developers-native/injective/auction/05_params"},{"title":"Error Codes","href":"/developers-native/injective/auction/99_errors"}]},{"group":"Exchange","pages":[{"title":"Exchange","href":"/developers-native/injective/exchange/index"},{"title":"Derivative Market Concept","href":"/developers-native/injective/exchange/00_derivative_market_concepts"},{"title":"Spot Market Concepts","href":"/developers-native/injective/exchange/01_spot_market_concepts"},{"title":"Binary Options Markets","href":"/developers-native/injective/exchange/02_binary_options_markets"},{"title":"Other Concepts","href":"/developers-native/injective/exchange/02_other_concepts"},{"title":"State","href":"/developers-native/injective/exchange/03_state"},{"title":"State Transitions","href":"/developers-native/injective/exchange/04_state_transitions"},{"title":"Messages","href":"/developers-native/injective/exchange/05_messages"},{"title":"Governance Proposals","href":"/developers-native/injective/exchange/06_proposals"},{"title":"BeginBlocker","href":"/developers-native/injective/exchange/07_begin_block"},{"title":"EndBlocker","href":"/developers-native/injective/exchange/08_end_block"},{"title":"Events","href":"/developers-native/injective/exchange/09_events"},{"title":"Parameters","href":"/developers-native/injective/exchange/10_params"},{"title":"MsgPrivilegedExecuteContract","href":"/developers-native/injective/exchange/11_msg_privileged_execute_contract"},{"title":"Gas Heuristics","href":"/developers-native/injective/exchange/12_gas_heuristics"},{"title":"Error Codes","href":"/developers-native/injective/exchange/99_errors"}]},{"group":"ERC20","pages":[{"title":"ERC20","href":"/developers-native/injective/erc20/index"},{"title":"Concepts","href":"/developers-native/injective/erc20/01_concepts"},{"title":"State","href":"/developers-native/injective/erc20/02_state"},{"title":null,"href":"/developers-native/injective/erc20/03_messages"},{"title":"Events","href":"/developers-native/injective/erc20/04_events"}]},{"group":"EVM","pages":[{"title":"EVM","href":"/developers-native/injective/evm/index"},{"title":"Concepts","href":"/developers-native/injective/evm/01_concepts"},{"title":"State","href":"/developers-native/injective/evm/02_state"},{"title":"State Transitions","href":"/developers-native/injective/evm/03_state_transitions"},{"title":"Transactions","href":"/developers-native/injective/evm/04_transactions"},{"title":"Application Blockchain Interface (ABCI)","href":"/developers-native/injective/evm/05_abci"},{"title":"Hooks","href":"/developers-native/injective/evm/06_hooks"},{"title":"Events","href":"/developers-native/injective/evm/07_events"},{"title":"Parameters","href":"/developers-native/injective/evm/08_params"},{"title":"Client","href":"/developers-native/injective/evm/09_client"}]},{"group":"Insurance","pages":[{"title":"Insurance","href":"/developers-native/injective/insurance/index"},{"title":"State","href":"/developers-native/injective/insurance/01_state"},{"title":"State Transitions","href":"/developers-native/injective/insurance/02_state_transitions"},{"title":"Messages","href":"/developers-native/injective/insurance/03_messages"},{"title":"End-Block","href":"/developers-native/injective/insurance/04_end_block"},{"title":"Events","href":"/developers-native/injective/insurance/05_events"},{"title":"Parameters","href":"/developers-native/injective/insurance/06_params"},{"title":"Future Improvements","href":"/developers-native/injective/insurance/07_future_improvements"},{"title":"Error Codes","href":"/developers-native/injective/insurance/99_errors"}]},{"group":"OCR","pages":[{"title":"OCR","href":"/developers-native/injective/ocr/index"},{"title":"Concepts","href":"/developers-native/injective/ocr/01_concepts"},{"title":"State","href":"/developers-native/injective/ocr/02_state"},{"title":"Messages","href":"/developers-native/injective/ocr/03_messages"},{"title":"Governance Proposals","href":"/developers-native/injective/ocr/04_proposals"},{"title":"Begin-Block","href":"/developers-native/injective/ocr/05_begin_block"},{"title":null,"href":"/developers-native/injective/ocr/06_hooks"},{"title":"Events","href":"/developers-native/injective/ocr/07_events"},{"title":"Params","href":"/developers-native/injective/ocr/08_params"},{"title":"Error Codes","href":"/developers-native/injective/ocr/99_errors"}]},{"group":"Oracle","pages":[{"title":"Oracle","href":"/developers-native/injective/oracle/index"},{"title":"State","href":"/developers-native/injective/oracle/01_state"},{"title":"Keepers","href":"/developers-native/injective/oracle/02_keeper"},{"title":"Messages","href":"/developers-native/injective/oracle/03_messages"},{"title":"Governance Proposals","href":"/developers-native/injective/oracle/04_proposals"},{"title":"Events","href":"/developers-native/injective/oracle/05_events"},{"title":"Future Improvements","href":"/developers-native/injective/oracle/06_future_improvements"},{"title":"Error Codes","href":"/developers-native/injective/oracle/99_errors"}]},{"group":"Peggy","pages":[{"title":"Peggy","href":"/developers-native/injective/peggy/index"},{"title":"Definitions","href":"/developers-native/injective/peggy/01_definitions"},{"title":"Workflow","href":"/developers-native/injective/peggy/02_workflow"},{"title":"State","href":"/developers-native/injective/peggy/03_state"},{"title":"Messages","href":"/developers-native/injective/peggy/04_messages"},{"title":"Slashing","href":"/developers-native/injective/peggy/05_slashing"},{"title":"End-Block","href":"/developers-native/injective/peggy/06_end_block"},{"title":"Events","href":"/developers-native/injective/peggy/07_events"},{"title":"Parameters","href":"/developers-native/injective/peggy/08_params"},{"title":"Relay Semantics","href":"/developers-native/injective/peggy/09_relay_semantics"},{"title":"Future Improvements","href":"/developers-native/injective/peggy/10_future_improvements"},{"title":"Error Codes","href":"/developers-native/injective/peggy/99_errors"}]},{"group":"Permissions","pages":[{"title":"Permissions","href":"/developers-native/injective/permissions/index"},{"title":"Key Concepts","href":"/developers-native/injective/permissions/01_concepts"},{"title":"State","href":"/developers-native/injective/permissions/02_state"},{"title":"State Transitions","href":"/developers-native/injective/permissions/03_state_transitions"},{"title":"How to Launch Permissioned Assets","href":"/developers-native/injective/permissions/04_launch_permissioned_asset"},{"title":"Error Codes","href":"/developers-native/injective/permissions/99_errors"}]},{"group":"TokenFactory","pages":[{"title":"TokenFactory","href":"/developers-native/injective/tokenfactory/index"},{"title":"Concepts","href":"/developers-native/injective/tokenfactory/01_concepts"},{"title":"State","href":"/developers-native/injective/tokenfactory/02_state"},{"title":null,"href":"/developers-native/injective/tokenfactory/03_messages"},{"title":"Events","href":"/developers-native/injective/tokenfactory/04_events"},{"title":"Params","href":"/developers-native/injective/tokenfactory/05_params"},{"title":"Error Codes","href":"/developers-native/injective/tokenfactory/99_errors"}]},{"group":"WasmX","pages":[{"title":"Wasmx","href":"/developers-native/injective/wasmx/index"},{"title":"Concepts","href":"/developers-native/injective/wasmx/01_concepts"},{"title":"Data","href":"/developers-native/injective/wasmx/02_data"},{"title":"Governance Proposals","href":"/developers-native/injective/wasmx/03_proposals"},{"title":"Messages","href":"/developers-native/injective/wasmx/04_messages"},{"title":"Params","href":"/developers-native/injective/wasmx/05_params"},{"title":"Error Codes","href":"/developers-native/injective/wasmx/99_errors"}]},{"title":"Lanes","href":"/developers-native/injective/lanes"},{"title":"Txfees","href":"/developers-native/injective/txfees"}]},{"group":"Core Modules","pages":[{"title":"Core","href":"/developers-native/core/index"},{"title":"Auth","href":"/developers-native/core/auth"},{"title":"Authz","href":"/developers-native/core/authz"},{"title":"Bank","href":"/developers-native/core/bank"},{"title":"Consensus","href":"/developers-native/core/consensus"},{"title":"Crisis","href":"/developers-native/core/crisis"},{"title":"Distribution","href":"/developers-native/core/distribution"},{"title":"Evidence","href":"/developers-native/core/evidence"},{"title":"Feegrant","href":"/developers-native/core/feegrant"},{"title":"Gov","href":"/developers-native/core/gov"},{"title":"Group","href":"/developers-native/core/group"},{"title":"Mint","href":"/developers-native/core/mint"},{"title":"Nft","href":"/developers-native/core/nft"},{"title":"Params","href":"/developers-native/core/params"},{"title":"Slashing","href":"/developers-native/core/slashing"},{"title":"Staking","href":"/developers-native/core/staking"},{"title":"Upgrade","href":"/developers-native/core/upgrade"},{"title":"Circuit","href":"/developers-native/core/circuit"},{"title":"Genutil","href":"/developers-native/core/genutil"}]}]},{"group":"CosmWasm Developers","icon":"comet","expanded":false,"pages":[{"title":"Overview","href":"/developers-cosmwasm/index"},{"group":"CosmWasm Smart Contracts","pages":[{"title":"CosmWasm Smart Contracts","href":"/developers-cosmwasm/smart-contracts/index"},{"title":"Your First CosmWasm Smart Contract","href":"/developers-cosmwasm/smart-contracts/your-first-smart-contract"},{"title":"Injective Name Service","href":"/developers-cosmwasm/smart-contracts/injective-name-service"},{"title":"NeptuneService","href":"/developers-cosmwasm/smart-contracts/neptune-service"},{"title":"CW20 to Bank \u0026 Market Order in One Transaction","href":"/developers-cosmwasm/smart-contracts/cw20-convert-market-order"}]},{"title":"Local Development","href":"/developers-cosmwasm/local-development-guide"},{"title":"Mainnet Deployment","href":"/developers-cosmwasm/mainnet-deployment-guide"},{"title":"Whitelisting deployment address","href":"/developers-cosmwasm/whitelisting-deployment-address-guide"},{"title":"Create your Swap Contract","href":"/developers-cosmwasm/create-your-swap-contract-guide"},{"title":"Creating UIs","href":"/developers-cosmwasm/create-uis-guide"},{"title":"Using Injective Modules and Queries in CosmWasm","href":"/developers-cosmwasm/cosmwasm-any"},{"title":"CW20 Adapter","href":"/developers-cosmwasm/cw20-adapter"},{"title":"Injective Test Tube","href":"/developers-cosmwasm/injective-test-tube"}]},{"group":"AI Developers","icon":"brain","expanded":false,"pages":[{"title":"AI developers","href":"/developers-ai/index"},{"title":"AI SDK","href":"/developers-ai/ai-sdk"},{"title":"Injective CLI Agent Skill","href":"/developers-ai/injective-cli-skill"},{"title":"Injective EVM Developer Agent Skill","href":"/developers-ai/injective-evm-developer-skill"},{"title":"Injective MCP Servers Skill","href":"/developers-ai/injective-mcp-servers-skill"},{"title":"Injective Trading Skills","href":"/developers-ai/injective-trading-skills"},{"title":"Injective Documentation MCP Server","href":"/developers-ai/documentation-mcp"},{"title":"Injective MCP Server","href":"/developers-ai/mcp"},{"title":"x402","href":"/developers-ai/x402"}]}]}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks-index"}]},{"tab":"Testnet","pages":[{"title":"Testnet","href":"/testnet"}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources-index"}]}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/cn/developers-native/bridges/ethereum"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/developers-native/bridges/ethereum"}]},{"language":"jp","pages":[{"title":"jp","href":"/jp/developers-native/bridges/ethereum"}]}]},"basePath":"","title":"Ethereum Bridge - Injective Docs","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-lceUjs6n.js","lightbox-handle-r17bVUz3.js"]}