j_gen_tx

privex.rpcemulator.bitcoin.j_gen_tx(account='', address=None, amount=None, category=None, **kwargs)[source]

Generate a Bitcoin transaction and return it as a dict.

If any transaction attributes aren’t specified, fake data will be automatically generated using random or faker to fill the attributes.

Parameters
  • account – Wallet account to label the transaction under

  • addressOur address, that we’re sending from or receiving into.

  • amount – The amount of BTC transferred

  • category – Either 'receive' or 'send'

  • kwargs – Any additional dict keys to put into the TX data

Return dict tx

The generated TX