Core Concept

Core Concept: Transactions

The core activity of cryptocurrency, and their underlying blockchain technology, is the efficient processing of transactions.


A transaction is a signed (approved) record of change to a blockchain which is irreversible once validated. As previously discussed, each blockchain has their own consensus model, which is one of the reasons it can become complex to develop and maintain solutions across a number of different currencies and DeFi protocols.

At its root, a transaction is responsible for taking a concrete and immutable action, such as moving coins or tokens from one wallet holder to another.  Transactions have a number of properties and external factors that influence the operation. Below is a screenshot of a transaction on EtherScan, an Ethereum explorer, that allows you to see the information of a specific transaction hash. Below the image we've listed an explanation for a few items and points of clarification.

Screenshot 2022-09-27 100947

Nonce

A nonce is an integer-based number that increments with every transaction associated with a cryptocurrency wallet. It starts at zero when a wallet is first initialized, and when processing transactions, validation of the transaction will include checking that the nonce is the last validated nonce for your account + 1.

Understanding nonces is important as each currencies’ wallet transactions are processed in the order of their nonces. What this means is that if a transaction gets stuck due to low gas fees, any subsequently submitted transactions from that account will be held up until the first is processed. Occasionally it’s even required to resubmit a transaction with the same nonce as a previous transaction in order to cancel it.

Gas Fees

There’s no free lunch as they say, and the same is true for crypto. Even though the technology is distributed, there can still be substantial capital and operational costs associated with approving transactions. Gas fees are the real-time market costs required for the computation to process a transaction (in Proof-of-Work systems), and the payment rewarded to staking validators (in a Proof-of-Stake systems). If a transaction is submitted with the gas fee set too low, it will sit in the memory pool until market fees match what was set.

Knowing what gas fees to use, and how that impacts transaction performance and settlement is key to operating crypto infrastructure.

Mempool

The mempool is like a waiting room for transactions that have not yet been confirmed to the blockchain. To exit the mempool, a transaction must be validated in a block. Having a clear view into mempool queue sizes help to understand when transactions will clear, and also when to potentially adjust gas fees.

Canceling

Most blockchains do not allow a transaction to be canceled once submitted with approval. In order to ‘cancel’ a transaction, submitting a transaction of no value, with the same nonce as the transaction you wish to cancel, and a higher gas fee is required. You ultimately still pay a transaction fee, but the initial transaction data is not computed.

Verification Time

Mempool sizes, gas fees and how they’re changing, and current transaction nonce all effect the verification time of transactions. Ultimately the verification time is dependent on the above network performance and the specific gas fee paid.

Back to blogs

Similar posts

Get notified on new crypto insights

Be the first to know about new crypto insights so you can build or refine your knowledge of today's fast changing industry.

 

 

Subscribe to our blog