+------------------------------------------------------+
| AI AGENT |
| Planning . Reasoning . Learning |
+-----------------------^--------------------------------+
| |
+------------------------------------------------------+
| Blockchain Context Protocol (BCP) |
| |
| Context Engine -> State Normalization |
| Intent Engine -> Goal Translation |
| Policy Engine -> Constraint Verification |
| Execution Planner -> Action Strategy |
+-----------------------^--------------------------------+
| |
+------------------------------------------------------+
| Smart Account / Agent Authorization |
| ERC-4337 . ERC-6900 . ERC-8004 |
+-----------------------^--------------------------------+
| |
+------------------------------------------------------+
| BLOCKCHAIN |
+------------------------------------------------------+{
"account": {
"address": "0xAgent",
"balances": [
{"asset": "USDC", "amount": "5000"},
{"asset": "ETH", "amount": "2"}
],
"positions": [
{"protocol": "Aave", "collateral": "ETH", "health": 1.8}
]
},
"network": {
"chain": "ethereum",
"gas": 45
}
}{
"goal": "Optimize yield",
"constraints": {
"max_risk": "medium",
"max_slippage": "0.5%"
}
}{
"rules": [
{"max_trade_size": "20%"},
{"allowed_protocols": ["Aave", "Uniswap"]}
]
}{
"steps": [
{"action": "withdraw", "protocol": "Aave"},
{"action": "swap", "protocol": "Uniswap"}
]
}