Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions doc/dogecoinrpc.connection.html
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,22 @@ <h3>Navigation</h3>
</li>
</ul>
</dd></dl>
<dl class="method">
<dt id="dogecoinrpc.connection.DogecoinConnection.sendrawtransaction">
<tt class="descname">sendrawtransaction</tt><big>(</big><em>hexstring</em><big>)</big><a class="headerlink" href="#dogecoinrpc.connection.DogecoinConnection.sendrawtransaction" title="Permalink to this definition">¶</a></dt>
<dd><p> Submits signed transaction (serialized, hex-encoded) to local node and network.</p>
<dl class="docutils">
<dt>Returns a txid of the transaction.</dt>

</dl>
<p>Arguments:</p>
<ul>
<li><p class="first"><em>hexstring</em> &#8211; A hex string of the transaction to send.</p>
</li>


</ul>
</dd></dl>
<dl class="method">
<dt id="dogecoinrpc.connection.DogecoinConnection.stop">
<tt class="descname">stop</tt><big>(</big><big>)</big><a class="headerlink" href="#dogecoinrpc.connection.DogecoinConnection.stop" title="Permalink to this definition">¶</a></dt>
Expand Down
38 changes: 27 additions & 11 deletions src/dogecoinrpc/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,18 @@ 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 sent.
"""
return self.proxy.sendrawtransaction(hexstring)

def decoderawtransaction(self, hexstring):
"""
Produces a human-readable JSON object for a raw transaction.
Expand Down Expand Up @@ -643,17 +655,21 @@ def signmessage(self, address, message):
:rtype: unicode
"""
return self.proxy.signmessage(address, message)

def verifymessage(self, address, signature, message):
def createmultisig(self, nrequired, key_list):
"""
Verify a signed message
creates a new multisig address



: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)

return dict(self.proxy.createmultisig(nrequired, key_list))

def decodescript(self,script):
"""
decodes a raw hex script
"""


return dict(self.proxy.decodescript(script))