change .transaction_type keyword to .roles and "type" field in transaction to "role"
This is a bit clearer and less verbose