From f21589f6832dfe81192cffd74cbc2167c473b247 Mon Sep 17 00:00:00 2001 From: Doomhammer458 Date: Mon, 16 Jun 2014 12:37:03 -0700 Subject: [PATCH 1/5] added raw transaction --- src/dogecoinrpc/connection.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/dogecoinrpc/connection.py b/src/dogecoinrpc/connection.py index b79651f..254c8c3 100644 --- a/src/dogecoinrpc/connection.py +++ b/src/dogecoinrpc/connection.py @@ -325,6 +325,19 @@ def signrawtransaction(self, hexstring, previous_transactions=None, private_keys """ return dict(self.proxy.signrawtransaction(hexstring, previous_transactions, private_keys)) + def sendrawtransaction(self, hexstring): + """ + Submits raw transaction (serialized, hex-encoded) to local node and network. + + Returns a txid + + Arguments: + + - *hexstring* -- A hex string of the transaction to be decoded. + """ + + return self.proxy.sendrawtransaction(hexstring) + def decoderawtransaction(self, hexstring): """ Produces a human-readable JSON object for a raw transaction. From 6cb60d427172ae4c9fb373b53f2979fac484a9d7 Mon Sep 17 00:00:00 2001 From: Doomhammer458 Date: Mon, 16 Jun 2014 12:44:29 -0700 Subject: [PATCH 2/5] removed a duplicate function --- src/dogecoinrpc/connection.py | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/src/dogecoinrpc/connection.py b/src/dogecoinrpc/connection.py index 254c8c3..fd4de9e 100644 --- a/src/dogecoinrpc/connection.py +++ b/src/dogecoinrpc/connection.py @@ -325,18 +325,17 @@ def signrawtransaction(self, hexstring, previous_transactions=None, private_keys """ return dict(self.proxy.signrawtransaction(hexstring, previous_transactions, private_keys)) - def sendrawtransaction(self, hexstring): - """ - Submits raw transaction (serialized, hex-encoded) to local node and network. + def sendrawtransaction(self, hexstring): + """ + Submits raw transaction (serialized, hex-encoded) to local node and network. - Returns a txid - - Arguments: + Returns a txid - - *hexstring* -- A hex string of the transaction to be decoded. - """ + Arguments: - return self.proxy.sendrawtransaction(hexstring) + - *hexstring* -- A hex string of the transaction to be decoded. + """ + return self.proxy.sendrawtransaction(hexstring) def decoderawtransaction(self, hexstring): """ @@ -656,17 +655,3 @@ def signmessage(self, address, message): :rtype: unicode """ return self.proxy.signmessage(address, message) - - def verifymessage(self, address, signature, message): - """ - Verify a signed message - - :param address: Dogecoin address used to sign a message - :type address: str or unicode - :param signature: The signature - :type signature: unicode - :param message: The message to sign - :type message: str or unicode - :rtype: bool - """ - return self.proxy.verifymessage(address, signature, message) From 78c86f3bcdb887d648aee03abbbfae985b28b2cf Mon Sep 17 00:00:00 2001 From: Doomhammer458 Date: Mon, 16 Jun 2014 13:23:52 -0700 Subject: [PATCH 3/5] updated docs to include raw transaction --- doc/dogecoinrpc.connection.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/dogecoinrpc.connection.html b/doc/dogecoinrpc.connection.html index 5fa5fce..56ebce5 100644 --- a/doc/dogecoinrpc.connection.html +++ b/doc/dogecoinrpc.connection.html @@ -539,7 +539,22 @@

Navigation

+
+
+sendrawtransaction(hexstring)
+

Submits signed transaction (serialized, hex-encoded) to local node and network.

+
+
Returns a txid of the transaction.
+ +
+

Arguments:

+
    +
  • hexstring – A hex string of the transaction to send.

    +
  • + +
+
stop()
From f06b7e1ff690105aa425ee91fe246298f76969e7 Mon Sep 17 00:00:00 2001 From: Doomhammer458 Date: Mon, 16 Jun 2014 15:29:26 -0700 Subject: [PATCH 4/5] typo fix --- src/dogecoinrpc/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dogecoinrpc/connection.py b/src/dogecoinrpc/connection.py index fd4de9e..9cd6bc9 100644 --- a/src/dogecoinrpc/connection.py +++ b/src/dogecoinrpc/connection.py @@ -333,7 +333,7 @@ def sendrawtransaction(self, hexstring): Arguments: - - *hexstring* -- A hex string of the transaction to be decoded. + - *hexstring* -- A hex string of the transaction to be sent. """ return self.proxy.sendrawtransaction(hexstring) From b163a0f46676a0b5bc46da75805fb16f6e44d98b Mon Sep 17 00:00:00 2001 From: Doomhammer458 Date: Fri, 20 Jun 2014 17:31:03 -0700 Subject: [PATCH 5/5] added multisig and decodescript --- src/dogecoinrpc/connection.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/dogecoinrpc/connection.py b/src/dogecoinrpc/connection.py index 9cd6bc9..09b631d 100644 --- a/src/dogecoinrpc/connection.py +++ b/src/dogecoinrpc/connection.py @@ -655,3 +655,21 @@ def signmessage(self, address, message): :rtype: unicode """ return self.proxy.signmessage(address, message) + def createmultisig(self, nrequired, key_list): + """ + creates a new multisig address + + + + """ + + return dict(self.proxy.createmultisig(nrequired, key_list)) + + def decodescript(self,script): + """ + decodes a raw hex script + """ + + + return dict(self.proxy.decodescript(script)) +