Skip to content

Commit 7d783d6

Browse files
committed
Merge commit '01a0756' (add gettransaction)
2 parents c6c31da + 01a0756 commit 7d783d6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/bitcoinrpc/connection.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,22 @@ def getreceivedbyaccount(self, account, minconf=1):
267267
return self.proxy.getreceivedbyaccount(account, minconf)
268268
except JSONRPCException,e:
269269
raise _wrap_exception(e.error)
270+
271+
272+
def gettransaction(self, txid):
273+
"""
274+
Get detailed information about transaction
275+
276+
Arguments:
277+
278+
- *txid* -- Transactiond id for which the info should be returned
279+
280+
"""
281+
try:
282+
return TransactionInfo(**self.proxy.gettransaction(txid))
283+
except JSONRPCException,e:
284+
raise _wrap_exception(e.error)
285+
270286

271287
def listreceivedbyaddress(self, minconf=1, includeempty=False):
272288
"""

0 commit comments

Comments
 (0)