Package Sequencing and Submission on DogeCoin
Each Package Submitted on Dogecoin is a formatted JSON which allows the package to be readable and be verified by anyone, this package is inscribed onto Dogecoin blockchain just like Doginals, thus keeping the data permanently stored on the blockchain.
Package Format
Package Submission
For each package submission the UTXO chain is progressed further
Current UTXO Retrieval: The code retrieves the most recent UTXO for the sequencer address, ensuring the UTXO chain is maintained.
Balance Validation: It checks if the current UTXO has sufficient balance to cover transaction costs before proceeding.
UTXO Selection: The
selectUTXOsForBatch
function is responsible for selecting UTXOs for the batch, considering factors like efficiency and fee optimization.New Transaction Construction: The code constructs a new transaction spending the current UTXO as input.
UTXO Chain Update: The
deriveUTXOFromTransaction
function extracts the output of the new transaction, effectively creating the next UTXO in the chain.L2 Data Inclusion: The L2 transaction data is encoded and included within the new transaction.
Batch Creation: Finally, a batch containing the newly constructed transaction is created.
Last updated