Most DC wall warts are marked on the transformer. Most have center plus and outside minus but others are the opposite. You can use a multimeter to verify, just put one probe inside center and the other on the ring.
There are AC wall warts as well. All should be marked what type they are.
Pete