MCPcopy
hub / github.com/petertodd/python-bitcoinlib / gettransaction

Method gettransaction

bitcoin/rpc.py:623–635  ·  view source on GitHub ↗

Get detailed information about in-wallet transaction txid Raises IndexError if transaction not found in the wallet. FIXME: Returned data types are not yet converted.

(self, txid)

Source from the content-addressed store, hash-verified

621 return int(r * COIN)
622
623 def gettransaction(self, txid):
624 """Get detailed information about in-wallet transaction txid
625
626 Raises IndexError if transaction not found in the wallet.
627
628 FIXME: Returned data types are not yet converted.
629 """
630 try:
631 r = self._call('gettransaction', b2lx(txid))
632 except InvalidAddressOrKeyError as ex:
633 raise IndexError('%s.getrawtransaction(): %s (%d)' %
634 (self.__class__.__name__, ex.error['message'], ex.error['code']))
635 return r
636
637 def gettxout(self, outpoint, includemempool=True):
638 """Return details about an unspent transaction output.

Callers

nothing calls this directly

Calls 2

b2lxFunction · 0.90
_callMethod · 0.45

Tested by

no test coverage detected