progress on rpc methods
This commit is contained in:
parent
5e0e44440a
commit
f12e8b4606
|
@ -38,3 +38,5 @@ db/testnet/blocks
|
||||||
|
|
||||||
README.html
|
README.html
|
||||||
public
|
public
|
||||||
|
coverage
|
||||||
|
report
|
||||||
|
|
|
@ -1,16 +1,53 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// Local Coded
|
// Local Coded
|
||||||
|
|
||||||
|
|
||||||
|
var initModule = function(node, serivces) {
|
||||||
|
// hook to events
|
||||||
|
};
|
||||||
|
|
||||||
// createmultisig nrequired ["key",...]
|
// createmultisig nrequired ["key",...]
|
||||||
|
var createMultisig = function(required, keys) {
|
||||||
|
// keys array or string.
|
||||||
|
// Keys may be addreses (return error).
|
||||||
|
// returns: address and hex-enconded redeem script
|
||||||
|
};
|
||||||
|
|
||||||
// createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...}
|
// createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...}
|
||||||
|
var createRawTransaction = function(outpoints, outputs) {
|
||||||
|
// outpoints. array or outpoint
|
||||||
|
// outputs or (Address:amount)
|
||||||
|
// returns a raw transaction
|
||||||
|
};
|
||||||
|
|
||||||
// decoderawtransaction "hexstring"
|
// decoderawtransaction "hexstring"
|
||||||
|
var decodeRawTransaction = function(transaction) {
|
||||||
|
// hex transaction
|
||||||
|
// result: txid, version, locktime, vin, vout
|
||||||
|
};
|
||||||
|
|
||||||
// decodescript "hex"
|
// decodescript "hex"
|
||||||
|
var decodeScript = function(redeemScript) {
|
||||||
|
// hex redeemScript
|
||||||
|
// result: asm, type, reqSigs, addresses, p2sh
|
||||||
|
};
|
||||||
|
|
||||||
// getblock "hash" ( verbose )
|
// getblock "hash" ( verbose )
|
||||||
|
var decodeScript = function(redeemScript) {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
// getblockhash index
|
// getblockhash index
|
||||||
|
|
||||||
// getrawtransaction "txid" ( verbose )
|
// getrawtransaction "txid" ( verbose )
|
||||||
|
|
||||||
// gettxout "txid" n ( includemempool )
|
// gettxout "txid" n ( includemempool )
|
||||||
|
|
||||||
// gettxoutsetinfo
|
// gettxoutsetinfo
|
||||||
|
|
||||||
// sendrawtransaction "hexstring" ( allowhighfees )
|
// sendrawtransaction "hexstring" ( allowhighfees )
|
||||||
|
|
||||||
// signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
// signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
||||||
// validateaddress "bitcoinaddress"
|
// validateaddress "bitcoinaddress"
|
||||||
// verifymessage "bitcoinaddress" "signature" "message"
|
// verifymessage "bitcoinaddress" "signature" "message"
|
||||||
|
|
Loading…
Reference in New Issue