The transaction object is variable available in New Universal Login template customizations. The params object is from the authorize request query params.
If you pass query params to the authorize endpoint they should be available in the transaction.params object. What you see in the documentation is an example.