Compare commits
2 Commits
c4c6ef6bb8
...
f12e8b4606
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f12e8b4606 | ||
|
|
5e0e44440a |
2
.gitignore
vendored
2
.gitignore
vendored
@ -38,3 +38,5 @@ db/testnet/blocks
|
|||||||
|
|
||||||
README.html
|
README.html
|
||||||
public
|
public
|
||||||
|
coverage
|
||||||
|
report
|
||||||
|
|||||||
74
rpc/methods.js
Normal file
74
rpc/methods.js
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
// Local Coded
|
||||||
|
|
||||||
|
|
||||||
|
var initModule = function(node, serivces) {
|
||||||
|
// hook to events
|
||||||
|
};
|
||||||
|
|
||||||
|
// 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,...}
|
||||||
|
var createRawTransaction = function(outpoints, outputs) {
|
||||||
|
// outpoints. array or outpoint
|
||||||
|
// outputs or (Address:amount)
|
||||||
|
// returns a raw transaction
|
||||||
|
};
|
||||||
|
|
||||||
|
// decoderawtransaction "hexstring"
|
||||||
|
var decodeRawTransaction = function(transaction) {
|
||||||
|
// hex transaction
|
||||||
|
// result: txid, version, locktime, vin, vout
|
||||||
|
};
|
||||||
|
|
||||||
|
// decodescript "hex"
|
||||||
|
var decodeScript = function(redeemScript) {
|
||||||
|
// hex redeemScript
|
||||||
|
// result: asm, type, reqSigs, addresses, p2sh
|
||||||
|
};
|
||||||
|
|
||||||
|
// getblock "hash" ( verbose )
|
||||||
|
var decodeScript = function(redeemScript) {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// getblockhash index
|
||||||
|
|
||||||
|
// getrawtransaction "txid" ( verbose )
|
||||||
|
|
||||||
|
// gettxout "txid" n ( includemempool )
|
||||||
|
|
||||||
|
// gettxoutsetinfo
|
||||||
|
|
||||||
|
// sendrawtransaction "hexstring" ( allowhighfees )
|
||||||
|
|
||||||
|
// signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
||||||
|
// validateaddress "bitcoinaddress"
|
||||||
|
// verifymessage "bitcoinaddress" "signature" "message"
|
||||||
|
// getchaintips
|
||||||
|
// GetMemPoolInfo
|
||||||
|
// help ( "command" )
|
||||||
|
|
||||||
|
|
||||||
|
// Proxied to Bitcoind
|
||||||
|
// estimatefee
|
||||||
|
// estimatepriority
|
||||||
|
// getaddednodeinfo dns ( "node" )
|
||||||
|
// getbestblockhash
|
||||||
|
// getblockchaininfo
|
||||||
|
// getblockcount
|
||||||
|
// getconnectioncount
|
||||||
|
// getdifficulty
|
||||||
|
// getinfo
|
||||||
|
// getnettotals
|
||||||
|
// getnetworkhashps ( blocks height )
|
||||||
|
// getnetworkinfo
|
||||||
|
// getpeerinfo
|
||||||
|
// getrawmempool ( verbose ) // this could be done
|
||||||
|
// ping
|
||||||
Loading…
Reference in New Issue
Block a user