j_transactions

privex.rpcemulator.bitcoin.j_transactions(cast_decimal=<class 'float'>) → List[dict][source]

Returns internal['transactions'] with unserializable types such as Decimal 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 or str

Return List[dict] txs

A list of dict transactions, with values converted to allow JSON serialisation.