YAJRPC
Yet another JSON RPC (Client)
Example
let Yajrpc =let rpc =url: 'http://localhost:8332'user: processenvRPCUSERpass: processenvRPCPASSWORD// 1 callrpc// batched requestrpc
The batch
method is remarkably useful in high-performance applications when used with tools like qup
:
let qup =let Yajrpc =let client =url: processenvRPCuser: processenvRPCUSERpass: processenvRPCPASSWORD// group RPC calls into batches of RPCBATCHSIZE, with a maximum of RPCCONCURRENT batches simultaneouslylet q ={q}
See yajrpc/qup
for a pre-made equivalent of the above.