Any court or officer whose duty it is to pass upon the account of any person or corporation required by law to give bond, may, whenever the person or corporation has given any company as surety upon the bond, allow in the settlement of the account a reasonable sum for the expense of procuring the surety.
R.I. Gen. Laws § 7-9-5