public static DecodedBlockTx Create(int txIndex, DecodedTx tx) { if (tx == null) throw new ArgumentNullException(nameof(tx)); return new DecodedBlockTx(txIndex, tx); }
public static Block Create(BlockHeader header, ImmutableArray <Transaction> transactions) { var blockTxes = ImmutableArray.CreateRange(transactions.Select((tx, txIndex) => (BlockTx)BlockTx.Create(txIndex, tx))); return(new Block(header, blockTxes)); }