code: def solution_blobs(self, tx, tx_in_idx):
          
          sc = tx.SolutionChecker(tx)
          tx_context = sc.tx_context_for_idx(tx_in_idx)
          # set solution_stack in case there are no results from puzzle_and_solution_iterator
          solution_stack = []
          for puzzle_script, solution_stack, flags, sighash_f in sc.puzzle_and_solution_iterator(tx_context):
              pass
              # we only care about the last one
          for s in solution_stack:
              yield s
docs: This iterator yields data blobs that appear in the the last solution_script or the witness.