Sounds like your bike rear axle has a bolt-on axle, with a pair of 15mm hex nuts holding it in place.
The best tool for the job is either a 15mm ring spanner or a 15mm 6 sided socket. When I had an alfine gearbox I kept a light 15mm ringspanner in the bike's toolkit and its better AND lighter than an adjustable.
An adjustable spanner tends to have a little flex and will round-over the flats on the nut if its too tight.
![enter image description here](
For added lightness you can even cut off the open-end and just carry the ring part and the handle.