def pushtx(tx, api_code=None):
params = {'<STR_LIT>': tx}<EOL>if api_code is not None:<EOL><INDENT>params['<STR_LIT>'] = api_code<EOL><DEDENT>util.call_api('<STR_LIT>', params)<EOL>
Push a hex encoded transaction to the network.

    :param str tx: hex encoded transaction
    :param str api_code: Blockchain.info API code (optional)