code: def make_op_return_outputs(data, inputs, change_address, fee=OP_RETURN_FEE,
                             send_amount=0, format='bin'):
      
      return [
          # main output
          { "script_hex": make_op_return_script(data, format=format), "value": send_amount },
          # change output
          { "script_hex": make_pay_to_address_script(change_address),
            "value": calculate_change_amount(inputs, send_amount, fee)
          }
      ]
docs: Builds the outputs for an OP_RETURN transaction.