Skip to main content

Now supporting payments via Bitcoin Lightning

Learn what a crypto transaction is | Cybrid

Learn what a crypto transaction is | Cybrid

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, like a complex accounting transaction, which is one of the reasons it can become difficult to develop and maintain solutions across a number of different currencies and DeFi protocols. Each blockchain has it's own volume properties, with some like Aptos advertising high-volume transaction throughput vs. something like Bitcoin.

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.

The below image shows a typical transaction - continue reading to learn about what the descriptions mean!

Screenshot 2022-09-27 100947

Nonce

A nonce is an integer-based number that increments with every transaction request 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

Lee Cocking

Author: Lee Cocking

Lee Cocking, the accomplished Head of Product at Cybrid, is a highly-regarded expert in product management and a driving force in the blockchain industry. With his extensive experience and deep understanding of blockchain technology, Lee provides thought leadership and guidance that shape the development of Cybrid's innovative product offerings. In addition to his wealth of product management knowledge, Lee shares valuable insights on the evolving landscape of blockchain and its potential to revolutionize various industries. His expertise and passion for the technology help to ensure that Cybrid remains at the forefront of the market, delivering cutting-edge solutions that address the unique needs of clients in the ever-changing world of digital assets.

Recent Posts:

All Resources