Ok im stumped the following code gives me a http 400 error which tells me there is something wrong with the submitted data but i cant figure out what!:(
the client is set to encode URL (Ive tried both true/false);
procedure TForm2.Button1Click(Sender: TObject);
var
O:Isuperobject;
T:Tstringlist;
begin
T := Tstringlist.Create;
O := SO('{"jsonrpc": "1.0", "method": getinfo, "params": "[]" }');
t.Add(o.AsString) ;
idhttp1.Request.ContentType := '"application/json"';
memo1.lines.Add( idhttp1.post('http://127.0.0.1:8332/', T ) )
end;
end.
Maybe im to Tired who knows but this is driving off the wall :\
Documentation on the RPC client https://en.bitcoin.it/wiki/API_reference_%28JSON-RPC%29
USES:
Superobject Link : http://www.progdigy.com/?page_id=6