Monad 백서

Monad

원문

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

s APIs and SDKs, enabling businesses to integrate digital asset trading, custody, and fiat-to-crypto on-ramps directly into their applications. zerohash also provides fiat onramps and offramps — see [Onramps](/tooling-and-infra/onramps). To get started, visit the [documentation](https://docs.zerohash.com/). # Privacy Source: https://docs.monad.xyz/tooling-and-infra/privacy Privacy protocols let users transact on Monad without publicly exposing balances, token holdings, amounts, or counterparties, typically using zero-knowledge proofs, sometimes combined with multiparty computation (MPC). ## Provider Summary <Tabs> <Tab title="Mainnet"> <div> <table> <thead> <tr> <th>Provider</th> <th>Status</th> <th>Docs</th> <th>Support notes</th> </tr> </thead> <tbody> <tr> <td>[TACEO Merces](https://taceo.io/)</td> <td>Supported (limited access)</td> <td>[Docs](https://docs.taceo.io/docs/finance-solutions/overview/)</td> <td>Private USDC balances and transfers via MPC and collaborative ZK proofs; limited users and volume caps; compliance attestation required</td> </tr> </tbody> </table> </div> </Tab> <Tab title="Testnet"> <div> <table> <thead> <tr> <th>Provider</th> <th>Status</th> <th>Docs</th> <th>Support notes</th> </tr> </thead> <tbody> <tr> <td>[TACEO Merces](https://taceo.io/)</td> <td>Supported (demo)</td> <td>[Docs](https://docs.taceo.io/docs/start-here/deployments-and-status/)</td> <td>Cross-chain private transfer demo using a test OFT token via LayerZero</td> </tr> </tbody> </table> </div> </Tab> </Tabs> ## Provider Details ### TACEO Merces [TACEO](https://taceo.io/) Merces is a privacy layer that wraps existing ERC-20 tokens into private balances. Balances and identifiers are secret-shared across the TACEO Network, a set of independent MPC nodes, so no single node sees a readable balance. Each state change is verified onchain with a collaborative zero-knowledge proof (coSNARK) before it takes effect. Users keep their existing wallets, and the token itself is unchanged. On Monad mainnet, Merces supports private [USDC](/developer-essentials/network-information/tokens-and-bridges) with limited users and volume caps. Registration, deposits, and withdrawals require a compliance attestation. See TACEO's [deployments and status](https://docs.taceo.io/docs/start-here/deployments-and-status/) page for current contract addresses and feature availability. You integrate Merces with the TypeScript client [`@taceo/merces-client`](https://www.npmjs.com/package/@taceo/merces-client), which also ships a `taceo-merces-client` CLI with a `--chain monad` preset. <Note> The Monad testnet deployment is a cross-chain demo that uses a different SDK, [`@taceo/merces-oft-client`](https://docs.taceo.io/docs/finance-solutions/integrate/client-sdk-oft/), for private transfers between Monad testnet, Sepolia, and Base Sepolia via LayerZero OFT. You can also try it in the [cross-chain web demo](https://crosschain.merces-demo.taceo.io). </Note> #### Features * Private balances, deposits, transfers, and withdrawals for wrapped ERC-20 tokens * Compliance screening before execution, with scoped disclosure to auditors and regulators * No changes required to the underlying token or user wallets #### Use cases * Confidential stablecoin payments and payouts * Private treasury and settlement flows for institutions that need compliance controls To get started, visit the [Merces integration guide](https://docs.taceo.io/docs/finance-solutions/integrate/client-sdk/). # RPC Providers Source: https://docs.monad.xyz/tooling-and-infra/rpc-providers <Note> See also: [API reference](/reference/json-rpc) </Note> ## Provider Summary <Tabs> <Tab title="Mainnet"> <div> <table> <thead> <tr> <th>Provider</th> <th>Notes</th> </tr> </thead> <tbody> <tr> <td>[Alchemy](https://www.alchemy.com/)</td> <td>Alchemy Monad [docs](https://www.alchemy.com/docs/reference/monad-api-quickstart)</td> </tr> <tr> <td>[Ankr](https://www.ankr.com/)</td> <td>Ankr Monad [docs](https://www.ankr.com/web3-api/chains-list/monad/)</td> </tr> <tr> <td>[Blockdaemon](https://www.blockdaemon.com)</td> <td>Blockdaemon Monad [docs](https://www.blockdaemon.com/protocols/monad)</td> </tr> <tr> <td>[BlockPI](https://blockpi.io/)</td> <td>BlockPI Monad [docs](https://blockpi.io/chain/monad)</td> </tr> <tr> <td>[BoltRPC](https://boltrpc.io/)</td> <td>BoltRPC Monad [docs](https://boltrpc.io/docs)</td> </tr> <tr> <td>[Chainstack](https://chainstack.com/build-better-with-monad/)</td> <td>Chainstack Monad [docs](https://docs.chainstack.com/reference/monad-getting-started)</td> </tr> <tr> <td>[dRPC NodeCloud](https://drpc.org/)</td> <td>dRPC NodeCloud Monad [docs](https://drpc.org/chainlist/monad-mainnet-rpc)</td> </tr> <tr> <td>[Dwellir](https://dwellir.com/)</td> <td>Dwellir Monad [docs](https://dwellir.com/networks/monad)</td> </tr> <tr> <td>[Envio](https://envio.dev/)</td> <td>HyperRPC is a performant read-only RPC. See [docs](https://docs.envio.dev/docs/HyperRPC/overview-hyperrpc)</td> </tr> <tr> <td>[GetBlock](https://getblock.io/)</td> <td>GetBlock Monad [docs](https://getblock.io/nodes/monad/)</td> </tr> <tr> <td>[Node101](https://node101.io/)</td> <td>Node101 Monad [docs](https://node101.io/en/rpc/monad)</td> </tr> <tr> <td>[OnFinality](https://onfinality.io/)</td> <td>OnFinality Monad [docs](https://onfinality.io/en/networks/monad-mainnet)</td> </tr> <tr> <td>[Quicknode](https://www.quicknode.com/)</td> <td>Quicknode Monad [docs](https://www.quicknode.com/chains/monad)</td> </tr> <tr> <td>[Spectrum](https://spectrumnodes.com/)</td> <td>Spectrum Nodes [docs](https://spectrumnodes.com/docs/)</td> </tr> <tr> <td>[Tatum](https://tatum.io)</td> <td>Tatum Monad [docs](https://tatum.io/exclusive/monad)</td> </tr> <tr> <td>[thirdweb](https://thirdweb.com)</td> <td>thirdweb RPC Edge [docs](https://portal.thirdweb.com/infrastructure/rpc-edge/overview)</td> </tr> <tr> <td>[Triton One](https://triton.one/)</td> <td>Triton One Monad [docs](https://docs.triton.one/chains/monad)</td> </tr> <tr> <td>[Validation Cloud](https://validationcloud.io/)</td> <td>Validation Cloud Monad [docs](https://docs.validationcloud.io/monad)</td> </tr> </tbody> </table> </div> </Tab> <Tab title="Testnet"> <div> <table> <thead> <tr> <th>Provider</th> <th>Notes</th> </tr> </thead> <tbody> <tr> <td>[Alchemy](https://www.alchemy.com/)</td> <td>Alchemy Monad [docs](https://www.alchemy.com/docs/reference/monad-api-quickstart)</td> </tr> <tr> <td>[Ankr](https://www.ankr.com/)</td> <td>Ankr Monad [docs](https://www.ankr.com/web3-api/chains-list/monad/)</td> </tr> <tr> <td>[Blockdaemon](https://www.blockdaemon.com)</td> <td>Blockdaemon Monad [docs](https://www.blockdaemon.com/protocols/monad)</td> </tr> <tr> <td>[BlockPI](https://blockpi.io/)</td> <td>BlockPI Monad [docs](https://blockpi.io/chain/monad)</td> </tr> <tr> <td>[BoltRPC](https://boltrpc.io/)</td> <td>BoltRPC Monad [docs](https://boltrpc.io/docs)</td> </tr> <tr> <td>[Chainstack](https://chainstack.com/build-better-with-monad/)</td> <td>Chainstack Monad [docs](https://docs.chainstack.com/reference/monad-getting-started)</td> </tr> <tr> <td>[dRPC NodeCloud](https://drpc.org/)</td> <td>dRPC NodeCloud Monad [docs](https://drpc.org/chainlist/monad-testnet-rpc)</td> </tr> <tr> <td>[Dwellir](https://dwellir.com/)</td> <td>Dwellir Monad [docs](https://dwellir.com/networks/monad)</td> </tr> <tr> <td>[Envio](https://envio.dev/)</td> <td>HyperRPC is a performant read-only RPC. See [docs](https://docs.envio.dev/docs/HyperRPC/overview-hyperrpc)</td> </tr> <tr> <td>[GetBlock](https://getblock.io/)</td> <td>GetBlock Monad [docs](https://getblock.io/nodes/monad/)</td> </tr> <tr> <td>[Node101](https://node101.io/)</td> <td>Node101 Monad [docs](https://node101.io/en/rpc/monad)</td> </tr> <tr> <td>[OnFinality](https://onfinality.io/)</td> <td>OnFinality Monad [docs](https://onfinality.io/en/networks/monad-mainnet)</td> </tr> <tr> <td>[Quicknode](https://www.quicknode.com/)</td> <td>Quicknode Monad [docs](https://www.quicknode.com/chains/monad)</td> </tr> <tr> <td>[Spectrum](https://spectrumnodes.com/)</td> <td>Spectrum Nodes [docs](https://spectrumnodes.com/docs/)</td> </tr> <tr> <td>[Tatum](https://tatum.io)</td> <td>Tatum Monad [docs](https://tatum.io/chain/monad)</td> </tr> <tr> <td>[thirdweb](https://thirdweb.com)</td> <td>thirdweb RPC Edge [docs](https://portal.thirdweb.com/infrastructure/rpc-edge/overview)</td> </tr> <tr> <td>[Validation Cloud](https://validationcloud.io/)</td> <td>Validation Cloud Monad [docs](https://docs.validationcloud.io/monad)</td> </tr> </tbody> </table> </div> </Tab> </Tabs> ## Provider Details ### Alchemy [Alchemy](https://www.alchemy.com/) is a popular API provider and developer platform. Its robust, free tier offers access to JSON-RPC APIs, and hosted testnet nodes for Monad Testnet. ### Ankr [Ankr](https://www.ankr.com/web3-api/) provides private and public RPC endpoints for Monad, powered by a globally distributed and decentralized network of nodes. ### Blockdaemon [Blockdaemon](https://www.blockdaemon.com/) provides enterprise-grade web3 infrastructure, including dedicated nodes, APIs, staking, liquid staking, MPC wallets, and more. To get started, visit the [Blockdaemon documentation](https://docs.blockdaemon.com/). ### BlockPI [BlockPI](https://blockpi.io/) provides enterprise-grade, high-performance RPC services for both Monad Mainnet and Testnet. Whatever you're building on Monad, we offer this premium service at a fraction of the market average price, making high-quality RPC access affordable for everyone. To get started, visit [BlockPI's Monad page](https://blockpi.io/chain/monad). ### BoltRPC [BoltRPC](https://boltrpc.io/) provides high-performance HTTPS and WebSocket RPC endpoints for Monad, built by the team operating production node infrastructure for leading Web3 networks. Transparent request-unit pricing, multi-chain access under a single API key, and infrastructure engineered for production throughput. To get started, visit the [BoltRPC documentation](https://boltrpc.io/docs). ### Chainstack [Chainstack](https://chainstack.com/build-better-with-monad/) provides low-latency, highly reliable, and scalable RPC infrastructure for Monad. You can deploy robust Monad Mainnet and Testnet nodes and access [geo-balanced RPC endpoints](https://chainstack.com/global-nodes/) on a secure, SOC 2–certified platform. To get started, create a free account with a [Monad RPC node](https://chainstack.com/). ### dRPC NodeCloud [dRPC NodeCloud](https://drpc.org/) delivers robust, low-latency RPC for Monad. Free accounts & paid plans from \$10. Full speed. No limits, build confidently. To get started, visit the [dRPC's Monad page](https://drpc.org/chainlist/monad-testnet-rpc). ### Dwellir [Dwellir](https://dwellir.com/) supports Monad Mainnet and Testnet endpoints as well as over 100+ other blockchain networks. And best of all: every response costs the same—no compute units. To get started, visit the [Dwellir Monad page](https://dwellir.com/networks/monad). ### Envio [Envio](https://envio.dev) has a free read only RPC that supports a subset of data intensive [methods](https://docs.envio.dev/docs/HyperRPC/overview-hyperrpc#supported-methods), Envio's purpose built rust node supports historical data allowing you to query past 10,000 blocks into the past. To get started, visit the [Envio documentation](https://docs.envio.dev/docs/HyperRPC/overview-hyperrpc) ### GetBlock [GetBlock](https://getblock.io/) provides reliable RPC endpoints for Monad, offering shared and dedicated nodes with high availability and performance. To get started, visit the [GetBlock Monad page](https://getblock.io/nodes/monad/). ### Node101 [Node101](https://node101.io/) provides dedicated Monad RPC infrastructure with JSON-RPC and trace API support, dashboard monitoring, distributed architecture, and 24/7 technical support. To get started, explore [node101's Monad RPC service](https://node101.io/en/rpc/monad). ### OnFinality [OnFinality](https://onfinality.io/) provides high performance RPC for Monad Mainnet and Testnet, along with support for many other leading networks so teams can build cross chain from Monad with ease. OnFinality infrastructure delivers 99.99% uptime, fast response times, and pricing that is friendly for teams of every size. Start building on Monad today with reliable and scalable RPC from [OnFinality](https://onfinality.io/en/networks/monad-mainnet). ### Quicknode [Quicknode](https://www.quicknode.com/) offers access to their [Core RPC API](https://www.quicknode.com/core-api) for both Monad Testnet and Mainnet. Quicknode provides managed, high-performance RPC endpoints with instant access. To get started, visit [Quicknode's Monad page](https://www.quicknode.com/chains/monad). ### Spectrum [Spectrum](https://spectrumnodes.com/) is an enterprise-grade RPC Infrastructure provider that makes it easy to deploy and manage dedicated RPC endpoints to over 150 networks. Sign up today to get started on Monad. To get started, visit the [Spectrum dashboard](https://dashboard.spectrumnodes.com/auth/signup). ### Tatum [Tatum](https://tatum.io/) provides RPC nodes, blockchain data, and real-time notifications. To get started, visit the [Tatum documentation](https://docs.tatum.io/). ### thirdweb [thirdweb](https://thirdweb.com/)'s [RPC Edge](https://portal.thirdweb.com/infrastructure/rpc-edge/overview) provides an RPC endpoint for developers building on Monad. To get started, visit the [Thirdweb RPC Edge documentation](https://portal.thirdweb.com/infrastructure/rpc-edge/overview). ### Triton One [Triton One](https://docs.triton.one/) is a reliable, globally distributed Monad RPC provider built for teams that need consistent performance under load, high throughput, and uninterrupted uptime. To get started, visit the Triton One Monad [docs](https://docs.triton.one/chains/monad). ### Validation Cloud [Validation Cloud](https://validationcloud.io/) is the world's fastest node provider according to Compare Nodes. With 50 million compute units available for use without a credit card and a scale tier that never has rate limits, Validation Cloud is built to support your most rigorous and low-latency workloads. To get started, visit the [Validation Cloud Monad documentation](https://docs.validationcloud.io/monad). # Foundry Source: https://docs.monad.xyz/tooling-and-infra/toolkits/foundry Use Foundry to build, test, deploy, and debug contracts with the Monad execution environment. [Foundry](https://getfoundry.sh/) v1.8 or later includes first-class Monad execution support across Forge, Anvil, Cast, Chisel, traces, and cheatcodes. Use the official Foundry distribution for Monad development. For general Foundry usage, including writing tests and scripts, deployment, configuration, and cheatcodes, refer to the [Foundry documentation](https://getfoundry.sh/). ## Installation Install the official Foundry installer: ```sh theme={null} curl -L https://foundry.paradigm.xyz | bash ``` Follow the installer instructions to add `foundryup` to your shell, then install the latest stable Foundry release: ```sh theme={null} foundryup ``` Confirm that you are running Foundry v1.8.0 or later: ```sh theme={null} forge --version ``` <Warning> Foundry releases before v1.8 do not include Monad execution support. </Warning> ## Configure Monad execution Set the execution network in your project's `foundry.toml`: ```toml title="foundry.toml" theme={null} [profile.default] network = "monad" ``` This setting makes local Forge, Cast, and Chisel execution use Monad's gas model, opcode pricing, transaction rules, precompiles, and contract size limits. You can select Monad for a single command instead: ```sh theme={null} forge test --network monad ``` ## Hardfork selection Local Monad execution defaults to the latest supported Monad hardfork, currently `MonadTen`. To reproduce an earlier hardfork, set it explicitly: ```toml title="foundry.toml" theme={null} [profile.default] network = "monad" hardfork = "monad:MonadNine" ``` You can also select a hardfork for a single command: ```sh theme={null} forge test --network monad --hardfork MonadNine ``` When Foundry forks Monad Mainnet or Testnet, it uses the endpoint's chain ID and the forked block's timestamp to select the active Monad hardfork automatically. ## Monad execution features | Feature | Description | | - | - | | **Monad EVM execution** | Monad gas model, opcode pricing, transaction rules, 128 KB contract size limit, and 256 KB initcode size limit | | **Monad hardforks** | Explicit hardfork selection and automatic selection for historical and live network forks | | **MonadTen and MIP-8** | Page-based storage access, write, and state-growth gas accounting | | **Monad precompiles** | Monad precompile execution, staking cheatcodes, and human-readable trace decoding | | **Anvil with Monad** | Local or forked Monad execution using the official Anvil binary | | **Contract verification** | Monad-aware bytecode replay for Forge verification workflows | For the complete list of protocol differences, see [Differences between Monad and Ethereum](/developer-essentials/differences). ## Anvil Use `--network monad` to start a local Anvil node with the Monad execution environment: ```sh theme={null} anvil --network monad ``` Anvil defaults to `MonadTen` for new local chains. You can also fork Monad Testnet or Mainnet: ```sh theme={null} # Fork Monad Testnet anvil --fork-url https://testnet-rpc.monad.xyz # Fork Monad Mainnet anvil --fork-url https://rpc.monad.xyz ``` When forking a canonical Monad endpoint, Anvil detects the Monad network from its chain ID and selects the active hardfork for the fork block. ## Cast and Chisel Cast and Chisel use the Monad execution environment when `network = "monad"` is set in `foundry.toml`. You can also pass `--network monad` directly to supported commands. All standard Cast and Chisel workflows remain available. Monad-specific precompile calls are decoded in traces with human-readable names and parameters. ## CI integration Use the official [Foundry toolchain action](https://github.com/foundry-rs/foundry-toolchain) and install v1.8.0 or later: ```yaml theme={null} - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 with: version: v1.8.0 ``` For example: ```yaml theme={null} name: CI on: [push, pull_request] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 with: submodules: recursive - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 with: version: v1.8.0 - name: Run tests with Monad execution run: forge test --network monad -vvv ``` ## Migrating from Monad Foundry <Warning> The legacy [Monad Foundry fork](https://github.com/category-labs/foundry/tree/monad) supports Monad execution only through the `MonadNine` hardfork. It does not support `MonadTen` or MIP-8 and should be migrated from. </Warning> To migrate: 1. Install Foundry v1.8 or later with the official installer and run `foundryup`. 2. Add `network = "monad"` to your `foundry.toml`, or pass `--network monad` to individual commands. 3. Replace `anvil --monad` with `anvil --network monad`. 4. Replace `category-labs/foundry-toolchain@v1` with `foundry-rs/foundry-toolchain@v1` in CI. 5. Remove scripts that install Foundry from `foundry.category.xyz` or run `foundryup --network monad`. The official release includes the Monad execution behavior, precompiles, trace decoding, and tooling integration previously provided by the fork, along with MonadTen support. # Hardhat Source: https://docs.monad.xyz/tooling-and-infra/toolkits/hardhat Start a Hardhat 3 project for Monad or add Monad
프로젝트로 돌아가기