スマートコントラクト
スマートコントラクトとは、コードの行に直接記述され、ブロックチェーン上に存在し、自動的に実行される自己実行型の契約です。
graph LR
Center["スマートコントラクト"]:::main
Rel_decentralization["decentralization"]:::related -.-> Center
click Rel_decentralization "/terms/decentralization"
Rel_decentralized_exchange_dex_order_book_aggregation["decentralized-exchange-dex-order-book-aggregation"]:::related -.-> Center
click Rel_decentralized_exchange_dex_order_book_aggregation "/terms/decentralized-exchange-dex-order-book-aggregation"
Rel_flash_loan["flash-loan"]:::related -.-> Center
click Rel_flash_loan "/terms/flash-loan"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 5歳でもわかるように説明
自動販売機のようなものです。お金を入れてボタンを押せば、店員さんがいなくても自動で飲み物が出てくる仕組みをデジタルにしたものです。
🤓 Expert Deep Dive
イーサリアムのEVM(イーサリアム・バーチャル・マシン)上で動作します。チューリング完全であり、ガス代(手数料)を支払うことで実行されます。一旦デプロイすると変更できない不変性が特徴です。