bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 54쪽
lipboard>
`0xcA1167915584462449EE5b4Ea51c37fE81eCDCCD`
</CopyToClipboard>
<span>
(
<a href="https://monadscan.com/address/0xcA1167915584462449EE5b4Ea51c37fE81eCDCCD">mainnet</a>
<a href="https://testnet.monadscan.com/address/0xcA1167915584462449EE5b4Ea51c37fE81eCDCCD">testnet</a>
)
</span>
</li>
</ul>
The V3 account implementation is wired to the ERC-4337 EntryPoint v0.6 at [`0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789`](https://monadscan.com/address/0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789) ([testnet](https://testnet.monadscan.com/address/0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789)), which is also live on Monad.
## Quickstart with the Tokenbound SDK
Install the SDK and [viem](https://viem.sh):
```bash theme={null}
npm install @tokenbound/sdk viem@^2.40.0
```
Point the client at Monad. Because Monad's deployment uses the canonical v3 addresses that ship as the SDK's defaults, you only need to supply the chain — no custom contract addresses:
```ts theme={null}
import { TokenboundClient } from "@tokenbound/sdk"
import { createWalletClient, custom } from "viem"
import { monad } from "viem/chains" // monadTestnet for chain 10143
const [account] = (await window.ethereum.request({
method: "eth_requestAccounts",
})) as [`0x${string}`]
const walletClient = createWalletClient({
account,
chain: monad,
transport: custom(window.ethereum),
})
const tokenboundClient = new TokenboundClient({
walletClient,
chain: monad,
})
```
<Note>
Pass the viem `chain` object (`monad` / `monadTestnet`) explicitly. Recognizing Monad by `chainId` alone (e.g. `chainId: 143`) requires Monad to be registered in the SDK's bundled chain list — a change tracked upstream in [tokenbound/sdk](https://github.com/tokenbound/sdk). Requires `viem` ≥ 2.40.0, which is the first release to export the `monad` mainnet chain.
</Note>
Derive an NFT's account address (deterministic — works before the account is deployed), then create it:
```ts theme={null}
// Deterministic account address for tokenId 1 of an NFT contract
const account = tokenboundClient.getAccount({
tokenContract: "0xYourNftContract",
tokenId: "1",
})
// Deploy the account on-chain (idempotent — safe to call if it already exists)
const { account: created, txHash } = await tokenboundClient.createAccount({
tokenContract: "0xYourNftContract",
tokenId: "1",
})
```
Once created, the account is controlled by the current holder of the NFT. The holder can execute transactions through it:
```ts theme={null}
const executedTxHash = await tokenboundClient.execute({
account,
to: "0xRecipient",
value: 0n,
data: "0x",
})
```
Transfer the underlying NFT and control of the account — along with everything it holds — moves to the new owner automatically. No further action required.
## Notes and limitations
* **Cross-chain execution is not enabled on Monad.** The core TBA stack is fully deployed, but the optional LayerZero V2 executor that powers Tokenbound's cross-chain calls was not deployed. Same-chain account creation, ownership resolution, and execution work as normal.
## Resources
* [ERC-6551 Specification](https://eips.ethereum.org/EIPS/eip-6551)
* [Tokenbound Documentation](https://docs.tokenbound.org)
* [Tokenbound SDK](https://github.com/tokenbound/sdk)
* [Tokenbound Contracts](https://github.com/tokenbound/contracts)
* [Monad Developer Discord](https://discord.gg/monaddev)
## Need help?
Join the [Monad Developer Discord](https://discord.gg/monaddev).
# ERC-8004 on Monad: Register Trustless Agents
Source: https://docs.monad.xyz/guides/erc-8004
ERC-8004 (Trustless Agents) on Monad: register an agent in the Identity Registry, add feedback in the Reputation Registry, and see use cases and best practices.
This guide shows how to register AI agents and build trustless agent interactions using ERC-8004 on Monad.
## What is ERC-8004?
[ERC-8004](https://eips.ethereum.org/EIPS/eip-8004) is an Ethereum standard for Trustless Agents that provides three on-chain registries for agent identity, reputation, and validation. It gives AI agents and agentic services (MCPs, APIs, etc) portable identity, verifiable track records, and cryptographic validation so they can operate as accountable economic actors.
The standard enables:
* **Identity Registry**: Agents register with an ERC-721 NFT and agent card
* **Reputation Registry**: Immutable feedback system for agent interactions
* **Validation Registry**: Third-party verification of agent work
### Key Benefits
* **Portable Identity**: Agents have persistent, transferable identities across platforms via ERC-721 tokens.
* **Verifiable Reputation**: Immutable on-chain feedback creates auditable track records for agents.
* **Trust Without Intermediaries**: Cryptographic validation enables trustless agent-to-agent interactions without any central entity.
* **Economic Interoperability**: Agents can discover, verify, and pay each other autonomously using x402.
## Core Components
### 1. Identity Registry
Each agent mints an ERC-721 token. The token ID is the agent's unique identifier, and the token URI points to an "agent card" with:
* Name and description
* API endpoints (A2A Protocol, MCP, HTTP, etc.)
* Supported trust models
* DID/ENS identifiers
* Agent wallet address for payments, if available
### 2. Reputation Registry
After interacting with an agent, clients submit structured feedback on-chain:
* Values measuring properties (e.g., uptime, success rate, quality)
* Tags for categorization (e.g., "fast", "accurate", "DeFi")
* Optional `feedbackURI` for detailed off-chain reviews
* Content hash for data integrity
Feedback is **permanent and immutable** - creating an auditable track record.
### 3. Validation Registry (coming soon)
For high-stakes tasks, third-party validators can verify agent work on-chain. The registry is unopinionated about validation models (TEE, zkML, fraud proofs, etc.).
## Interaction Flow
```mermaid theme={null}
sequenceDiagram
box Agent A
participant Service as Service
end
box ERC-8004
participant Registries as Registries
end
box Agent B
participant Client as Client
end
Service->>Registries: 1. Register identity
Client->>Registries: 2. Discover agents
Client->>Registries: 3. Check reputation
Client->>Service: 4. Service request + x402 payment
Service->>Client: 5. Service response
Client->>Registries: 6. Submit feedback
```
## Use Cases
### Agentic Services Marketplace
* **Oracles**: Agents provide real-time data feeds (e.g., price feeds, weather, sports scores) that are discoverable via reputation.
* **Market ratings & analytics**: Specialized agents offer services such as risk assessment, credit scoring, and sentiment analysis.
* **APIs as agents**: Any API—such as weather, translation, or image processing—can register as an agent, making them both discoverable and payable.
* **Reputation-gated access**: Services can filter or restrict clients based on their on-chain reputation histories.
### Agent Routing Systems
Instead of implementing services natively, agents call routing systems that dynamically select the best service provider based on:
* **Latency**: Route to the fastest available agent for time-sensitive tasks
* **Price**: Find the most cost-effective provider for bulk operations
* **Reputation**: Select highly-rated agents for critical operations
* **Specialization**: Match task requirements to agent capabilities
### AI Agent Marketplaces
* Agents register services with pricing
* Clients discover agents via reputation
* Automated service discovery and payment
### Autonomous Service Networks
* Agents hire other agents for subtasks
* Reputation-based trust decisions
* Automatic feedback loops
### DeFi Agent Protocols
* Portfolio management agents
* Trading strategy agents
* Yield optimization agents
### Enterprise Agent Ecosystems
* Internal agent directories
* Cross-organization agent collaboration
* Compliance and audit trails
## Best Practices
### Registration
* Use descriptive agent names and thorough documentation.
* Provide multiple endpoint types for improved flexibility.
* Keep agent cards updated as capabilities change.
* Use ENS names for easier discovery.
### Reputation Management
* Submit honest feedback after every interaction
* Use consistent tag taxonomies
* Include detailed reviews for significant interactions
* Respond to feedback on your agents
### Security
* Verify agent signatures before payments
* Check reputation before high-value transactions
* Use validation registry for critical operations
* Monitor feedback for your agents
You can find more [here](https://github.com/erc-8004/best-practices).
## Advanced Features
### Cross-Chain Agent Discovery
```ts theme={null}
// Bridge agent identity across chains
import { CCIPRouter } from "@chainlink/ccip";
async function bridgeAgentToMonad(agentId: string, sourceChain: string) {
// Query agent card from source chain
// Register mirror on Monad
// Link reputation data
}
```
### Reputation Aggregation
```ts theme={null}
// Build custom reputation scoring
function calculateTrustScore(feedback: Feedback[]): number {
const recentWeight = 0.7;
const historicalWeight = 0.3;
const recent = feedback.slice(0, 10);
const historical = feedback.slice(10);
const recentScore = average(recent.map(f => f.value));
const historicalScore = average(historical.map(f => f.value));
return recentScore * recentWeight + historicalScore * historicalWeight;
}
```
### Validation Integration
```ts theme={null}
// TEE-based validation (coming soon)
async function validateWithTEE(
agentId: string,
task: any,
proof: any
) {
// Submit to validation registry
// TEE verifies execution
// On-chain proof recorded
}
```
## Resources
* [ERC-8004 Specification](https://www.8004.org/learn)
* [ERC-8004 GitHub](https://github.com/erc-8004)
* [agent0 SDK](https://sdk.ag0.xyz/) - TypeScript and Python SDKs, with guides
* [8004scan.io](https://8004scan.io) - Browse agents and reputation
* [Agentscan.info](http://Agentscan.info) - Browse agents and reputation
* [8004agents.ai](http://8004agents.ai) - Browse agents and reputation
* [Monad Developer Discord](https://discord.gg/monaddev)
## Contract Addresses
<ul>
<li>
<strong>Identity Registry</strong>:
<CopyToClipboard>
[`0x8004A169FB4a3325136EB29fA0ceB6D2e539a432`](https://monadvision.com/address/0x8004A169FB4a3325136EB29fA0ceB6D2e539a432)
</CopyToClipboard>
</li>
<li>
<strong>Reputation Registry</strong>:
<CopyToClipboard>
[`0x8004BAa17C55a88189AE136b182e5fdA19dE9b63`](https://monadvision.com/address/0x8004BAa17C55a88189AE136b182e5fdA19dE9b63)
</CopyToClipboard>
</li>
<li>
<strong>Validation Registry</strong>: (coming soon)
</li>
</ul>
## Need Help?
Join the [Monad Developer Discord](https://discord.gg/monaddev) or reach out to [team@8004.org](mailto:team@8004.org)
Happy building! 🤖
# Other Languages
Source: https://docs.monad.xyz/guides/evm-resources/other-languages/index
Alternative smart contract languages for the EVM beyond Solidity.
<CardGroup>
<Card title="Vyper" href="/guides/evm-resources/other-languages/vyper">
A Python-like language for EVM smart contracts
</Card>
<Card title="Yul" href="/guides/evm-resources/other-languages/yul">
Intermediate assembly language for the EVM
</Card>
</CardGroup>
# Vyper
Source: https://docs.monad.xyz/guides/evm-resources/other-languages/vyper
[Vyper](https://www.quicknode.com/guides/ethereum-development/smart-contracts/how-to-write-an-ethereum-smart-contract-using-vyper) is a popular programming language for the EVM that is logically similar to Solidity and syntactically similar with Python.
The [Vyper documentation](https://docs.vyperlang.org/en/stable/index.html) covers installing the Vyper language, language syntax, coding examples, compilation.
A typical EVM developer looking for a Python-like experience is encouraged to use Vyper as the programming language and [ApeWorx](https://docs.apeworx.io/ape/stable/userguides/quickstart.html), which leverages the Python language, as the testing and deployment framework. ApeWorx also allows for the use of typical Python libraries in analysis of testing results such as Pandas.
Vyper and ApeWorx can be used with [Jupyter](https://jupyter.org/), which offers an interactive environment using a web browser. A quick setup guide for working with Vyper and Jupyter for smart contract development for the EVM can be found [here](https://medium.com/deepyr/interacting-with-ethereum-using-web3-py-and-jupyter-notebooks-e4207afa0085).
## Resources
* [Vyper by Example](https://docs.vyperlang.org/en/stable/vyper-by-example.html)
* [Snekmate](https://github.com/pcaversaccio/snekmate): a Vyper library of gas-optimized smart contract building blocks
* [Curve contracts](https://github.com/curvefi/curve-contract): the most prominent example usage of Vyper
# Yul
Source: https://docs.monad.xyz/guides/evm-resources/other-languages/yul
[Yul](https://docs.soliditylang.org/en/latest/yul.html) is a intermediate language for Solidity that can generally be thought of as inline assembly for the EVM. It is not quite pure assembly, providing control flow constructs and abstracting away the inner working of the stack while still exposing the raw memory backend to developers. Yul is targeted at developers needing exposure to the EVM's raw memory backend to build high performance gas optimized EVM code.
# Solidity Resources
Source: https://docs.monad.xyz/guides/evm-resources/solidity-resources
Monad is fully EVM bytecode-compatible, with all supported opcodes and precompiles as of the [Osaka fork](https://www.evm.codes/?fork=osaka). Monad also preserves the standard Ethereum JSON-RPC interfaces.
As such, most development resources for Ethereum Mainnet apply to development on Monad.
This page suggests a **minimal** set of resources for getting started with building a decentralized app for Ethereum. Child pages provide additional detail or options. 
As [Solidity](https://docs.soliditylang.org/) is the most popular language for Ethereum smart contracts, the resources on this page focus on Solidity; alternatively see resources on [Vyper](/guides/evm-resources/other-languages/vyper). Note that since smart contracts are composable, contracts originally written in one language can still make calls to contracts in another language.
## **IDEs**
* [Remix](https://remix.ethereum.org/#lang=en\&optimize=false\&runs=200\&evmVersion=null) is an interactive Solidity IDE. It is the easiest and fastest way to get started coding and compiling Solidity smart contracts without the need for additional tool installations.
* [VSCode](https://code.visualstudio.com/) + [Solidity extension](https://marketplace.visualstudio.com/items?itemName=NomicFoundation.hardhat-solidity)
## **Basic Solidity**
* [CryptoZombies](https://cryptozombies.io/en/course) is a great end-to-end introduction to building dApps on the EVM. It provides resources and lessons for anyone from someone who has never coded before, to experienced developers in other disciplines looking to explore blockchain development.
* [Solidity by Example](https://solidity-by-example.org/) introduces concepts progressively through simple examples; best for developers who already have basic experience with other languages.
* [Blockchain Basics course by Cyfrin Updraft](https://updraft.cyfrin.io/courses/blockchain-basics) teaches the fundamentals of blockchain, DeFi, and smart contracts.
* [Solidity Smart Contract Development by Cyfrin Updraft](https://updraft.cyfrin.io/courses/solidity) will teach you how to become a smart contract developer. Learn to build with projects and get hands-on experience.
## **Intermediate Solidity**
* [The Solidity Language](https://docs.soliditylang.org/en/v0.8.21/introduction-to-smart-contracts.html) official documentation is an end-to-end description of Smart Contracts and blockchain basics centered on EVM environments. In addition to Solidity Language documentation, it covers the basics of compiling your code for deployment on an EVM as well as the basic components relevant to deploying a Smart Contract on an EVM.
* [Solidity Patterns](https://github.com/fravoll/solidity-patterns) repository provides a library of code templates and explanation of their usage. 
* The [Uniswap V2](https://github.com/Uniswap/v2-core) contract is a professional yet easy to digest smart contract that provides a great overview of an in-production Solidity dApp. A guided walkthrough of the contract can be found [here](https://ethereum.org/en/developers/tutorials/uniswap-v2-annotated-code/).
* [OpenZeppelin](https://www.openzeppelin.com/contracts) provides customizable template contract library for common Ethereum token deployments such as ERC20, ERC712, and ERC1155. Note, they are not gas optimized.
* [Rareskills Blog](https://www.rareskills.io/category/solidity) has some great in-depth articles on various concepts in Solidity.
* [Foundry Fundamentals course by Cyfrin Updraft](https://updraft.cyfrin.io/courses/foundry) is a comprehensive web3 development course designed to teach you about Foundry the industry-standard framework to build, deploy, and test your smart contracts.
* [Smart Contract Programmer YT channel](https://www.youtube.com/@smartcontractprogrammer) has a plenty of in-depth videos about various Solidity concepts like ABI encoding, EVM memory, and many more.
## **Advanced Solidity**
* The [Solmate repository](https://github.com/transmissions11/solmate) and [Solady repository](https://github.com/Vectorized/solady/tree/main) provide gas-optimized contracts utilizing Solidity or Yul.
* [Yul](https://docs.soliditylang.org/en/latest/yul.html) is a intermediate language for Solidity that can generally be thought of as inline assembly for the EVM. It is not quite pure assembly, providing control flow constructs and abstracting away the inner working of the stack while still exposing the raw memory backend to developers. Yul is targeted at developers needing exposure to the EVM's raw memory backend to build high performance gas optimized EVM code. 
* [Advanced Foundry course by Cyfrin Updraft](https://updraft.cyfrin.io/courses/advanced-foundry) teaches you about Foundry, how to develop a DeFi protocol and a stablecoin, how to develop a DAO, advanced smart contract development, advanced smart contracts testing and fuzzing and manual verification.
* [Smart Contract Security course by Cyfrin Updraft](https://updraft.cyfrin.io/courses/security) will teach you everything you need to know to get started auditing and writing secure protocols.
* [Assembly and Formal Verification course by Cyfrin Updraft](https://updraft.cyfrin.io/courses/formal-verification) teaches you about Assembly, writing smart contracts using Yul, Ethereum Virtual Machine OPCodes, Formal verification testing, Smart contract invariant testing and tools like Halmos, Certora, Kontrol.
* [Smart Contract DevOps course by Cyfrin Updraft](https://updraft.cyfrin.io/courses/wallets) teaches about access control best practices when working with wallets, post-deployment security, smart contract and web3 devOps and live protocols maintenance and monitoring.
* [Secureum YT Channel](https://www.youtube.com/@SecureumVideos/videos) has plenty videos about Solidity from Solidity Basics to all the way to advanced concepts like Fuzzing and Solidity auditing.
## Tutorials
* [Ethernaut](https://ethernaut.openzeppelin.com/): learn by solving puzzles
* [Damn Vulnerable DeFi](https://www.damnvulnerabledefi.xyz): DVD is a series of smart contract challenges which consists of vulnerable contracts and you are supposed to be able to hack it. These challenges are a good way to practice and apply the Solidity skills you have acquired.
## Best practices/patterns
* [DeFi developer roadmap](https://github.com/OffcierCia/DeFi-Developer-Road-Map)
* [RareSkills Book of Gas Optimization](https://www.rareskills.io/post/gas-optimization)
## Testing
* [Echid프로젝트로 돌아가기