Bitcoin Forum
May 21, 2024, 05:55:47 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: 0.25 BTC Rewards! Build a simple C# aspx withdraw form page.  (Read 621 times)
ahtremblay (OP)
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


Live Stars - Adult Streaming Platform


View Profile
January 09, 2015, 03:49:25 AM
 #1

Hi,

I have a windows server running bitcoin and i need a simple aspx page to display balance and withdraw.

Example:
Code:
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create("http://localhost.:8332");
 webRequest.Credentials = new NetworkCredential("user", "pwd");
 /// important, otherwise the service can't desirialse your request properly
 webRequest.ContentType = "application/json-rpc";
 webRequest.Method = "POST";
 
 JObject joe = new JObject();
 joe.Add(new JProperty("jsonrpc", "1.0"));
 joe.Add(new JProperty("id", "1"));
 joe.Add(new JProperty("method", Method));
 // params is a collection values which the method requires..
 if (Params.Keys.Count == 0)
 {
  joe.Add(new JProperty("params", new JArray()));
 }
 else
 {
     JArray props = new JArray();
     // add the props in the reverse order!
     for (int i = Params.Keys.Count - 1; i >= 0; i--)
     {
        .... // add the params
     }
     joe.Add(new JProperty("params", props));
     }
 
     // serialize json for the request
     string s = JsonConvert.SerializeObject(joe);
     byte[] byteArray = Encoding.UTF8.GetBytes(s);
     webRequest.ContentLength = byteArray.Length;
     Stream dataStream = webRequest.GetRequestStream();
     dataStream.Write(byteArray, 0, byteArray.Length);
     dataStream.Close();
 
 
     WebResponse webResponse = webRequest.GetResponse();
 
     ... // deserialze the response

Related links:

http://api-portal.anypoint.mulesoft.com/bitcoin-project/api/bitcoin-api/docs/auth-security
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)

A example of the page needed:


ahtremblay (OP)
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


Live Stars - Adult Streaming Platform


View Profile
January 09, 2015, 08:49:16 AM
 #2

Updating reward to .5 BTC

CoinFeeder
Full Member
***
Offline Offline

Activity: 175
Merit: 100


View Profile
January 09, 2015, 09:39:06 AM
 #3

Skype: tfctree

trynmpo
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
January 09, 2015, 01:38:18 PM
 #4

Are you still looking for this job to be done ?? contact me via pm !!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!