bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 8쪽 중 2쪽
(Already Concluded)</a></td></tr><tr><td><strong>Unstaking</strong></td><td><a href="https://4229568706-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXuWoxXnGgpNfN7RzTGB3%2Fuploads%2FNdbU3O3e21aLavpXD0yb%2FMerlin_Daily.jpeg?alt=media&token=62628bd0-af0a-428b-a6f1-d6f301cfe4a1">Merlin_Daily.jpeg</a></td><td><a href="/merlin-docs/user-quick-start/how-to/staking-and-unstaking/unstaking">Unstaking</a></td></tr><tr><td><strong>Bridge</strong></td><td><a href="https://4229568706-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXuWoxXnGgpNfN7RzTGB3%2Fuploads%2FJYReuDJ26Xm9ctqBheL2%2F20240322-105701.jpeg?alt=media&token=a7a058ce-b086-443e-9f53-4e208653e2a6">20240322-105701.jpeg</a></td><td><a href="/merlin-docs/user-quick-start/how-to/bridge">Bridge</a></td></tr><tr><td><strong>MERL</strong></td><td><a href="https://4229568706-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXuWoxXnGgpNfN7RzTGB3%2Fuploads%2FWXGpFc13ouaZZKThyxqC%2F%E6%88%AA%E5%B1%8F2024-05-29%2018.01.57.png?alt=media&token=19fcd222-02b4-4c2f-b1b5-749f673c7fa3">截屏2024-05-29 18.01.57.png</a></td><td><a href="/merlin-docs/about-merlin/tokenomics">Tokenomics</a></td></tr><tr><td><strong>Merlin Phantom</strong></td><td><a href="https://4229568706-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXuWoxXnGgpNfN7RzTGB3%2Fuploads%2FcnOrbGtHOIWEQ0xillFT%2FGK981pIbEAESZU7.jpeg?alt=media&token=47c4c30d-a573-4036-97bf-94ea604b8eba">GK981pIbEAESZU7.jpeg</a></td><td><a href="https://app.gitbook.com/o/3rrPU5hB8eo4QNhDSCs0/s/XuWoxXnGgpNfN7RzTGB3/~/changes/60/user-quick-start/how-to/merlin-phantom">https://app.gitbook.com/o/3rrPU5hB8eo4QNhDSCs0/s/XuWoxXnGgpNfN7RzTGB3/~/changes/60/user-quick-start/how-to/merlin-phantom</a></td></tr></tbody></table>
# Developers
Merlin Chain is the first Bitcoin Layer 2 solution built on the Polygon CDK, fully integrating a ZK-Rollup network, decentralized oracle network, and on-chain BTC fraud proof module. By leveraging these advanced technologies, Merlin Chain offers Bitcoin users significantly lower fees, reduced operational complexity, enhanced functionality, and broader asset compatibility. Our mission is to enhance the native capabilities of Bitcoin, making its use more efficient and enjoyable, and ultimately, to Make Bitcoin Fun Again.
Merlin Chain supports a majority of Ethereum EIPs, precompiles, and opcodes. Developers benefit from the seamless deployment of smart contracts, developer tools, and wallets that already work on other EVM chains, but in an environment with more assets from bitcoin ecosystems.
This section is a comprehensive introductions and tutorials for all developers who want to deploy their dApps on Merlin Chain, including:
* [Builder Guides](/merlin-docs/developers/builder-guides)
* [Junior Builder Guides](/merlin-docs/developers/junior-builder-guides)
* [Run a Merlin Node (Coming Soon)](/merlin-docs/developers/run-a-merlin-node)
# Builder Guides
This section, Merlin Eco Builder Guides, provides developers with comprehensive references for all available tools. The specific topics covered include:
* [Networks](/merlin-docs/developers/builder-guides/networks)
* [General Contracts](/merlin-docs/developers/builder-guides/general-contracts)
* [Fees](/merlin-docs/developers/builder-guides/fees)
* [Developer Tool](/merlin-docs/developers/builder-guides/developer-tools)
# Networks
This section provides an overview of the Merlin [Mainnet](/merlin-docs/developers/builder-guides/networks/mainnet) and [Testnet](/merlin-docs/developers/builder-guides/networks/testnet).
# Mainnet
<table><thead><tr><th width="208">Name</th><th>Value</th></tr></thead><tbody><tr><td>Network Name</td><td>Merlin Mainnet</td></tr><tr><td>Description</td><td>The public mainnet for Merlin</td></tr><tr><td>RPC URL</td><td><p><a href="https://rpc.merlinchain.io">https://rpc.merlinchain.io</a></p><p>Rate limited and not for production backend systems</p></td></tr><tr><td>Chain ID</td><td>4200</td></tr><tr><td>Currency Symbol</td><td>BTC</td></tr><tr><td>Block Explorer</td><td><a href="https://scan.merlinchain.io">https://scan.merlinchain.io</a></td></tr></tbody></table>
# Testnet
## Merlin Testnet
| Name | Value |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Network Name | Merlin Testnet |
| Description | The public testnet for Merlin |
| RPC URL | <p><a href="https://testnet-rpc.merlinchain.io"><https://testnet-rpc.merlinchain.io></a></p><p>Rate limited and not for production backend systems</p> |
| Chain ID | 686868 |
| Currency Symbol | BTC |
| Block Explorer | <https://testnet-scan.merlinchain.io> |
## Testnet Faucet
There are two ways to get Merlin Chain testnet faucet:
1. Get it via our testnet faucet bot in discord <https://discord.gg/merlinchain>
1. The maximum amount for each claim will be 0.0001 testnet Merlin BTC per address
2. One claim per 24-hour
2. Bridge-in via Merlin testnet bridge <https://testnet.merlinchain.io/bridge> , please note that the balance of our testnet Merlin BTC vault is limited. If the bridging amount of testnet BTC is more than the vault's balance, the bridging transaction will fail.
<br>
# General Contracts
This section is essential information about the key contracts on the Merlin Chain, including
* [**Contract Addresses (Mainnet)**](/merlin-docs/developers/builder-guides/general-contracts/contract-addresses-mainnet)**:** A comprehensive list of important contract addresses on the Merlin Mainnet.
* [**Bridged Tokens:**](/merlin-docs/developers/builder-guides/general-contracts/bridged-tokens) Details about tokens that have been bridged to and from the Merlin network.
# Contract Addresses(Mainnet)
<table><thead><tr><th width="131">Contract</th><th>Address</th><th>Description</th></tr></thead><tbody><tr><td>Multicall3</td><td>0x46063722c010AF39E465d286B84936A12aFb81F0</td><td><p>Deployed with open source <a href="https://github.com/mds1/multicall/blob/main/src/Multicall3.sol">Multicall3</a> </p><p>Check the <a href="https://github.com/mds1/multicall?tab=readme-ov-file#usage">docs</a> for usage guide</p></td></tr><tr><td>WBTC</td><td>0xF6D226f9Dc15d9bB51182815b320D3fBE324e1bA</td><td>Native BTC wrapper</td></tr><tr><td>MBTC</td><td>0xB880fd278198bd590252621d4CD071b1842E9Bcd</td><td>Previous Merlin’s Seal token for BTC</td></tr></tbody></table>
# Bridged Tokens
## BRC-20 Tokens
<table><thead><tr><th width="105" align="center">Token</th><th width="203" align="center">Name</th><th width="106" align="center">Symbol</th><th width="82" align="center">Decimal</th><th align="center">Contract Address</th></tr></thead><tbody><tr><td align="center">ORDI</td><td align="center">Bridged BRC20 ordi</td><td align="center">ordi</td><td align="center">18</td><td align="center">0x7dcb50b2180BC896Da1200D2726a88AF5D2cBB5A</td></tr><tr><td align="center">MERL</td><td align="center">MERL</td><td align="center">MERL</td><td align="center">18</td><td align="center">0x5c46bFF4B38dc1EAE09C5BAc65872a1D8bc87378</td></tr><tr><td align="center">Sats</td><td align="center">Bridged BRC20 sats</td><td align="center">sats</td><td align="center">18</td><td align="center">0x4dbe39D987665d0CB9F921B50B2673346b87cAfA</td></tr><tr><td align="center">Rats</td><td align="center">Bridged BRC20 rats</td><td align="center">rats</td><td align="center">18</td><td align="center">0x1411626970e70f5b5d3351E339B58F61BDC68073</td></tr><tr><td align="center">MNER</td><td align="center">Bridged BRC20 MNER</td><td align="center">MNER</td><td align="center">18 </td><td align="center">0x27622B326Ff3ffa7dc10AE291800c3073b55AA39</td></tr><tr><td align="center">VOYA</td><td align="center">Bridged BRC20 VOYA</td><td align="center">VOYA</td><td align="center">18</td><td align="center">0x480E158395cC5b41e5584347c495584cA2cAf78d</td></tr><tr><td align="center">BTCs</td><td align="center">Bridged BRC20 BTCs</td><td align="center">BTCs</td><td align="center">18</td><td align="center">0x24C1BD5c41D0b0813730B5895e9F343FB8477BEA</td></tr><tr><td align="center">RUFI</td><td align="center">Bridged BRC20 RUFI</td><td align="center">RUFI</td><td align="center">18</td><td align="center">0x9bd60d6FC99843207B8149f9190438C1F81BDdcD</td></tr><tr><td align="center">RCSV</td><td align="center">Bridged BRC20 rcsv</td><td align="center">rcsv</td><td align="center">18</td><td align="center">0x4a7aa0D04B36cd5CecaaC9828DE84f70346b840d</td></tr></tbody></table>
## Ordinals NFT Tokens
<table><thead><tr><th width="171" align="center">Collection Name</th><th align="center">Name</th><th width="174" align="center">Symbol</th><th align="center">Contract Address</th></tr></thead><tbody><tr><td align="center">Bitmap</td><td align="center">Merlin's Seal Bitmap</td><td align="center">M-Bitmap</td><td align="center">0xf3188371290d36966bc6E88E3494dB8a4F60045a</td></tr><tr><td align="center">BRC-420</td><td align="center">Merlin's Seal BRC-420</td><td align="center">M-BRC420</td><td align="center">0xd32E14CC9aa5413622fD00b28e50aDFbf25c7EF8</td></tr><tr><td align="center">Mineral</td><td align="center">Merlin's Seal Mineral</td><td align="center">M-Mineral</td><td align="center">0x20584Ec056702620131894C2e16901B70404155a</td></tr><tr><td align="center">DragonBall</td><td align="center">Merlin's Seal DragonBall</td><td align="center">M-DragonBall</td><td align="center">0x7C09e01c9257A404d5CAf5C3Dfa79Bc00281734e</td></tr><tr><td align="center">bitDisc-black</td><td align="center">Merlin's Seal bitDisc-black</td><td align="center">M-bitDisc-black</td><td align="center">0x580283e82d6571B6816F8742a03BdA606148a422</td></tr><tr><td align="center">Bitcoin Frogs</td><td align="center">Merlin's Seal Bitcoin Frogs</td><td align="center">M-bitcoin-frogs</td><td align="center">0x6bFBE911d6a68D4Fc45FEd0Ec0f60Ac111a3cE15</td></tr><tr><td align="center">Bitcoin Puppets</td><td align="center">Merlin's Seal Bitcoin Puppets</td><td align="center">M-bitcoin-puppets</td><td align="center">0x977A08dA044d35DD08026C5d99861a13f8E7aC5a</td></tr><tr><td align="center">Quantum Cats</td><td align="center">Merlin's Seal Quantum Cats</td><td align="center">M-Quantum Cats</td><td align="center">0x00fe628d3400292B34BB9eD1527b29A2bbdEf4f7</td></tr></tbody></table>
## Runes Tokens
<table><thead><tr><th align="center">Name</th><th align="center">Symbol</th><th width="109" align="center">Decimal</th><th>Contract Address</th></tr></thead><tbody><tr><td align="center">Bridged Runes DOG•GO•TO•THE•MOON</td><td align="center">DOG•GO•TO•THE•MOON</td><td align="center">5</td><td>0x32A4b8b10222F85301874837F27F4c416117B811</td></tr><tr><td align="center">Bridged Runes LOBO•THE•WOLF•PUP</td><td align="center">LOBO•THE•WOLF•PUP</td><td align="center">8</td><td>0x9458eA21932515dd0E82543891068F065B88A98a</td></tr><tr><td align="center">Bridged Runes RUNE•FINANCIAL</td><td align="center">RUNE•FINANCIAL</td><td align="center">18</td><td>0x48E6AcA1B480dc98E2CaC560B10c47CB35eE838c</td></tr><tr><td align="center">Bridged Runes UNCOMMON•GOODS</td><td align="center">UNCOMMON•GOODS</td><td align="center">0</td><td>0xA2B1f801F67850a536969be0e620aE87b0dA0a2A</td></tr></tbody></table>
## EVM Tokens
| Name | Symbol | Decimal | Contract Address |
| :----------------: | :----: | :-----: | :----------------------------------------: |
| Merlin's Seal USDT | M-USDT | 6 | 0x967aEC3276b63c5E2262da9641DB9dbeBB07dC0d |
| Merlin's Seal USDC | M-USDC | 6 | 0x6b4eCAdA640F1B30dBdB68f77821A03A5f282EbE |
# Fees
Transaction fees on Merlin Chain comprise two components: **L2 transaction execution fees and L1 security fees**. The L2 transaction execution fee is incurred when executing transactions on the Layer 2 network, while the L1 fee primarily covers the cost of transmitting L2 data and ZK proofs to the Layer 1 network.
At this stage, Merlin Chain only charges L2 transaction execution fees. The fee model for transaction execution is similar to the gas fee model used in other EVM-compatible chains. Each transaction consumes a certain amount of Gas, and users can specify the Gas Price per unit of gas when initiating a transaction. **The total cost of a transaction is calculated as Gas Cost \* Gas Price**. 
This section are a few key points related to Fees on Merlin Chain, including:
* [Fee Model - No EIP-1559 Support](/merlin-docs/developers/builder-guides/fees/fee-model)
* [Gas](/merlin-docs/developers/builder-guides/fees/gas)
<br>
# Fee Model
Currently, Merlin Chain uses the pre-EIP1559 fee model from Ethereum. When initiating a transaction, users only need to specify the Gas Price and the Gas Limit (which sets the maximum amount of gas that a transaction can consume). Unlike the EIP1559 fee model, users cannot specify the Base Fee and Priority Fee.
# Gas
## Gas Token
Merlin Chain uses **native BTC (Merlin\_BTC)** as Gas Token to pay transaction cost. Additionally, **MERL** can currently be used as gas for transactions in the **AA wallet**. However, BTC has 18 decimals, which is different from the 8-digit precision of BTC on Bitcoin. This is to maintain consistency with the default decimal of tokens of EVM-compatible chains.
## How to Get Gas Token
Navigate to [Gas](/merlin-docs/user-quick-start/how-to/gas) for detailed for detailed Tutorials.
## Gas Price
* The minimum allowable Gas Price for nodes on Merlin Chain is 0.006 Gwei. Transactions with a Gas Price below 0.006 Gwei will be automatically rejected.  
* In most cases, users can simply use the Gas Price recommended by their wallet. If a higher transaction processing priority is desired, users can increase the Gas Price accordingly. However, during periods of severe network congestion, increasing the Gas Price does not necessarily guarantee that the transaction will be executed more quickly.
## Gas Limit
Merlin Chain imposes a **maximum Gas Limit of 30 million per transaction**. However, whether a transaction can be successfully executed on Merlin Chain depends not only on the Gas Limit but also on zkCounters.  
Merlin Chain nodes run zkEVM instead of the native Ethereum EVM. Each virtual machine instruction execution requires generating a corresponding ZK proof. The generation of ZK proofs consumes significant computational resources. zkCounters measure the zk resources consumed by a transaction.
<br>
# Bridging assets to Merlin
You can use official bridge (<https://merlinchain.io/bridge>) to bridge assets from Bitcoin network to Merlin chain.
You can also use below bridges from Merlin communities by taking your own risk:
<https://unicross.xyz/bridge>
<https://meson.fi/>
# Developer Tools
Developer tools are a crucial component in the blockchain development process. They not only simplify development workflows but also enhance developers' efficiency and accuracy in building, debugging, and deploying decentralized applications (dApps). This section will focus on two key tools: Wallets and Remote Procedure Call (RPC).
[**Wallets**](/merlin-docs/developers/builder-guides/developer-tools/wallet)
Wallets are essential tools in blockchain applications for managing and storing digital assets. Developers can use various types of wallets for development and testing, ensuring the security and reliability of transactions.
[**RPC**](/merlin-docs/developers/builder-guides/developer-tools/rpc)
Remote Procedure Call (RPC) is the foundation of communication between developers and the blockchain network. RPC enables developers to invoke various functions of blockchain nodes, allowing them to read data or send transactions.
# Wallet
Merlin Chain is a bitcoin layer2 that is compatible with the EVM. It connects the bitcoin network through an AA wallet. You can use your familiar EVM wallet or Bitcoin wallet (alongside Particle AA wallet) to interact with the Merlin network or DApps built on Merlin.
# Connecting to Merlin via EVM wallet
Merlin is EVM compatible,you can connect to Merlin via your familiar EVM wallet as usual.
Here is the public RPC endpoints you can use:
**MetaMask**
To add Merlin as a custom network to MetaMask:
1. Open the MetaMask browser extension.
2. Open the network selection dropdown menu by clicking the dropdown button at the top of the extension.
3. Click the Add network button
4. Click Add a network manually.
5. In the Add a network manually dialog that appears, enter the public RPC endpoints as the following
**Mainnet**
<table><thead><tr><th width="198">Name</th><th>Value</th></tr></thead><tbody><tr><td>Network Name</td><td>Merlin Mainnet</td></tr><tr><td>Description</td><td>The public Mainnet for Merlin</td></tr><tr><td>RPC URL</td><td>https://rpc.merlinchain.io</td></tr><tr><td>Chain ID</td><td>4200</td></tr><tr><td>Currency Symbol</td><td>BTC</td></tr><tr><td>Block Explorer</td><td>https://scan.merlinchain.io</td></tr></tbody></table>
**Testnet**
<table><thead><tr><th width="191">Name</th><th>Value</th></tr></thead><tbody><tr><td>Network Name</td><td>Merlin Testnet</td></tr><tr><td>Description</td><td>The public testnet for Merlin</td></tr><tr><td>RPC URL</td><td>https://testnet-rpc.merlinchain.io</td></tr><tr><td>Chain ID</td><td>686868</td></tr><tr><td>Currency Symbol</td><td>BTC</td></tr><tr><td>Block Explorer</td><td>https://testnet-scan.merlinchain.io</td></tr></tbody></table>
# Connecting to Merlin via BTC wallet
## Connecting to Merlin via BTC wallet <a href="#connecting-to-merlin-via-btc-wallet" id="connecting-to-merlin-via-btc-wallet"></a>
Merlin is working with Particle Network to provide a simple mechanism to use Merlin Chain via native Bitcoin wallets through BTC Connect. If you want your dApp to support Bitcoin users natively, either continue reading this document or visit P[article Network's BTC Connection Documentation](https://developers.particle.network/landing/introduction).
**High-Level Overview of BTC Connect**
BTC Connect refers to a technology built by Particle Network, allowing Bitcoin users to connect with (EVM-compatible) applications on Merlin Chain through Bitcoin native wallets, such as UniSat, OKX, Bitget and so on.In short, BTC Connect offers a simple, easy-to-integrate SDK that facilitates native Bitcoin wallet connection and interactions. Since native Bitcoin accounts are incompatible with EVM environments, BTC Connect generates and deploys a smart account on Merlin Chain, signed and authenticated by the user's Bitcoin wallet.Beyond the benefit of allowing a path for native Bitcoin accounts to interact with your application, BTC Connect leverages ERC-4337 account abstraction (hence the utilization of a smart account). This allows you to sponsor the gas fees users leveraging BTC Connect, execute batched transactions, etc.An overview of this dynamic between a user's native Bitcoin account and their associated smart account deployed on Merlin Chain can be found below:
# Multi-sig Wallets
Multi-sig wallets are cryptocurrency wallets designed to require two or more cryptocurrency wallet keys to unlock and withdraw funds.
There are **two multi-sig wallets** deployed on Merlin Chain.
### Safe Wallet.
* Website: <https://safewallet.merlinsecurity.io/>
* Github: <https://github.com/safe-global/safe-wallet-web>
### Gnosis Wallet
* Github: <https://github.com/gnosis/MultiSigWallet>
<br>
# RPC
## Node Providers
We are working with more and more Node Providers to provide a high-quality, robust, and efficient RPC service network that provides access to Merlin nodes with free and paid plans
### [BlockPI](https://blockpi.io/chain/merlin/)
BlockPI is a global distributed blockchain API service network. The fast, scalable, robust multichain RPC infrastructure for Web3 developers
**Supported Networks**
* Merlin Mainnet
* Merlin Testnet
Access URL: <https://blockpi.io/chain/merlin>
### [dRPC NodeCloud](https://drpc.org/nodecloud-multichain-rpc-management)
dRPC NodeCloud is multichain, glo프로젝트로 돌아가기