I'm not familiar with the procedure, however, I would assume either he, friends, family, or sponsor put up the money.
I'm in much the same quandary as you.
I've heard previously of Confederate POWs posting bond, but never have seen an actual document.