Transactional immunity
Transactional immunity is a type of immunity that protects a witness from prosecution for any crimes related to their testimony. It is also known as "blanket" or "total" immunity. Transactional immunity is the broadest type of immunity.
Transactional immunity is different from use immunity. Use immunity only protects the witness from the government using their testimony against them.
Transactional immunity is granted as a deal between the witness and the prosecution. If the witness does not hold up their end of the deal, the prosecution can ask for a re-trial and retract immunity.
To illustrate, suppose Witness and Defendant commit an armed bank robbery. The prosecution grants Witness transactional immunity in exchange for admitting his participation in the robbery and testifying against Defendant at Defendant's trial.