j_transactions¶
-
privex.rpcemulator.bitcoin.
j_transactions
(cast_decimal=<class 'float'>) → List[dict][source]¶ Returns
internal['transactions']
with unserializable types such asDecimal
casted appropriately.This should be used instead of
internal['transactions']
if returning TXs from the RPC.- Parameters
cast_decimal – A casting function to use to convert Decimal’s, e.g.
float
orstr
- Return List[dict] txs
A list of dict transactions, with values converted to allow JSON serialisation.