mirror of
https://github.com/OutCast3k/coinbin.git
synced 2025-12-02 12:08:53 +01:00
quick ajax ie bug fixes
This commit is contained in:
parent
6f3e9345fd
commit
e9417af10c
@ -180,7 +180,7 @@
|
|||||||
|
|
||||||
/* retreive the balance from a given address */
|
/* retreive the balance from a given address */
|
||||||
coinjs.addressBalance = function(address, callback){
|
coinjs.addressBalance = function(address, callback){
|
||||||
coinjs.ajax(coinjs.host+'?uid='+coinjs.uid+'&key='+coinjs.key+'&setmodule=addresses&request=bal&address='+address, callback, "GET");
|
coinjs.ajax(coinjs.host+'?uid='+coinjs.uid+'&key='+coinjs.key+'&setmodule=addresses&request=bal&address='+address+'&r='+Math.random(), callback, "GET");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* decompress an compressed public key */
|
/* decompress an compressed public key */
|
||||||
@ -377,7 +377,7 @@
|
|||||||
|
|
||||||
/* list unspent transactions */
|
/* list unspent transactions */
|
||||||
r.listUnspent = function(address, callback) {
|
r.listUnspent = function(address, callback) {
|
||||||
coinjs.ajax(coinjs.host+'?uid='+coinjs.uid+'&key='+coinjs.key+'&setmodule=addresses&request=unspent&address='+address, callback, "GET");
|
coinjs.ajax(coinjs.host+'?uid='+coinjs.uid+'&key='+coinjs.key+'&setmodule=addresses&request=unspent&address='+address+'&r='+Math.random(), callback, "GET");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* add unspent to transaction */
|
/* add unspent to transaction */
|
||||||
@ -419,7 +419,7 @@
|
|||||||
/* broadcast a transaction */
|
/* broadcast a transaction */
|
||||||
r.broadcast = function(callback, txhex){
|
r.broadcast = function(callback, txhex){
|
||||||
var tx = txhex || this.serialize()
|
var tx = txhex || this.serialize()
|
||||||
coinjs.ajax(coinjs.host+'?uid='+coinjs.uid+'&key='+coinjs.key+'&setmodule=bitcoin&request=sendrawtransaction&rawtx='+tx, callback, "GET");
|
coinjs.ajax(coinjs.host+'?uid='+coinjs.uid+'&key='+coinjs.key+'&setmodule=bitcoin&request=sendrawtransaction&rawtx='+tx+'&r='+Math.random(), callback, "GET");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* generate the transaction hash to sign from a transaction input */
|
/* generate the transaction hash to sign from a transaction input */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user