The grand-canonical asymmetric exclusion process and the one-transit walk