Uses of Class
com.privatechain.core.model.Transaction
Packages that use Transaction
Package
Description
Built-in
ConsensusEngine implementations for the
private-blockchain library.Practical Byzantine Fault Tolerance (PBFT) consensus engine (FR-CONS-04, NFR-REL-03).
Proof of Authority (PoA) consensus engine — accepts blocks only from a configured
set of authorized signer addresses (FR-CONS-03, AC-02).
Proof of Work (PoW) consensus engine — SHA-256 hash mining with configurable
difficulty (FR-CONS-02, AC-03).
Round-Robin consensus engine — deterministic slot-based block production for
development and testing (FR-CONS-05).
Assembly layer — the single location where all library modules are composed.
Sealed event hierarchy and the asynchronous publish-subscribe event bus.
Unchecked exception hierarchy rooted at
BlockchainException.In-memory transaction pool with pluggable prioritization and TTL eviction.
Immutable domain objects — the fundamental data model of the private-blockchain library.
Service Provider Interfaces (SPIs) — the primary extension points of the library.
Spring Boot REST demo — exposes a running
BlockchainNode as an HTTP API using
Spring Boot 4.x autoconfiguration (T-075, AC-10).Transaction gossip and block broadcast — propagates newly submitted transactions
and mined blocks to connected peers (FR-NET-02, FR-NET-03).
Netty TCP server, client, and NDJSON message codec — the transport layer of the
P2P networking stack (FR-NET-01, ADR-001).
Wallet and key management — secp256k1 key pairs, transaction signing, balance
computation, and encrypted keystore serialisation (FR-WALLET-01–04).
-
Uses of Transaction in com.privatechain.consensus
Method parameters in com.privatechain.consensus with type arguments of type TransactionModifier and TypeMethodDescriptionstatic BlockConsensusSupport.buildBlock(Block previousBlock, List<Transaction> transactions, int bits, long nonce, String minerAddress, Instant timestamp) Builds a canonical block from consensus-specific inputs.static StringConsensusSupport.merkleRoot(List<Transaction> transactions) Computes the canonical Merkle root for the supplied transactions. -
Uses of Transaction in com.privatechain.consensus.pbft
Method parameters in com.privatechain.consensus.pbft with type arguments of type TransactionModifier and TypeMethodDescriptionPBFTEngine.mineBlock(List<Transaction> transactions, Block previousBlock) Produces a new block using the deterministic PBFT leader for the current view. -
Uses of Transaction in com.privatechain.consensus.poa
Method parameters in com.privatechain.consensus.poa with type arguments of type TransactionModifier and TypeMethodDescriptionProofOfAuthorityEngine.mineBlock(List<Transaction> transactions, Block previousBlock) Builds a new authority-signed block using the first authorized miner address. -
Uses of Transaction in com.privatechain.consensus.pow
Method parameters in com.privatechain.consensus.pow with type arguments of type TransactionModifier and TypeMethodDescriptionProofOfWorkEngine.mineBlock(List<Transaction> transactions, Block previousBlock) Mines a new block by searching for a nonce that satisfies the configured leading-zero-bit target. -
Uses of Transaction in com.privatechain.consensus.roundrobin
Method parameters in com.privatechain.consensus.roundrobin with type arguments of type TransactionModifier and TypeMethodDescriptionRoundRobinEngine.mineBlock(List<Transaction> transactions, Block previousBlock) Produces a new block for the next round-robin slot. -
Uses of Transaction in com.privatechain.core.builder
Methods in com.privatechain.core.builder with parameters of type TransactionModifier and TypeMethodDescriptionvoidBlockchainNode.submitTransaction(Transaction transaction) Validates and submits a transaction through the configured validator chain. -
Uses of Transaction in com.privatechain.core.event
Methods in com.privatechain.core.event that return TransactionModifier and TypeMethodDescriptionBlockchainEvent.TransactionSubmittedEvent.getTransaction()Returns the transaction that was submitted to the mempool.Constructors in com.privatechain.core.event with parameters of type TransactionModifierConstructorDescriptionTransactionSubmittedEvent(Transaction transaction) Constructs aTransactionSubmittedEvent. -
Uses of Transaction in com.privatechain.core.exception
Methods in com.privatechain.core.exception that return TransactionModifier and TypeMethodDescriptionTransactionValidationException.getTransaction()Returns the transaction that failed validation.Constructors in com.privatechain.core.exception with parameters of type TransactionModifierConstructorDescriptionTransactionValidationException(String message, ValidationResult validationResult, Transaction transaction) Constructs aTransactionValidationException. -
Uses of Transaction in com.privatechain.core.mempool
Methods in com.privatechain.core.mempool that return types with arguments of type TransactionModifier and TypeMethodDescriptionTransactionMempool.getTopN(int n) Returns the topntransactions ordered by the configured prioritizer.Methods in com.privatechain.core.mempool with parameters of type TransactionModifier and TypeMethodDescriptionintFeeBasedPrioritizer.compare(Transaction t1, Transaction t2) Compares two transactions by fee in descending order.intTimestampBasedPrioritizer.compare(Transaction t1, Transaction t2) Compares two transactions by their submission timestamps.booleanTransactionMempool.submit(Transaction transaction) Submits a transaction to the pool without pre-validation.TransactionMempool.submitWithValidation(Transaction transaction, Blockchain chain) Validates and submits a transaction using the configuredTransactionValidator. -
Uses of Transaction in com.privatechain.core.model
Methods in com.privatechain.core.model that return types with arguments of type TransactionModifier and TypeMethodDescriptionBlock.getTransactions()Returns the ordered, immutable list of transactions in this block.Method parameters in com.privatechain.core.model with type arguments of type TransactionModifier and TypeMethodDescriptionBlock.Builder.transactions(List<Transaction> transactions) Sets the transaction list for this block.Constructor parameters in com.privatechain.core.model with type arguments of type TransactionModifierConstructorDescriptionBlock(int index, BlockHeader header, String previousHash, String hash, List<Transaction> transactions, String minerAddress) Constructs a fully formed, immutable block. -
Uses of Transaction in com.privatechain.core.spi
Methods in com.privatechain.core.spi with parameters of type TransactionModifier and TypeMethodDescriptionintTransactionPrioritizer.compare(Transaction t1, Transaction t2) Compares two transactions to determine their relative priority.TransactionValidator.validate(Transaction tx, Blockchain chain) Validates a single transaction against the current chain state.Method parameters in com.privatechain.core.spi with type arguments of type TransactionModifier and TypeMethodDescriptionConsensusEngine.mineBlock(List<Transaction> transactions, Block previousBlock) Produces a new candidate block from the given transactions and the current chain tip. -
Uses of Transaction in com.privatechain.examples.spring
Subclasses of Transaction in com.privatechain.examples.springModifier and TypeClassDescriptionstatic final classSimple payment transaction used by the REST demo. -
Uses of Transaction in com.privatechain.network.gossip
Methods in com.privatechain.network.gossip with parameters of type TransactionModifier and TypeMethodDescriptionvoidGossipProtocol.gossip(Transaction transaction, String originSenderId) Gossips a transaction to⌈log₂(n)⌉randomly selected connected peers. -
Uses of Transaction in com.privatechain.network.rpc
Methods in com.privatechain.network.rpc that return TransactionModifier and TypeMethodDescriptionMessageCodec.extractTransaction(MessageCodec.NetworkMessage message) Extracts and deserializes aTransactionfrom the payload of aTRANSACTIONmessage.Methods in com.privatechain.network.rpc with parameters of type TransactionModifier and TypeMethodDescriptionMessageCodec.transactionMessage(String senderId, Transaction transaction) Creates aTRANSACTIONmessage carrying the given transaction. -
Uses of Transaction in com.privatechain.wallet
Methods in com.privatechain.wallet that return TransactionModifier and TypeMethodDescriptionWallet.sign(Transaction transaction) Signs a transaction with this wallet's private key.Methods in com.privatechain.wallet with parameters of type TransactionModifier and TypeMethodDescriptionWallet.sign(Transaction transaction) Signs a transaction with this wallet's private key.