Before every stated term of the United States court to be held within this state, the sheriffs or officers having charge of jails shall make, under oath, a calendar of prisoners in their custody under the authority of the United States, with the date of their commitment, by whom committed, and for what offense, and transmit the same to the judge of the district court of the United States for the proper district, and at the end of every six months they shall transmit to the United States marshal of the proper district, for allowance and payment, their account, if any, against the United States, for the support and keeping of such prisoners.
SDCL 24-11-7