Monad 백서

Monad

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 14쪽

were serially executed. All aspects of parallel execution can be treated by smart contract developers as implementation details. See [further discussion](/monad-arch/execution/parallel-execution). ## Asynchronous Execution Full article: [Asynchronous Execution](/monad-arch/consensus/asynchronous-execution) Monad utilizes asynchronous execution for efficiency, but most developers shouldn't need to change anything. Developers with significant off-chain financial logic (e.g. exchanges, bridges, and stablecoin/RWA issuers) should wait until blocks reach the [`Verified`](/monad-arch/consensus/block-states#verified) phase (aka state root finality), three blocks later than [`Finalized`](/monad-arch/consensus/block-states#finalized), to be sure that the entire network agrees with their own node's local execution of a finalized block. <Accordion title="Async execution and block stages"> Asynchronous execution is a technique that allows Monad to substantially increase execution throughput by decoupling consensus from execution. In asynchronous execution, validators **vote first, execute later** - because once the transaction order is determined, the state is determined. Afterward, each node executes locally. There is a [delayed merkle root](/monad-arch/consensus/asynchronous-execution#delayed-merkle-root) three blocks later which confirms that the network got the same state trie as local execution. From the developer perspective: * Someone submits a transaction through your frontend which interacts with your smart contract. You make note of the hash. * A block gets [`Proposed`](/monad-arch/consensus/block-states#proposed) with the transaction included. * The block gets [`Voted`](/monad-arch/consensus/block-states#voted) (speculatively finalized) one block later. (`T+1`) * The block gets [`Finalized`](/monad-arch/consensus/block-states#finalized) one block later (`T+2`) * The block gets [`Verified`](/monad-arch/consensus/block-states#verified) (state root finalized) three blocks later (`T+5`) You listen for transaction receipts by calling [`eth_getTransactionReceipt`](/reference/json-rpc/eth_getTransactionReceipt). Receipts will first be available after a block becomes `Proposed` (speculatively executed). Your choice of when to update your UI to give feedback to the user depends on risk preference, but for most applications it is reasonable to do so when the block becomes `Proposed` because speculative finality reversion is extremely rare. A more conservative approach would be to wait until the block is `Finalized`, since then you will never have to handle a reorg. Waiting until `Verified` is not generally necessary (except for the aforementioned developers with off-chain financial logic). </Accordion> ## Reserve balance Full article: [Reserve Balance](/developer-essentials/reserve-balance) Monad introduces the Reserve Balance mechanism to enable Asynchronous Execution. The Reserve Balance mechanism places light restrictions on when transactions can be included at consensus time, and imposes some conditions under which transactions will revert at execution time. The Reserve Balance mechanism is designed to preserve safety under asynchronous execution without interfering with normal usage patterns. Most users and developers need not worry about the Reserve Balance constraints. | Parameter | Value | | - | - | | Default reserve balance | 10 MON | ## EIP-7702 EIP-7702 is supported; see the full notes [here](/developer-essentials/eip-7702). There are two caveats: 1. If an EOA is EIP-7702-delegated, its balance cannot be lowered below 10 MON due to the [Reserve Balance](/developer-essentials/reserve-balance) rules. (If the delegation is removed, dipping below 10 MON is allowed.) [Discussion](/developer-essentials/eip-7702#delegated-eoas-can%E2%80%99t-dip-below-10-mon). 2. If an EOA is EIP-7702-delegated, when it is called as a smart contract, the `CREATE` and `CREATE2` opcodes are banned. [Discussion](/developer-essentials/eip-7702#delegated-contract-code-cannot-call-create/create2). ## Reading blockchain data The following methods are supported for reading blockchain data: <div> <table> <thead> <tr> <th /> <th /> </tr> </thead> <tbody> <tr> <td>JSON-RPC</td> <td>See [RPC API](/reference/json-rpc). Monad supports all standard RPC methods from Ethereum. Differences are noted in [RPC Differences](/reference/rpc-differences). For rate limits, see [here](/reference/rpc-limits).</td> </tr> <tr> <td>WebSocket</td> <td>See the [WebSocket Guide](/reference/websockets).<br /><br /> Monad implements the `eth_subscribe` method with the following subscription types:<ul> <li>`newHeads` and `logs`</li> <li>`monadNewHeads` and `monadLogs` (similar, but include additional data for tracking each block's progression through consensus)</li></ul> The `syncing` and `newPendingTransactions` subscription types are not supported. For more details see [Real-time Data Sources](/monad-arch/realtime-data/data-sources).</td> </tr> <tr> <td>Execution Events</td> <td>See [Execution Events](/execution-events).<br /><br /> The Execution Events system allows developers to build high-performance applications that receive lowest-latency event data from a Monad node via shared memory queue.</td> </tr> </tbody> </table> </div> You can also use the supported [Indexers](/tooling-and-infra/indexers). ## Historic data Monad full nodes provide access to all historic ledger data (blocks, transactions, receipts, events, and traces). Monad full nodes do not provide access to arbitrary historic state as discussed [here](/developer-essentials/historical-data). There is a special RPC service at <CopyToClipboard>[`https://rpc-mainnet.monadinfra.com`](https://rpc-mainnet.monadinfra.com)</CopyToClipboard> that provides access to historical data. ## Recommended Open Source Tooling Versions * `foundry >= 1.8.0`: enable the [Monad execution network](/tooling-and-infra/toolkits/foundry) for Monad gas pricing, hardforks, and precompiles * `viem >= 2.40.0` (just to bring in [monad.ts](https://github.com/wevm/viem/blob/main/src/chains/definitions/monad.ts)) * `alloy-chains >= 0.2.20` ## Canonical contract addresses See [Canonical Contracts](/developer-essentials/network-information#canonical-contracts) ## Source code * [`monad-bft`](https://github.com/category-labs/monad-bft) (consensus) * [`monad`](https://github.com/category-labs/monad) (execution) ## Running a full node See [Node Operations](/node-ops) ## Need Help? Please ask in the [developer discord](https://discord.gg/monaddev). We are here to help! # Network Information - Testnet Source: https://docs.monad.xyz/developer-essentials/testnet <Warning title="Testnet Reset"> `testnet` was [reset from genesis on 2025-12-16](/developer-essentials/changelog/releases#v0-12-5). </Warning> <div> <table> <thead> <tr> <th>Name</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>Chain ID</td> <td> <CopyToClipboard>`10143`</CopyToClipboard> </td> </tr> <tr> <td>Network Name</td> <td> <CopyToClipboard>`Monad Testnet`</CopyToClipboard> </td> </tr> <tr> <td>Currency Symbol</td> <td> <CopyToClipboard>`MON`</CopyToClipboard> </td> </tr> <tr> <td>RPC URL</td> <td>[see below](#public-rpc-endpoints)</td> </tr> <tr> <td>Block Explorer (MonadVision)</td> <td> <CopyToClipboard>[https://testnet.monadvision.com](https://testnet.monadvision.com)</CopyToClipboard> </td> </tr> <tr> <td>Block Explorer (Monadscan)</td> <td> <CopyToClipboard>[https://testnet.monadscan.com](https://testnet.monadscan.com/)</CopyToClipboard> </td> </tr> <tr> <td>Network visualization</td> <td> <CopyToClipboard>[https://www.gmonads.com/?network=testnet](https://www.gmonads.com/?network=testnet)</CopyToClipboard> </td> </tr> <tr> <td>App hub</td> <td>[https://testnet.monad.xyz/](https://testnet.monad.xyz/)</td> </tr> <tr> <td>Faucet</td> <td>[https://faucet.monad.xyz](https://faucet.monad.xyz)</td> </tr> <tr> <td>Current version / revision</td> <td>[`v0.15.2`](/developer-essentials/changelog/releases#v0-15-2) / [`MONAD_NINE`](/developer-essentials/changelog#revisions)</td> </tr> <tr> <td>Changelog</td> <td>[(link)](/developer-essentials/changelog/releases)</td> </tr> </tbody> </table> </div> ## Public RPC Endpoints Websocket endpoints start with `wss://`. See [Websocket Reference](/reference/websockets) for further information. <div> <table> <thead> <tr> <th>RPC URL</th> <th>Provider</th> <th>Rate Limits</th> <th>Batch Requests</th> <th>Archive Support</th> <th>Notes</th> </tr> </thead> <tbody> <tr> <td> <CopyToClipboard>`https://testnet-rpc.monad.xyz`</CopyToClipboard><br /><CopyToClipboard>`wss://testnet-rpc.monad.xyz`</CopyToClipboard> </td> <td>QuickNode</td> <td>50 rps</td> <td>100</td> <td>✅</td> <td>25 rps for `eth_call` and `eth_estimateGas`</td> </tr> <tr> <td> <CopyToClipboard>`https://rpc.ankr.com/monad_testnet`</CopyToClipboard> </td> <td>Ankr</td> <td>300 reqs / 10s<br /><br />12000 reqs / 10 min</td> <td>100</td> <td>❌</td> <td>`debug_*` methods are not allowed</td> </tr> <tr> <td> <CopyToClipboard>`https://rpc-testnet.monadinfra.com`</CopyToClipboard><br /><CopyToClipboard>`wss://rpc-testnet.monadinfra.com`</CopyToClipboard> </td> <td>Monad Foundation</td> <td>20 rps</td> <td>not allowed</td> <td>✅</td> <td /> </tr> </tbody> </table> </div> See [RPC Limits](/reference/rpc-limits) for additional detail on method-specific limits. ## Canonical Contracts <div> <table> <thead> <tr> <th>Name</th> <th>Address</th> </tr> </thead> <tbody> <tr> <td>Wrapped MON</td> <td> <CopyToClipboard>[`0xFb8bf4c1CC7a94c73D209a149eA2AbEa852BC541`](https://testnet.monadvision.com/address/0xFb8bf4c1CC7a94c73D209a149eA2AbEa852BC541)</CopyToClipboard> </td> </tr> <tr> <td>CreateX</td> <td> <CopyToClipboard>[`0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed`](https://testnet.monadvision.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)</CopyToClipboard> </td> </tr> <tr> <td>Foundry Deterministic Deployer</td> <td> <CopyToClipboard>[`0x4e59b44847b379578588920ca78fbf26c0b4956c`](https://testnet.monadvision.com/address/0x4e59b44847b379578588920cA78FbF26c0B4956C)</CopyToClipboard> </td> </tr> <tr> <td>[ERC-6492 UniversalSigValidator](https://eips.ethereum.org/EIPS/eip-6492)</td> <td> <CopyToClipboard>[`0xdAcD51A54883eb67D95FAEb2BBfdC4a9a6BD2a3B`](https://testnet.monadvision.com/address/0xdAcD51A54883eb67D95FAEb2BBfdC4a9a6BD2a3B)</CopyToClipboard> </td> </tr> <tr> <td>EntryPoint v0.6</td> <td> <CopyToClipboard>[`0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789`](https://testnet.monadvision.com/address/0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789)</CopyToClipboard> </td> </tr> <tr> <td>EntryPoint v0.7</td> <td> <CopyToClipboard>[`0x0000000071727De22E5E9d8BAf0edAc6f37da032`](https://testnet.monadvision.com/address/0x0000000071727De22E5E9d8BAf0edAc6f37da032)</CopyToClipboard> </td> </tr> <tr> <td>EntryPoint v0.8</td> <td> <CopyToClipboard>[`0x4337084d9e255fF0702461CF8895cE9E3b5Ff108`](https://testnet.monadvision.com/address/0x4337084d9e255fF0702461CF8895cE9E3b5Ff108)</CopyToClipboard> </td> </tr> <tr> <td>EntryPoint v0.9</td> <td> <CopyToClipboard>[`0x433709009B8330FDa32311DF1C2AFA402eD8D009`](https://testnet.monadvision.com/address/0x433709009B8330FDa32311DF1C2AFA402eD8D009)</CopyToClipboard> </td> </tr> <tr> <td>Multicall3</td> <td> <CopyToClipboard>[`0xcA11bde05977b3631167028862bE2a173976CA11`](https://testnet.monadvision.com/address/0xcA11bde05977b3631167028862bE2a173976CA11)</CopyToClipboard> </td> </tr> <tr> <td>Permit2</td> <td> <CopyToClipboard>[`0x000000000022d473030f116ddee9f6b43ac78ba3`](https://testnet.monadvision.com/address/0x000000000022d473030f116ddee9f6b43ac78ba3)</CopyToClipboard> </td> </tr> <tr> <td>SafeSingletonFactory</td> <td> <CopyToClipboard>[`0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7`](https://testnet.monadvision.com/address/0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7)</CopyToClipboard> </td> </tr> <tr> <td>[x402 ExactPermit2Proxy](https://github.com/x402-foundation/x402/blob/main/contracts/evm/src/x402ExactPermit2Proxy.sol)</td> <td> <CopyToClipboard>[`0x402085c248EeA27D92E8b30b2C58ed07f9E20001`](https://testnet.monadvision.com/address/0x402085c248EeA27D92E8b30b2C58ed07f9E20001)</CopyToClipboard> </td> </tr> <tr> <td>[x402 UptoPermit2Proxy](https://github.com/x402-foundation/x402/blob/main/contracts/evm/src/x402UptoPermit2Proxy.sol)</td> <td> <CopyToClipboard>[`0x4020A4f3b7b90ccA423B9fabCc0CE57C6C240002`](https://testnet.monadvision.com/address/0x4020A4f3b7b90ccA423B9fabCc0CE57C6C240002)</CopyToClipboard> </td> </tr> </tbody> </table> </div> ### Safe v1.4.1 Contracts <div> <table> <thead> <tr> <th>Name</th> <th>Address</th> </tr> </thead> <tbody> <tr> <td>Safe</td> <td> <CopyToClipboard>[`0x41675C099F32341bf84BFc5382aF534df5C7461a`](https://testnet.monadvision.com/address/0x41675C099F32341bf84BFc5382aF534df5C7461a)</CopyToClipboard> </td> </tr> <tr> <td>SafeL2</td> <td> <CopyToClipboard>[`0x29fcB43b46531BcA003ddC8FCB67FFE91900C762`](https://testnet.monadvision.com/address/0x29fcB43b46531BcA003ddC8FCB67FFE91900C762)</CopyToClipboard> </td> </tr> <tr> <td>SafeProxyFactory</td> <td> <CopyToClipboard>[`0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67`](https://testnet.monadvision.com/address/0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67)</CopyToClipboard> </td> </tr> <tr> <td>MultiSend</td> <td> <CopyToClipboard>[`0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526`](https://testnet.monadvision.com/address/0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526)</CopyToClipboard> </td> </tr> <tr> <td>MultiSendCallOnly</td> <td> <CopyToClipboard>[`0x9641d764fc13c8B624c04430C7356C1C7C8102e2`](https://testnet.monadvision.com/address/0x9641d764fc13c8B624c04430C7356C1C7C8102e2)</CopyToClipboard> </td> </tr> <tr> <td>CompatibilityFallbackHandler</td> <td> <CopyToClipboard>[`0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99`](https://testnet.monadvision.com/address/0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99)</CopyToClipboard> </td> </tr> <tr> <td>SignMessageLib</td> <td> <CopyToClipboard>[`0xd53cd0aB83D845Ac265BE939c57F53AD838012c9`](https://testnet.monadvision.com/address/0xd53cd0aB83D845Ac265BE939c57F53AD838012c9)</CopyToClipboard> </td> </tr> <tr> <td>CreateCall</td> <td> <CopyToClipboard>[`0x9b35Af71d77eaf8d7e40252370304687390A1A52`](https://testnet.monadvision.com/address/0x9b35Af71d77eaf8d7e40252370304687390A1A52)</CopyToClipboard> </td> </tr> <tr> <td>SimulateTxAccessor</td> <td> <CopyToClipboard>[`0x3d4BA2E0884aa488718476ca2FB8Efc291A46199`](https://testnet.monadvision.com/address/0x3d4BA2E0884aa488718476ca2FB8Efc291A46199)</CopyToClipboard> </td> </tr> </tbody> </table> </div> ## Testnet Tokens (partial list) See [tokenlist-testnet.json](https://github.com/monad-crypto/token-list/blob/main/tokenlist-testnet.json). # Transactions Source: https://docs.monad.xyz/developer-essentials/transactions ## Summary * Same address space and transaction format/fields as Ethereum, so the same wallet software is supported. * Transaction types 0 ("legacy"), 1 ("EIP-2930"), 2 ("EIP-1559"), and 4 ("EIP-7702") are currently supported. * Pre-[EIP-155](https://eips.ethereum.org/EIPS/eip-155) transactions are allowed on the protocol level, as in Ethereum and many other EVM-compatible blockchains. As a result, users are discouraged from using an Ethereum address that had previously sent pre-EIP-155 transactions. ## Address space Same address space as Ethereum (last 20 bytes of ECDSA public key) ## Transaction format [Same as Ethereum](https://ethereum.org/en/developers/docs/transactions/). Monad transactions use the same typed transaction envelope introduced in [EIP-2718](https://eips.ethereum.org/EIPS/eip-2718), encoded with [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/). ## Transaction types These [transaction types](https://ethereum.org/en/developers/docs/transactions/#typed-transaction-envelope) are supported: * Type 0 ("legacy") * Type 1 (["EIP-2930"](https://eips.ethereum.org/EIPS/eip-2930)) * Type 2 (["EIP-1559"](https://eips.ethereum.org/EIPS/eip-1559); the default in Ethereum) * Type 4 (["EIP-7702"](https://eips.ethereum.org/EIPS/eip-7702)) (see [EIP-7702 on Monad](/developer-essentials/eip-7702)) These types are not supported: * Type 3 ("EIP-4844") ## Access lists Access lists ([EIP-2930](https://eips.ethereum.org/EIPS/eip-2930)) are supported but not required. ## Transactions without a chain\_id [EIP-155](https://eips.ethereum.org/EIPS/eip-155) introduced a transaction standard that includes a chain id, to prevent transactions from one blockchain from being replayed on another one. Transactions on Monad should always set the chain id, except for one very specific corner case: <Note> **The corner case:** Some standard smart contracts such as ERC-1820 use a keyless deployment method (also known as Nick's method) that exploits replayability, as discussed [here](https://eips.ethereum.org/EIPS/eip-1820#deployment-method). In this method, a transaction is submitted on Ethereum but is intended to be replayed on other chains in order to have the contract deployed at the same address on other blockchains. </Note> In order to support this use case, pre-EIP-155 transactions are still allowed on the protocol level (i.e. according to consensus rules) on Monad. This makes Monad consistent with most blockchains including Ethereum. (Blockchains that have tried disallowing pre-EIP-155 transactions at the protocol level have typically ended up reversing course, e.g. [Celo](https://github.com/celo-org/celo-blockchain/issues/1734).) However, because of this, please heed the following warning: <Warning> Because replay of pre-EIP-155 transactions is allowed, it is discouraged to send funds to an Ethereum address that had previously sent pre-EIP-155 transactions. </Warning> # Wallet Developer Integration Guide Source: https://docs.monad.xyz/developer-essentials/wallet-developers Guidance and recipes for wallet teams improving Monad support For wallet teams adding or improving Monad support in an EVM wallet. Monad works with most EVM wallets out of the box — same addresses, transaction format, signatures, and dapp connection flow as Ethereum. But a handful of network-level differences — gas billed on the limit, asynchronous execution, no global mempool view — change how a wallet should quote gas, poll status, and surface pending state. For end-user instructions, see [Add Monad to Wallet](/guides/add-monad-to-wallet). For chain IDs, RPC URLs, tokens, and protocol contract addresses, see [Network Information](/developer-essentials/network-information), the [`token-list`](https://github.com/monad-crypto/token-list), and [`protocols`](https://github.com/monad-crypto/protocols). ## Tune gas handling On Monad, users pay for the transaction's **gas limit**, not the gas it actually uses. This is the single biggest wallet-side difference from Ethereum: large safety buffers significantly overcharge users and reserve block space the transaction never uses. Use a small, Monad-specific gas-limit margin, and warn users when they manually set a gas limit far above the estimate. [Category Labs' gas-limit analysis](https://www.category.xyz/blogs/setting-your-gas-limit-on-monad) recommends `eth_estimateGas` with only a modest buffer. A fixed buffer is a good starting point; a dynamic buffer keyed on receiver address and function selector reduces unused gas further once you have enough history to calibrate. Quote fees from current Monad data, not Ethereum defaults: * `eth_maxPriorityFeePerGas` returns a hardcoded 2 gwei — not a live network recommendation. * `eth_feeHisto
프로젝트로 돌아가기