Table of contents
- ๐ฐ The APT Token: Powering the Aptos Ecosystem! ๐ผ
- ๐ก Aptos for Diverse Digital Assets ๐จ
- ๐๏ธ Aptos Blockchain: Understanding Blocks and Epochs ๐งฑ
- ๐ Aptos: The TPS Beast Blockchain! ๐
- ๐งญ Exploring the Journey of an Aptos Blockchain Transaction ๐ถโโ๏ธ
- ๐ง Understanding Aptos Node Component Interactions ๐ง
- ๐ Understanding Gas and Storage Fees in the Aptos Blockchain ๐ผ
- ๐ Exploring the Journey of an Aptos Blockchain Transaction ๐
- ๐ Understanding Blocks and Epochs in the Aptos Blockchain ๐
- ๐ Key Features of Aptos: ๐
- ๐ก Aptos Emerges as a Promising Blockchain of the Future ๐ก
๐ฐ Aptos, or Aptos Labs, stands out as a cutting-edge Web3 start-up with a strong focus on building a layer-1 blockchain. To achieve this, Aptos utilizes Move, a language initially developed for the now-defunct Diem blockchain project. Incorporating vital aspects from Diem and harnessing the Rust-based programming language, which was independently created by Meta, Aptos is pushing the boundaries of innovation.
๐ฐ The APT Token: Powering the Aptos Ecosystem! ๐ผ
๐ Central to the platform's operation is its native token, APT. This token plays a crucial role in facilitating transactions and covering network fees on the Aptos platform. Transaction fees are charged in Aptos tokens and give validators the opportunity to prioritize high-value transactions, while setting aside those of lower value. This mechanism enhances the efficiency and effectiveness of the network.
๐ก Aptos for Diverse Digital Assets ๐จ
๐ธ Aptos supports an array of digital assets, providing users with a versatile platform to store various types of tokens:
ERC-20 tokens: Aptos ensures compatibility with ERC-20 tokens, enabling seamless transfers to and from the blockchain.
NFTs: Unique digital assets known as Non-Fungible Tokens (NFTs) find a secure home on Aptos, representing ownership of diverse items, from artwork and music to in-game assets.
Tokens from other blockchains: Aptos facilitates token bridging with other blockchains, including popular networks like Bitcoin and Ethereum. This interoperability allows smooth token transfers between Aptos and other platforms.
๐๏ธ Aptos Blockchain: Understanding Blocks and Epochs ๐งฑ
๐ In the Aptos blockchain, data organization follows a per-transaction versioned database approach. Unlike other blockchains, where only the resulting state of a block is stored, Aptos stores the resulting state of each transaction individually. This design allows for more precise and granular data access.
โณ Epochs represent larger time periods in the Aptos blockchain and serve as safe windows to synchronize significant changes, such as adding or removing validators from the validator set. Understanding the concepts of blocks and epochs is crucial to grasp the design and efficiency of the Aptos blockchain and its dynamic response to network activity.
๐ Aptos: The TPS Beast Blockchain! ๐
๐ช Aptos boasts impressive scalability, capable of handling up to 10,000 transactions per second, making it an excellent choice for hosting a broad spectrum of digital assets. Its secure and energy-efficient Ouroboros Praos consensus algorithm instills confidence in the safety and reliability of storing assets on Aptos. Additionally, its interoperability with other blockchains opens up endless possibilities for users.
๐ So, if you seek a secure and scalable solution for your digital asset storage needs, Aptos emerges as a compelling option. Its versatility as a platform promises a wealth of possibilities for a myriad of applications, making it an enticing proposition for users across the blockchain landscape.
๐งญ Exploring the Journey of an Aptos Blockchain Transaction ๐ถโโ๏ธ
๐บ๏ธ Join us on a captivating journey as we take a comprehensive deep dive into the lifecycle of an Aptos transaction. This insightful exploration will provide you with a detailed operational perspective, tracing the path of a transaction from submission to a fullnode until it becomes a committed entry in the Aptos blockchain. Throughout the voyage, we will shed light on the logical components of Aptos nodes and their interaction with the transaction. Get ready for an enlightening experience!
๐ The Life of a Transaction ๐
To illustrate the process, let's consider Alice and Bob, both users with accounts on the Aptos blockchain. Alice holds 110 Aptos Coins and intends to send 10 Aptos Coins to Bob. Currently, the sequence number of Alice's account is 5, indicating that she has executed 5 previous transactions.
In the vast Aptos network, there are 100 validator nodes, each identified from V1 to V100. The transaction initiated by Alice will travel through these nodes before reaching its destination.
๐ญ Stage 1: Accepting the Transaction ๐ญ
Here's how the transaction is accepted and processed:
Alice's Aptos client constructs a raw transaction (Traw5) to transfer 10 Aptos Coins to Bob's account. The client signs this transaction with Alice's private key. The signed transaction (T5) includes essential information like the raw transaction, Alice's public key, and her signature.
The raw transaction (Traw5) contains crucial fields, such as Alice's account address, a Move bytecode peer-to-peer transaction script specifying the actions to be taken, the maximum gas amount Alice is willing to pay, the gas price, expiration time, sequence number, and the unique chain ID.
๐ Stage 2: Sharing the Transaction with Other Validator Nodes ๐
Now, the transaction starts its journey through the network:
Alice's client submits transaction T5 to the REST service of an Aptos fullnode. The fullnode forwards the transaction to its own mempool, which, in turn, shares it with other nodes in the network, ultimately reaching validator V1.
Validator V1, acting as the proposer/leader for this round, receives transaction T5 through the shared-mempool protocol, along with other transactions.
๐ก Stage 3: Proposing the Block ๐ก
With V1 leading the way, the proposed block takes shape:
- Validator V1, as the proposer, pulls a block of transactions (including T5) from its mempool. It then proposes this block to other validators, striving to achieve consensus on the order of transactions within the block.
๐ค Stage 4: Executing and Consensus ๐ค
The vital process of reaching consensus and executing the block unfolds:
Validator V1 communicates with its execution component, sharing the block of transactions, including T5, for further processing.
The execution component, managed by the Virtual Machine (VM), begins the speculative execution of transactions within the block. Consensus works in parallel, attempting to agree on the proposed block's execution results.
After executing the transactions, the execution component updates the Merkle accumulator temporarily with the results. This information is then shared with the consensus component, contributing to the consensus process.
Validator V1, as the leader, engages with other participating validator nodes to achieve consensus on the proposed block's execution result.
โ๏ธ Stage 5: Committing the Block โ๏ธ
With consensus achieved, it's time to solidify the results:
- Upon obtaining the necessary quorum of votes and agreement on the block execution, Validator V1's execution component reads the speculative execution cache and commits all transactions, including T5, to persistent storage, effectively updating the Aptos blockchain.
As a result, Alice's account balance now shows 100 Aptos Coins, and her sequence number increases to 6. Any attempt by Bob to replay T5 will be rejected since Alice's account sequence number has advanced beyond the sequence number of the replayed transaction.
๐ง Understanding Aptos Node Component Interactions ๐ง
Now that we've delved into the transaction lifecycle, let's take a closer look at how Aptos nodes interact with each other. This understanding will be invaluable for those curious about the system's inner workings or considering contributing to the dynamic Aptos blockchain.
๐ Key Components of an Aptos Node ๐
Aptos nodes consist of several core components, namely:
Fullnode, comprising the REST service and interacting with the client for transaction submission.
Validator node, encompassing the Mempool, Consensus, Execution, Virtual Machine, and Storage components.
๐ฌ Interactions Between Components ๐ฌ
Let's now break down the interactions of these components during the processing of transactions and responses to blockchain queries:
REST Service: Any client request initiates at the REST Service of a fullnode, which forwards the transaction to a validator fullnode and, subsequently, to a validator node.
Virtual Machine (VM): The VM is responsible for verifying and executing transactions written in Move bytecode. It validates various aspects, such as signatures, account balances, and sequence numbers, to ensure transaction integrity.
Mempool: Acting as a shared buffer, the Mempool holds transactions awaiting execution. It shares transactions with other validator nodes to optimize network usage.
Consensus: This crucial component facilitates agreement among validators on the order of transactions and their execution results. It plays a pivotal role in reaching consensus during block proposal and execution.
Execution: Coordinating the execution of a block of transactions, the Execution component maintains a transient state for voting during consensus. Once agreed upon, it commits the transactions to storage.
Storage: The storage component persists agreed-upon blocks of transactions and their execution results, effectively updating the blockchain.
Understanding these inter-component interactions grants you valuable insights into the intricate workings of the Aptos blockchain, empowering you to make effective contributions to its evolution.
๐ Understanding Gas and Storage Fees in the Aptos Blockchain ๐ผ
๐ธ Every transaction executed on the Aptos blockchain comes with a processing fee, consisting of two components:
Execution & IO Costs: This covers the utilization of transient computation resources for processing transactions and propagating validated records across the distributed mainnet network. It is measured in Gas Units, whose price may fluctuate based on network load, resulting in lower costs during less busy periods.
Storage Fees: This covers the persistent storage cost of validated records in the distributed blockchain storage. It is measured in fixed APT prices.
๐งฎ Gas Units: The Basic Unit of Consumption โฝ
Gas Units are a fundamental aspect of transactions in the Aptos blockchain, representing the basic unit of consumption for transient resources, such as computation and storage access. The total gas units consumed in a transaction depend on its complexity. The gas price, on the other hand, is expressed in terms of the Aptos blockchain's native coin, Octas.
โ๏ธ Gas Price and Transaction Prioritization โ๏ธ
In the Aptos network, the minimum gas unit price is set by Aptos governance. However, the market determines the speed at which transactions with specific gas unit prices are processed. By specifying a higher gas unit price than the current market price, users can increase the priority level of their transactions by paying a larger processing fee.
๐๏ธ Gas Parameters Set by Governance ๐๏ธ
Aptos governance sets certain gas parameters, including the maximum allowed gas units for max_gas_amount in a transaction, and the minimum gas units required, ensuring that max_gas_amount is greater than this value.
๐ป Calculating Storage Fees ๐พ
The storage fee for a transaction depends on factors such as the transaction size, the number of new storage slots used, bytes written, and emitted events. Presently, the total storage fee of a transaction is included in the total gas_used value, which may vary based on the gas unit price.
๐ Estimating Gas Consumption via Simulation ๐
To estimate gas consumption, simulations can be performed using the SimulateTransaction API or the gas profiling feature of the Aptos CLI. The gas units used in the simulation represent the exact amount required at the time of simulation and may change based on the blockchain's state.
๐ Exploring the Journey of an Aptos Blockchain Transaction ๐
๐ถโโ๏ธ Join us on an immersive deep dive as we explore the captivating lifecycle of an Aptos transaction, offering you a detailed operational perspective. Let's embark on a journey, tracing the transaction's path from submission to an Aptos fullnode, and witness its transformation into a committed entry in the Aptos blockchain. Along this enlightening path, we'll shine a light on the logical components of Aptos nodes and their interactions with the transaction.
๐ Understanding Transactions and States ๐
๐ The foundation of the Aptos blockchain is built upon two fundamental concepts - transactions and states. Transactions are representations of data exchanges on the Aptos blockchain, enabling the transfer of Aptos Coins, NFTs, and other valuable assets between accounts.
๐๏ธ The Aptos blockchain ledger state, commonly referred to as "state," encompasses the current status of all accounts within the network. A transaction can conclude in several states, including committed and executed, committed and aborted, discarded (validation check), and discarded (pre-execution).
โ๏ธ Transactions Change Ledger State โ๏ธ
The execution of a transaction Ti modifies the state of the Aptos blockchain from Si-1 to Si. The process involves the deterministic function Apply(), which consistently generates the same final state when executed with a specific initial state and transaction. Applying transaction Ti to state Si-1 results in the new state Si. This ensures account balances are updated accordingly after transaction execution.
๐ Contents of a Transaction ๐
A signed transaction on the blockchain contains essential information such as the sender's digital signature, sender address, sender public key, program (Move module or function name), gas price, maximum gas amount, sequence number, and expiration time.
๐ก Types of Transactions ๐ก
Transactions can target either an entry point or a script payload. Currently, the SDKs Python and Typescript only support transactions targeting entry points. These entry points include coin transfers and aptos_account creation, among others. While operations can be performed via multiple transactions calling entry points sequentially, performing such operations atomically from a single transaction may prove beneficial.
๐ Understanding Blocks and Epochs in the Aptos Blockchain ๐
๐งฑ In the Aptos blockchain, data organization follows a per-transaction versioned database approach. Unlike other blockchains, where only the resulting state of a block is stored, Aptos stores the resulting state of each transaction individually. This design allows for more precise and granular data access.
๐งฑ Blocks remain a fundamental unit in Aptos, where transactions are grouped and executed together. The number of transactions within a block can vary based on network activity and a configurable maximum block size limit. As the blockchain experiences increased usage, blocks are likely to contain more transactions.
๐ Key Features of Aptos: ๐
Scalable: Aptos can seamlessly process up to 10,000 transactions per second.
Secure: Ouroboros Praos ensures robust security and energy efficiency.
Extensible: Aptos is designed for adaptability, allowing easy integration with new applications.
Community-driven: Governed by a stakeholder community, Aptos undergoes transparent and accountable development.
๐ก Aptos Emerges as a Promising Blockchain of the Future ๐ก
๐ Aptos emerges as a promising and well-funded new blockchain, poised to make a significant impact in the blockchain space. With backing from industry giants like Andreessen Horowitz and Coinbase, Aptos boasts the potential to revolutionize digital asset interactions.
๐ Designed to be scalable, secure, and energy-efficient, Aptos employs the innovative Ouroboros Praos consensus algorithm, drawing inspiration from Cardano's renowned protocol. Its proof-of-stake mechanism ensures heightened security and energy efficiency, distinguishing it from traditional proof-of-work blockchains like Bitcoin and Ethereum.
๐ง Aptos sets itself apart with its extensibility, easily adapting to new applications, and operates under a community-driven governance model, fostering transparency and accountability.
๐ So, if you seek a secure and scalable solution for your digital asset storage needs, Aptos emerges as a compelling option. Its versatility as a platform promises a wealth of possibilities for a myriad of applications, making it an enticing proposition for users across the blockchain landscape.
References:
\=>https://aptoslabs.com/
\=>https://aptos.dev/
\=>https://github.com/aptos-labs
\=>https://golden.com/wiki/Aptos-W3Z8B9D