convenience method in transaction api