Explore a Module page
What is a Module?
In the Move programming language, Modules are libraries that define struct types and the functions that operate on them. Struct types establish the schema for Move’s global storage, while module functions set the rules for modifying that storage. Modules themselves are also stored in global storage.
Simply put, Modules in Move are essentially smart contracts in Solidity. A module in the Move programming language may either be a program or library that can create, transfer, or store assets.
Explore the Module page on Aptoscan
A module page is where data of a module is displayed for Aptoscan users’ reference. To understand this page, we will break down and go through it in two different sections: (A) General information, (B) Module details, and (C) Activity.
Section A: General information
1. Module address: The module address will be displayed here.
2. Copy: You can copy the module address using the copy function.
Section B: Module details
1. Overview
a. Account: Displays the account that published the module on-chain. This account does not have a corresponding private key and is used by developers to store resources or deploy modules.
b. Total Transactions (Last 30 Days): Indicates the total number of transactions executed by the module in the past 30 days.
c. Success Rate (Last 30 Days): Shows the percentage of successful transactions out of the total transactions executed by the module in the past 30 days.
2. More Info
d. Latest Tx: The timestamp of the most recent transaction performed by the module.
e. Active Accounts (Last 24 Hours): The number of unique accounts that interacted with the module in the past 24 hours.
Section C: Activity
1. Modules
a. View: This tab displays the module's source code, ABI (Application Binary Interface), Assembly Code, and Bytecode. Users can download or copy the code using the available action buttons.
b. Read Functions: These are getter functions that allow users to retrieve blockchain data without initiating a transaction. They do not modify the blockchain state and are commonly used to query information such as account balances, contract configurations, or stored values.
c. Write Functions: These functions modify the blockchain state by executing transactions. They are used for actions such as transferring tokens or updating contract data. Since they alter storage, they incur gas fees and require execution by an authorized account.
2. Transactions
This tab displays a real-time feed of all transactions executed by the module, listed in chronological order from the most recent.