bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 29쪽
rcify-api-monad.blockvision.org/
```
On successful verification of smart contract, you should get a similar output in your terminal:
```sh theme={null}
Start verifying contract `0x8fEc29BdEd7A618ab6E3CD945456A79163995769` deployed on monad-testnet
Attempting to verify on Sourcify. Pass the --etherscan-api-key <API_KEY> to verify on Etherscan, or use the --verifier flag to verify on another provider.
Submitting verification for [Counter] "0x8fEc29BdEd7A618ab6E3CD945456A79163995769".
Contract successfully verified
```
Now check the contract on [MonadVision](https://testnet.monadvision.com/).
</Tab>
<Tab title="Monadscan">
```sh theme={null}
forge verify-contract \
<contract_address> \
<contract_name> \
--chain 10143 \
--verifier etherscan \
--etherscan-api-key YourApiKeyToken \
--watch
```
**Example:**
```sh theme={null}
forge verify-contract \
0x8fEc29BdEd7A618ab6E3CD945456A79163995769 \
Counter \
--chain 10143 \
--verifier etherscan \
--etherscan-api-key YourApiKeyToken \
--watch
```
On successful verification of smart contract, you should get a similar output in your terminal:
```sh theme={null}
Start verifying contract `0x8fEc29BdEd7A618ab6E3CD945456A79163995769` deployed on monad-testnet
Submitting verification for [src/Counter.sol:Counter] 0x8fEc29BdEd7A618ab6E3CD945456A79163995769.
Submitted contract for verification:
Response: `OK`
GUID: `fhxxx4wsub68jce24ejvhe68fqabgtpmpzheqpdqvencgph1za`
URL: https://testnet.monadvision.com/address/0x8fec29bded7a618ab6e3cd945456a79163995769
Contract verification status:
Response: `NOTOK`
Details: `Pending in queue`
Warning: Verification is still pending...; waiting 15 seconds before trying again (7 tries remaining)
Contract verification status:
Response: `OK`
Details: `Pass - Verified`
Contract successfully verified
```
Now check the contract on [Monadscan](https://testnet.monadscan.com/).
</Tab>
</Tabs>
</Tab>
</Tabs>
</Tab>
</Tabs>
# Verify a smart contract on Monad using Hardhat
Source: https://docs.monad.xyz/guides/verify-smart-contract/hardhat
Once your contract is deployed to a live network, the next step is to verify its source code on the block explorer.
Verifying a contract means uploading its source code, along with the settings used to compile the code, to a
repository (typically maintained by a block explorer). This allows anyone to compile it and compare the generated
bytecode with what is deployed on chain. Doing this is extremely important in an open platform like Monad.
In this guide we'll explain how to do this using [Hardhat](https://hardhat.org/).
<Tip>
The verification command may show an error message, but this is often misleading - the contract is usually verified successfully on both Sourcify and MonadScan. Check the explorer links to confirm verification.
</Tip>
<Tabs>
<Tab title="Hardhat 2">
## Hardhat 2 Verification
The `hardhat-monad` template is pre-configured to verify contracts on both MonadVision (Sourcify) and Monadscan (Etherscan) simultaneously.
If you're using the template, your `hardhat.config.ts` should already have:
```ts theme={null}
import type { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox-viem";
import "@nomicfoundation/hardhat-ignition-viem";
import "dotenv/config";
const PRIVATE_KEY = process.env.PRIVATE_KEY || "";
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY || "";
const config: HardhatUserConfig = {
solidity: {
version: "0.8.30",
settings: {
evmVersion: "osaka",
metadata: {
bytecodeHash: "ipfs", // Required for Sourcify verification
},
},
},
networks: {
monadTestnet: {
url: "https://testnet-rpc.monad.xyz",
accounts: [PRIVATE_KEY],
chainId: 10143,
},
monadMainnet: {
url: "https://rpc.monad.xyz",
accounts: [PRIVATE_KEY],
chainId: 143,
},
},
sourcify: {
enabled: true,
apiUrl: "https://sourcify-api-monad.blockvision.org",
browserUrl: "https://monadvision.com",
},
etherscan: {
enabled: true,
apiKey: {
monadMainnet: ETHERSCAN_API_KEY,
monadTestnet: ETHERSCAN_API_KEY,
},
customChains: [
{
network: "monadMainnet",
chainId: 143,
urls: {
apiURL: "https://api.etherscan.io/v2/api?chainid=143",
browserURL: "https://monadscan.com",
},
},
{
network: "monadTestnet",
chainId: 10143,
urls: {
apiURL: "https://api.etherscan.io/v2/api?chainid=10143",
browserURL: "https://testnet.monadscan.com",
},
},
],
},
};
export default config;
```
**Verify on Mainnet:**
```sh theme={null}
npx hardhat verify <contract_address> --network monadMainnet
```
**Verify on Testnet:**
```sh theme={null}
npx hardhat verify <contract_address> --network monadTestnet
```
This will verify your contract on both MonadVision and Monadscan. Once verified, you can view your contract on the respective explorers.
</Tab>
<Tab title="Hardhat 3">
## Hardhat 3 Verification
<Tip>
The verification command may show an error message, but this is often misleading - the contract is usually verified successfully on both Sourcify and MonadScan. Check the explorer links to confirm verification.
</Tip>
The `hardhat3-monad` template is pre-configured to verify contracts on both MonadVision (Sourcify) and Monadscan (Etherscan). Hardhat 3 uses a different configuration structure with the `verify` key and `chainDescriptors`.
If you're using the template, your `hardhat.config.ts` should already have:
```ts theme={null}
import hardhatToolboxViemPlugin from "@nomicfoundation/hardhat-toolbox-viem";
import { configVariable, defineConfig } from "hardhat/config";
import "dotenv/config";
export default defineConfig({
plugins: [hardhatToolboxViemPlugin],
solidity: {
version: "0.8.31",
settings: {
evmVersion: "osaka",
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
type: "edr-simulated",
},
monadTestnet: {
type: "http",
url: "https://testnet-rpc.monad.xyz",
accounts: [configVariable("PRIVATE_KEY")],
chainId: 10143,
},
monadMainnet: {
type: "http",
url: "https://rpc.monad.xyz",
accounts: [configVariable("PRIVATE_KEY")],
chainId: 143,
},
},
verify: {
blockscout: {
enabled: false,
},
etherscan: {
enabled: true,
apiKey: configVariable("ETHERSCAN_API_KEY"),
},
sourcify: {
enabled: true,
apiUrl: "https://sourcify-api-monad.blockvision.org",
},
},
chainDescriptors: {
10143: {
name: "MonadTestnet",
blockExplorers: {
etherscan: {
name: "Monadscan",
url: "https://testnet.monadscan.com",
apiUrl: "https://api.etherscan.io/v2/api",
},
},
},
143: {
name: "MonadMainnet",
blockExplorers: {
etherscan: {
name: "Monadscan",
url: "https://monadscan.com",
apiUrl: "https://api.etherscan.io/v2/api",
},
},
},
},
});
```
**Verify on Mainnet:**
```sh theme={null}
npx hardhat verify <contract_address> --network monadMainnet
```
**Verify on Testnet:**
```sh theme={null}
npx hardhat verify <contract_address> --network monadTestnet
```
This will verify your contract on both MonadVision and Monadscan. Once verified, you can view your contract on the respective explorers.
</Tab>
</Tabs>
# Verify a Contract
Source: https://docs.monad.xyz/guides/verify-smart-contract/index
<CardGroup>
<Card title="Foundry" href="/guides/verify-smart-contract/foundry">
Verify a smart contract on Monad using Foundry
</Card>
<Card title="Hardhat" href="/guides/verify-smart-contract/hardhat">
Verify a smart contract on Monad using Hardhat
</Card>
</CardGroup>
# Introduction
Source: https://docs.monad.xyz/index
Monad is a Layer-1 blockchain delivering high performance, true decentralization, and EVM compatibility.
<Note>
**Quick hits**
* [Network Information](/developer-essentials/network-information)
* [Deployment Summary for Developers](/developer-essentials/summary)
* [Guide for Node Operators](/node-ops)
</Note>
Monad is a Layer-1 blockchain delivering high performance, true decentralization, and EVM
compatibility.
Monad's north star is making decentralization more powerful, and eliminating the perceived
tradeoff between decentralization and performance.
Monad supports a large globally distributed network
(see the [validator map](https://www.gmonads.com/)), with intentionally minimal
[hardware requirements](/node-ops/hardware-requirements) so that anyone may run a node.
Performance comes from software architecture improvements rather than reliance on heavy hardware
or node colocation.
Monad's codebase is fully open source ([consensus](https://github.com/category-labs/monad-bft),
[execution](https://github.com/category-labs/monad)) and is built for extreme performance in
C++ and rust.
Monad introduces novel architectures in five major areas:
* [MonadBFT](/monad-arch/consensus/monad-bft), a frontier BFT consensus mechanism solving the
[tail-forking](https://www.category.xyz/blogs/monadbft-fast-responsive-fork-resistant-streamlined-consensus) problem
* [RaptorCast](/monad-arch/consensus/raptorcast) for efficient block transmission
* [Asynchronous Execution](/monad-arch/consensus/asynchronous-execution) for pipelining
consensus and execution to raise the time budget for execution
* [Parallel Execution](/monad-arch/execution/parallel-execution) and [JIT Compilation](/monad-arch/execution/native-compilation) for efficient transaction
execution
* [MonadDb](/monad-arch/execution/monaddb) for efficient storage of Ethereum state
Monad's improvements address existing bottlenecks while preserving seamless compatibility for
application developers (full EVM bytecode compatibility) and users (Ethereum
[RPC API](/reference/json-rpc) compatibility).
The result is an Ethereum-compatible Layer-1 blockchain with 10,000 tps of throughput,
300ms block frequency, and 600ms finality.
Select a level of detail by visiting either [Monad for Users](/introduction/monad-for-users) or
[Monad for Developers](/introduction/monad-for-developers).
## Deploying on Monad
See [Deployment Summary for Developers](/developer-essentials/summary) for everything you need to
know as a developer deploying on Monad.
Monad features first-class support for many leading Ethereum developer tools and infra providers.
See [Tooling and Infrastructure](/tooling-and-infra) for a summary.
## Architecture
Monad is designed with a focus on performance and scalability with commodity hardware.
The subsequent pages survey the major [architectural changes](/monad-arch) in Monad as well as the
interface for users.
The first Monad client is built by
[Category Labs](https://www.category.xyz) and is written from scratch in C++ and Rust.
[`monad-bft`](https://github.com/category-labs/monad-bft), Category Labs's implementation of
a Monad consensus client, and
[`monad`](https://github.com/category-labs/monad), Category Labs's implementation of a Monad
execution client, are both open-source under `GPL-3.0`.
## Mainnet
Public mainnet launched on Nov 24, 2025.
See [Network Information](/developer-essentials/network-information) for access, or check out the
[MonadVision](https://monadvision.com/) block explorer, the [gmonads.com](https://gmonads.com)
network visualization, or [app.monad.xyz](https://app.monad.xyz).
# Monad for Developers: Transactions, Consensus, Parallel Execution, and MonadDb
Source: https://docs.monad.xyz/introduction/monad-for-developers
Technical overview of Monad for developers: transactions, smart contracts, consensus, parallel execution, MonadDb, and the differences from Ethereum.
<Note>
This page summarizes "Why Monad" for developers. For a summary of what you need to know in order
to develop or redeploy on Monad, see
[Deployment Summary for Developers](/developer-essentials/summary).
</Note>
Monad is an Ethereum-compatible Layer-1 blockchain with 10,000 tps of throughput, 300ms block frequency, and 600ms finality.
Monad's implementation of the Ethereum Virtual Machine complies with the Fusaka fork.
The Monad client has been simulated with historical Ethereum transactions and produces
identical merkle roots.
Monad also offers full Ethereum RPC compatibility so that users can interact with Monad using
familiar tools like Etherscan or MetaMask.
Monad accomplishes these performance improvements, while preserving backward compatibility, through
the introduction of several major innovations:
* [MonadBFT](/monad-arch/consensus/monad-bft), a frontier BFT consensus mechanism solving the
[tail-forking](https://www.category.xyz/blogs/monadbft-fast-responsive-fork-resistant-streamlined-consensus) problem
* [RaptorCast](/monad-arch/consensus/raptorcast) for efficient block transmission
* [Asynchronous Execution](/monad-arch/consensus/asynchronous-execution) for pipelining
consensus and execution to raise the time budget for execution
* [Parallel Execution](/monad-arch/execution/parallel-execution) and [JIT Compilation](/monad-arch/execution/native-compilation) for efficient transaction
execution
* [MonadDb](/monad-arch/execution/monaddb) for efficient storage of Ethereum state
Although Monad features parallel execution and pipelining, it's important to note that blocks in Monad are linear, and transactions are linearly ordered within each block.
The first Monad client is built by
[Category Labs](https://www.category.xyz) and is written from scratch in C++ and Rust. The code
is open-source under `GPL-3.0` here:
* [`monad-bft`](https://github.com/category-labs/monad-bft)
* [`monad`](https://github.com/category-labs/monad)
## Transactions
| | |
| - | - |
| Address space | Same address space as Ethereum (20-byte addresses using ECDSA) |
| Transaction format/types | [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 type 0 ("legacy"), 1 ("EIP-2930"), 2 ("EIP-1559"; now the default in Ethereum), and 4 ("EIP-7702") are supported. See [transaction type reference](https://ethereum.org/en/developers/docs/transactions/#typed-transaction-envelope). See [Transactions](/developer-essentials/transactions) for more details. |
| EIP-7702 | Supported. See [EIP-7702 on Monad](/developer-essentials/eip-7702) |
| EIP-155 replay protection | Note that pre [EIP-155](https://eips.ethereum.org/EIPS/eip-155) transactions are allowed on the protocol level on Monad, therefore it's discouraged to use an Ethereum account that had previously made pre EIP-155 transactions. [Discussion](/developer-essentials/transactions#transactions-without-a-chain_id) |
| Wallet compatibility | Monad is compatible with standard Ethereum wallets such as MetaMask. The only change required is to alter the RPC URL and chain id. |
| Gas pricing | Monad is EIP-1559-compatible; base fee and priority fee work as in Ethereum. Base fee follows a dynamic controller, similar to the EIP-1559 controller but with slower increases and faster decreases. [Details](/developer-essentials/gas-pricing#base_price_per_gas-controller). **Transactions are charged based on gas limit rather than gas usage**, i.e. total tokens deducted from the sender's balance is `value + gas_price * gas_limit`. This is a DOS-prevention measure for asynchronous execution. See [Gas in Monad](/developer-essentials/gas-pricing) for more details. |
## Smart contracts
| | |
| - | - |
| Opcodes | Monad is bytecode-compatible with Ethereum (Fusaka fork). All [opcodes](https://www.evm.codes/) as of the Fusaka fork are supported. |
| Opcode pricing | Opcode pricing is the same as Ethereum, except for a few repricings needed to reweight relative scarcities of resources due to optimizations. [Details](/developer-essentials/opcode-pricing) |
| Storage pricing | Storage slots are grouped into pages of 128 consecutive slots, and access is warmed per page rather than per slot. Contracts that read or write consecutive slots pay the cold cost once per page. [Details](/developer-essentials/opcode-pricing#storage-pages) |
| Precompiles | All Ethereum precompiles as of the Fusaka fork (`0x01` to `0x11`), plus P256 signature verification at `0x0100` ([EIP-7951](https://eips.ethereum.org/EIPS/eip-7951)) and the staking precompile at `0x1000`. See [Precompiles](/developer-essentials/precompiles) |
| Max contract size | 128 kb (up from 24.5 kb in Ethereum) |
## Consensus
| | |
| - | - |
| Sybil resistance mechanism | Proof-of-Stake (PoS) |
| Delegation | Allowed (in-protocol) |
| Consensus mechanism | Monad's consensus mechanism, [MonadBFT](/monad-arch/consensus/monad-bft), represents a major leap in Byzantine Fault-Tolerant (BFT) consensus. It is the first BFT consensus mechanism to address the critical problem of [tail forking](https://www.category.xyz/blogs/monadbft-fast-responsive-fork-resistant-streamlined-consensus) in pipelined HotStuff-style consensus. Accomplishing this allows MonadBFT to achieve high throughput (10,000+ tps), frequent block times (300 ms), fast finality (600 ms), linear messaging complexity, and large validator sets (200+) without being susceptible to tail forking, a critical weakness in prior protocols where a leader can fork away its predecessor's block. |
| Block propagation mechanism | [RaptorCast](/monad-arch/consensus/raptorcast) |
| Block frequency | 300 ms |
| Finality | [Speculative finality](/monad-arch/consensus/monad-bft) at 300 ms; full finality at 600 ms |
| Mempool | Leaders maintain a [local mempool](/monad-arch/consensus/local-mempool). When an RPC receives a transaction, it [forwards](/monad-arch/consensus/local-mempool#transaction-lifecycle-in-monad) it to the next 3 leaders who keep it in their local mempool. If the RPC node doesn't observe the transaction getting included, it repeats this process of forwarding to the next 3 leaders 2 more times. Additional forwarding may be added at a later time. |
| Consensus participants | Direct consensus participants vote on block proposals and serve as leaders. To serve as a direct participant, a node must have at least `MinStake` staked and be in the top `MaxConsensusNodes` participants by stake weight. These parameters are set in code. |
| Asynchronous execution | In Monad, consensus and execution occur in a pipelined fashion. Nodes come to consensus on the official transaction order *prior* to executing that ordering ([Asynchronous Execution](/monad-arch/consensus/asynchronous-execution)); the outcome of execution is *not* a prerequisite to consensus. In blockchains where execution *is* a prerequisite to consensus, the time budget for execution is a small fraction of the block time. Pipelining consensus and execution allows Monad to expend the full block time on *both* consensus and execution. Block proposals consist of an ordered list of transactions and a delayed state merkle root from `k=3` blocks ago. Monad introduces the [Reserve Balance](/developer-essentials/reserve-balance) system to ensure that nodes at consensus time only include (or vote to include) transactions whose senders have sufficient balance to fund their execution. |
| State determinism | Finality occurs at consensus time; the official ordering of transactions is enshrined at this point, and the outcome is fully deterministic for any full node, who will generally execute the transactions for that new block in under 800 ms. The `D`-block delay for state merkle roots is only for state root verification, for example for allowing a node to ensure that it didn't make a computation error. |
## Execution
The execution phase for each block begins after consensus is reached on that block, allowing the node to proceed with consensus on subsequent blocks.
### Parallel Execution
Transactions are linearly ordered; the job of execution is to arrive at the state that results from executing that list of transactions serially. The naive approach is just to execute the transactions one after another. Can we do better? Yes we can!
Monad implements [par프로젝트로 돌아가기