bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 52쪽
ecution; we feel that it's the job of the system to handle this
gracefully under the hood.
3. It would break integrations with existing wallets which don't support EIP-2930.
4. Note that EIP-2930 access lists are actually underspecified, at least from the perspective
of anticipating state contention. If two transactions both read from the same storage slot
(but neither writes to it) then, with respect to that storage slot, there is no state
contention - neither transaction can invalidate the other's computation. Contention only
occurs when an earlier transaction writes to a storage slot that a later transaction will
read. EIP-2930 access lists mention which storage slots are accessed, but don't make note
of whether the transaction will read from or write to that storage slot.
</Accordion>
## Consensus
<Accordion title="How are leaders selected?">
The leader schedule is constructed by a deterministic, stake-weighted process that is computed
once per epoch:
* An epoch occurs roughly every 4 hours 12 minutes (50,000 blocks). Validator stake weights are locked in
one epoch ahead (i.e. any changes for epoch N+1 must be registered prior to the start of epoch N).
* At the start of each epoch, each validator computes the leader schedule based on running a
deterministic pseudorandom function on the stake weights. Since the function is deterministic,
everyone arrives at the same leader schedule.
</Accordion>
<Accordion title="How many nodes can participate in consensus? Is participation permissionless?">
The client codebase has a parameter called [`ACTIVE_VALSET_SIZE`](/monad-arch/consensus/staking#constants)
which is currently set to 200.
Thus, the top 200 validators (ordered by stake weight) can participate directly in consensus.
This parameter is likely to change over time.
Participation is permissionless; one simply needs to be in the top `ACTIVE_VALSET_SIZE`
validators.
</Accordion>
### Raptorcast
<Accordion title="Where can I find a detailed description of RaptorCast?">
Check [this](https://www.category.xyz/blogs/raptorcast-designing-a-messaging-layer) blog post!
</Accordion>
<Accordion title="Why was UDP chosen instead of TCP in RaptorCast?">
See the discussion in [this](https://www.category.xyz/blogs/raptorcast-designing-a-messaging-layer)
blog post. UDP was selected, accepting lossyness but alleviating it by adding additional data
integrity (Raptor codes) and message authentication (signatures over merkle roots), because the
combination of those strategies over UDP is substantially more efficient than using TCP.
</Accordion>
<Accordion title="What is the difference between Raptorcast and the propagation methods in Ethereum, Solana, or L2s?">
Ethereum is using [libp2p](https://blog.libp2p.io/libp2p-and-ethereum/). It is gossip based
(each node propagates its message to a set of peers) which is a lot less efficient (more
duplicate messages and a more meandering process for getting the word out). As a result,
Ethereum budgets several seconds for the block to propagate throughout the network.
Solana uses [Turbine](https://www.helius.dev/blog/turbine-block-propagation-on-solana).
Turbine and RaptorCast are similar in the sense that they both use erasure coding, cut packets
into MTU-sized chunks, and send transactions through a broadcast tree for efficiency. Some of
the differences include:
* Monad uses Raptor codes while Turbine uses Reed-Solomon
* Monad uses a 2-level broadcast tree with every other validator as a level-1 node while Solana
uses a deeper, less structured broadcast tree with fewer level-1 nodes and more complex logic
for determining the broadcast tree. There aren't BFT guarantees on block delivery the way that
there are for Monad.
In L2s there's only 1 sequencer so there isn't a notion of block propagation for consensus.
The sequencer just pushes transaction batches occasionally to L1.
</Accordion>
### Mempool
<Accordion title="If there is a gap in nonces, will transactions after the gap be preserved in the mempool?">
For example, if my EOA currently has nonce 0, and I send a transaction with nonce 3, then I
send transactions with nonce 0, 1, and 2. Will the transaction with nonce 3 be executed or
dropped?
Answer: Transaction 3 will be executed.
</Accordion>
## Block States and Finality
<Accordion title="When can a node start executing a block?">
A node can start executing [speculatively](/monad-arch/consensus/asynchronous-execution#speculative-execution)
as soon as a new block proposal is received. Executing a block just generates new states and a
new merkle trie root - but the official pointer is still to the old one. This is like receiving
a possible piece of homework from your teacher which will be finalized soon - you can start
working on it on a new piece of paper, and just throw it away if it turns out that the homework
isn't needed.
</Accordion>
<Accordion title="When can a node be sure about the state?">
As soon as a block enters the [Finalized](/monad-arch/consensus/block-states) state, the
merkle root for the speculative execution of that block becomes the official local merkle root
for that block. That merkle root won't be verified by consensus for another `D=3` blocks, but
it is still known locally because state is deterministic given a fixed ordering of transactions.
If you want to be certain that your local node did not make a computation error (e.g. due to
cosmic rays), you may wait `D=3` blocks for the delayed merkle root, which makes the block in
question enter the [Verified](/monad-arch/consensus/block-states) state.
</Accordion>
## RPC
<Accordion title="When calling `eth_call` with an old block number, I received this response: `Block requested not found. Request might be querying historical state that is not available. If possible, reformulate query to point to more recent blocks`. What's going on?">
Due to Monad's high throughput, full nodes do not provide access to arbitrarily old state,
as this would require too much storage. See
[Historical Data](/developer-essentials/historical-data) for a fuller discussion.
When writing smart contracts, it is recommended to use events to log any state that will
be needed later, or use a [smart contract indexer](/tooling-and-infra/indexers/indexing-frameworks)
to compute it off-chain.
</Accordion>
## Features
<Accordion title="Is EIP-7702 supported?">
Yes, EIP-7702 is supported.
Note that when accounts are delegated under EIP-7702, their treatment under Monad's
[Reserve Balance](/developer-essentials/reserve-balance) rules changes slightly.
You can learn more about it [here](/developer-essentials/eip-7702).
</Accordion>
<Accordion title="Is EIP-7951 (or RIP-7212) supported?">
Yes, it is the precompile at `0x0100` following EIP-7951. This enables on-chain verification
of WebAuthn/passkey signatures using the P256 curve. See
[Precompiles](/developer-essentials/precompiles#p256-signature-verification) for
usage details and a Solidity example.
</Accordion>
## Miscellaneous
<Accordion title="What is the point of low validator hardware requirements (32 GB RAM, 2x 2TB SSD, 16-core CPU), if there will only be 100-200 voting nodes?">
Monad's north star is decentralization. If it's really expensive to run a node, only professional
validation companies with a large amount of stake will be able to justify the cost. Making nodes
economical is crucial to making it feasible for anyone to run a full node, as well as to
supporting a large validator set - the Day-1 mainnet target of 100-200 nodes is just a starting
point.
</Accordion>
<Accordion title="Why was rust chosen for the consensus client and C++ for execution?">
Rust and C++ are both great high-performance languages. C++ was selected for the database and
execution system to get finer control over the filesystem and to use libraries like `io_uring`
and `boost::fibers`. Rust was selected for consensus to take advantage of stricter memory safety
given that consensus concerns itself with slightly higher-level systems engineering problems.
</Accordion>
# Custom Stablecoins on Monad with Brale
Source: https://docs.monad.xyz/guides/brale
Deploy regulated, fully-backed USD stablecoins on Monad and integrate them into your application with onramps, offramps, and custody.
## Overview
Monad's high-performance EVM, with 10,000+ tx/s and sub-second time-to-finality, makes it well-suited for stablecoin-powered applications. Brale lets businesses create their own stablecoins and then access them programmatically through a single API for money movements.
## What You'll Build
By the end of this guide, you'll have:
* A custom stablecoin launched on Monad
* API credentials for programmatic control
* Working integrations for onramps, transfers, swaps, and offramps
## Why Custom Stablecoins?
| Use Case | Benefit |
| - | - |
| Branded experience | Your token, your identity—build user trust |
| Direct fiat rails | Connect to ACH, wire, and RTP through a single orchestration layer |
| Cross-chain liquidity | Move value across supported chains through a unified transfers model |
| Compliance built-in | Brale handles the regulated issuance and orchestration layer |
***
## Prerequisites
Before starting, ensure you have:
* A registered business entity for KYB verification
* A [Brale account](https://app.brale.xyz/)
* Monad network and wallet access:
* [Mainnet network info](https://docs.monad.xyz/developer-essentials/network-information)
* [Testnet network info](https://docs.monad.xyz/developer-essentials/testnet)
* [Add Monad to your wallet](https://docs.monad.xyz/guides/add-monad-to-wallet)
## Choose Your Environment
Use Brale testnet while developing and switch to mainnet for production. In testnet, use `monad_testnet` as the `transfer_type` and in mainnet, use `monad`. Brale's testnet supports testnet networks only and skips the real fiat leg on mint and redemption flows.
***
## Part 1: Launch Your Stablecoin in Brale
Stablecoin issuance is a dashboard workflow. API integration begins after your stablecoin has been launched. Once issued, the stablecoin is available via the API.
### Step 1: Complete Business Verification
1. Log in to the Brale Dashboard
2. Complete KYB (Know Your Business) verification:
* Business name and EIN
* Beneficial ownership information
### Step 2: Launch Your Stablecoin
In the Brale Dashboard, create your stablecoin and configure:
* **Name:** Your stablecoin's display name (for example, Acme Dollar)
* **Symbol:** Token ticker (for example, ACME)
* **Chains:** Select Monad
* **Branding:** Add your token logo
Then fund it via Wire, ACH, or USDC.
Once your stablecoin is live, continue with the API setup below.
***
## Part 2: Integrate with the Brale API
Brale's API uses OAuth 2.0 client credentials, environment-specific applications, and `address_id` values as the source/destination primitive for transfers.
### Step 1: Create API Credentials
1. Sign in to your Brale account
2. Navigate to **Settings → API**
3. Click **Create Application**
4. Give the application a name and choose **Mainnet** or **Testnet**
5. Copy the generated `CLIENT_ID` and `CLIENT_SECRET`
Brale API applications are environment-specific, and the same application credentials can be used for direct API access and the hosted Brale API MCP server.
### Step 2: Authenticate
Exchange your credentials for a bearer token:
```bash theme={null}
export CLIENT_ID="your_client_id"
export CLIENT_SECRET="your_client_secret"
CLIENT_CREDENTIALS=$(
printf "%s:%s" "${CLIENT_ID}" "${CLIENT_SECRET}" | base64 | tr -d '\n'
)
curl --request POST \
--url "https://auth.brale.xyz/oauth2/token" \
--header "Authorization: Basic ${CLIENT_CREDENTIALS}" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data grant_type=client_credentials
```
**Response**
```json theme={null}
{
"access_token": "eyJ...",
"token_type": "Bearer",
"expires_in": 3600
}
```
Use the returned token in subsequent requests:
```bash theme={null}
export AUTH_TOKEN="your_access_token"
```
### Step 3: Set Your Working Variables
```bash theme={null}
export ACCOUNT_ID="your_account_id"
export TOKEN_SYMBOL="ACME"
# Use testnet while developing
export MONAD_TRANSFER_TYPE="monad_testnet"
# Switch to mainnet for production
# export MONAD_TRANSFER_TYPE="monad"
```
### Step 4: Retrieve Your `account_id`
List your accounts and identify the account you want to operate on:
```bash theme={null}
curl --request GET \
--url "https://api.brale.xyz/accounts" \
--header "Authorization: Bearer ${AUTH_TOKEN}"
```
### Step 5: Get Your Internal Monad `address_id`
Brale automatically generates internal custodial addresses on supported chains for onboarded accounts. Retrieve the internal Monad address you want to use for custodial flows:
```bash theme={null}
curl --request GET \
--url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses?type=internal&transfer_type=${MONAD_TRANSFER_TYPE}" \
--header "Authorization: Bearer ${AUTH_TOKEN}"
```
Store the returned internal Monad `address_id`:
```bash theme={null}
export MONAD_ADDRESS_ID="your_internal_monad_address_id"
```
### Step 6: Register an External Monad Wallet (Optional)
If you want to send to or receive from a self-custody Monad wallet, register it as an external address first. In Brale, addresses can be `type=internal` or `type=external`, and both are represented by `address_id` values used in transfers.
```bash theme={null}
curl --request POST \
--url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/addresses/external" \
--header "Authorization: Bearer ${AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: $(uuidgen)" \
--data '{
"name": "User Monad Wallet",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"transfer_types": ["'"${MONAD_TRANSFER_TYPE}"'"]
}'
```
**Response**
```json theme={null}
{
"id": "2VcUIIsgARwVbEGlIYbhg6fGG57"
}
```
Store the returned `id` as the wallet's Brale `address_id`:
```bash theme={null}
export EXTERNAL_MONAD_ADDRESS_ID="your_external_monad_address_id"
```
***
## Alternative: Brale API MCP Server
Brale offers a hosted API MCP server for live API access from MCP-compatible clients. The remote server URL is `https://mcp.brale.xyz/`.
### Setup for Claude Desktop
1. Open **Settings → Connectors**
2. Click **Add custom connector**
3. Enter the remote MCP server URL: `https://mcp.brale.xyz/`
4. Open **Advanced settings** and enter your OAuth Client ID and Client Secret
5. Save the connector
Once added, enable it from the Search and Tools menu in chat.
<Info>
Custom connectors are available on Pro, Max, Team, and Enterprise plans.
</Info>
### Setup for Cursor
Add a server entry in **Settings → MCP**:
```json theme={null}
{
"name": "Brale API MCP",
"url": "https://mcp.brale.xyz/",
"env": {
"CLIENT_ID": "your_client_id",
"CLIENT_SECRET": "your_client_secret"
}
}
```
### Setup for Windsurf
Edit `~/.codeium/windsurf/mcp_config.json`:
```json theme={null}
{
"mcpServers": {
"Brale API MCP": {
"url": "https://mcp.brale.xyz/",
"env": {
"CLIENT_ID": "your_client_id",
"CLIENT_SECRET": "your_client_secret"
}
}
}
}
```
Restart Windsurf after saving.
***
## Move Value with Transfers
All stablecoin movement is handled through the Transfers API. Every transfer is scoped to an `account_id`, references `address_id` values where applicable, and uses `transfer_type` plus `value_type` to define the rail/chain and asset being moved.
### Base URL
```
https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers
```
### Required Headers
```
Authorization: Bearer ${AUTH_TOKEN}
Content-Type: application/json
Idempotency-Key: $(uuidgen)
```
<Tip>
Always include a fresh `Idempotency-Key` on create requests.
</Tip>
***
## Onramps: Fiat to Stablecoin
Convert USD to your stablecoin on Monad.
### Option A: Wire Onramp
```bash theme={null}
curl --request POST \
--url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \
--header "Authorization: Bearer ${AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: $(uuidgen)" \
--data '{
"amount": {
"value": "1000.00",
"currency": "USD"
},
"source": {
"value_type": "usd",
"transfer_type": "wire"
},
"destination": {
"address_id": "'"${MONAD_ADDRESS_ID}"'",
"value_type": "'"${TOKEN_SYMBOL}"'",
"transfer_type": "'"${MONAD_TRANSFER_TYPE}"'"
}
}'
```
### Option B: ACH Onramp
If you are funding from a linked bank account, use an ACH funding address and mint to your Monad destination address:
```bash theme={null}
export FUNDING_ADDRESS_ID="your_ach_funding_address_id"
curl --request POST \
--url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \
--header "Authorization: Bearer ${AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: $(uuidgen)" \
--data '{
"amount": {
"value": "1000.00",
"currency": "USD"
},
"source": {
"address_id": "'"${FUNDING_ADDRESS_ID}"'",
"value_type": "usd",
"transfer_type": "ach_debit"
},
"destination": {
"address_id": "'"${MONAD_ADDRESS_ID}"'",
"value_type": "'"${TOKEN_SYMBOL}"'",
"transfer_type": "'"${MONAD_TRANSFER_TYPE}"'"
}
}'
```
### Option C: Automated Onramps
For recurring flows, create an Automation that mints stablecoins automatically when USD arrives:
1. In the Dashboard, navigate to **Automations**
2. Create an automation that listens for inbound ACH or wire funding
3. Set the destination to your Monad address
4. Save the automation
***
## Transfers: Move Stablecoins
Transfer your stablecoin between addresses on Monad or across chains.
### On-Chain Transfer (Monad)
```bash theme={null}
export SOURCE_ADDRESS_ID="your_source_monad_address_id"
export DESTINATION_ADDRESS_ID="your_destination_monad_address_id"
curl --request POST \
--url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \
--header "Authorization: Bearer ${AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: $(uuidgen)" \
--data '{
"amount": {
"value": "500.00",
"currency": "USD"
},
"source": {
"address_id": "'"${SOURCE_ADDRESS_ID}"'",
"value_type": "'"${TOKEN_SYMBOL}"'",
"transfer_type": "'"${MONAD_TRANSFER_TYPE}"'"
},
"destination": {
"address_id": "'"${DESTINATION_ADDRESS_ID}"'",
"value_type": "'"${TOKEN_SYMBOL}"'",
"transfer_type": "'"${MONAD_TRANSFER_TYPE}"'"
}
}'
```
### Cross-Chain Transfer
Move your stablecoin from Monad to another supported chain:
```bash theme={null}
export BASE_ADDRESS_ID="your_base_address_id"
curl --request POST \
--url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \
--header "Authorization: Bearer ${AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: $(uuidgen)" \
--data '{
"amount": {
"value": "500.00",
"currency": "USD"
},
"source": {
"address_id": "'"${MONAD_ADDRESS_ID}"'",
"value_type": "'"${TOKEN_SYMBOL}"'",
"transfer_type": "'"${MONAD_TRANSFER_TYPE}"'"
},
"destination": {
"address_id": "'"${BASE_ADDRESS_ID}"'",
"value_type": "'"${TOKEN_SYMBOL}"'",
"transfer_type": "base"
}
}'
```
***
## Swaps: Exchange Stablecoins
Swap between supported stablecoins at 1:1 with no slippage.
<Info>
Confirm the specific `value_type` and `transfer_type` combination you plan to use before production.
</Info>
### Example: Swap Your Token for USDC
```bash theme={null}
export USDC_DESTINATION_ADDRESS_ID="your_usdc_destination_address_id"
curl --request POST \
--url "https://api.brale.xyz/accounts/${ACCOUNT_ID}/transfers" \
--header "Authorization: Bearer ${AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: $(uuidgen)" \
--data '{
"amount": {
"value": "250.00",
"currency": "USD"
},
"source": {
"address_id": "'"${MONAD_ADDRESS_ID}"'",
"value_type": "'"${TOKEN_SYMBOL}"'",
"transfer_type": "'"${MONAD_TRANSFER_TYPE}"'"
},
"destination": {
"a프로젝트로 돌아가기