Update transaction api doc with live example