Add ref addr for tx0, /address endpoint
template and js endpoint call changes