The tx data field is called "input" in returned objects and "data" in argument objects. Make it so "input" can be used, but bail if both are set.