now passing transaction details through as an json object