/// <summary> /// Send a transaction to multiple recipients in the same transaction. /// Rsponse: { "message" : "Response Message" , "tx_hash": "Transaction Hash" } /// https://blockchain.info/merchant/$guid/sendmany?password=$main_password&second_password=$second_password&recipients=$recipients&fee=$fee /// </summary> public ObjOutgoingPayment SendManyTransactions(KeyValuePair <string, long>[] recipients, long?fee = null) { try { string url = GetRequestURL_SendManyTransactions(recipients, fee); string data = this.Request(url); ObjOutgoingPayment obj = JsonConvert.DeserializeObject <ObjOutgoingPayment>(data); return(obj); } catch (Exception ex) { ex.ToOutput(); return(new ObjOutgoingPayment() { error = ex.Message }); } }
/// <summary> /// Send bitcoin from your wallet to another bitcoin address. All transactions include a 0.0001 BTC miners fee. /// Rsponse: { "message" : "Response Message" , "tx_hash": "Transaction Hash", "notice" : "Additional Message" } /// https://blockchain.info/merchant/$guid/payment?password=$main_password&second_password=$second_password&to=$address&amount=$amount&from=$from&fee=$fee¬e=$note /// </summary> public ObjOutgoingPayment OutgoingPayment(string to, long amount, string from = null, long?fee = null, string note = null) { try { string url = GetRequestURL_OutgoingPayment(to, amount, from, fee, note); string data = this.Request(url); ObjOutgoingPayment obj = JsonConvert.DeserializeObject <ObjOutgoingPayment>(data); return(obj); } catch (Exception ex) { ex.ToOutput(); return(new ObjOutgoingPayment() { error = ex.Message }); } }