Commit 6b60f2dc authored by Braydon Fuller's avatar Braydon Fuller
Browse files

Expose callspec and fix spec for sendRawTransaction.

parent 48cf5e92
......@@ -126,7 +126,7 @@ RpcClient.prototype.batch = function(batchCallback, resultCallback) {
this.batchedCalls = null;
};
var callspec = {
RpcClient.callspec = {
addMultiSigAddress: '',
addNode: '',
backupWallet: '',
......@@ -186,7 +186,7 @@ var callspec = {
prioritiseTransaction: 'str float int',
sendFrom: 'str str float int str str',
sendMany: 'str obj int str', //not sure this is will work
sendRawTransaction: '',
sendRawTransaction: 'str',
sendToAddress: 'str float str str',
setAccount: '',
setGenerate: 'bool int',
......@@ -282,6 +282,6 @@ function getRandomId() {
return parseInt(Math.random() * 100000);
}
generateRPCMethods(RpcClient, callspec, rpc);
generateRPCMethods(RpcClient, RpcClient.callspec, rpc);
module.exports = RpcClient;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment