Yep, I know. Was just literally slapping the first bit of code I had up there to get this rolling.
I've added a proper rpc interface now. Plan is to offer both REST and JSON-RPC to give widest possible options.
RPC can be accessed via (python example):
>>import jsonrpc
>>s = jsonrpc.ServiceProxy("
http://localhost:8333/rpc")
>>s.getAddress()
"1F2dx5Bzz5yXksWgddw7bMQLgr9wfrho9L"
>>s.listAddresses()
["1F2dx5Bzz5yXksWgddw7bMQLgr9wfrho9L", "13ZC6VnNV4GBNePfcTZcc4Pg52KzPgaeqr"]
If it would help I can share the source of
http://blockchain.info/api/json_rpc_api. It might be useful as a template to get started. However it does use blockchain.info specific database code which would need convert to BitcoinJ lookups.
What is that written in? If its not too much trouble it may be interesting to see. If nothing else it will provide an easy way to maintain consistency of method names.