Notes for exposing bitcoin rpc to a rest interface