Skip to main content

Module coinbase

Module coinbase 

Source
Expand description

Coinbase transaction types for Mina Protocol.

This module defines the coinbase transaction structures used for block rewards and fee transfers in the Mina Protocol.

ยงOverview

In Mina, each block can include a coinbase transaction that:

  • Rewards the block producer with newly minted tokens
  • Optionally transfers a portion of the reward as a fee to a SNARK worker

Re-exportsยง

use crate::currency::Amount; ๐Ÿ”’
use crate::currency::Fee; ๐Ÿ”’
use crate::currency::Magnitude; ๐Ÿ”’
use mina_signer::CompressedPubKey; ๐Ÿ”’

Structsยง

Coinbase
A coinbase transaction for block rewards.
CoinbaseFeeTransfer
A fee transfer within a coinbase transaction.