weimar republic inflation

During the weimar republic, hyper-inflation was evident.

My question how was the german government bailed out,when there was a new currency created what was the basis of this currency?

I have heard the new currency was based on the land is this correct?